diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-09 16:04:58 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-09 16:04:58 +0200 |
commit | 819a9ab222da57d6064a7cc9ad3e2c9ff0ef2f82 (patch) | |
tree | 5a175f83ca99f08c81f9dd2be93649fd97eebdaa /configure.ac |
Imported Upstream version 0.6upstream/0.6
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..e204cc5 --- /dev/null +++ b/configure.ac @@ -0,0 +1,65 @@ +# +# configure.ac +# +# Copyright (c) 2009-2013 EPIPE Communications. All rights reserved. +# +# This software is licensed under the terms and conditions of the FreeBSD +# License which is also known as the Simplified BSD License. You should have +# received a copy of that license along with this software. +# + +AC_PREREQ(2.65) +AC_INIT([downtimed],[0.6],[opensource@epipe.com],[],[http://dist.epipe.com/downtimed/]) +AC_CONFIG_SRCDIR([downtimed.c]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_AUX_DIR([build-aux]) +AM_INIT_AUTOMAKE([foreign dist-xz]) + +AC_LANG([C]) +AC_PROG_CC +AC_PROG_CC_C99 +AM_PROG_CC_C_O + +AC_PROG_INSTALL +AC_PROG_SED +AC_PROG_MAKE_SET + +AC_C_BIGENDIAN + +AC_CHECK_HEADERS([sys/param.h paths.h utmpx.h]) + +# check sys/sysctl.h seperately, as it requires other headers on OpenBSD +AC_CHECK_HEADERS([sys/sysctl.h], [], [], +[[#if HAVE_SYS_PARAM_H +#include <sys/param.h> +#endif +]]) + +AC_TYPE_INT8_T +AC_TYPE_INT16_T +AC_TYPE_INT32_T +AC_TYPE_INT64_T +AC_TYPE_UINT8_T +AC_TYPE_UINT16_T +AC_TYPE_UINT32_T +AC_TYPE_UINT64_T + +AH_TEMPLATE([sig_atomic_t], [Define to int if <signal.h> does not define.]) +AC_CHECK_TYPES([sig_atomic_t], [], [AC_DEFINE([sig_atomic_t], [int])], [ +#include <signal.h> +]) + +AC_CHECK_FUNCS([daemon futimes flock]) + +AC_CHECK_DECL([facilitynames], [ +AC_DEFINE([HAVE_SYSLOG_FACILITYNAMES], [1], [Define to 1 if you have the declaration of 'facilitynames' in <syslog.h>.]) +], [], [ +#include <stdlib.h> +#define SYSLOG_NAMES +#include <syslog.h> +]) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT + +# eof |