-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
118 lines (104 loc) · 3.55 KB
/
configure.ac
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
##
## $Id: configure.ac,v 1.114 2005/04/21 16:40:13 bboy Exp $
##
## Copyright (C) 2002-2005 Don Moore <bboy@bboy.net>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at Your option) any later version.
##
## 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 the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##
AC_INIT(mydns, [1.1.0], [bboy@bboy.net]) ## Package name, version, bugreport address
AC_PREREQ([2.59])
AC_COPYRIGHT([Portions of this script are Copyright 2002-2005 Don Moore])
AM_INIT_AUTOMAKE([1.9.5 dist-bzip2])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_FILES([ \
intl/Makefile \
po/Makefile.in \
m4/Makefile \
Makefile \
lib/Makefile \
src/Makefile \
src/lib/Makefile \
src/mydns/Makefile \
src/util/Makefile \
])
## Checks for programs
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_LIBTOOL
## GNU gettext
AM_GNU_GETTEXT
AM_GNU_GETTEXT_VERSION
## Checks for header files
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h getopt.h libintl.h netdb.h pwd.h signal.h stdarg.h termios.h time.h])
AC_CHECK_HEADERS([sys/fcntl.h sys/file.h sys/ioctl.h sys/resource.h])
AC_CHECK_HEADERS([sys/socket.h sys/sockio.h sys/time.h sys/wait.h])
AC_CHECK_HEADERS([netinet/in.h])
AC_CHECK_HEADERS([net/if.h])
AC_CHECK_HEADERS([arpa/inet.h])
AC_CHECK_HEADERS([inttypes.h])
## Typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_CHECK_TYPES([uchar,uint,uint8_t,uint16_t,uint32_t])
## Library functions
AC_FUNC_MALLOC
AC_TYPE_SIGNAL
AC_FUNC_ALLOCA
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset getpwuid shutdown inet_ntop inet_pton strsep])
AC_LIB_SOCKET
AC_LIB_NSL
AC_LIB_MATH
## Declarations
AC_CHECK_DECLS([strcasecmp, strcoll, strerror, strncasecmp, strsep])
##
## Package-specific variables
##
PACKAGE_HOMEPAGE="http://mydns.bboy.net"
PACKAGE_COPYRIGHT="Copyright (C) 2002-2005 Don Moore"
PACKAGE_AUTHOR="Don Moore <bboy@bboy.net>"
##
## Some MyDNS-specific checks (see m4/mydns.m4)
##
AC_CHECK_IPV6 # Check IPv6 support
AC_CHECK_SOCKADDR_SA_LEN # Check for sa_len in struct sockaddr_in
AC_MYDNS_PKGINFO # Set some package-specific variables
AC_ENABLE_ALIAS # Enable David Phillips aliasing?
AC_CHECK_MYSQL # Check for MySQL support
AC_CHECK_PGSQL # Check for PostgreSQL support
AC_WITH_OPENSSL # Check if OpenSSL is desired
AC_MYDNS_CONF # Set conf file location
AC_ENABLE_STATIC_BUILD # Build static binary?
AC_CHOOSE_DB # Choose between MySQL and PostgreSQL
AC_ENABLE_PROFILING # Enable profiling?
AC_ENABLE_DEBUG # Enable debugging?
AC_ENABLE_VALGRIND # Compile with Valgrind-friendly flags?
AC_ENABLE_STRICT # Compile with extra-strict warnings?
AC_ENABLE_STATUS # Enable the STATUS opcode to check server status
AC_DISABLE_DATE_LOGGING # Disable date/time in verbose output?
AC_MYDNS_VARS # Set variables containing dirs
AC_OUTPUT([])
echo
echo " ###"
echo " ### MyDNS $PACKAGE_VERSION configured. Using $USE_DB_NAME database."
echo " ###"
echo " ### Type \"make\" to build, then \"make install\" to install."
echo " ###"
echo
## vi:set ts=3: