1e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering# -*- Autoconf -*-
2e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering# Process this file with autoconf to produce a configure script.
3e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering
4e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering# This file is part of libdaemon.
5e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering#
67892e9b63584b3bc9965e1d4e7d0188ba6fab8c5Lennart Poettering# Copyright 2003-2008 Lennart Poettering
77892e9b63584b3bc9965e1d4e7d0188ba6fab8c5Lennart Poettering#
80630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# Permission is hereby granted, free of charge, to any person obtaining a copy
90630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# of this software and associated documentation files (the "Software"), to deal
100630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# in the Software without restriction, including without limitation the rights
110630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
120630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# copies of the Software, and to permit persons to whom the Software is
130630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# furnished to do so, subject to the following conditions:
14e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering#
150630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# The above copyright notice and this permission notice shall be included in
160630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# all copies or substantial portions of the Software.
17e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering#
180630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
190630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
200630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
210630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
220630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
230630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
240630da04e575213229f695bdc3dc90aa92ca4f55Brandon Philips# SOFTWARE.
25e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering
26c8aefa70b6fe627bd004088ba99d66ba8dc2084cLennart PoetteringAC_PREREQ(2.63)
27ebe00d640b9f57411d41fea038bf6b9fc55795d0Lennart Poettering
287067029368ab389b92f5a7329899188d47f191baDiego 'Flameeyes' PettenòAC_INIT([libdaemon],[0.14],[mzqnrzba (at) 0pointer (dot) de])
2991511db7500439088b8b3bb08ce6ee6f8f8e6499Lennart PoetteringAC_CONFIG_SRCDIR([libdaemon/dfork.c])
30e774e8ef3467e81ed502e19b1719b4ab384d008Lennart PoetteringAC_CONFIG_HEADERS([config.h])
31cb71a67c1224c0c2f8ce475f2ae620e8a8d9db88Diego 'Flameeyes' PettenòAC_CONFIG_MACRO_DIR([m4])
32ebe00d640b9f57411d41fea038bf6b9fc55795d0Lennart Poettering
33c8aefa70b6fe627bd004088ba99d66ba8dc2084cLennart PoetteringAM_INIT_AUTOMAKE([foreign 1.10 -Wall])
34e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering
358f34edf681b6a5d80af6cde9bd0cb72197e88b33Lennart PoetteringAC_SUBST(PACKAGE_URL, [http://0pointer.de/lennart/projects/libdaemon/])
368f34edf681b6a5d80af6cde9bd0cb72197e88b33Lennart Poettering
377067029368ab389b92f5a7329899188d47f191baDiego 'Flameeyes' PettenòAC_SUBST(LIBDAEMON_VERSION_INFO, [5:0:5])
38ebe00d640b9f57411d41fea038bf6b9fc55795d0Lennart Poettering
398f34edf681b6a5d80af6cde9bd0cb72197e88b33Lennart Poetteringif type -p stow > /dev/null && test -d /usr/local/stow ; then
408f34edf681b6a5d80af6cde9bd0cb72197e88b33Lennart Poettering   AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
418f34edf681b6a5d80af6cde9bd0cb72197e88b33Lennart Poettering   ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
428f34edf681b6a5d80af6cde9bd0cb72197e88b33Lennart Poetteringfi
438f34edf681b6a5d80af6cde9bd0cb72197e88b33Lennart Poettering
44c8aefa70b6fe627bd004088ba99d66ba8dc2084cLennart Poetteringm4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
45c8aefa70b6fe627bd004088ba99d66ba8dc2084cLennart Poettering
46e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering# Checks for programs.
47e774e8ef3467e81ed502e19b1719b4ab384d008Lennart PoetteringAC_PROG_CC
48247d9c0b5c2315bc5fb9826fbcd168ad3bda63deDiego 'Flameeyes' PettenòAC_PROG_CC_C99 dnl This enable gnu99 if present
49c8aefa70b6fe627bd004088ba99d66ba8dc2084cLennart PoetteringAM_PROG_CC_C_O
50c8aefa70b6fe627bd004088ba99d66ba8dc2084cLennart Poettering
516581892f3d7d5d75139b71b20cdcbd25a8ce8ab4Diego 'Flameeyes' PettenòAC_USE_SYSTEM_EXTENSIONS
52c8aefa70b6fe627bd004088ba99d66ba8dc2084cLennart Poettering
53c8aefa70b6fe627bd004088ba99d66ba8dc2084cLennart PoetteringAC_PROG_INSTALL
54c8aefa70b6fe627bd004088ba99d66ba8dc2084cLennart PoetteringAC_PROG_LN_S
558f34edf681b6a5d80af6cde9bd0cb72197e88b33Lennart PoetteringAC_PROG_MAKE_SET
5670df7aaa8a9571fa70f0f4f8aa0a363be0ac3cdcLennart PoetteringAC_PROG_LIBTOOL
57e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering
58c8aefa70b6fe627bd004088ba99d66ba8dc2084cLennart PoetteringCC_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])
59e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering
60e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering# Checks for header files.
618e8c137b2187c2e738a23c3d42237860d90d6fa4Diego 'Flameeyes' PettenòAC_HEADER_ASSERT
62e774e8ef3467e81ed502e19b1719b4ab384d008Lennart PoetteringAC_HEADER_STDC
63c73f5e4e6922363cc7cbf4f39f236e310845f9b9Lennart PoetteringAC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h syslog.h unistd.h sys/ioctl.h sys/time.h])
648f34edf681b6a5d80af6cde9bd0cb72197e88b33Lennart PoetteringAC_HEADER_SYS_WAIT
65e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering
66e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering# Checks for typedefs, structures, and compiler characteristics.
67e774e8ef3467e81ed502e19b1719b4ab384d008Lennart PoetteringAC_C_CONST
68e774e8ef3467e81ed502e19b1719b4ab384d008Lennart PoetteringAC_TYPE_PID_T
69e774e8ef3467e81ed502e19b1719b4ab384d008Lennart PoetteringAC_HEADER_TIME
70e774e8ef3467e81ed502e19b1719b4ab384d008Lennart PoetteringAC_C_VOLATILE
71e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering
72e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering# Checks for library functions.
73e774e8ef3467e81ed502e19b1719b4ab384d008Lennart PoetteringAC_FUNC_FORK
74e774e8ef3467e81ed502e19b1719b4ab384d008Lennart PoetteringAC_FUNC_SELECT_ARGTYPES
75e774e8ef3467e81ed502e19b1719b4ab384d008Lennart PoetteringAC_FUNC_VPRINTF
763ff2f54d8ecaa1cacfbfddc61daeda1bcee8dfecLennart PoetteringAC_CHECK_FUNCS([select strerror dup2 memset strrchr asprintf])
77e774e8ef3467e81ed502e19b1719b4ab384d008Lennart PoetteringAC_TYPE_MODE_T
78c73f5e4e6922363cc7cbf4f39f236e310845f9b9Lennart PoetteringAC_FUNC_SETPGRP
79c73f5e4e6922363cc7cbf4f39f236e310845f9b9Lennart PoetteringAC_TYPE_SIGNAL
80c73f5e4e6922363cc7cbf4f39f236e310845f9b9Lennart PoetteringAC_TYPE_SIZE_T
81e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering
82ebe00d640b9f57411d41fea038bf6b9fc55795d0Lennart PoetteringAC_SYS_LARGEFILE
83ebe00d640b9f57411d41fea038bf6b9fc55795d0Lennart Poettering
84b406ecda2ce06fdb056d7ec6522893f38c3bbbdfDiego E. 'Flameeyes' PettenòCC_NOUNDEFINED
85b406ecda2ce06fdb056d7ec6522893f38c3bbbdfDiego E. 'Flameeyes' Pettenò
8694c9da418edbe13963dcc5b604532e3718da233cDiego 'Flameeyes' PettenòZP_LYNX_DOC
87e774e8ef3467e81ed502e19b1719b4ab384d008Lennart Poettering
88a301690be6581e23a39813444b2904addcb26ab7Lennart PoetteringAC_ARG_ENABLE(examples,
89a301690be6581e23a39813444b2904addcb26ab7Lennart Poettering       AS_HELP_STRING([--disable-examples], [Don't build examples during make]),,
90a301690be6581e23a39813444b2904addcb26ab7Lennart Poettering       enable_examples="yes")
91a301690be6581e23a39813444b2904addcb26ab7Lennart PoetteringAM_CONDITIONAL(EXAMPLES, [test "$enable_examples" = "yes"])
92a301690be6581e23a39813444b2904addcb26ab7Lennart Poettering
93b739ed0e09a640d0fd1c386f24ea2df580a410edDiego 'Flameeyes' PettenòAC_CONFIG_FILES([libdaemon/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile pkgconfig/libdaemon.pc pkgconfig/libdaemon-uninstalled.pc])
94e774e8ef3467e81ed502e19b1719b4ab384d008Lennart PoetteringAC_OUTPUT
95