From c8aefa70b6fe627bd004088ba99d66ba8dc2084c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 17 Oct 2009 04:09:31 +0200 Subject: build-sys: various build system updates --- configure.ac | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 38b7701..3cb9977 100644 --- a/configure.ac +++ b/configure.ac @@ -19,14 +19,14 @@ # License along with libdaemon. If not, see # . -AC_PREREQ(2.62) +AC_PREREQ(2.63) AC_INIT([libdaemon],[0.14],[mzqnrzba (at) 0pointer (dot) de]) AC_CONFIG_SRCDIR([libdaemon/dfork.c]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) -AM_INIT_AUTOMAKE([foreign 1.9 -Wall]) +AM_INIT_AUTOMAKE([foreign 1.10 -Wall]) AC_SUBST(PACKAGE_URL, [http://0pointer.de/lennart/projects/libdaemon/]) @@ -37,14 +37,21 @@ if type -p stow > /dev/null && test -d /usr/local/stow ; then ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}" fi +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + # Checks for programs. AC_PROG_CC AC_PROG_CC_C99 dnl This enable gnu99 if present +AM_PROG_CC_C_O + AC_USE_SYSTEM_EXTENSIONS + +AC_PROG_INSTALL +AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_LIBTOOL -CC_CHECK_CFLAGS_APPEND([-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -ffast-math]) +CC_CHECK_CFLAGS_APPEND([-pipe -Wall -W -Wextra -pedantic -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -Wstrict-aliasing]) # Checks for header files. AC_HEADER_ASSERT -- cgit