1 # Tell autoconf we're compiling a C++ library, using automake & libtool
3 AC_CONFIG_SRCDIR(src/adplug.cpp)
4 AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile adplugdb/Makefile test/Makefile adplug.pc])
11 # Check for a sane C/C++ build environment.
17 # Check for needed libraries.
18 AC_CHECK_LIB(stdc++,main,,AC_MSG_ERROR([libstdc++ not installed]))
19 PKG_CHECK_MODULES([libbinio], [libbinio >= 1.4])
21 # Check if getopt header is installed on this system
22 AC_CHECK_HEADERS([getopt.h], , AC_SUBST(GETOPT_SOURCES, [getopt.c getopt.h]))
24 # Sanitize some compiler features, which may be broken...
28 # Enable debugging on user request.
29 AC_ARG_ENABLE([debug],AC_HELP_STRING([--enable-debug],
30 [Compile with debug logging support (default is to disable debug logging)]),