3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 #ac_default_prefix=/usr/local
13 ac_default_prefix
=/usr
14 # Any additions from configure.in:
16 # Initialize some variables set by options.
17 # The variables have the same names as the options, with
18 # dashes changed to underlines.
20 cache_file
=.
/config.cache
29 program_transform_name
=s
,x
,x
,
37 bindir
='${exec_prefix}/bin'
38 sbindir
='${exec_prefix}/sbin'
39 libexecdir
='${exec_prefix}/libexec'
40 datadir
='${prefix}/share'
41 sysconfdir
='${prefix}/etc'
42 sharedstatedir
='${prefix}/com'
43 localstatedir
='${prefix}/var'
44 libdir
='${exec_prefix}/lib'
45 includedir
='${prefix}/include'
46 oldincludedir
='/usr/include'
47 infodir
='${prefix}/info'
48 mandir
='${prefix}/man'
50 # Initialize some other variables.
53 SHELL
=${CONFIG_SHELL-/bin/sh}
54 # Maximum number of lines to put in a shell here document.
61 # If the previous option needs an argument, assign it.
62 if test -n "$ac_prev"; then
63 eval "$ac_prev=\$ac_option"
69 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73 # Accept the important Cygnus configure options, so we can diagnose typos.
77 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
79 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
80 bindir
="$ac_optarg" ;;
82 -build |
--build |
--buil |
--bui |
--bu)
84 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
87 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
88 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
90 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
91 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
92 cache_file
="$ac_optarg" ;;
94 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
96 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
98 datadir
="$ac_optarg" ;;
100 -disable-* |
--disable-*)
101 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
102 # Reject names that are not valid shell variable names.
103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
107 eval "enable_${ac_feature}=no" ;;
109 -enable-* |
--enable-*)
110 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}='$ac_optarg'" ;;
122 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
123 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
124 |
--exec |
--exe |
--ex)
125 ac_prev
=exec_prefix
;;
126 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
127 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
128 |
--exec=* |
--exe=* |
--ex=*)
129 exec_prefix
="$ac_optarg" ;;
131 -gas |
--gas |
--ga |
--g)
132 # Obsolete; use --with-gas.
135 -help |
--help |
--hel |
--he)
136 # Omit some internal or obsolete options to make the list less imposing.
137 # This message is too long to be a string in the A/UX 3.1 sh.
139 Usage: configure [options] [host]
140 Options: [defaults in brackets after descriptions]
142 --cache-file=FILE cache test results in FILE
143 --help print this message
144 --no-create do not create output files
145 --quiet, --silent do not print \`checking...' messages
146 --version print the version of autoconf that created configure
147 Directory and file names:
148 --prefix=PREFIX install architecture-independent files in PREFIX
150 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 --bindir=DIR user executables in DIR [EPREFIX/bin]
153 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
154 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
155 --datadir=DIR read-only architecture-independent data in DIR
157 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
158 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
161 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
162 --includedir=DIR C header files in DIR [PREFIX/include]
163 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
164 --infodir=DIR info documentation in DIR [PREFIX/info]
165 --mandir=DIR man documentation in DIR [PREFIX/man]
166 --srcdir=DIR find the sources in DIR [configure dir or ..]
167 --program-prefix=PREFIX prepend PREFIX to installed program names
168 --program-suffix=SUFFIX append SUFFIX to installed program names
169 --program-transform-name=PROGRAM
170 run sed PROGRAM on installed program names
174 --build=BUILD configure for building on BUILD [BUILD=HOST]
175 --host=HOST configure for HOST [guessed]
176 --target=TARGET configure for TARGET [TARGET=HOST]
177 Features and packages:
178 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
179 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
180 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
181 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
182 --x-includes=DIR X include files are in DIR
183 --x-libraries=DIR X library files are in DIR
185 if test -n "$ac_help"; then
186 echo "--enable and --with options recognized:$ac_help"
190 -host |
--host |
--hos |
--ho)
192 -host=* |
--host=* |
--hos=* |
--ho=*)
195 -includedir |
--includedir |
--includedi |
--included |
--include \
196 |
--includ |
--inclu |
--incl |
--inc)
197 ac_prev
=includedir
;;
198 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
199 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
200 includedir
="$ac_optarg" ;;
202 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
204 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
205 infodir
="$ac_optarg" ;;
207 -libdir |
--libdir |
--libdi |
--libd)
209 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
210 libdir
="$ac_optarg" ;;
212 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
213 |
--libexe |
--libex |
--libe)
214 ac_prev
=libexecdir
;;
215 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
216 |
--libexe=* |
--libex=* |
--libe=*)
217 libexecdir
="$ac_optarg" ;;
219 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
220 |
--localstate |
--localstat |
--localsta |
--localst \
221 |
--locals |
--local |
--loca |
--loc |
--lo)
222 ac_prev
=localstatedir
;;
223 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
224 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
225 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
226 localstatedir
="$ac_optarg" ;;
228 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
230 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
231 mandir
="$ac_optarg" ;;
234 # Obsolete; use --without-fp.
237 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
241 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
242 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
245 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
246 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
247 |
--oldin |
--oldi |
--old |
--ol |
--o)
248 ac_prev
=oldincludedir
;;
249 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
250 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
251 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
252 oldincludedir
="$ac_optarg" ;;
254 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
256 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
257 prefix
="$ac_optarg" ;;
259 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
260 |
--program-pre |
--program-pr |
--program-p)
261 ac_prev
=program_prefix
;;
262 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
263 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
264 program_prefix
="$ac_optarg" ;;
266 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
267 |
--program-suf |
--program-su |
--program-s)
268 ac_prev
=program_suffix
;;
269 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
270 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
271 program_suffix
="$ac_optarg" ;;
273 -program-transform-name |
--program-transform-name \
274 |
--program-transform-nam |
--program-transform-na \
275 |
--program-transform-n |
--program-transform- \
276 |
--program-transform |
--program-transfor \
277 |
--program-transfo |
--program-transf \
278 |
--program-trans |
--program-tran \
279 |
--progr-tra |
--program-tr |
--program-t)
280 ac_prev
=program_transform_name
;;
281 -program-transform-name=* |
--program-transform-name=* \
282 |
--program-transform-nam=* |
--program-transform-na=* \
283 |
--program-transform-n=* |
--program-transform-=* \
284 |
--program-transform=* |
--program-transfor=* \
285 |
--program-transfo=* |
--program-transf=* \
286 |
--program-trans=* |
--program-tran=* \
287 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
288 program_transform_name
="$ac_optarg" ;;
290 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
291 |
-silent |
--silent |
--silen |
--sile |
--sil)
294 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
296 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
298 sbindir
="$ac_optarg" ;;
300 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
301 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
302 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
304 ac_prev
=sharedstatedir
;;
305 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
306 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
307 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
309 sharedstatedir
="$ac_optarg" ;;
311 -site |
--site |
--sit)
313 -site=* |
--site=* |
--sit=*)
316 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
318 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
319 srcdir
="$ac_optarg" ;;
321 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
322 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
323 ac_prev
=sysconfdir
;;
324 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
325 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
326 sysconfdir
="$ac_optarg" ;;
328 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
330 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
331 target
="$ac_optarg" ;;
333 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
336 -version |
--version |
--versio |
--versi |
--vers)
337 echo "configure generated by autoconf version 2.13"
341 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342 # Reject names that are not valid shell variable names.
343 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346 ac_package
=`echo $ac_package| sed 's/-/_/g'`
351 eval "with_${ac_package}='$ac_optarg'" ;;
353 -without-* |
--without-*)
354 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package
=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}=no" ;;
363 # Obsolete; use --with-x.
366 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
367 |
--x-incl |
--x-inc |
--x-in |
--x-i)
368 ac_prev
=x_includes
;;
369 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
370 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
371 x_includes
="$ac_optarg" ;;
373 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
374 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
375 ac_prev
=x_libraries
;;
376 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
377 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
378 x_libraries
="$ac_optarg" ;;
380 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385 echo "configure: warning: $ac_option: invalid host type" 1>&2
387 if test "x$nonopt" != xNONE
; then
388 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396 if test -n "$ac_prev"; then
397 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402 # File descriptor usage:
405 # 2 errors and warnings
406 # 3 some systems may open it to /dev/tty
407 # 4 used on the Kubota Titan
408 # 6 checking for... messages and results
409 # 5 compiler messages saved in config.log
410 if test "$silent" = yes; then
418 This file contains any messages produced by compilers while
419 running configure, to aid debugging if configure makes a mistake.
422 # Strip out --no-create and --no-recursion so they do not pile up.
423 # Also quote any args containing shell metacharacters.
428 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
429 |
--no-cr |
--no-c) ;;
430 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
431 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
432 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
434 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
439 # Only set these to C if already set. These must not be set unconditionally
440 # because not all systems understand e.g. LANG=C (notably SCO).
441 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
442 # Non-C LC_CTYPE values break the ctype check.
443 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
444 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
445 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
446 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
448 # confdefs.h avoids OS command line length limits that DEFS can exceed.
449 rm -rf conftest
* confdefs.h
450 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
453 # A filename unique to this package, relative to the directory that
454 # configure is in, which we can look for to find out if srcdir is correct.
455 ac_unique_file
=l2tp.h
457 # Find the source files, if location was not specified.
458 if test -z "$srcdir"; then
459 ac_srcdir_defaulted
=yes
460 # Try the directory containing this script, then its parent.
462 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
463 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
465 if test ! -r $srcdir/$ac_unique_file; then
469 ac_srcdir_defaulted
=no
471 if test ! -r $srcdir/$ac_unique_file; then
472 if test "$ac_srcdir_defaulted" = yes; then
473 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
478 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480 # Prefer explicitly selected file to automatically selected ones.
481 if test -z "$CONFIG_SITE"; then
482 if test "x$prefix" != xNONE
; then
483 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
485 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
488 for ac_site_file
in $CONFIG_SITE; do
489 if test -r "$ac_site_file"; then
490 echo "loading site script $ac_site_file"
495 if test -r "$cache_file"; then
496 echo "loading cache $cache_file"
499 echo "creating cache $cache_file"
504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
505 ac_cpp
='$CPP $CPPFLAGS'
506 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
507 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
508 cross_compiling
=$ac_cv_prog_cc_cross
512 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
513 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
514 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
521 ac_n
= ac_c
='\c' ac_t
=
526 # Extract the first word of "gcc", so it can be a program name with args.
527 set dummy gcc
; ac_word
=$2
528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
529 echo "configure:529: checking for $ac_word" >&5
530 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
531 echo $ac_n "(cached) $ac_c" 1>&6
533 if test -n "$CC"; then
534 ac_cv_prog_CC
="$CC" # Let the user override the test.
536 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
538 for ac_dir
in $ac_dummy; do
539 test -z "$ac_dir" && ac_dir
=.
540 if test -f $ac_dir/$ac_word; then
549 if test -n "$CC"; then
550 echo "$ac_t""$CC" 1>&6
552 echo "$ac_t""no" 1>&6
555 if test -z "$CC"; then
556 # Extract the first word of "cc", so it can be a program name with args.
557 set dummy cc
; ac_word
=$2
558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
559 echo "configure:559: checking for $ac_word" >&5
560 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
561 echo $ac_n "(cached) $ac_c" 1>&6
563 if test -n "$CC"; then
564 ac_cv_prog_CC
="$CC" # Let the user override the test.
566 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
569 for ac_dir
in $ac_dummy; do
570 test -z "$ac_dir" && ac_dir
=.
571 if test -f $ac_dir/$ac_word; then
572 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
581 if test $ac_prog_rejected = yes; then
582 # We found a bogon in the path, so make sure we never use it.
583 set dummy
$ac_cv_prog_CC
585 if test $# -gt 0; then
586 # We chose a different compiler from the bogus one.
587 # However, it has the same basename, so the bogon will be chosen
588 # first if we set CC to just the basename; use the full file name.
590 set dummy
"$ac_dir/$ac_word" "$@"
598 if test -n "$CC"; then
599 echo "$ac_t""$CC" 1>&6
601 echo "$ac_t""no" 1>&6
604 if test -z "$CC"; then
607 # Extract the first word of "cl", so it can be a program name with args.
608 set dummy cl
; ac_word
=$2
609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
610 echo "configure:610: checking for $ac_word" >&5
611 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
614 if test -n "$CC"; then
615 ac_cv_prog_CC
="$CC" # Let the user override the test.
617 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
619 for ac_dir
in $ac_dummy; do
620 test -z "$ac_dir" && ac_dir
=.
621 if test -f $ac_dir/$ac_word; then
630 if test -n "$CC"; then
631 echo "$ac_t""$CC" 1>&6
633 echo "$ac_t""no" 1>&6
638 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
641 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
642 echo "configure:642: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
645 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
646 ac_cpp
='$CPP $CPPFLAGS'
647 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
648 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
649 cross_compiling
=$ac_cv_prog_cc_cross
651 cat > conftest.
$ac_ext << EOF
653 #line 653 "configure"
654 #include "confdefs.h"
658 if { (eval echo configure
:658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
659 ac_cv_prog_cc_works
=yes
660 # If we can't run a trivial program, we are probably using a cross compiler.
661 if (.
/conftest
; exit) 2>/dev
/null
; then
662 ac_cv_prog_cc_cross
=no
664 ac_cv_prog_cc_cross
=yes
667 echo "configure: failed program was:" >&5
668 cat conftest.
$ac_ext >&5
669 ac_cv_prog_cc_works
=no
673 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
674 ac_cpp
='$CPP $CPPFLAGS'
675 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
676 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
677 cross_compiling
=$ac_cv_prog_cc_cross
679 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
680 if test $ac_cv_prog_cc_works = no
; then
681 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
683 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
684 echo "configure:684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
685 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
686 cross_compiling
=$ac_cv_prog_cc_cross
688 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
689 echo "configure:689: checking whether we are using GNU C" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
691 echo $ac_n "(cached) $ac_c" 1>&6
693 cat > conftest.c
<<EOF
698 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
705 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
707 if test $ac_cv_prog_gcc = yes; then
713 ac_test_CFLAGS
="${CFLAGS+set}"
714 ac_save_CFLAGS
="$CFLAGS"
716 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
717 echo "configure:717: checking whether ${CC-cc} accepts -g" >&5
718 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
719 echo $ac_n "(cached) $ac_c" 1>&6
721 echo 'void f(){}' > conftest.c
722 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
731 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
732 if test "$ac_test_CFLAGS" = set; then
733 CFLAGS
="$ac_save_CFLAGS"
734 elif test $ac_cv_prog_cc_g = yes; then
735 if test "$GCC" = yes; then
741 if test "$GCC" = yes; then
749 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
750 if test -f $ac_dir/install-sh
; then
752 ac_install_sh
="$ac_aux_dir/install-sh -c"
754 elif test -f $ac_dir/install.sh
; then
756 ac_install_sh
="$ac_aux_dir/install.sh -c"
760 if test -z "$ac_aux_dir"; then
761 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
763 ac_config_guess
=$ac_aux_dir/config.guess
764 ac_config_sub
=$ac_aux_dir/config.sub
765 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
767 # Find a good install program. We prefer a C program (faster),
768 # so one script is as good as another. But avoid the broken or
769 # incompatible versions:
770 # SysV /etc/install, /usr/sbin/install
771 # SunOS /usr/etc/install
774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
777 # ./install, which can be erroneously created by make from ./install.sh.
778 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
779 echo "configure:779: checking for a BSD compatible install" >&5
780 if test -z "$INSTALL"; then
781 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
785 for ac_dir
in $PATH; do
786 # Account for people who put trailing slashes in PATH elements.
788 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
790 # OSF1 and SCO ODT 3.0 have their own names for install.
791 # Don't use installbsd from OSF since it installs stuff as root
793 for ac_prog
in ginstall scoinst
install; do
794 if test -f $ac_dir/$ac_prog; then
795 if test $ac_prog = install &&
796 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
797 # AIX install. It has an incompatible calling convention.
800 ac_cv_path_install
="$ac_dir/$ac_prog -c"
811 if test "${ac_cv_path_install+set}" = set; then
812 INSTALL
="$ac_cv_path_install"
814 # As a last resort, use the slow shell script. We don't cache a
815 # path for INSTALL within a source directory, because that will
816 # break other packages using the cache if that directory is
817 # removed, or if the path is relative.
818 INSTALL
="$ac_install_sh"
821 echo "$ac_t""$INSTALL" 1>&6
823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
824 # It thinks the first close brace ends the variable substitution.
825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
829 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
831 # Extract the first word of "ranlib", so it can be a program name with args.
832 set dummy ranlib
; ac_word
=$2
833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
834 echo "configure:834: checking for $ac_word" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 if test -n "$RANLIB"; then
839 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
841 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
843 for ac_dir
in $ac_dummy; do
844 test -z "$ac_dir" && ac_dir
=.
845 if test -f $ac_dir/$ac_word; then
846 ac_cv_prog_RANLIB
="ranlib"
851 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
854 RANLIB
="$ac_cv_prog_RANLIB"
855 if test -n "$RANLIB"; then
856 echo "$ac_t""$RANLIB" 1>&6
858 echo "$ac_t""no" 1>&6
862 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
863 echo "configure:863: checking for dlopen in -ldl" >&5
864 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
870 cat > conftest.
$ac_ext <<EOF
871 #line 871 "configure"
872 #include "confdefs.h"
873 /* Override any gcc2 internal prototype to avoid an error. */
874 /* We use char because int might match the return type of a gcc2
875 builtin and then its argument prototype would still apply. */
882 if { (eval echo configure
:882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
884 eval "ac_cv_lib_$ac_lib_var=yes"
886 echo "configure: failed program was:" >&5
887 cat conftest.
$ac_ext >&5
889 eval "ac_cv_lib_$ac_lib_var=no"
895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
896 echo "$ac_t""yes" 1>&6
897 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
898 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
899 cat >> confdefs.h
<<EOF
906 echo "$ac_t""no" 1>&6
910 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
911 echo "configure:911: checking how to run the C preprocessor" >&5
912 # On Suns, sometimes $CPP names a directory.
913 if test -n "$CPP" && test -d "$CPP"; then
916 if test -z "$CPP"; then
917 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
920 # This must be in double quotes, not single quotes, because CPP may get
921 # substituted into the Makefile and "${CC-cc}" will confuse make.
923 # On the NeXT, cc -E runs the code through the compiler's parser,
924 # not just through cpp.
925 cat > conftest.
$ac_ext <<EOF
926 #line 926 "configure"
927 #include "confdefs.h"
931 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932 { (eval echo configure
:932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
934 if test -z "$ac_err"; then
938 echo "configure: failed program was:" >&5
939 cat conftest.
$ac_ext >&5
941 CPP
="${CC-cc} -E -traditional-cpp"
942 cat > conftest.
$ac_ext <<EOF
943 #line 943 "configure"
944 #include "confdefs.h"
948 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
949 { (eval echo configure
:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
950 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
951 if test -z "$ac_err"; then
955 echo "configure: failed program was:" >&5
956 cat conftest.
$ac_ext >&5
958 CPP
="${CC-cc} -nologo -E"
959 cat > conftest.
$ac_ext <<EOF
960 #line 960 "configure"
961 #include "confdefs.h"
965 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
966 { (eval echo configure
:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
967 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
968 if test -z "$ac_err"; then
972 echo "configure: failed program was:" >&5
973 cat conftest.
$ac_ext >&5
982 ac_cv_prog_CPP
="$CPP"
984 CPP
="$ac_cv_prog_CPP"
986 ac_cv_prog_CPP
="$CPP"
988 echo "$ac_t""$CPP" 1>&6
990 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
991 echo "configure:991: checking for ANSI C header files" >&5
992 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 cat > conftest.
$ac_ext <<EOF
996 #line 996 "configure"
997 #include "confdefs.h"
1003 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1004 { (eval echo configure
:1004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1005 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1006 if test -z "$ac_err"; then
1008 ac_cv_header_stdc
=yes
1011 echo "configure: failed program was:" >&5
1012 cat conftest.
$ac_ext >&5
1014 ac_cv_header_stdc
=no
1018 if test $ac_cv_header_stdc = yes; then
1019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1020 cat > conftest.
$ac_ext <<EOF
1021 #line 1021 "configure"
1022 #include "confdefs.h"
1025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1026 egrep "memchr" >/dev
/null
2>&1; then
1030 ac_cv_header_stdc
=no
1036 if test $ac_cv_header_stdc = yes; then
1037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1038 cat > conftest.
$ac_ext <<EOF
1039 #line 1039 "configure"
1040 #include "confdefs.h"
1043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1044 egrep "free" >/dev
/null
2>&1; then
1048 ac_cv_header_stdc
=no
1054 if test $ac_cv_header_stdc = yes; then
1055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1056 if test "$cross_compiling" = yes; then
1059 cat > conftest.
$ac_ext <<EOF
1060 #line 1060 "configure"
1061 #include "confdefs.h"
1063 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1064 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1066 int main () { int i; for (i = 0; i < 256; i++)
1067 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1071 if { (eval echo configure
:1071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1075 echo "configure: failed program was:" >&5
1076 cat conftest.
$ac_ext >&5
1078 ac_cv_header_stdc
=no
1086 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1087 if test $ac_cv_header_stdc = yes; then
1088 cat >> confdefs.h
<<\EOF
1089 #define STDC_HEADERS 1
1094 for ac_hdr
in fcntl.h sys
/ioctl.h sys
/time.h syslog.h unistd.h
1096 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1097 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1098 echo "configure:1098: checking for $ac_hdr" >&5
1099 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 cat > conftest.
$ac_ext <<EOF
1103 #line 1103 "configure"
1104 #include "confdefs.h"
1107 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1108 { (eval echo configure
:1108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1109 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1110 if test -z "$ac_err"; then
1112 eval "ac_cv_header_$ac_safe=yes"
1115 echo "configure: failed program was:" >&5
1116 cat conftest.
$ac_ext >&5
1118 eval "ac_cv_header_$ac_safe=no"
1122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1123 echo "$ac_t""yes" 1>&6
1124 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1125 cat >> confdefs.h
<<EOF
1126 #define $ac_tr_hdr 1
1130 echo "$ac_t""no" 1>&6
1135 echo $ac_n "checking for libevent directory""... $ac_c" 1>&6
1136 echo "configure:1136: checking for libevent directory" >&5
1137 if test -d ..
/libevent
; then
1138 LIBEVENT
=..
/libevent
1139 elif test -d libevent
; then
1142 echo "$ac_t""not found" 1>&6
1143 echo "Cannot find libevent library; exiting"
1147 echo "$ac_t""$LIBEVENT" 1>&6
1151 echo $ac_n "checking for working const""... $ac_c" 1>&6
1152 echo "configure:1152: checking for working const" >&5
1153 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 cat > conftest.
$ac_ext <<EOF
1157 #line 1157 "configure"
1158 #include "confdefs.h"
1162 /* Ultrix mips cc rejects this. */
1163 typedef int charset[2]; const charset x;
1164 /* SunOS 4.1.1 cc rejects this. */
1165 char const *const *ccp;
1167 /* NEC SVR4.0.2 mips cc rejects this. */
1168 struct point {int x, y;};
1169 static struct point const zero = {0,0};
1170 /* AIX XL C 1.02.0.0 rejects this.
1171 It does not let you subtract one const X* pointer from another in an arm
1172 of an if-expression whose if-part is not a constant expression */
1173 const char *g = "string";
1174 ccp = &g + (g ? g-g : 0);
1175 /* HPUX 7.0 cc rejects these. */
1178 ccp = (char const *const *) p;
1179 { /* SCO 3.2v4 cc rejects this. */
1181 char const *s = 0 ? (char *) 0 : (char const *) 0;
1185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1187 const int *foo = &x[0];
1190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1191 typedef const int *iptr;
1195 { /* AIX XL C 1.02.0.0 rejects this saying
1196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1197 struct s { int j; const int *ap[3]; };
1198 struct s *b; b->j = 5;
1200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1206 if { (eval echo configure
:1206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1210 echo "configure: failed program was:" >&5
1211 cat conftest.
$ac_ext >&5
1218 echo "$ac_t""$ac_cv_c_const" 1>&6
1219 if test $ac_cv_c_const = no
; then
1220 cat >> confdefs.h
<<\EOF
1226 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1227 echo "configure:1227: checking for pid_t" >&5
1228 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 cat > conftest.
$ac_ext <<EOF
1232 #line 1232 "configure"
1233 #include "confdefs.h"
1234 #include <sys/types.h>
1240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1241 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1243 ac_cv_type_pid_t
=yes
1251 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1252 if test $ac_cv_type_pid_t = no
; then
1253 cat >> confdefs.h
<<\EOF
1259 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1260 echo "configure:1260: checking for size_t" >&5
1261 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 cat > conftest.
$ac_ext <<EOF
1265 #line 1265 "configure"
1266 #include "confdefs.h"
1267 #include <sys/types.h>
1273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1274 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1276 ac_cv_type_size_t
=yes
1279 ac_cv_type_size_t
=no
1284 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1285 if test $ac_cv_type_size_t = no
; then
1286 cat >> confdefs.h
<<\EOF
1287 #define size_t unsigned
1292 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1293 echo "configure:1293: checking whether time.h and sys/time.h may both be included" >&5
1294 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 cat > conftest.
$ac_ext <<EOF
1298 #line 1298 "configure"
1299 #include "confdefs.h"
1300 #include <sys/types.h>
1301 #include <sys/time.h>
1307 if { (eval echo configure
:1307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1309 ac_cv_header_time
=yes
1311 echo "configure: failed program was:" >&5
1312 cat conftest.
$ac_ext >&5
1314 ac_cv_header_time
=no
1319 echo "$ac_t""$ac_cv_header_time" 1>&6
1320 if test $ac_cv_header_time = yes; then
1321 cat >> confdefs.h
<<\EOF
1322 #define TIME_WITH_SYS_TIME 1
1328 if test $ac_cv_prog_gcc = yes; then
1329 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1330 echo "configure:1330: checking whether ${CC-cc} needs -traditional" >&5
1331 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 ac_pattern
="Autoconf.*'x'"
1335 cat > conftest.
$ac_ext <<EOF
1336 #line 1336 "configure"
1337 #include "confdefs.h"
1341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1342 egrep "$ac_pattern" >/dev
/null
2>&1; then
1344 ac_cv_prog_gcc_traditional
=yes
1347 ac_cv_prog_gcc_traditional
=no
1352 if test $ac_cv_prog_gcc_traditional = no
; then
1353 cat > conftest.
$ac_ext <<EOF
1354 #line 1354 "configure"
1355 #include "confdefs.h"
1359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1360 egrep "$ac_pattern" >/dev
/null
2>&1; then
1362 ac_cv_prog_gcc_traditional
=yes
1369 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1370 if test $ac_cv_prog_gcc_traditional = yes; then
1371 CC
="$CC -traditional"
1375 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1376 echo "configure:1376: checking for 8-bit clean memcmp" >&5
1377 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1380 if test "$cross_compiling" = yes; then
1381 ac_cv_func_memcmp_clean
=no
1383 cat > conftest.
$ac_ext <<EOF
1384 #line 1384 "configure"
1385 #include "confdefs.h"
1389 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1390 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1394 if { (eval echo configure
:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1396 ac_cv_func_memcmp_clean
=yes
1398 echo "configure: failed program was:" >&5
1399 cat conftest.
$ac_ext >&5
1401 ac_cv_func_memcmp_clean
=no
1408 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1409 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
1411 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1412 echo "configure:1412: checking return type of signal handlers" >&5
1413 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 cat > conftest.
$ac_ext <<EOF
1417 #line 1417 "configure"
1418 #include "confdefs.h"
1419 #include <sys/types.h>
1425 extern "C" void (*signal (int, void (*)(int)))(int);
1427 void (*signal ()) ();
1434 if { (eval echo configure
:1434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1436 ac_cv_type_signal
=void
1438 echo "configure: failed program was:" >&5
1439 cat conftest.
$ac_ext >&5
1441 ac_cv_type_signal
=int
1446 echo "$ac_t""$ac_cv_type_signal" 1>&6
1447 cat >> confdefs.h
<<EOF
1448 #define RETSIGTYPE $ac_cv_type_signal
1452 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1453 echo "configure:1453: checking for vprintf" >&5
1454 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 cat > conftest.
$ac_ext <<EOF
1458 #line 1458 "configure"
1459 #include "confdefs.h"
1460 /* System header to define __stub macros and hopefully few prototypes,
1461 which can conflict with char vprintf(); below. */
1463 /* Override any gcc2 internal prototype to avoid an error. */
1464 /* We use char because int might match the return type of a gcc2
1465 builtin and then its argument prototype would still apply. */
1470 /* The GNU C library defines this for functions which it implements
1471 to always fail with ENOSYS. Some functions are actually named
1472 something starting with __ and the normal name is an alias. */
1473 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1481 if { (eval echo configure
:1481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1483 eval "ac_cv_func_vprintf=yes"
1485 echo "configure: failed program was:" >&5
1486 cat conftest.
$ac_ext >&5
1488 eval "ac_cv_func_vprintf=no"
1493 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1494 echo "$ac_t""yes" 1>&6
1495 cat >> confdefs.h
<<\EOF
1496 #define HAVE_VPRINTF 1
1500 echo "$ac_t""no" 1>&6
1503 if test "$ac_cv_func_vprintf" != yes; then
1504 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1505 echo "configure:1505: checking for _doprnt" >&5
1506 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 cat > conftest.
$ac_ext <<EOF
1510 #line 1510 "configure"
1511 #include "confdefs.h"
1512 /* System header to define __stub macros and hopefully few prototypes,
1513 which can conflict with char _doprnt(); below. */
1515 /* Override any gcc2 internal prototype to avoid an error. */
1516 /* We use char because int might match the return type of a gcc2
1517 builtin and then its argument prototype would still apply. */
1522 /* The GNU C library defines this for functions which it implements
1523 to always fail with ENOSYS. Some functions are actually named
1524 something starting with __ and the normal name is an alias. */
1525 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1533 if { (eval echo configure
:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1535 eval "ac_cv_func__doprnt=yes"
1537 echo "configure: failed program was:" >&5
1538 cat conftest.
$ac_ext >&5
1540 eval "ac_cv_func__doprnt=no"
1545 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1546 echo "$ac_t""yes" 1>&6
1547 cat >> confdefs.h
<<\EOF
1548 #define HAVE_DOPRNT 1
1552 echo "$ac_t""no" 1>&6
1557 for ac_func
in gethostname gettimeofday socket strdup strerror strtol
1559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1560 echo "configure:1560: checking for $ac_func" >&5
1561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1564 cat > conftest.
$ac_ext <<EOF
1565 #line 1565 "configure"
1566 #include "confdefs.h"
1567 /* System header to define __stub macros and hopefully few prototypes,
1568 which can conflict with char $ac_func(); below. */
1570 /* Override any gcc2 internal prototype to avoid an error. */
1571 /* We use char because int might match the return type of a gcc2
1572 builtin and then its argument prototype would still apply. */
1577 /* The GNU C library defines this for functions which it implements
1578 to always fail with ENOSYS. Some functions are actually named
1579 something starting with __ and the normal name is an alias. */
1580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1588 if { (eval echo configure
:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1590 eval "ac_cv_func_$ac_func=yes"
1592 echo "configure: failed program was:" >&5
1593 cat conftest.
$ac_ext >&5
1595 eval "ac_cv_func_$ac_func=no"
1600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1601 echo "$ac_t""yes" 1>&6
1602 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1603 cat >> confdefs.h
<<EOF
1604 #define $ac_tr_func 1
1608 echo "$ac_t""no" 1>&6
1614 if test -d libevent
; then
1615 if test -L libevent
; then
1616 OUTPUT
="Makefile handlers/Makefile"
1618 OUTPUT
="Makefile libevent/Makefile handlers/Makefile"
1621 OUTPUT
="Makefile handlers/Makefile"
1625 cat > confcache
<<\EOF
1626 # This file is a shell script that caches the results of configure
1627 # tests run on this system so they can be shared between configure
1628 # scripts and configure runs. It is not useful on other systems.
1629 # If it contains results you don't want to keep, you may remove or edit it.
1631 # By default, configure uses ./config.cache as the cache file,
1632 # creating it if it does not exist already. You can give configure
1633 # the --cache-file=FILE option to use a different cache file; that is
1634 # what configure does when it calls configure scripts in
1635 # subdirectories, so they share the cache.
1636 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1637 # config.status only pays attention to the cache file if you give it the
1638 # --recheck option to rerun configure.
1641 # The following way of writing the cache mishandles newlines in values,
1642 # but we know of no workaround that is simple, portable, and efficient.
1643 # So, don't put newlines in cache variables' values.
1644 # Ultrix sh set writes to stderr and can't be redirected directly,
1645 # and sets the high bit in the cache file unless we assign to the vars.
1647 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1649 # `set' does not quote correctly, so add quotes (double-quote substitution
1650 # turns \\\\ into \\, and sed turns \\ into \).
1652 -e "s/'/'\\\\''/g" \
1653 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1656 # `set' quotes correctly as required by POSIX, so do not add quotes.
1657 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1660 if cmp -s $cache_file confcache
; then
1663 if test -w $cache_file; then
1664 echo "updating cache $cache_file"
1665 cat confcache
> $cache_file
1667 echo "not updating unwritable cache $cache_file"
1672 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1674 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1675 # Let make expand exec_prefix.
1676 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1678 # Any assignment to VPATH causes Sun make to only execute
1679 # the first set of double-colon rules, so remove it if not needed.
1680 # If there is a colon in the path, we need to keep it.
1681 if test "x$srcdir" = x.
; then
1682 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1685 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1687 # Transform confdefs.h into DEFS.
1688 # Protect against shell expansion while executing Makefile rules.
1689 # Protect against Makefile macro expansion.
1690 cat > conftest.defs
<<\EOF
1691 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1692 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1697 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
1701 # Without the "./", some shells look in PATH for config.status.
1702 : ${CONFIG_STATUS=./config.status}
1704 echo creating $CONFIG_STATUS
1705 rm -f $CONFIG_STATUS
1706 cat > $CONFIG_STATUS <<EOF
1708 # Generated automatically by configure.
1709 # Run this file to recreate the current configuration.
1710 # This directory was configured as follows,
1711 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
1713 # $0 $ac_configure_args
1715 # Compiler output produced by configure, useful for debugging
1716 # configure, is in ./config.log if it exists.
1718 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1721 case "\$ac_option" in
1722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1723 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1724 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1725 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1726 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1728 -help | --help | --hel | --he | --h)
1729 echo "\$ac_cs_usage"; exit 0 ;;
1730 *) echo "\$ac_cs_usage"; exit 1 ;;
1734 ac_given_srcdir=$srcdir
1735 ac_given_INSTALL="$INSTALL"
1737 trap 'rm -fr `echo "$OUTPUT" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1739 cat >> $CONFIG_STATUS <<EOF
1741 # Protect against being on the right side of a sed subst in config.status.
1742 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1743 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1747 s%@CFLAGS@%$CFLAGS%g
1748 s%@CPPFLAGS@%$CPPFLAGS%g
1749 s%@CXXFLAGS@%$CXXFLAGS%g
1750 s%@FFLAGS@%$FFLAGS%g
1752 s%@LDFLAGS@%$LDFLAGS%g
1754 s%@exec_prefix@%$exec_prefix%g
1755 s%@prefix@%$prefix%g
1756 s%@program_transform_name@%$program_transform_name%g
1757 s%@bindir@%$bindir%g
1758 s%@sbindir@%$sbindir%g
1759 s%@libexecdir@%$libexecdir%g
1760 s%@datadir@%$datadir%g
1761 s%@sysconfdir@%$sysconfdir%g
1762 s%@sharedstatedir@%$sharedstatedir%g
1763 s%@localstatedir@%$localstatedir%g
1764 s%@libdir@%$libdir%g
1765 s%@includedir@%$includedir%g
1766 s%@oldincludedir@%$oldincludedir%g
1767 s%@infodir@%$infodir%g
1768 s%@mandir@%$mandir%g
1771 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1772 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1773 s%@INSTALL_DATA@%$INSTALL_DATA%g
1774 s%@RANLIB@%$RANLIB%g
1776 s%@LIBEVENT@%$LIBEVENT%g
1777 s%@LIBOBJS@%$LIBOBJS%g
1782 cat >> $CONFIG_STATUS <<\EOF
1784 # Split the substitutions into bite-sized pieces for seds with
1785 # small command number limits, like on Digital OSF/1 and HP-UX.
1786 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1787 ac_file=1 # Number of current file.
1788 ac_beg=1 # First line for current file.
1789 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1792 while $ac_more_lines; do
1793 if test $ac_beg -gt 1; then
1794 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1796 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1798 if test ! -s conftest.s$ac_file; then
1800 rm -f conftest.s$ac_file
1802 if test -z "$ac_sed_cmds"; then
1803 ac_sed_cmds="sed -f conftest.s$ac_file"
1805 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1807 ac_file=`expr $ac_file + 1`
1809 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1812 if test -z "$ac_sed_cmds"; then
1817 cat >> $CONFIG_STATUS <<EOF
1819 CONFIG_FILES=\${CONFIG_FILES-"$OUTPUT"}
1821 cat >> $CONFIG_STATUS <<\EOF
1822 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1825 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
1826 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
1827 *) ac_file_in="${ac_file}.in" ;;
1830 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1832 # Remove last slash and all that follows it. Not all systems have dirname.
1833 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1834 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1835 # The file is in a subdirectory.
1836 test ! -d "$ac_dir" && mkdir "$ac_dir"
1837 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
1838 # A "../" for each directory in $ac_dir_suffix.
1839 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
1841 ac_dir_suffix= ac_dots=
1844 case "$ac_given_srcdir" in
1846 if test -z "$ac_dots"; then top_srcdir=.
1847 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
1848 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1850 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1851 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1854 case "$ac_given_INSTALL" in
1855 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1856 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1859 echo creating "$ac_file"
1861 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
1863 *Makefile*) ac_comsub="1i\\
1864 # $configure_input" ;;
1868 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1870 s%@configure_input@%$configure_input%g
1871 s%@srcdir@%$srcdir%g
1872 s%@top_srcdir@%$top_srcdir%g
1873 s%@INSTALL@%$INSTALL%g
1874 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1879 cat >> $CONFIG_STATUS <<EOF
1882 cat >> $CONFIG_STATUS <<\EOF
1886 chmod +x $CONFIG_STATUS
1887 rm -fr confdefs* $ac_clean_files
1888 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1