2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([katrin], [1.0.0], [kliden at km.ru])
8 AM_CONFIG_HEADER(src/config.h)
10 # Checks for programs.
14 # Checks for libraries.
15 # FIXME: Replace `main' with a function in `-ldl':
16 AC_CHECK_LIB([dl], [dlopen])
17 # FIXME: Replace `main' with a function in `-lmysqlclient':
18 AC_CHECK_LIB([mysqlclient], [mysql_real_query])
19 AC_CHECK_LIB([confuse], [cfg_init])
21 # Checks for header files.
23 AC_CHECK_HEADERS([arpa/inet.h \
33 # Checks for typedefs, structures, and compiler characteristics.
40 # Checks for library functions.
46 AC_CHECK_FUNCS([dup2 \
55 AC_ARG_WITH([pppd-auth],
56 [ --with-pppd-auth Build with pppd auth library],
57 [ if test "$with_pppd_auth" = "yes"; then
58 AC_CONFIG_FILES(src/auth/other/ppp/Makefile)
59 AUTH_MOD_SUBDIRS="auth/other/ppp"
64 ], [AC_MSG_RESULT([no])])
66 AC_SUBST(AUTH_MOD_SUBDIRS)
68 AC_CONFIG_FILES([Makefile \
70 src/kcdr-sender/Makefile])