1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#
# configure.ac
#
# Copyright (c) 2009-2016 Janne Snabb. All rights reserved.
#
# This software is licensed under the terms and conditions of the
# Simplified BSD License. You should have received a copy of that
# license along with this software.
#
AC_PREREQ(2.65)
AC_INIT([downtimed],[1.0],[],[],[https://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
|