1
1
dnl Process this file with autoconf to produce a configure script.
2
dnl $Id: configure.ac 400 2007-05-19 04:39:16Z steve $
2
dnl $Id: configure.ac 451 2007-09-01 03:07:26Z steve $
4
AC_INIT([awffull], [3.7.5], [spm@stedee.id.au])
4
AC_INIT([awffull], [3.8.1-beta3], [spm@stedee.id.au])
6
6
AC_CONFIG_SRCDIR([src/awffull.c])
7
7
AC_CONFIG_AUX_DIR([config])
44
45
AS_HELP_STRING([--enable-debug],
45
46
[Turn on compiler debugging information (default=no)]),
46
47
[if eval "test x$enable_debug = xyes"; then
47
CFLAGS="${OLD_CFLAGS} -Wall -g"
48
CFLAGS="${CFLAGS} -Wall -g"
67
68
dnl ********************
69
dnl Config Arg: --enable-coverage
70
dnl Enable the coverage testing
71
dnl ********************
72
AC_ARG_ENABLE([coverage],
73
AS_HELP_STRING([--enable-coverage],
74
[Turn on compiler coverage testing: gcov (default=no)]),
75
[if eval "test x$enable_coverage = xyes"; then
76
CFLAGS="${OLD_CFLAGS} -Wall -fprofile-arcs -ftest-coverage"
80
dnl ********************
68
81
dnl Config Arg: --enable-static
69
82
dnl ********************
70
83
AC_ARG_ENABLE([static],
90
103
dnl ********************
104
dnl Config Arg: --enable-ttf
105
dnl ********************
108
AS_HELP_STRING([--disable-ttf],
109
[Disable TrueType Fonts (default=no)]),
110
[if eval "test x$enable_ttf = xno"; then
115
dnl ********************
91
116
dnl Config Arg: --with-etcdir
92
117
dnl ********************
93
118
AC_ARG_WITH([etcdir],
204
229
AC_CHECK_LIB([png], [main],[], [echo "Missing PNG Library" ; exit])
205
230
AC_CHECK_LIB([gd], [gdImagePng],[], [echo "Missing GD Library" ; exit])
207
dnl #define HAVE_GDIMAGESTRINGFT in config.h if we can do GD TrueType Text
208
AC_CHECK_LIB([gd], [gdImageStringFT],
209
[AC_DEFINE([HAVE_GDIMAGESTRINGFT], [1], [Define if gdImageStringFT Exists])],
210
[echo "Missing GD TrueType Font Capability"])
232
if test "$ENABLE_TTF" = "yes"; then
233
dnl #define HAVE_GDIMAGESTRINGFT in config.h if we can do GD TrueType Text
234
AC_CHECK_LIB([gd], [gdImageStringFT],
235
[AC_DEFINE([HAVE_GDIMAGESTRINGFT], [1], [Define if gdImageStringFT Exists])],
236
[echo "Missing GD TrueType Font Capability"])
212
dnl #define HAVE_GDFTUSEFONTCONFIG in config.h if we can do GD TrueType Font Config
213
AC_CHECK_LIB([gd], [gdFTUseFontConfig],
214
[AC_DEFINE([HAVE_GDFTUSEFONTCONFIG], [1], [Define if gdFTUseFontConfig Exists])],
215
[echo "Missing GD TrueType Font Config Capability"])
238
dnl #define HAVE_GDFTUSEFONTCONFIG in config.h if we can do GD TrueType Font Config
239
AC_CHECK_LIB([gd], [gdFTUseFontConfig],
240
[AC_DEFINE([HAVE_GDFTUSEFONTCONFIG], [1], [Define if gdFTUseFontConfig Exists])],
241
[echo "Missing GD TrueType Font Config Capability"])
217
244
AC_CHECK_LIB([pcre], [main],[], [echo "Missing Perl Reg. Ex. Library" ; exit])
218
245
if test "$ENABLE_GEOIP" = "yes"; then
222
249
dnl Checks for library functions.
223
250
dnl - messes up Solaris - AC_FUNC_MALLOC
224
251
AC_CHECK_FUNC([getopt_long], [], [echo "Missing getopt_long Function" ; exit])
225
AC_CHECK_FUNCS([floor memset])
252
AC_CHECK_FUNCS([floor memset strlcpy])
227
254
dnl ********************
228
255
dnl HEADER CHECKING