-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.in
69 lines (59 loc) · 2.19 KB
/
configure.in
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
66
67
68
#-----------------------------------------------------------------------------
# Copyright (C)2002,2003 InfoStreet, Inc. www.infostreet.com
#
# Author: Laurentiu C. Badea (L.C.) sourceforge.net/users/wotevah
# Created: 2002
# $LastChangedDate$
# $LastChangedBy$
# $Revision$
#
# Description:
# Process this file with autoconf to produce a configure script.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# Version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to:
# Free Software Foundation, Inc.
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
#-----------------------------------------------------------------------------
AC_INIT(httpd-log, 1.0, sourceforge.net/users/wotevah/)
AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
AC_CONFIG_SRCDIR([fd_cache.c])
AM_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB
dnl -fPIC required for x64
CFLAGS="$CFLAGS -Wall -g -fPIC"
AC_ARG_WITH( syslog, [ --without-syslog disable syslog() support ],
NO_SYSLOG=1)
if test -z "$NO_SYSLOG"; then
AC_DEFINE(USE_SYSLOG,1,[enable use of syslog mechanism])
AC_MSG_RESULT(compiling with syslog support)
else
AC_CHECK_HEADERS(syslog.h)
AC_CHECK_FUNCS(syslog)
fi
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h signal.h string.h sys/socket.h sys/time.h unistd.h malloc.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_PID_T
AC_HEADER_TIME
AC_STRUCT_TM
# Checks for library functions.
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([alarm fork atexit malloc stat memcmp bzero fchdir gethostbyaddr gethostbyname gethostname inet_ntoa memchr mkdir select socket strdup strftime])
#AC_CONFIG_FILES([])
AC_OUTPUT(Makefile)