2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([libisds], [0.1], [petr.pisar@atlas.cz])
6 AM_INIT_AUTOMAKE(libisds, 0.1)
7 AC_CONFIG_SRCDIR([src/isds.c])
8 AC_CONFIG_MACRO_DIR([m4])
9 AC_CONFIG_HEADERS([config.h])
11 # Checks for programs.
18 # Enable example clients
19 AC_ARG_ENABLE(example, [AS_HELP_STRING([--enable-example],
20 [Build library usage examples])])
21 AM_CONDITIONAL([BUILD_EXAMPLE], [test "$enable_example" = "yes"])
22 AS_IF([test "$enable_example" = "yes"], AC_CONFIG_FILES([client/Makefile]))
25 AC_ARG_ENABLE(test, [AS_HELP_STRING([--enable-test],
26 [Enable internal library tests])])
27 AM_CONDITIONAL([BUILD_TEST], [test "$enable_test" = "yes"])
28 AS_IF([test "$enable_test" = "yes"], AC_CONFIG_FILES([test/Makefile]))
31 # Checks for libraries.
32 #TODO: Verify minimal version. libxml2-2.6.26 is just a guess.
33 AM_PATH_XML2([2.6.26])
34 #TODO: Determine minimal version
35 LIBCURL_CHECK_CONFIG()
36 #TODO: Determine minimal version
37 AM_PATH_LIBGCRYPT([1:1.4.0])
38 #TODO: Determine minimal version
40 #AC_CHECK_LIB([expat])
41 AM_GNU_GETTEXT([external])
43 # Checks for header files.
44 AC_CHECK_HEADERS([fcntl.h locale.h stdint.h stdlib.h string.h unistd.h])
46 # Checks for typedefs, structures, and compiler characteristics.
51 # Checks for library functions.
55 AC_CHECK_FUNCS([localtime_r memset munmap setlocale strdup strerror])
58 AC_CONFIG_FILES([Makefile src/Makefile po/Makefile.in])
60 #AC_CONFIG_SUBDIRS([src])