blob: 4cced9ebc7d9542f5fa845d71639d43175b5d9b4 [file] [log] [blame]
Scott James Remnant8a0cd072006-05-14 18:28:58 +01001# Process this file with autoconf to produce a configure script.
2
Scott James Remnanta86d3982007-10-15 17:55:09 +01003AC_PREREQ(2.61)
Scott James Remnant5d6466d2007-10-15 01:40:52 +01004AC_INIT([upstart], [0.5.0], [upstart-devel@lists.ubuntu.com])
Scott James Remnant92feed92007-01-02 15:27:47 +00005AC_COPYRIGHT([[Copyright © 2007 Canonical Ltd.]])
Scott James Remnant8a0cd072006-05-14 18:28:58 +01006AC_CONFIG_SRCDIR([init/main.c])
7AC_CONFIG_MACRO_DIR([m4])
8
Scott James Remnant8985dd32006-10-12 15:26:29 +01009AC_GNU_SOURCE
10
Scott James Remnant0c3bef32007-10-08 13:20:56 +010011AM_INIT_AUTOMAKE([1.10 gnu nostdinc check-news dist-bzip2])
Scott James Remnant8a0cd072006-05-14 18:28:58 +010012
Scott James Remnante16d32c2007-10-08 13:37:44 +010013AM_GNU_GETTEXT_VERSION([0.16.1])
Scott James Remnant8a0cd072006-05-14 18:28:58 +010014AM_GNU_GETTEXT()
15
16# Checks for programs.
17AC_PROG_CC
Scott James Remnantc043a8a2007-04-24 12:59:54 +010018AM_PROG_CC_C_O
Scott James Remnant8a0cd072006-05-14 18:28:58 +010019AC_PROG_LIBTOOL
20
21# Checks for libraries.
Scott James Remnant10b8c0e2006-09-27 21:27:38 +010022NIH_INIT
Scott James Remnant8a0cd072006-05-14 18:28:58 +010023
24# Checks for header files.
25
26# Checks for typedefs, structures, and compiler characteristics.
27
28# Checks for library functions.
29
30# Other checks
Scott James Remnant59093a82006-10-10 13:09:58 +010031AC_ARG_ENABLE(compat,
32 AS_HELP_STRING([--enable-compat],
33 [Enable compatibility tools]),
34[case "$enable_compat" in
35 yes|sysv) compat=sysv ;;
36 no) compat=none ;;
37 *) AC_MSG_ERROR([bad value $enable_compat for --enable-compat]) ;;
38esac], [compat_sysv=none])dnl
39AM_CONDITIONAL(COMPAT_SYSV, test "x$compat" = "xsysv")dnl
40
Scott James Remnant8a0cd072006-05-14 18:28:58 +010041
Scott James Remnant5222c402006-09-27 22:48:48 +010042AC_CONFIG_FILES([ Makefile m4/Makefile po/Makefile.in intl/Makefile
Scott James Remnantb1d8a7d2006-10-13 13:57:31 +010043 nih/Makefile upstart/Makefile init/Makefile util/Makefile
Scott James Remnant335947d2006-10-11 17:08:34 +010044 compat/sysv/Makefile logd/Makefile doc/Makefile ])
Scott James Remnant8a0cd072006-05-14 18:28:58 +010045AC_CONFIG_HEADERS([config.h])
46AC_OUTPUT