~ubuntu-branches/ubuntu/lucid/varnish/lucid-updates

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2010-03-24 13:26:08 UTC
  • mfrom: (0.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100324132608-4uzkavctn26bdwyi
Tags: 2.1.0-1
* New upstream version
* Fix small error in man/vcl.7so

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: configure.ac 4415 2009-12-16 12:31:57Z tfheen $
 
1
# $Id: configure.ac 4638 2010-03-24 09:48:24Z tfheen $
2
2
 
3
3
AC_PREREQ(2.59)
4
 
AC_COPYRIGHT([Copyright (c) 2006-2009 Linpro AS / Verdens Gang AS])
5
 
AC_REVISION([$Id: configure.ac 4415 2009-12-16 12:31:57Z tfheen $])
6
 
AC_INIT([Varnish], [2.0.6], [varnish-dev@projects.linpro.no])
 
4
AC_COPYRIGHT([Copyright (c) 2006 Verdens Gang AS
 
5
Copyright (c) 2006-2010 Redpill Linpro AS
 
6
Copyright (c) 2010 Varnish Software AS])
 
7
AC_REVISION([$Id: configure.ac 4638 2010-03-24 09:48:24Z tfheen $])
 
8
AC_INIT([Varnish], [2.1], [varnish-dev@projects.linpro.no])
7
9
AC_CONFIG_SRCDIR(include/varnishapi.h)
8
10
AM_CONFIG_HEADER(config.h)
9
11
 
23
25
AC_PROG_INSTALL
24
26
AC_PROG_LIBTOOL
25
27
AC_PROG_MAKE_SET
26
 
AC_CHECK_PROGS(XSLTPROC, [xsltproc])
 
28
AC_CHECK_PROGS(XSLTPROC, [xsltproc], "no")
 
29
if test "x$XSLTPROC" = "xno"; then
 
30
   AC_MSG_WARN([xsltproc not found – not building documentation])
 
31
fi
 
32
AM_CONDITIONAL(HAVE_XSLTPROC,[test "x$XSLTPROC" != "xno"])
27
33
 
28
34
# Checks for libraries.
29
35
save_LIBS="${LIBS}"
70
76
AC_CHECK_LIBM
71
77
AC_SUBST(LIBM)
72
78
 
 
79
m4_pattern_forbid([^_?PKG_[A-Z_]+$],[pkg.m4 missing, please install pkg-config])
 
80
PKG_PROG_PKG_CONFIG
 
81
if test -n $PKG_CONFIG; then
 
82
   PKG_CHECK_MODULES([PCRE], [libpcre])
 
83
else
 
84
   AC_CHECK_PROG(PCRE_CONFIG, pcre-config, pcre-config)
 
85
   AC_ARG_WITH(pcre-config,
 
86
               AS_HELP_STRING([--with-pcre-config=PATH],
 
87
                              [Location of PCRE pcre-config (auto)]),
 
88
               [pcre_config="$withval"],
 
89
               [pcre_config=""])
 
90
 
 
91
  if test "x$pcre_config" != "x" ; then
 
92
    AC_MSG_CHECKING(for $pcre_config)
 
93
 
 
94
    if test -f $pcre_config ; then
 
95
      PCRE_CONFIG=$pcre_config
 
96
      AC_MSG_RESULT(yes)
 
97
    else
 
98
      AC_MSG_RESULT(no - searching PATH)
 
99
    fi
 
100
  fi
 
101
  if test "x$PCRE_CONFIG" = "x"; then
 
102
    AC_CHECK_PROGS(PCRE_CONFIG, pcre-config)
 
103
  fi
 
104
  PCRE_CFLAGS=`$PCRE_CONFIG --cflags`
 
105
  PCRE_LIBS=`$PCRE_CONFIG --libs`
 
106
fi
 
107
AC_SUBST(PCRE_CFLAGS)
 
108
AC_SUBST(PCRE_LIBS)
 
109
 
 
110
 
73
111
# Checks for header files.
74
112
AC_HEADER_STDC
75
113
AC_HEADER_SYS_WAIT
76
114
AC_HEADER_TIME
 
115
AC_CHECK_HEADERS([sys/param.h])
 
116
AC_CHECK_HEADERS([sys/types.h])
77
117
AC_CHECK_HEADERS([sys/endian.h])
78
118
AC_CHECK_HEADERS([sys/filio.h])
79
 
AC_CHECK_HEADERS([sys/mount.h])
 
119
AC_CHECK_HEADERS([sys/mount.h], [], [], [#include <sys/param.h>])
80
120
AC_CHECK_HEADERS([sys/socket.h])
81
121
AC_CHECK_HEADERS([sys/statvfs.h])
82
122
AC_CHECK_HEADERS([sys/vfs.h])
87
127
AC_CHECK_HEADERS([stddef.h])
88
128
AC_CHECK_HEADERS([stdlib.h])
89
129
AC_CHECK_HEADERS([unistd.h])
 
130
AC_CHECK_HEADERS([priv.h])
90
131
 
91
132
# Checks for typedefs, structures, and compiler characteristics.
92
133
AC_C_CONST
111
152
AC_CHECK_FUNCS([abort2])
112
153
AC_CHECK_FUNCS([timegm])
113
154
AC_CHECK_FUNCS([nanosleep])
 
155
AC_CHECK_FUNCS([setppriv])
114
156
 
115
157
save_LIBS="${LIBS}"
116
158
LIBS="${PTHREAD_LIBS}"
169
211
 
170
212
# These functions are provided by libcompat on platforms where they
171
213
# are not available
172
 
AC_CHECK_FUNCS([asprintf vasprintf])
173
214
AC_CHECK_FUNCS([setproctitle])
174
215
AC_CHECK_FUNCS([srandomdev])
175
216
AC_CHECK_FUNCS([strlcat strlcpy])
176
217
AC_CHECK_FUNCS([strndup])
177
 
AC_CHECK_FUNCS([daemon])
178
218
AC_CHECK_FUNCS([backtrace])
 
219
# white lie - we don't actually test it
 
220
AC_MSG_CHECKING([whether daemon() works])
 
221
case $target in
 
222
*-*-darwin*)
 
223
        # present but not functional
 
224
        AC_MSG_RESULT([no])
 
225
        ac_cv_func_daemon=no
 
226
        ;;
 
227
*)
 
228
        AC_CHECK_FUNCS([daemon])
 
229
        ;;
 
230
esac
 
231
 
179
232
AC_SYS_LARGEFILE
180
233
 
181
234
save_LIBS="${LIBS}"
182
235
LIBS="${LIBS} ${RT_LIBS}"
183
236
AC_CHECK_FUNCS([clock_gettime])
 
237
AC_CHECK_FUNCS([gethrtime]) 
184
238
LIBS="${save_LIBS}"
185
239
 
186
240
# Check which mechanism to use for the acceptor.  We look for kqueue
363
417
fi
364
418
AC_DEFINE_UNQUOTED([VCC_CC],"$VCC_CC",[C compiler command line for VCL code])
365
419
 
366
 
# Define HTTP_HDR_MAX_VAL
367
 
AC_ARG_WITH(max-header-fields,
368
 
            AS_HELP_STRING([--with-max-header-fields=NUM],
369
 
                           [How many header fields to support (default=32)]),
370
 
            [],
371
 
            [with_max_header_fields=32])
372
 
 
373
 
AC_DEFINE_UNQUOTED(HTTP_HDR_MAX_VAL, $with_max_header_fields, [Define maximum number of header fields supported by varnish ])
374
 
 
375
420
# Use jemalloc on Linux
376
421
JEMALLOC_SUBDIR=
377
422
JEMALLOC_LDADD=