-rw-r--r-- | configure.ac | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..8a2a10b --- a/dev/null +++ b/configure.ac @@ -0,0 +1,38 @@ +AC_INIT([dudki], [0.0], [dudki-bugs@klever.net]) +AC_CONFIG_SRCDIR([src/dudki.cc]) +AC_CONFIG_HEADER([config.h]) +AM_INIT_AUTOMAKE([dist-bzip2]) + +AC_PROG_CXX +AC_PROG_CC + +AC_HEADER_SYS_WAIT +AC_CHECK_HEADERS([syslog.h unistd.h getopt.h]) + +AC_HEADER_STDBOOL +AC_C_CONST +AC_TYPE_UID_T +AC_TYPE_PID_T + +AC_FUNC_FORK +AC_HEADER_STDC +AC_TYPE_SIGNAL +AC_CHECK_FUNCS([dup2 strtol]) +AC_CHECK_FUNC([getopt_long],[ + AC_DEFINE([HAVE_GETOPT_LONG],[1],[Define to make use of getopt_long]) + AC_SUBST(HAVE_GETOPT_LONG,1) +],[ + AC_SUBST(HAVE_GETOPT_LONG,0) +]) + +PKG_CHECK_MODULES(DOTCONF,[dotconf],,[ + AC_MSG_ERROR([no dotconf library found]) +]) + +AC_CONFIG_FILES([ + Makefile + src/Makefile + man/Makefile + man/dudki.8 man/dudki.conf.5 +]) +AC_OUTPUT |