# $Id$ m4_define(x_package_name, libpcscxx) m4_define(x_major, 3) m4_define(x_minor, 1) m4_include(ax_init_standard_project.m4) AC_INIT(x_package_name, x_major.x_minor.x_least, x_bugreport, x_package_name) AM_INIT_AUTOMAKE([1.9 tar-pax]) AX_INIT_STANDARD_PROJECT # languages AX_USE_CXX AX_USE_LIBTOOL AX_USE_DOXYGEN AX_USE_DEBIAN_PACKAGING AX_USE_RPM_PACKAGING #AX_USE_CPPUNIT AX_BUILD_EXAMPLES # qt features AX_CHECK_QT([QTGUI], [QtCore QtGui], [QtWidgets]) AX_CHECK_QT([QTNETWORK], [QtNetwork]) AM_CPPFLAGS+=" -DQT_NO_KEYWORDS" # libraries AC_ARG_ENABLE(pkcs11-download, [AS_HELP_STRING([--enable-pkcs11-download], [download pkcs11 header])], [have_pedantic="$enableval" if test "$enableval" = "yes"; then mkdir -p usr/include cd usr/include for f in $(wget -q -O- ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/ 2>&1 | html2 | sed -n 's,.*/a/@href=\(.*\.h\)$,\1,gp'); do wget --unlink $f done AM_CPPFLAGS+="-I$(pwd)" cd - fi ]) dnl problem in libs: -Wshadow -Wcast-qual dnl auto.hpp: -Wno-ctor-dtor-privacy (removed) AC_CHECK_HEADER([pkcs11.h], [], [AC_MSG_ERROR([Header pkcs11.h is required])]) AC_CHECK_HEADER([wintypes.h], [], [AC_MSG_ERROR([Header wintypes.h is required])]) AC_CHECK_HEADER([mrw/checkcxx11.hxx], [], [AC_MSG_ERROR([please install mrw-c++])]) # create output AC_OUTPUT