Building CCID from Github encounters error

Thotheolh Tay <[email protected]> Wed, 29 Mar 2017 15:39:33 +0800
Newsgroups gmane.comp.lib.muscle
Message-ID <CAN9v3RyZz4=VDhKvBHfyQ0rHyWBRw-Xh8QnkP6J2oXL7NCJFkw@mail.gmail.com>
Hi,

I have cloned the CCID repository and have automake, flex and installed
build-essential on an Ubuntu machine.

I tried to do sudo ./bootstrap and encountered errors.

Attached in the email is the output file.

Regards,
Tay.

-- 
,----------------------------------------------------------,
  PGP Secure Email Key ID:6FBFC19D
      7721 3E54 FA6D B79D AFE6
      AC45 8885 F995 6FBF C19D
'----------------------------------------------------------'

_______________________________________________
Pcsclite-muscle mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
bootstrap.log (application/octet-stream, 4.2 KB)
+ LIBTOOLIZE=libtoolize
+ which glibtoolize
+ aclocal -I m4
aclocal: error: aclocal: file 'm4/ax_pthread.m4' does not exist
+ libtoolize --copy --force --automake
./bootstrap: line 13: libtoolize: command not found
+ autoheader --force
+ autoconf --force
configure.ac:10: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:26: error: possibly undefined macro: AM_MAINTAINER_MODE
configure.ac:30: error: possibly undefined macro: AM_PROG_CC_C_O
configure.ac:35: error: possibly undefined macro: AM_PROG_LEX
configure.ac:36: error: possibly undefined macro: AM_PROG_AR
configure.ac:45: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:47: error: possibly undefined macro: AC_MSG_WARN
configure.ac:132: error: possibly undefined macro: AM_CONDITIONAL
configure.ac:141: error: possibly undefined macro: AC_DEFINE
configure.ac:283: error: possibly undefined macro: AS_AC_EXPAND
+ automake --add-missing --copy --force --foreign
configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal)
/usr/share/automake-1.15/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.15/am/depend2.am:   The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC'
/usr/share/automake-1.15/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again
/usr/share/automake-1.15/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.15/am/depend2.am:   The usual way to define 'AMDEP' is to add one of the compiler tests
/usr/share/automake-1.15/am/depend2.am:     AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX,
/usr/share/automake-1.15/am/depend2.am:     AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.15/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again
contrib/Makefile.am:1: error: WITH_LIBUSB does not appear in AM_CONDITIONAL
src/Makefile.am:10: error: WITH_LIBUSB does not appear in AM_CONDITIONAL
src/Makefile.am:16: error: WITH_TWIN_SERIAL does not appear in AM_CONDITIONAL
src/Makefile.am:52: error: WITHOUT_PCSC does not appear in AM_CONDITIONAL
src/Makefile.am:7: error: Libtool library used but 'LIBTOOL' is undefined
src/Makefile.am:7:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/Makefile.am:7:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/Makefile.am:7:   If 'LT_INIT' is in 'configure.ac', make sure
src/Makefile.am:7:   its definition is in aclocal's search path.
src/Makefile.am:34: warning: source file 'towitoko/atr.c' is in a subdirectory,
src/Makefile.am:34: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
src/Makefile.am:34: warning: source file 'towitoko/pps.c' is in a subdirectory,
src/Makefile.am:34: but option 'subdir-objects' is disabled
src/Makefile.am:34: warning: source file 'openct/buffer.c' is in a subdirectory,
src/Makefile.am:34: but option 'subdir-objects' is disabled
src/Makefile.am:34: warning: source file 'openct/checksum.c' is in a subdirectory,
src/Makefile.am:34: but option 'subdir-objects' is disabled
src/Makefile.am:34: warning: source file 'openct/proto-t1.c' is in a subdirectory,
src/Makefile.am:34: but option 'subdir-objects' is disabled
src/Makefile.am: error: Lex source seen but 'LEX' is undefined
src/Makefile.am:   The usual way to define 'LEX' is to add 'AM_PROG_LEX'
src/Makefile.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.