1 # Process this file with autoconf to produce a configure script.
4 AC_INIT(ptabtools, 0.4.2, [jelmer@samba.org])
5 AC_CONFIG_SRCDIR([ptb.c])
6 AC_CONFIG_HEADER([config.h])
21 # Checks for libraries.
22 AC_CHECK_LIB([popt], [poptGetArg], [
24 TARGET_BINS="$TARGET_BINS ptbdict$EXEEXT ptb2ly$EXEEXT ptb2ascii$EXEEXT ptbinfo$EXEEXT gp2ly$EXEEXT"
25 ] , AC_MSG_WARN([Popt is required for command-line utilities]))
26 PKG_CHECK_MODULES(LIBXML, libxml-2.0, [
27 if test $ac_cv_lib_popt_poptGetArg = yes; then
28 TARGET_BINS="$TARGET_BINS ptb2xml$EXEEXT"
30 ] , AC_MSG_WARN([libxml not found: not building ptb2xml]))
31 PKG_CHECK_MODULES(LIBXSLT, libxslt, AC_DEFINE(HAVE_XSLT, 1, [whether libxslt is available]) , AC_MSG_WARN([libxslt not found: ptb2xml will not support musicxml]))
33 if test "$MINGW32" = "yes"; then
34 TARGET_BINS="$TARGET_BINS ptb.dll"
36 TARGET_LIBS="$TARGET_LIBS libptb.so.$PACKAGE_VERSION libptb.a"
43 # Checks for header files.
46 AC_CHECK_HEADERS([stdlib.h string.h unistd.h popt.h sys/time.h ctype.h])
48 # Checks for typedefs, structures, and compiler characteristics.
52 AC_CONFIG_FILES([Makefile.settings ptabtools.spec])