summaryrefslogtreecommitdiffabout
path: root/configure.ac
Unidiff
Diffstat (limited to 'configure.ac') (more/less context) (ignore whitespace changes)
-rw-r--r--configure.ac38
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 @@
1AC_INIT([dudki], [0.0], [dudki-bugs@klever.net])
2AC_CONFIG_SRCDIR([src/dudki.cc])
3AC_CONFIG_HEADER([config.h])
4AM_INIT_AUTOMAKE([dist-bzip2])
5
6AC_PROG_CXX
7AC_PROG_CC
8
9AC_HEADER_SYS_WAIT
10AC_CHECK_HEADERS([syslog.h unistd.h getopt.h])
11
12AC_HEADER_STDBOOL
13AC_C_CONST
14AC_TYPE_UID_T
15AC_TYPE_PID_T
16
17AC_FUNC_FORK
18AC_HEADER_STDC
19AC_TYPE_SIGNAL
20AC_CHECK_FUNCS([dup2 strtol])
21AC_CHECK_FUNC([getopt_long],[
22 AC_DEFINE([HAVE_GETOPT_LONG],[1],[Define to make use of getopt_long])
23 AC_SUBST(HAVE_GETOPT_LONG,1)
24],[
25 AC_SUBST(HAVE_GETOPT_LONG,0)
26])
27
28PKG_CHECK_MODULES(DOTCONF,[dotconf],,[
29 AC_MSG_ERROR([no dotconf library found])
30])
31
32AC_CONFIG_FILES([
33 Makefile
34 src/Makefile
35 man/Makefile
36 man/dudki.8 man/dudki.conf.5
37])
38AC_OUTPUT