2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="ulogd.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD ac_ct_LD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP KSRC KVER MYSQLINCLUDES MYSQL_LIB PGSQLINCLUDES PGSQL_LIB DATABASE_DIR DATABASE_LIB DATABASE_LIB_DIR DB_DEF EXTRA_MYSQL_DEF EXTRA_PGSQL_DEF DATABASE_DRIVERS HAVE_PCAP_H HAVE_MYSQL_TRUE HAVE_MYSQL_FALSE HAVE_PGSQL_TRUE HAVE_PGSQL_FALSE LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
836 if test -n "$ac_init_help"; then
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --with-kernel=DIR kernel source directory
844 --with-proper=<directory> proper installed in <directory>
845 --with-mysql=<directory> mysql installed in <directoty>
846 --with-mysql-log-ip-as-string log IPs as string rather than as
847 unsigned long-integer.
849 --with-pgsql=<directory> pgsql installed in <directoty>
850 --with-pgsql-log-ip-as-string log IPs as string rather than as interger
853 Some influential environment variables:
854 CC C compiler command
855 CFLAGS C compiler flags
856 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
857 nonstandard directory <lib dir>
858 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
859 headers in a nonstandard directory <include dir>
862 Use these variables to override the choices made by `configure' or to help
863 it to find libraries and programs with nonstandard names/locations.
868 if test "$ac_init_help" = "recursive"; then
869 # If there are subdirs, report their specific --help.
871 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872 test -d $ac_dir || continue
875 if test "$ac_dir" != .; then
876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877 # A "../" for each directory in $ac_dir_suffix.
878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
880 ac_dir_suffix= ac_top_builddir=
884 .) # No --srcdir option. We are building in place.
886 if test -z "$ac_top_builddir"; then
889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_srcdir=$srcdir$ac_dir_suffix;
893 ac_top_srcdir=$srcdir ;;
895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
899 # Do not use `cd foo && pwd` to compute absolute paths, because
900 # the directories may not exist.
902 .) ac_abs_builddir="$ac_dir";;
905 .) ac_abs_builddir=`pwd`;;
906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
910 case $ac_abs_builddir in
911 .) ac_abs_top_builddir=${ac_top_builddir}.;;
913 case ${ac_top_builddir}. in
914 .) ac_abs_top_builddir=$ac_abs_builddir;;
915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
919 case $ac_abs_builddir in
920 .) ac_abs_srcdir=$ac_srcdir;;
923 .) ac_abs_srcdir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
928 case $ac_abs_builddir in
929 .) ac_abs_top_srcdir=$ac_top_srcdir;;
931 case $ac_top_srcdir in
932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
961 Copyright (C) 2003 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
972 It was created by $as_me, which was
973 generated by GNU Autoconf 2.59. Invocation command line was
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Strip out --silent because we don't want to record it for future runs.
1026 # Also quote any args containing shell meta-characters.
1027 # Make two passes to allow for proper duplicate-argument suppression.
1032 ac_must_keep_next=false
1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049 if test $ac_must_keep_next = true; then
1050 ac_must_keep_next=false # Got value, back to normal.
1053 *=* | --config-cache | -C | -disable-* | --disable-* \
1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056 | -with-* | --with-* | -without-* | --without-* | --x)
1057 case "$ac_configure_args0 " in
1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1061 -* ) ac_must_keep_next=true ;;
1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065 # Get rid of the leading space.
1071 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074 # When interrupted or exit'd, cleanup temporary files, and complete
1075 # config.log. We remove comments because anyway the quotes in there
1076 # would cause problems or look ugly.
1077 # WARNING: Be sure not to use single quotes in there, as some shells,
1078 # such as our DU 5.0 friend, will then `close' the trap.
1079 trap 'exit_status=$?
1080 # Save into config.log some information that might help in debugging.
1085 ## ---------------- ##
1086 ## Cache variables. ##
1087 ## ---------------- ##
1090 # The following way of writing the cache mishandles newlines in values,
1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108 ## ----------------- ##
1109 ## Output variables. ##
1110 ## ----------------- ##
1113 for ac_var in $ac_subst_vars
1115 eval ac_val=$`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1120 if test -n "$ac_subst_files"; then
1127 for ac_var in $ac_subst_files
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1135 if test -s confdefs.h; then
1142 sed "/^$/d" confdefs.h | sort
1145 test "$ac_signal" != 0 &&
1146 echo "$as_me: caught signal $ac_signal"
1147 echo "$as_me: exit $exit_status"
1149 rm -f core *.core &&
1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1153 for ac_signal in 1 2 13 15; do
1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1159 rm -rf conftest* confdefs.h
1160 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1163 # Predefined preprocessor variables.
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_NAME "$PACKAGE_NAME"
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_STRING "$PACKAGE_STRING"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1190 # Let the site file select an alternate cache file if it wants to.
1191 # Prefer explicitly selected file to automatically selected ones.
1192 if test -z "$CONFIG_SITE"; then
1193 if test "x$prefix" != xNONE; then
1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1199 for ac_site_file in $CONFIG_SITE; do
1200 if test -r "$ac_site_file"; then
1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202 echo "$as_me: loading site script $ac_site_file" >&6;}
1203 sed 's/^/| /' "$ac_site_file" >&5
1208 if test -r "$cache_file"; then
1209 # Some versions of bash will fail to source /dev/null (special
1210 # files actually), so we avoid doing that.
1211 if test -f "$cache_file"; then
1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213 echo "$as_me: loading cache $cache_file" >&6;}
1215 [\\/]* | ?:[\\/]* ) . $cache_file;;
1216 *) . ./$cache_file;;
1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221 echo "$as_me: creating cache $cache_file" >&6;}
1225 # Check that the precious variables saved in the cache have kept the same
1227 ac_cache_corrupted=false
1228 for ac_var in `(set) 2>&1 |
1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231 eval ac_new_set=\$ac_env_${ac_var}_set
1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233 eval ac_new_val="\$ac_env_${ac_var}_value"
1234 case $ac_old_set,$ac_new_set in
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1245 if test "x$ac_old_val" != "x$ac_new_val"; then
1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1249 echo "$as_me: former value: $ac_old_val" >&2;}
1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1251 echo "$as_me: current value: $ac_new_val" >&2;}
1252 ac_cache_corrupted=:
1255 # Pass precious variables to config.status.
1256 if test "$ac_new_set" = set; then
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 *) ac_arg=$ac_var=$ac_new_val ;;
1262 case " $ac_configure_args " in
1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1268 if $ac_cache_corrupted; then
1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273 { (exit 1); exit 1; }; }
1277 ac_cpp='$CPP $CPPFLAGS'
1278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1302 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1303 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1304 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1305 echo $ECHO_N "(cached) $ECHO_C" >&6
1307 cat >conftest.make <<\_ACEOF
1309 @echo 'ac_maketemp="$(MAKE)"'
1311 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1312 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1313 if test -n "$ac_maketemp"; then
1314 eval ac_cv_prog_make_${ac_make}_set=yes
1316 eval ac_cv_prog_make_${ac_make}_set=no
1320 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1321 echo "$as_me:$LINENO: result: yes" >&5
1322 echo "${ECHO_T}yes" >&6
1325 echo "$as_me:$LINENO: result: no" >&5
1326 echo "${ECHO_T}no" >&6
1327 SET_MAKE="MAKE=${MAKE-make}"
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335 if test -n "$ac_tool_prefix"; then
1336 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1337 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1338 echo "$as_me:$LINENO: checking for $ac_word" >&5
1339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1340 if test "${ac_cv_prog_CC+set}" = set; then
1341 echo $ECHO_N "(cached) $ECHO_C" >&6
1343 if test -n "$CC"; then
1344 ac_cv_prog_CC="$CC" # Let the user override the test.
1346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1350 test -z "$as_dir" && as_dir=.
1351 for ac_exec_ext in '' $ac_executable_extensions; do
1352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1353 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1363 if test -n "$CC"; then
1364 echo "$as_me:$LINENO: result: $CC" >&5
1365 echo "${ECHO_T}$CC" >&6
1367 echo "$as_me:$LINENO: result: no" >&5
1368 echo "${ECHO_T}no" >&6
1372 if test -z "$ac_cv_prog_CC"; then
1374 # Extract the first word of "gcc", so it can be a program name with args.
1375 set dummy gcc; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 if test -n "$ac_ct_CC"; then
1382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_prog_ac_ct_CC="gcc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1401 if test -n "$ac_ct_CC"; then
1402 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1403 echo "${ECHO_T}$ac_ct_CC" >&6
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1414 if test -z "$CC"; then
1415 if test -n "$ac_tool_prefix"; then
1416 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1417 set dummy ${ac_tool_prefix}cc; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_prog_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 if test -n "$CC"; then
1424 ac_cv_prog_CC="$CC" # Let the user override the test.
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 ac_cv_prog_CC="${ac_tool_prefix}cc"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443 if test -n "$CC"; then
1444 echo "$as_me:$LINENO: result: $CC" >&5
1445 echo "${ECHO_T}$CC" >&6
1447 echo "$as_me:$LINENO: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1452 if test -z "$ac_cv_prog_CC"; then
1454 # Extract the first word of "cc", so it can be a program name with args.
1455 set dummy cc; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 if test -n "$ac_ct_CC"; then
1462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468 test -z "$as_dir" && as_dir=.
1469 for ac_exec_ext in '' $ac_executable_extensions; do
1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471 ac_cv_prog_ac_ct_CC="cc"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1481 if test -n "$ac_ct_CC"; then
1482 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1483 echo "${ECHO_T}$ac_ct_CC" >&6
1485 echo "$as_me:$LINENO: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1495 if test -z "$CC"; then
1496 # Extract the first word of "cc", so it can be a program name with args.
1497 set dummy cc; ac_word=$2
1498 echo "$as_me:$LINENO: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_CC+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 if test -n "$CC"; then
1504 ac_cv_prog_CC="$CC" # Let the user override the test.
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 test -z "$as_dir" && as_dir=.
1512 for ac_exec_ext in '' $ac_executable_extensions; do
1513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1515 ac_prog_rejected=yes
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525 if test $ac_prog_rejected = yes; then
1526 # We found a bogon in the path, so make sure we never use it.
1527 set dummy $ac_cv_prog_CC
1529 if test $# != 0; then
1530 # We chose a different compiler from the bogus one.
1531 # However, it has the same basename, so the bogon will be chosen
1532 # first if we set CC to just the basename; use the full file name.
1534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1540 if test -n "$CC"; then
1541 echo "$as_me:$LINENO: result: $CC" >&5
1542 echo "${ECHO_T}$CC" >&6
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 if test -n "$ac_tool_prefix"; then
1553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 if test -n "$CC"; then
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1588 test -n "$CC" && break
1591 if test -z "$CC"; then
1595 # Extract the first word of "$ac_prog", so it can be a program name with args.
1596 set dummy $ac_prog; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 if test -n "$ac_ct_CC"; then
1603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_ac_ct_CC="$ac_prog"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1622 if test -n "$ac_ct_CC"; then
1623 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1624 echo "${ECHO_T}$ac_ct_CC" >&6
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1630 test -n "$ac_ct_CC" && break
1639 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1640 See \`config.log' for more details." >&5
1641 echo "$as_me: error: no acceptable C compiler found in \$PATH
1642 See \`config.log' for more details." >&2;}
1643 { (exit 1); exit 1; }; }
1645 # Provide some information about the compiler.
1646 echo "$as_me:$LINENO:" \
1647 "checking for C compiler version" >&5
1648 ac_compiler=`set X $ac_compile; echo $2`
1649 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1650 (eval $ac_compiler --version </dev/null >&5) 2>&5
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); }
1654 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1655 (eval $ac_compiler -v </dev/null >&5) 2>&5
1657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658 (exit $ac_status); }
1659 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1660 (eval $ac_compiler -V </dev/null >&5) 2>&5
1662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1663 (exit $ac_status); }
1665 cat >conftest.$ac_ext <<_ACEOF
1668 cat confdefs.h >>conftest.$ac_ext
1669 cat >>conftest.$ac_ext <<_ACEOF
1670 /* end confdefs.h. */
1680 ac_clean_files_save=$ac_clean_files
1681 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1682 # Try to create an executable without -o first, disregard a.out.
1683 # It will help us diagnose broken compilers, and finding out an intuition
1685 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1686 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1687 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1688 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1689 (eval $ac_link_default) 2>&5
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }; then
1693 # Find the output, starting from the most likely. This scheme is
1694 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1697 # Be careful to initialize this variable, since it used to be cached.
1698 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1700 # b.out is created by i960 compilers.
1701 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1703 test -f "$ac_file" || continue
1705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1708 # This is the source file.
1711 # We found the default executable, but exeext='' is most
1715 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1716 # FIXME: I believe we export ac_cv_exeext for Libtool,
1717 # but it would be cool to find out if it's true. Does anybody
1718 # maintain Libtool? --akim.
1726 echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1729 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1730 See \`config.log' for more details." >&5
1731 echo "$as_me: error: C compiler cannot create executables
1732 See \`config.log' for more details." >&2;}
1733 { (exit 77); exit 77; }; }
1736 ac_exeext=$ac_cv_exeext
1737 echo "$as_me:$LINENO: result: $ac_file" >&5
1738 echo "${ECHO_T}$ac_file" >&6
1740 # Check the compiler produces executables we can run. If not, either
1741 # the compiler is broken, or we cross compile.
1742 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1743 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1744 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1745 # If not cross compiling, check that we can run a simple program.
1746 if test "$cross_compiling" != yes; then
1747 if { ac_try='./$ac_file'
1748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }; }; then
1755 if test "$cross_compiling" = maybe; then
1758 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1759 If you meant to cross compile, use \`--host'.
1760 See \`config.log' for more details." >&5
1761 echo "$as_me: error: cannot run C compiled programs.
1762 If you meant to cross compile, use \`--host'.
1763 See \`config.log' for more details." >&2;}
1764 { (exit 1); exit 1; }; }
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1771 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1772 ac_clean_files=$ac_clean_files_save
1773 # Check the compiler produces executables we can run. If not, either
1774 # the compiler is broken, or we cross compile.
1775 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1776 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1777 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1778 echo "${ECHO_T}$cross_compiling" >&6
1780 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1781 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1783 (eval $ac_link) 2>&5
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; then
1787 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1788 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1789 # work properly (i.e., refer to `conftest.exe'), while it won't with
1791 for ac_file in conftest.exe conftest conftest.*; do
1792 test -f "$ac_file" || continue
1794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1795 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1802 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1803 See \`config.log' for more details." >&5
1804 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1805 See \`config.log' for more details." >&2;}
1806 { (exit 1); exit 1; }; }
1809 rm -f conftest$ac_cv_exeext
1810 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1811 echo "${ECHO_T}$ac_cv_exeext" >&6
1813 rm -f conftest.$ac_ext
1814 EXEEXT=$ac_cv_exeext
1816 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1817 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1818 if test "${ac_cv_objext+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 cat >conftest.$ac_ext <<_ACEOF
1824 cat confdefs.h >>conftest.$ac_ext
1825 cat >>conftest.$ac_ext <<_ACEOF
1826 /* end confdefs.h. */
1836 rm -f conftest.o conftest.obj
1837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1838 (eval $ac_compile) 2>&5
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }; then
1842 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1845 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1850 echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1853 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1854 See \`config.log' for more details." >&5
1855 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1856 See \`config.log' for more details." >&2;}
1857 { (exit 1); exit 1; }; }
1860 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1862 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1863 echo "${ECHO_T}$ac_cv_objext" >&6
1864 OBJEXT=$ac_cv_objext
1866 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1867 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1868 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 cat >conftest.$ac_ext <<_ACEOF
1874 cat confdefs.h >>conftest.$ac_ext
1875 cat >>conftest.$ac_ext <<_ACEOF
1876 /* end confdefs.h. */
1889 rm -f conftest.$ac_objext
1890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1891 (eval $ac_compile) 2>conftest.er1
1893 grep -v '^ *+' conftest.er1 >conftest.err
1895 cat conftest.err >&5
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); } &&
1898 { ac_try='test -z "$ac_c_werror_flag"
1899 || test ! -s conftest.err'
1900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904 (exit $ac_status); }; } &&
1905 { ac_try='test -s conftest.$ac_objext'
1906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); }; }; then
1913 echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1919 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1922 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1923 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1924 GCC=`test $ac_compiler_gnu = yes && echo yes`
1925 ac_test_CFLAGS=${CFLAGS+set}
1926 ac_save_CFLAGS=$CFLAGS
1928 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1929 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1930 if test "${ac_cv_prog_cc_g+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 cat >conftest.$ac_ext <<_ACEOF
1936 cat confdefs.h >>conftest.$ac_ext
1937 cat >>conftest.$ac_ext <<_ACEOF
1938 /* end confdefs.h. */
1948 rm -f conftest.$ac_objext
1949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1950 (eval $ac_compile) 2>conftest.er1
1952 grep -v '^ *+' conftest.er1 >conftest.err
1954 cat conftest.err >&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); } &&
1957 { ac_try='test -z "$ac_c_werror_flag"
1958 || test ! -s conftest.err'
1959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; } &&
1964 { ac_try='test -s conftest.$ac_objext'
1965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; }; then
1972 echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1979 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1980 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1981 if test "$ac_test_CFLAGS" = set; then
1982 CFLAGS=$ac_save_CFLAGS
1983 elif test $ac_cv_prog_cc_g = yes; then
1984 if test "$GCC" = yes; then
1990 if test "$GCC" = yes; then
1996 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1997 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1998 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 ac_cv_prog_cc_stdc=no
2003 cat >conftest.$ac_ext <<_ACEOF
2006 cat confdefs.h >>conftest.$ac_ext
2007 cat >>conftest.$ac_ext <<_ACEOF
2008 /* end confdefs.h. */
2011 #include <sys/types.h>
2012 #include <sys/stat.h>
2013 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2014 struct buf { int x; };
2015 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2016 static char *e (p, i)
2022 static char *f (char * (*g) (char **, int), char **p, ...)
2027 s = g (p, va_arg (v,int));
2032 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2033 function prototypes and stuff, but not '\xHH' hex character constants.
2034 These don't provoke an error unfortunately, instead are silently treated
2035 as 'x'. The following induces an error, until -std1 is added to get
2036 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2037 array size at least. It's necessary to write '\x00'==0 to get something
2038 that's true only with -std1. */
2039 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2041 int test (int i, double x);
2042 struct s1 {int (*f) (int a);};
2043 struct s2 {int (*f) (double a);};
2044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2055 # Don't try gcc -ansi; that turns off useful extensions and
2056 # breaks some systems' header files.
2057 # AIX -qlanglvl=ansi
2058 # Ultrix and OSF/1 -std1
2059 # HP-UX 10.20 and later -Ae
2060 # HP-UX older versions -Aa -D_HPUX_SOURCE
2061 # SVR4 -Xc -D__EXTENSIONS__
2062 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2064 CC="$ac_save_CC $ac_arg"
2065 rm -f conftest.$ac_objext
2066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>conftest.er1
2069 grep -v '^ *+' conftest.er1 >conftest.err
2071 cat conftest.err >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); } &&
2074 { ac_try='test -z "$ac_c_werror_flag"
2075 || test ! -s conftest.err'
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; } &&
2081 { ac_try='test -s conftest.$ac_objext'
2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; }; then
2087 ac_cv_prog_cc_stdc=$ac_arg
2090 echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2094 rm -f conftest.err conftest.$ac_objext
2096 rm -f conftest.$ac_ext conftest.$ac_objext
2101 case "x$ac_cv_prog_cc_stdc" in
2103 echo "$as_me:$LINENO: result: none needed" >&5
2104 echo "${ECHO_T}none needed" >&6 ;;
2106 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2107 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2108 CC="$CC $ac_cv_prog_cc_stdc" ;;
2111 # Some people use a C++ compiler to compile C. Since we use `exit',
2112 # in C++ we need to declare it. In case someone uses the same compiler
2113 # for both compiling C and C++ we need to have the C++ compiler decide
2114 # the declaration of exit, since it's the most demanding environment.
2115 cat >conftest.$ac_ext <<_ACEOF
2120 rm -f conftest.$ac_objext
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122 (eval $ac_compile) 2>conftest.er1
2124 grep -v '^ *+' conftest.er1 >conftest.err
2126 cat conftest.err >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); } &&
2129 { ac_try='test -z "$ac_c_werror_flag"
2130 || test ! -s conftest.err'
2131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; } &&
2136 { ac_try='test -s conftest.$ac_objext'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; }; then
2142 for ac_declaration in \
2144 'extern "C" void std::exit (int) throw (); using std::exit;' \
2145 'extern "C" void std::exit (int); using std::exit;' \
2146 'extern "C" void exit (int) throw ();' \
2147 'extern "C" void exit (int);' \
2150 cat >conftest.$ac_ext <<_ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h. */
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2170 grep -v '^ *+' conftest.er1 >conftest.err
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2196 cat >conftest.$ac_ext <<_ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2211 rm -f conftest.$ac_objext
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>conftest.er1
2215 grep -v '^ *+' conftest.er1 >conftest.err
2217 cat conftest.err >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); } &&
2220 { ac_try='test -z "$ac_c_werror_flag"
2221 || test ! -s conftest.err'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; } &&
2227 { ac_try='test -s conftest.$ac_objext'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2235 echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242 if test -n "$ac_declaration"; then
2243 echo '#ifdef __cplusplus' >>confdefs.h
2244 echo $ac_declaration >>confdefs.h
2245 echo '#endif' >>confdefs.h
2249 echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2260 if test -n "$ac_tool_prefix"; then
2261 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2262 set dummy ${ac_tool_prefix}ld; ac_word=$2
2263 echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265 if test "${ac_cv_prog_LD+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 if test -n "$LD"; then
2269 ac_cv_prog_LD="$LD" # Let the user override the test.
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278 ac_cv_prog_LD="${ac_tool_prefix}ld"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 if test -n "$LD"; then
2289 echo "$as_me:$LINENO: result: $LD" >&5
2290 echo "${ECHO_T}$LD" >&6
2292 echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6
2297 if test -z "$ac_cv_prog_LD"; then
2299 # Extract the first word of "ld", so it can be a program name with args.
2300 set dummy ld; ac_word=$2
2301 echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2303 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 if test -n "$ac_ct_LD"; then
2307 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316 ac_cv_prog_ac_ct_LD="ld"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2326 if test -n "$ac_ct_LD"; then
2327 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2328 echo "${ECHO_T}$ac_ct_LD" >&6
2330 echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2340 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2341 if test -f $ac_dir/install-sh; then
2343 ac_install_sh="$ac_aux_dir/install-sh -c"
2345 elif test -f $ac_dir/install.sh; then
2347 ac_install_sh="$ac_aux_dir/install.sh -c"
2349 elif test -f $ac_dir/shtool; then
2351 ac_install_sh="$ac_aux_dir/shtool install -c"
2355 if test -z "$ac_aux_dir"; then
2356 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2357 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2358 { (exit 1); exit 1; }; }
2360 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2361 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2362 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2364 # Find a good install program. We prefer a C program (faster),
2365 # so one script is as good as another. But avoid the broken or
2366 # incompatible versions:
2367 # SysV /etc/install, /usr/sbin/install
2368 # SunOS /usr/etc/install
2369 # IRIX /sbin/install
2371 # AmigaOS /C/install, which installs bootblocks on floppy discs
2372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2375 # OS/2's system install, which has a completely different semantic
2376 # ./install, which can be erroneously created by make from ./install.sh.
2377 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2378 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2379 if test -z "$INSTALL"; then
2380 if test "${ac_cv_path_install+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 # Account for people who put trailing slashes in PATH elements.
2390 ./ | .// | /cC/* | \
2391 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2392 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2395 # OSF1 and SCO ODT 3.0 have their own names for install.
2396 # Don't use installbsd from OSF since it installs stuff as root
2398 for ac_prog in ginstall scoinst install; do
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2401 if test $ac_prog = install &&
2402 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2403 # AIX install. It has an incompatible calling convention.
2405 elif test $ac_prog = install &&
2406 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2407 # program-specific install script used by HP pwplus--don't use.
2410 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2422 if test "${ac_cv_path_install+set}" = set; then
2423 INSTALL=$ac_cv_path_install
2425 # As a last resort, use the slow shell script. We don't cache a
2426 # path for INSTALL within a source directory, because that will
2427 # break other packages using the cache if that directory is
2428 # removed, or if the path is relative.
2429 INSTALL=$ac_install_sh
2432 echo "$as_me:$LINENO: result: $INSTALL" >&5
2433 echo "${ECHO_T}$INSTALL" >&6
2435 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2436 # It thinks the first close brace ends the variable substitution.
2437 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2439 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2441 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2446 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
2447 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
2448 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 ac_check_lib_save_LIBS=$LIBS
2453 cat >conftest.$ac_ext <<_ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2460 /* Override any gcc2 internal prototype to avoid an error. */
2464 /* We use char because int might match the return type of a gcc2
2465 builtin and then its argument prototype would still apply. */
2475 rm -f conftest.$ac_objext conftest$ac_exeext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2477 (eval $ac_link) 2>conftest.er1
2479 grep -v '^ *+' conftest.er1 >conftest.err
2481 cat conftest.err >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try='test -z "$ac_c_werror_flag"
2485 || test ! -s conftest.err'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try='test -s conftest$ac_exeext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2497 ac_cv_lib_dl_dlopen=yes
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2502 ac_cv_lib_dl_dlopen=no
2504 rm -f conftest.err conftest.$ac_objext \
2505 conftest$ac_exeext conftest.$ac_ext
2506 LIBS=$ac_check_lib_save_LIBS
2508 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
2509 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
2510 if test $ac_cv_lib_dl_dlopen = yes; then
2511 cat >>confdefs.h <<_ACEOF
2512 #define HAVE_LIBDL 1
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2526 # On Suns, sometimes $CPP names a directory.
2527 if test -n "$CPP" && test -d "$CPP"; then
2530 if test -z "$CPP"; then
2531 if test "${ac_cv_prog_CPP+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 # Double quotes because CPP needs to be expanded
2535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2538 for ac_c_preproc_warn_flag in '' yes
2540 # Use a header file that comes with gcc, so configuring glibc
2541 # with a fresh cross-compiler works.
2542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2543 # <limits.h> exists even on freestanding compilers.
2544 # On the NeXT, cc -E runs the code through the compiler's parser,
2545 # not just through cpp. "Syntax error" is here to catch this case.
2546 cat >conftest.$ac_ext <<_ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2553 # include <limits.h>
2555 # include <assert.h>
2559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2562 grep -v '^ *+' conftest.er1 >conftest.err
2564 cat conftest.err >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } >/dev/null; then
2567 if test -s conftest.err; then
2568 ac_cpp_err=$ac_c_preproc_warn_flag
2569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2576 if test -z "$ac_cpp_err"; then
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2582 # Broken: fails on valid input.
2585 rm -f conftest.err conftest.$ac_ext
2587 # OK, works on sane cases. Now check whether non-existent headers
2588 # can be detected and how.
2589 cat >conftest.$ac_ext <<_ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2595 #include <ac_nonexistent.h>
2597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } >/dev/null; then
2605 if test -s conftest.err; then
2606 ac_cpp_err=$ac_c_preproc_warn_flag
2607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2614 if test -z "$ac_cpp_err"; then
2615 # Broken: success on invalid input.
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2621 # Passes both tests.
2625 rm -f conftest.err conftest.$ac_ext
2628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2629 rm -f conftest.err conftest.$ac_ext
2630 if $ac_preproc_ok; then
2642 echo "$as_me:$LINENO: result: $CPP" >&5
2643 echo "${ECHO_T}$CPP" >&6
2645 for ac_c_preproc_warn_flag in '' yes
2647 # Use a header file that comes with gcc, so configuring glibc
2648 # with a fresh cross-compiler works.
2649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2650 # <limits.h> exists even on freestanding compilers.
2651 # On the NeXT, cc -E runs the code through the compiler's parser,
2652 # not just through cpp. "Syntax error" is here to catch this case.
2653 cat >conftest.$ac_ext <<_ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2660 # include <limits.h>
2662 # include <assert.h>
2666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2669 grep -v '^ *+' conftest.er1 >conftest.err
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } >/dev/null; then
2674 if test -s conftest.err; then
2675 ac_cpp_err=$ac_c_preproc_warn_flag
2676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2683 if test -z "$ac_cpp_err"; then
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2689 # Broken: fails on valid input.
2692 rm -f conftest.err conftest.$ac_ext
2694 # OK, works on sane cases. Now check whether non-existent headers
2695 # can be detected and how.
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2702 #include <ac_nonexistent.h>
2704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2707 grep -v '^ *+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } >/dev/null; then
2712 if test -s conftest.err; then
2713 ac_cpp_err=$ac_c_preproc_warn_flag
2714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2721 if test -z "$ac_cpp_err"; then
2722 # Broken: success on invalid input.
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2728 # Passes both tests.
2732 rm -f conftest.err conftest.$ac_ext
2735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2736 rm -f conftest.err conftest.$ac_ext
2737 if $ac_preproc_ok; then
2740 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2741 See \`config.log' for more details." >&5
2742 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2743 See \`config.log' for more details." >&2;}
2744 { (exit 1); exit 1; }; }
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754 echo "$as_me:$LINENO: checking for egrep" >&5
2755 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2756 if test "${ac_cv_prog_egrep+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2760 then ac_cv_prog_egrep='grep -E'
2761 else ac_cv_prog_egrep='egrep'
2764 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2765 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2766 EGREP=$ac_cv_prog_egrep
2769 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2770 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2771 if test "${ac_cv_header_stdc+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 cat >conftest.$ac_ext <<_ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2797 grep -v '^ *+' conftest.er1 >conftest.err
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_cv_header_stdc=yes
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 ac_cv_header_stdc=no
2822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2824 if test $ac_cv_header_stdc = yes; then
2825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2826 cat >conftest.$ac_ext <<_ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2836 $EGREP "memchr" >/dev/null 2>&1; then
2839 ac_cv_header_stdc=no
2845 if test $ac_cv_header_stdc = yes; then
2846 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2847 cat >conftest.$ac_ext <<_ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2857 $EGREP "free" >/dev/null 2>&1; then
2860 ac_cv_header_stdc=no
2866 if test $ac_cv_header_stdc = yes; then
2867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2868 if test "$cross_compiling" = yes; then
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2878 #if ((' ' & 0x0FF) == 0x020)
2879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2882 # define ISLOWER(c) \
2883 (('a' <= (c) && (c) <= 'i') \
2884 || ('j' <= (c) && (c) <= 'r') \
2885 || ('s' <= (c) && (c) <= 'z'))
2886 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2889 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2894 for (i = 0; i < 256; i++)
2895 if (XOR (islower (i), ISLOWER (i))
2896 || toupper (i) != TOUPPER (i))
2901 rm -f conftest$ac_exeext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2903 (eval $ac_link) 2>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2914 echo "$as_me: program exited with status $ac_status" >&5
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2919 ac_cv_header_stdc=no
2921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2925 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2926 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2927 if test $ac_cv_header_stdc = yes; then
2929 cat >>confdefs.h <<\_ACEOF
2930 #define STDC_HEADERS 1
2935 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2945 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2946 inttypes.h stdint.h unistd.h
2948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2949 echo "$as_me:$LINENO: checking for $ac_header" >&5
2950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 cat >conftest.$ac_ext <<_ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2960 $ac_includes_default
2962 #include <$ac_header>
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966 (eval $ac_compile) 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 { ac_try='test -z "$ac_c_werror_flag"
2974 || test ! -s conftest.err'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; } &&
2980 { ac_try='test -s conftest.$ac_objext'
2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2986 eval "$as_ac_Header=yes"
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2991 eval "$as_ac_Header=no"
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2998 cat >>confdefs.h <<_ACEOF
2999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3007 if test "${ac_cv_header_pcap_h+set}" = set; then
3008 echo "$as_me:$LINENO: checking for pcap.h" >&5
3009 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
3010 if test "${ac_cv_header_pcap_h+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
3014 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
3016 # Is the header compilable?
3017 echo "$as_me:$LINENO: checking pcap.h usability" >&5
3018 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6
3019 cat >conftest.$ac_ext <<_ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3025 $ac_includes_default
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_c_werror_flag"
3038 || test ! -s conftest.err'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 ac_header_compiler=yes
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 ac_header_compiler=no
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3059 echo "${ECHO_T}$ac_header_compiler" >&6
3061 # Is the header present?
3062 echo "$as_me:$LINENO: checking pcap.h presence" >&5
3063 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } >/dev/null; then
3080 if test -s conftest.err; then
3081 ac_cpp_err=$ac_c_preproc_warn_flag
3082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3089 if test -z "$ac_cpp_err"; then
3090 ac_header_preproc=yes
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 ac_header_preproc=no
3097 rm -f conftest.err conftest.$ac_ext
3098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3099 echo "${ECHO_T}$ac_header_preproc" >&6
3101 # So? What about this header?
3102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3104 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
3105 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3106 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
3107 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
3108 ac_header_preproc=yes
3111 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
3112 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
3113 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
3114 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
3115 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
3116 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
3117 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
3118 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
3119 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
3120 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
3121 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
3122 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
3125 ## ------------------------------------------ ##
3126 ## Report this to the AC_PACKAGE_NAME lists. ##
3127 ## ------------------------------------------ ##
3130 sed "s/^/$as_me: WARNING: /" >&2
3133 echo "$as_me:$LINENO: checking for pcap.h" >&5
3134 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
3135 if test "${ac_cv_header_pcap_h+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 ac_cv_header_pcap_h=$ac_header_preproc
3140 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
3141 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
3144 if test $ac_cv_header_pcap_h = yes; then
3156 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3157 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3158 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3159 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 cat >conftest.$ac_ext <<_ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169 #include <sys/types.h>
3181 rm -f conftest.$ac_objext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183 (eval $ac_compile) 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -z "$ac_c_werror_flag"
3191 || test ! -s conftest.err'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3203 eval "$as_ac_Header=yes"
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 eval "$as_ac_Header=no"
3210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3215 cat >>confdefs.h <<_ACEOF
3216 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3219 ac_header_dirent=$ac_hdr; break
3223 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3224 if test $ac_header_dirent = dirent.h; then
3225 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3226 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3227 if test "${ac_cv_search_opendir+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 ac_func_search_save_LIBS=$LIBS
3231 ac_cv_search_opendir=no
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3239 /* Override any gcc2 internal prototype to avoid an error. */
3243 /* We use char because int might match the return type of a gcc2
3244 builtin and then its argument prototype would still apply. */
3254 rm -f conftest.$ac_objext conftest$ac_exeext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3256 (eval $ac_link) 2>conftest.er1
3258 grep -v '^ *+' conftest.er1 >conftest.err
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -z "$ac_c_werror_flag"
3264 || test ! -s conftest.err'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; } &&
3270 { ac_try='test -s conftest$ac_exeext'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; }; then
3276 ac_cv_search_opendir="none required"
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3282 rm -f conftest.err conftest.$ac_objext \
3283 conftest$ac_exeext conftest.$ac_ext
3284 if test "$ac_cv_search_opendir" = no; then
3285 for ac_lib in dir; do
3286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3287 cat >conftest.$ac_ext <<_ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3294 /* Override any gcc2 internal prototype to avoid an error. */
3298 /* We use char because int might match the return type of a gcc2
3299 builtin and then its argument prototype would still apply. */
3309 rm -f conftest.$ac_objext conftest$ac_exeext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3311 (eval $ac_link) 2>conftest.er1
3313 grep -v '^ *+' conftest.er1 >conftest.err
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_c_werror_flag"
3319 || test ! -s conftest.err'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; } &&
3325 { ac_try='test -s conftest$ac_exeext'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
3331 ac_cv_search_opendir="-l$ac_lib"
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3338 rm -f conftest.err conftest.$ac_objext \
3339 conftest$ac_exeext conftest.$ac_ext
3342 LIBS=$ac_func_search_save_LIBS
3344 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3345 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3346 if test "$ac_cv_search_opendir" != no; then
3347 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3352 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3353 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3354 if test "${ac_cv_search_opendir+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 ac_func_search_save_LIBS=$LIBS
3358 ac_cv_search_opendir=no
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3366 /* Override any gcc2 internal prototype to avoid an error. */
3370 /* We use char because int might match the return type of a gcc2
3371 builtin and then its argument prototype would still apply. */
3381 rm -f conftest.$ac_objext conftest$ac_exeext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383 (eval $ac_link) 2>conftest.er1
3385 grep -v '^ *+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest$ac_exeext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 ac_cv_search_opendir="none required"
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3409 rm -f conftest.err conftest.$ac_objext \
3410 conftest$ac_exeext conftest.$ac_ext
3411 if test "$ac_cv_search_opendir" = no; then
3413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3421 /* Override any gcc2 internal prototype to avoid an error. */
3425 /* We use char because int might match the return type of a gcc2
3426 builtin and then its argument prototype would still apply. */
3436 rm -f conftest.$ac_objext conftest$ac_exeext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438 (eval $ac_link) 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -z "$ac_c_werror_flag"
3446 || test ! -s conftest.err'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; } &&
3452 { ac_try='test -s conftest$ac_exeext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3458 ac_cv_search_opendir="-l$ac_lib"
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3465 rm -f conftest.err conftest.$ac_objext \
3466 conftest$ac_exeext conftest.$ac_ext
3469 LIBS=$ac_func_search_save_LIBS
3471 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3472 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3473 if test "$ac_cv_search_opendir" != no; then
3474 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3480 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3481 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3482 if test "${ac_cv_header_stdc+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3504 rm -f conftest.$ac_objext
3505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -z "$ac_c_werror_flag"
3514 || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 ac_cv_header_stdc=yes
3528 echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3531 ac_cv_header_stdc=no
3533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3535 if test $ac_cv_header_stdc = yes; then
3536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3547 $EGREP "memchr" >/dev/null 2>&1; then
3550 ac_cv_header_stdc=no
3556 if test $ac_cv_header_stdc = yes; then
3557 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3568 $EGREP "free" >/dev/null 2>&1; then
3571 ac_cv_header_stdc=no
3577 if test $ac_cv_header_stdc = yes; then
3578 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3579 if test "$cross_compiling" = yes; then
3582 cat >conftest.$ac_ext <<_ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3589 #if ((' ' & 0x0FF) == 0x020)
3590 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3591 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3593 # define ISLOWER(c) \
3594 (('a' <= (c) && (c) <= 'i') \
3595 || ('j' <= (c) && (c) <= 'r') \
3596 || ('s' <= (c) && (c) <= 'z'))
3597 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3600 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3605 for (i = 0; i < 256; i++)
3606 if (XOR (islower (i), ISLOWER (i))
3607 || toupper (i) != TOUPPER (i))
3612 rm -f conftest$ac_exeext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3614 (eval $ac_link) 2>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3625 echo "$as_me: program exited with status $ac_status" >&5
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3630 ac_cv_header_stdc=no
3632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3636 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3637 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3638 if test $ac_cv_header_stdc = yes; then
3640 cat >>confdefs.h <<\_ACEOF
3641 #define STDC_HEADERS 1
3648 for ac_header in fcntl.h unistd.h
3650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3652 echo "$as_me:$LINENO: checking for $ac_header" >&5
3653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3660 # Is the header compilable?
3661 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3663 cat >conftest.$ac_ext <<_ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3669 $ac_includes_default
3670 #include <$ac_header>
3672 rm -f conftest.$ac_objext
3673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3674 (eval $ac_compile) 2>conftest.er1
3676 grep -v '^ *+' conftest.er1 >conftest.err
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -z "$ac_c_werror_flag"
3682 || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_header_compiler=yes
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 ac_header_compiler=no
3701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3703 echo "${ECHO_T}$ac_header_compiler" >&6
3705 # Is the header present?
3706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3708 cat >conftest.$ac_ext <<_ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3714 #include <$ac_header>
3716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3719 grep -v '^ *+' conftest.er1 >conftest.err
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev/null; then
3724 if test -s conftest.err; then
3725 ac_cpp_err=$ac_c_preproc_warn_flag
3726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3733 if test -z "$ac_cpp_err"; then
3734 ac_header_preproc=yes
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 ac_header_preproc=no
3741 rm -f conftest.err conftest.$ac_ext
3742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3743 echo "${ECHO_T}$ac_header_preproc" >&6
3745 # So? What about this header?
3746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3752 ac_header_preproc=yes
3755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3769 ## ------------------------------------------ ##
3770 ## Report this to the AC_PACKAGE_NAME lists. ##
3771 ## ------------------------------------------ ##
3774 sed "s/^/$as_me: WARNING: /" >&2
3777 echo "$as_me:$LINENO: checking for $ac_header" >&5
3778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 eval "$as_ac_Header=\$ac_header_preproc"
3784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3789 cat >>confdefs.h <<_ACEOF
3790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3798 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3799 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3800 if test "${ac_cv_c_const+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 cat >conftest.$ac_ext <<_ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3813 /* FIXME: Include the comments suggested by Paul. */
3815 /* Ultrix mips cc rejects this. */
3816 typedef int charset[2];
3818 /* SunOS 4.1.1 cc rejects this. */
3819 char const *const *ccp;
3821 /* NEC SVR4.0.2 mips cc rejects this. */
3822 struct point {int x, y;};
3823 static struct point const zero = {0,0};
3824 /* AIX XL C 1.02.0.0 rejects this.
3825 It does not let you subtract one const X* pointer from another in
3826 an arm of an if-expression whose if-part is not a constant
3828 const char *g = "string";
3829 ccp = &g + (g ? g-g : 0);
3830 /* HPUX 7.0 cc rejects these. */
3833 ccp = (char const *const *) p;
3834 { /* SCO 3.2v4 cc rejects this. */
3836 char const *s = 0 ? (char *) 0 : (char const *) 0;
3840 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3842 const int *foo = &x[0];
3845 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3846 typedef const int *iptr;
3850 { /* AIX XL C 1.02.0.0 rejects this saying
3851 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3852 struct s { int j; const int *ap[3]; };
3853 struct s *b; b->j = 5;
3855 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3864 rm -f conftest.$ac_objext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866 (eval $ac_compile) 2>conftest.er1
3868 grep -v '^ *+' conftest.er1 >conftest.err
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -z "$ac_c_werror_flag"
3874 || test ! -s conftest.err'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; } &&
3880 { ac_try='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3895 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3896 echo "${ECHO_T}$ac_cv_c_const" >&6
3897 if test $ac_cv_c_const = no; then
3899 cat >>confdefs.h <<\_ACEOF
3905 echo "$as_me:$LINENO: checking for size_t" >&5
3906 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3907 if test "${ac_cv_type_size_t+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3916 $ac_includes_default
3922 if (sizeof (size_t))
3928 rm -f conftest.$ac_objext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930 (eval $ac_compile) 2>conftest.er1
3932 grep -v '^ *+' conftest.er1 >conftest.err
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
3937 { ac_try='test -z "$ac_c_werror_flag"
3938 || test ! -s conftest.err'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; } &&
3944 { ac_try='test -s conftest.$ac_objext'
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; }; then
3950 ac_cv_type_size_t=yes
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 ac_cv_type_size_t=no
3957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3959 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3960 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3961 if test $ac_cv_type_size_t = yes; then
3965 cat >>confdefs.h <<_ACEOF
3966 #define size_t unsigned
3971 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3972 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3973 if test "${ac_cv_struct_tm+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #include <sys/types.h>
3988 struct tm *tp; tp->tm_sec;
3993 rm -f conftest.$ac_objext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995 (eval $ac_compile) 2>conftest.er1
3997 grep -v '^ *+' conftest.er1 >conftest.err
3999 cat conftest.err >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try='test -z "$ac_c_werror_flag"
4003 || test ! -s conftest.err'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try='test -s conftest.$ac_objext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 ac_cv_struct_tm=time.h
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 ac_cv_struct_tm=sys/time.h
4022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4024 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4025 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4026 if test $ac_cv_struct_tm = sys/time.h; then
4028 cat >>confdefs.h <<\_ACEOF
4029 #define TM_IN_SYS_TIME 1
4036 for ac_func in vprintf
4038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4039 echo "$as_me:$LINENO: checking for $ac_func" >&5
4040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4041 if eval "test \"\${$as_ac_var+set}\" = set"; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 cat >conftest.$ac_ext <<_ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4052 #define $ac_func innocuous_$ac_func
4054 /* System header to define __stub macros and hopefully few prototypes,
4055 which can conflict with char $ac_func (); below.
4056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 <limits.h> exists even on freestanding compilers. */
4060 # include <limits.h>
4062 # include <assert.h>
4067 /* Override any gcc2 internal prototype to avoid an error. */
4072 /* We use char because int might match the return type of a gcc2
4073 builtin and then its argument prototype would still apply. */
4075 /* The GNU C library defines this for functions which it implements
4076 to always fail with ENOSYS. Some functions are actually named
4077 something starting with __ and the normal name is an alias. */
4078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4081 char (*f) () = $ac_func;
4090 return f != $ac_func;
4095 rm -f conftest.$ac_objext conftest$ac_exeext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4097 (eval $ac_link) 2>conftest.er1
4099 grep -v '^ *+' conftest.er1 >conftest.err
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_c_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest$ac_exeext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 eval "$as_ac_var=yes"
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 eval "$as_ac_var=no"
4124 rm -f conftest.err conftest.$ac_objext \
4125 conftest$ac_exeext conftest.$ac_ext
4127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4129 if test `eval echo '${'$as_ac_var'}'` = yes; then
4130 cat >>confdefs.h <<_ACEOF
4131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4134 echo "$as_me:$LINENO: checking for _doprnt" >&5
4135 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4136 if test "${ac_cv_func__doprnt+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 cat >conftest.$ac_ext <<_ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4147 #define _doprnt innocuous__doprnt
4149 /* System header to define __stub macros and hopefully few prototypes,
4150 which can conflict with char _doprnt (); below.
4151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4152 <limits.h> exists even on freestanding compilers. */
4155 # include <limits.h>
4157 # include <assert.h>
4162 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4170 /* The GNU C library defines this for functions which it implements
4171 to always fail with ENOSYS. Some functions are actually named
4172 something starting with __ and the normal name is an alias. */
4173 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4176 char (*f) () = _doprnt;
4185 return f != _doprnt;
4190 rm -f conftest.$ac_objext conftest$ac_exeext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4192 (eval $ac_link) 2>conftest.er1
4194 grep -v '^ *+' conftest.er1 >conftest.err
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } &&
4199 { ac_try='test -z "$ac_c_werror_flag"
4200 || test ! -s conftest.err'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; } &&
4206 { ac_try='test -s conftest$ac_exeext'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
4212 ac_cv_func__doprnt=yes
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4217 ac_cv_func__doprnt=no
4219 rm -f conftest.err conftest.$ac_objext \
4220 conftest$ac_exeext conftest.$ac_ext
4222 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4223 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4224 if test $ac_cv_func__doprnt = yes; then
4226 cat >>confdefs.h <<\_ACEOF
4227 #define HAVE_DOPRNT 1
4238 for ac_func in socket strerror
4240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4241 echo "$as_me:$LINENO: checking for $ac_func" >&5
4242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4243 if eval "test \"\${$as_ac_var+set}\" = set"; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4254 #define $ac_func innocuous_$ac_func
4256 /* System header to define __stub macros and hopefully few prototypes,
4257 which can conflict with char $ac_func (); below.
4258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4259 <limits.h> exists even on freestanding compilers. */
4262 # include <limits.h>
4264 # include <assert.h>
4269 /* Override any gcc2 internal prototype to avoid an error. */
4274 /* We use char because int might match the return type of a gcc2
4275 builtin and then its argument prototype would still apply. */
4277 /* The GNU C library defines this for functions which it implements
4278 to always fail with ENOSYS. Some functions are actually named
4279 something starting with __ and the normal name is an alias. */
4280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4283 char (*f) () = $ac_func;
4292 return f != $ac_func;
4297 rm -f conftest.$ac_objext conftest$ac_exeext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4299 (eval $ac_link) 2>conftest.er1
4301 grep -v '^ *+' conftest.er1 >conftest.err
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag"
4307 || test ! -s conftest.err'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 eval "$as_ac_var=yes"
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4324 eval "$as_ac_var=no"
4326 rm -f conftest.err conftest.$ac_objext \
4327 conftest$ac_exeext conftest.$ac_ext
4329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4331 if test `eval echo '${'$as_ac_var'}'` = yes; then
4332 cat >>confdefs.h <<_ACEOF
4333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4340 echo "$as_me:$LINENO: checking kernel source directory" >&5
4341 echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
4342 KSRC="/lib/modules/`uname -r`/build"
4344 # Check whether --with-kernel or --without-kernel was given.
4345 if test "${with_kernel+set}" = set; then
4346 withval="$with_kernel"
4349 # Check if kernel source directory has been configured
4350 if test -f "$KSRC/include/linux/version.h" ; then
4351 # Get kernel version number
4352 eval KVER=$(echo "#include <linux/version.h>" | cpp -I "$KSRC/include" -dM - | awk '/UTS_RELEASE/ { print $3 }')
4353 echo "$as_me:$LINENO: result: $KVER" >&5
4354 echo "${ECHO_T}$KVER" >&6
4356 echo "$as_me:$LINENO: result: $KSRC/include/linux/version.h not found" >&5
4357 echo "${ECHO_T}$KSRC/include/linux/version.h not found" >&6
4358 { { echo "$as_me:$LINENO: error: kernel source directory not specified or not configured" >&5
4359 echo "$as_me: error: kernel source directory not specified or not configured" >&2;}
4360 { (exit 1); exit 1; }; }
4366 # Check whether --with-proper or --without-proper was given.
4367 if test "${with_proper+set}" = set; then
4368 withval="$with_proper"
4369 CPPFLAGS="$CPPFLAGS -I$withval/include" ; LDFLAGS="$LDFLAGS -L$withval/.libs"
4371 if test "${ac_cv_header_prop_h+set}" = set; then
4372 echo "$as_me:$LINENO: checking for prop.h" >&5
4373 echo $ECHO_N "checking for prop.h... $ECHO_C" >&6
4374 if test "${ac_cv_header_prop_h+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 echo "$as_me:$LINENO: result: $ac_cv_header_prop_h" >&5
4378 echo "${ECHO_T}$ac_cv_header_prop_h" >&6
4380 # Is the header compilable?
4381 echo "$as_me:$LINENO: checking prop.h usability" >&5
4382 echo $ECHO_N "checking prop.h usability... $ECHO_C" >&6
4383 cat >conftest.$ac_ext <<_ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4389 $ac_includes_default
4392 rm -f conftest.$ac_objext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394 (eval $ac_compile) 2>conftest.er1
4396 grep -v '^ *+' conftest.er1 >conftest.err
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -z "$ac_c_werror_flag"
4402 || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_header_compiler=yes
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 ac_header_compiler=no
4421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4423 echo "${ECHO_T}$ac_header_compiler" >&6
4425 # Is the header present?
4426 echo "$as_me:$LINENO: checking prop.h presence" >&5
4427 echo $ECHO_N "checking prop.h presence... $ECHO_C" >&6
4428 cat >conftest.$ac_ext <<_ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4439 grep -v '^ *+' conftest.er1 >conftest.err
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } >/dev/null; then
4444 if test -s conftest.err; then
4445 ac_cpp_err=$ac_c_preproc_warn_flag
4446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4453 if test -z "$ac_cpp_err"; then
4454 ac_header_preproc=yes
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 ac_header_preproc=no
4461 rm -f conftest.err conftest.$ac_ext
4462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4463 echo "${ECHO_T}$ac_header_preproc" >&6
4465 # So? What about this header?
4466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4468 { echo "$as_me:$LINENO: WARNING: prop.h: accepted by the compiler, rejected by the preprocessor!" >&5
4469 echo "$as_me: WARNING: prop.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4470 { echo "$as_me:$LINENO: WARNING: prop.h: proceeding with the compiler's result" >&5
4471 echo "$as_me: WARNING: prop.h: proceeding with the compiler's result" >&2;}
4472 ac_header_preproc=yes
4475 { echo "$as_me:$LINENO: WARNING: prop.h: present but cannot be compiled" >&5
4476 echo "$as_me: WARNING: prop.h: present but cannot be compiled" >&2;}
4477 { echo "$as_me:$LINENO: WARNING: prop.h: check for missing prerequisite headers?" >&5
4478 echo "$as_me: WARNING: prop.h: check for missing prerequisite headers?" >&2;}
4479 { echo "$as_me:$LINENO: WARNING: prop.h: see the Autoconf documentation" >&5
4480 echo "$as_me: WARNING: prop.h: see the Autoconf documentation" >&2;}
4481 { echo "$as_me:$LINENO: WARNING: prop.h: section \"Present But Cannot Be Compiled\"" >&5
4482 echo "$as_me: WARNING: prop.h: section \"Present But Cannot Be Compiled\"" >&2;}
4483 { echo "$as_me:$LINENO: WARNING: prop.h: proceeding with the preprocessor's result" >&5
4484 echo "$as_me: WARNING: prop.h: proceeding with the preprocessor's result" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: prop.h: in the future, the compiler will take precedence" >&5
4486 echo "$as_me: WARNING: prop.h: in the future, the compiler will take precedence" >&2;}
4489 ## ------------------------------------------ ##
4490 ## Report this to the AC_PACKAGE_NAME lists. ##
4491 ## ------------------------------------------ ##
4494 sed "s/^/$as_me: WARNING: /" >&2
4497 echo "$as_me:$LINENO: checking for prop.h" >&5
4498 echo $ECHO_N "checking for prop.h... $ECHO_C" >&6
4499 if test "${ac_cv_header_prop_h+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 ac_cv_header_prop_h=$ac_header_preproc
4504 echo "$as_me:$LINENO: result: $ac_cv_header_prop_h" >&5
4505 echo "${ECHO_T}$ac_cv_header_prop_h" >&6
4508 if test $ac_cv_header_prop_h = yes; then
4514 echo "$as_me:$LINENO: checking for prop_create_socket in -lproper" >&5
4515 echo $ECHO_N "checking for prop_create_socket in -lproper... $ECHO_C" >&6
4516 if test "${ac_cv_lib_proper_prop_create_socket+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_check_lib_save_LIBS=$LIBS
4520 LIBS="-lproper $LIBS"
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4528 /* Override any gcc2 internal prototype to avoid an error. */
4532 /* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4534 char prop_create_socket ();
4538 prop_create_socket ();
4543 rm -f conftest.$ac_objext conftest$ac_exeext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545 (eval $ac_link) 2>conftest.er1
4547 grep -v '^ *+' conftest.er1 >conftest.err
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest$ac_exeext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_cv_lib_proper_prop_create_socket=yes
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 ac_cv_lib_proper_prop_create_socket=no
4572 rm -f conftest.err conftest.$ac_objext \
4573 conftest$ac_exeext conftest.$ac_ext
4574 LIBS=$ac_check_lib_save_LIBS
4576 echo "$as_me:$LINENO: result: $ac_cv_lib_proper_prop_create_socket" >&5
4577 echo "${ECHO_T}$ac_cv_lib_proper_prop_create_socket" >&6
4578 if test $ac_cv_lib_proper_prop_create_socket = yes; then
4579 cat >>confdefs.h <<_ACEOF
4580 #define HAVE_LIBPROPER 1
4583 LIBS="-lproper $LIBS"
4587 if test "${ac_cv_header_pthread_h+set}" = set; then
4588 echo "$as_me:$LINENO: checking for pthread.h" >&5
4589 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
4590 if test "${ac_cv_header_pthread_h+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
4594 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
4596 # Is the header compilable?
4597 echo "$as_me:$LINENO: checking pthread.h usability" >&5
4598 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
4599 cat >conftest.$ac_ext <<_ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 $ac_includes_default
4606 #include <pthread.h>
4608 rm -f conftest.$ac_objext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610 (eval $ac_compile) 2>conftest.er1
4612 grep -v '^ *+' conftest.er1 >conftest.err
4614 cat conftest.err >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } &&
4617 { ac_try='test -z "$ac_c_werror_flag"
4618 || test ! -s conftest.err'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; } &&
4624 { ac_try='test -s conftest.$ac_objext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 ac_header_compiler=yes
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4635 ac_header_compiler=no
4637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4639 echo "${ECHO_T}$ac_header_compiler" >&6
4641 # Is the header present?
4642 echo "$as_me:$LINENO: checking pthread.h presence" >&5
4643 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 #include <pthread.h>
4652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4655 grep -v '^ *+' conftest.er1 >conftest.err
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } >/dev/null; then
4660 if test -s conftest.err; then
4661 ac_cpp_err=$ac_c_preproc_warn_flag
4662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4669 if test -z "$ac_cpp_err"; then
4670 ac_header_preproc=yes
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 ac_header_preproc=no
4677 rm -f conftest.err conftest.$ac_ext
4678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4679 echo "${ECHO_T}$ac_header_preproc" >&6
4681 # So? What about this header?
4682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4684 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
4685 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
4687 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
4688 ac_header_preproc=yes
4691 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
4692 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
4693 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
4694 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
4695 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
4696 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
4697 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
4698 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
4699 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
4700 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
4701 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
4702 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
4705 ## ------------------------------------------ ##
4706 ## Report this to the AC_PACKAGE_NAME lists. ##
4707 ## ------------------------------------------ ##
4710 sed "s/^/$as_me: WARNING: /" >&2
4713 echo "$as_me:$LINENO: checking for pthread.h" >&5
4714 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
4715 if test "${ac_cv_header_pthread_h+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 ac_cv_header_pthread_h=$ac_header_preproc
4720 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
4721 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
4724 if test $ac_cv_header_pthread_h = yes; then
4727 { { echo "$as_me:$LINENO: error: NetFlow requires pthread" >&5
4728 echo "$as_me: error: NetFlow requires pthread" >&2;}
4729 { (exit 1); exit 1; }; }
4734 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4735 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4736 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 ac_check_lib_save_LIBS=$LIBS
4740 LIBS="-lpthread $LIBS"
4741 cat >conftest.$ac_ext <<_ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4748 /* Override any gcc2 internal prototype to avoid an error. */
4752 /* We use char because int might match the return type of a gcc2
4753 builtin and then its argument prototype would still apply. */
4754 char pthread_create ();
4763 rm -f conftest.$ac_objext conftest$ac_exeext
4764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4765 (eval $ac_link) 2>conftest.er1
4767 grep -v '^ *+' conftest.er1 >conftest.err
4769 cat conftest.err >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
4772 { ac_try='test -z "$ac_c_werror_flag"
4773 || test ! -s conftest.err'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; } &&
4779 { ac_try='test -s conftest$ac_exeext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 ac_cv_lib_pthread_pthread_create=yes
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4790 ac_cv_lib_pthread_pthread_create=no
4792 rm -f conftest.err conftest.$ac_objext \
4793 conftest$ac_exeext conftest.$ac_ext
4794 LIBS=$ac_check_lib_save_LIBS
4796 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4797 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4798 if test $ac_cv_lib_pthread_pthread_create = yes; then
4799 cat >>confdefs.h <<_ACEOF
4800 #define HAVE_LIBPTHREAD 1
4803 LIBS="-lpthread $LIBS"
4806 { { echo "$as_me:$LINENO: error: NetFlow requires pthread" >&5
4807 echo "$as_me: error: NetFlow requires pthread" >&2;}
4808 { (exit 1); exit 1; }; }
4819 # Check whether --with-mysql or --without-mysql was given.
4820 if test "${with_mysql+set}" = set; then
4821 withval="$with_mysql"
4823 if test $withval != yes
4830 echo "$as_me:$LINENO: checking for MySQL files" >&5
4831 echo $ECHO_N "checking for MySQL files... $ECHO_C" >&6
4832 for d in $dir /usr /usr/local /usr/local/mysql /opt/mysql /opt/packages/mysql
4834 if test -f $d/lib/mysql/libmysqlclient.so
4836 echo "$as_me:$LINENO: result: found mysql in $d" >&5
4837 echo "${ECHO_T}found mysql in $d" >&6
4839 MYSQLINCLUDES=${mysqldir}/include/mysql
4840 MYSQLLIBS=${mysqldir}/lib/mysql
4842 elif test -f $d/lib/libmysqlclient.so
4844 echo "$as_me:$LINENO: result: found mysql in $d" >&5
4845 echo "${ECHO_T}found mysql in $d" >&6
4847 MYSQLINCLUDES=${mysqldir}/include
4848 MYSQLLIBS=${mysqldir}/lib
4850 elif test -f $d/libmysql/.libs/libmysqlclient.so
4852 echo "$as_me:$LINENO: result: found mysql in $d" >&5
4853 echo "${ECHO_T}found mysql in $d" >&6
4855 ln -nsf ${mysqldir}/include include/mysql
4856 MYSQLINCLUDES=$PWD/include
4857 MYSQLLIBS=${mysqldir}/libmysql/.libs
4862 if test x$mysqldir = x
4864 { echo "$as_me:$LINENO: WARNING: MySQL backend not used" >&5
4865 echo "$as_me: WARNING: MySQL backend not used" >&2;}
4867 cat >>confdefs.h <<\_ACEOF
4868 #define HAVE_MYSQL 1
4872 DATABASE_DIR="${DATABASE_DIR} mysql"
4874 MYSQL_LIB="${DATABASE_LIB} -lmysqlclient "
4875 DATABASE_LIB_DIR="${DATABASE_LIB_DIR} -L${MYSQLLIBS} "
4877 DATABASE_DRIVERS="${DATABASE_DRIVERS} ../mysql/mysql_driver.o "
4879 DB_DEF="${DB_DEF} -DHAVE_MYSQL "
4885 if test -f $MYSQLLIBS/libmystrings.so
4887 DATABASE_LIB="${DATABASE_LIB} -lmystrings "
4893 echo "$as_me:$LINENO: checking for mysql_real_escape_string support" >&5
4894 echo $ECHO_N "checking for mysql_real_escape_string support... $ECHO_C" >&6
4896 MYSQL_FUNCTION_TEST=`strings ${MYSQLLIBS}/libmysqlclient.so | grep mysql_real_escape_string`
4898 if test "x$MYSQL_FUNCTION_TEST" = x
4900 EXTRA_MYSQL_DEF="OLD_MYSQL=1 "
4901 echo "$as_me:$LINENO: result: found old MySQL" >&5
4902 echo "${ECHO_T}found old MySQL" >&6
4904 echo "$as_me:$LINENO: result: found new MySQL" >&5
4905 echo "${ECHO_T}found new MySQL" >&6
4915 # Check whether --with-mysql-log-ip-as-string or --without-mysql-log-ip-as-string was given.
4916 if test "${with_mysql_log_ip_as_string+set}" = set; then
4917 withval="$with_mysql_log_ip_as_string"
4919 EXTRA_MYSQL_DEF="-D${EXTRA_MYSQL_DEF} -DIP_AS_STRING=1"
4920 { echo "$as_me:$LINENO: WARNING: the use of --with-mysql-log-ip-as-string is discouraged" >&5
4921 echo "$as_me: WARNING: the use of --with-mysql-log-ip-as-string is discouraged" >&2;}
4927 # Check whether --with-pgsql or --without-pgsql was given.
4928 if test "${with_pgsql+set}" = set; then
4929 withval="$with_pgsql"
4931 if test $withval != yes
4938 echo "$as_me:$LINENO: checking for PGSQL files" >&5
4939 echo $ECHO_N "checking for PGSQL files... $ECHO_C" >&6
4940 for d in $dir /usr /usr/local /usr/local/pgsql /opt/pgsql /opt/packages/pgsql
4942 if test -f $d/lib/pgsql/libpq.so
4944 echo "$as_me:$LINENO: result: found pgsql in $d" >&5
4945 echo "${ECHO_T}found pgsql in $d" >&6
4948 elif test -f $d/lib/libpq.so
4950 echo "$as_me:$LINENO: result: found pgsql in $d" >&5
4951 echo "${ECHO_T}found pgsql in $d" >&6
4957 if test x$pgsqldir = x
4959 { echo "$as_me:$LINENO: WARNING: PGSQL backend not used" >&5
4960 echo "$as_me: WARNING: PGSQL backend not used" >&2;}
4962 cat >>confdefs.h <<\_ACEOF
4963 #define HAVE_PGSQL 1
4966 for i in include include/postgresql include/pgsql
4968 if test -f ${pgsqldir}/$i/libpq-fe.h
4970 PGSQLINCLUDES=${pgsqldir}/$i
4974 PGSQLLIBS=${pgsqldir}/lib
4976 DATABASE_DIR="${DATABASE_DIR} pgsql"
4978 PGSQL_LIB="${DATABASE_LIB} -lpq "
4979 DATABASE_LIB_DIR="${DATABASE_LIB_DIR} -L${PGSQLLIBS} "
4981 DB_DEF="${DB_DEF} -DHAVE_PGSQL "
4992 # Check whether --with-pgsql-log-ip-as-string or --without-pgsql-log-ip-as-string was given.
4993 if test "${with_pgsql_log_ip_as_string+set}" = set; then
4994 withval="$with_pgsql_log_ip_as_string"
4996 EXTRA_PGSQL_DEF="-DIP_AS_STRING=1"
5015 if test x$mysqldir != x; then
5017 HAVE_MYSQL_FALSE='#'
5024 if test x$pgsqldir != x; then
5026 HAVE_PGSQL_FALSE='#'
5032 ac_config_files="$ac_config_files extensions/Makefile doc/Makefile conffile/Makefile libipulog/Makefile mysql/Makefile pgsql/Makefile pcap/Makefile netflow/Makefile Makefile Rules.make"
5033 cat >confcache <<\_ACEOF
5034 # This file is a shell script that caches the results of configure
5035 # tests run on this system so they can be shared between configure
5036 # scripts and configure runs, see configure's option --config-cache.
5037 # It is not useful on other systems. If it contains results you don't
5038 # want to keep, you may remove or edit it.
5040 # config.status only pays attention to the cache file if you give it
5041 # the --recheck option to rerun configure.
5043 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5044 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5049 # The following way of writing the cache mishandles newlines in values,
5050 # but we know of no workaround that is simple, portable, and efficient.
5051 # So, don't put newlines in cache variables' values.
5052 # Ultrix sh set writes to stderr and can't be redirected directly,
5053 # and sets the high bit in the cache file unless we assign to the vars.
5056 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5058 # `set' does not quote correctly, so add quotes (double-quote
5059 # substitution turns \\\\ into \\, and sed turns \\ into \).
5062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5065 # `set' quotes correctly as required by POSIX, so do not add quotes.
5067 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5076 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5078 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5079 if test -w $cache_file; then
5080 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5081 cat confcache >$cache_file
5083 echo "not updating unwritable cache $cache_file"
5088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5089 # Let make expand exec_prefix.
5090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5092 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5093 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5094 # trailing colons and then remove the whole line if VPATH becomes empty
5095 # (actually we leave an empty line to preserve line numbers).
5096 if test "x$srcdir" = x.; then
5097 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5098 s/:*\$(srcdir):*/:/;
5099 s/:*\${srcdir}:*/:/;
5101 s/^\([^=]*=[ ]*\):*/\1/;
5107 # Transform confdefs.h into DEFS.
5108 # Protect against shell expansion while executing Makefile rules.
5109 # Protect against Makefile macro expansion.
5111 # If the first sed substitution is executed (which looks for macros that
5112 # take arguments), then we branch to the quote section. Otherwise,
5113 # look for a macro that doesn't take arguments.
5114 cat >confdef2opt.sed <<\_ACEOF
5117 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5119 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5123 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5129 # We use echo to avoid assuming a particular line-breaking character.
5130 # The extra dot is to prevent the shell from consuming trailing
5131 # line-breaks from the sub-command output. A line-break within
5132 # single-quotes doesn't work because, if this script is created in a
5133 # platform that uses two characters for line-breaks (e.g., DOS), tr
5135 ac_LF_and_DOT=`echo; echo .`
5136 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5137 rm -f confdef2opt.sed
5142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5143 # 1. Remove the extension, and $U if already installed.
5144 ac_i=`echo "$ac_i" |
5145 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5147 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5148 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5152 LTLIBOBJS=$ac_ltlibobjs
5156 : ${CONFIG_STATUS=./config.status}
5157 ac_clean_files_save=$ac_clean_files
5158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5161 cat >$CONFIG_STATUS <<_ACEOF
5163 # Generated by $as_me.
5164 # Run this file to recreate the current configuration.
5165 # Compiler output produced by configure, useful for debugging
5166 # configure, is in config.log if it exists.
5171 SHELL=\${CONFIG_SHELL-$SHELL}
5174 cat >>$CONFIG_STATUS <<\_ACEOF
5175 ## --------------------- ##
5176 ## M4sh Initialization. ##
5177 ## --------------------- ##
5179 # Be Bourne compatible
5180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5183 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5184 # is contrary to our usage. Disable this feature.
5185 alias -g '${1+"$@"}'='"$@"'
5186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5189 DUALCASE=1; export DUALCASE # for MKS sh
5191 # Support unset when possible.
5192 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5199 # Work around bugs in pre-3.0 UWIN ksh.
5200 $as_unset ENV MAIL MAILPATH
5207 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5208 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5209 LC_TELEPHONE LC_TIME
5211 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5212 eval $as_var=C; export $as_var
5218 # Required to use basename.
5219 if expr a : '\(a\)' >/dev/null 2>&1; then
5225 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5226 as_basename=basename
5232 # Name of the executable.
5233 as_me=`$as_basename "$0" ||
5234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5235 X"$0" : 'X\(//\)$' \| \
5236 X"$0" : 'X\(/\)$' \| \
5237 . : '\(.\)' 2>/dev/null ||
5239 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5240 /^X\/\(\/\/\)$/{ s//\1/; q; }
5241 /^X\/\(\/\).*/{ s//\1/; q; }
5245 # PATH needs CR, and LINENO needs CR and PATH.
5246 # Avoid depending upon Character Ranges.
5247 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5248 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5249 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5250 as_cr_digits='0123456789'
5251 as_cr_alnum=$as_cr_Letters$as_cr_digits
5253 # The user is always right.
5254 if test "${PATH_SEPARATOR+set}" != set; then
5255 echo "#! /bin/sh" >conf$$.sh
5256 echo "exit 0" >>conf$$.sh
5258 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5269 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5270 test "x$as_lineno_1" != "x$as_lineno_2" &&
5271 test "x$as_lineno_3" = "x$as_lineno_2" || {
5272 # Find who we are. Look in the path if we contain no path at all
5275 *[\\/]* ) as_myself=$0 ;;
5276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5286 # We did not find ourselves, most probably we were run as `sh COMMAND'
5287 # in which case we are not to be found in the path.
5288 if test "x$as_myself" = x; then
5291 if test ! -f "$as_myself"; then
5292 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5293 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5294 { (exit 1); exit 1; }; }
5296 case $CONFIG_SHELL in
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5302 test -z "$as_dir" && as_dir=.
5303 for as_base in sh bash ksh sh5; do
5306 if ("$as_dir/$as_base" -c '
5309 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5310 test "x$as_lineno_1" != "x$as_lineno_2" &&
5311 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5312 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5313 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5314 CONFIG_SHELL=$as_dir/$as_base
5316 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5324 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5325 # uniformly replaced by the line number. The first 'sed' inserts a
5326 # line-number line before each line; the second 'sed' does the real
5327 # work. The second script uses 'N' to pair each line-number line
5328 # with the numbered line, and appends trailing '-' during
5329 # substitution so that $LINENO is not a special case at line end.
5330 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5331 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5332 sed '=' <$as_myself |
5337 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5340 s,^['$as_cr_digits']*\n,,
5342 chmod +x $as_me.lineno ||
5343 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5344 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5345 { (exit 1); exit 1; }; }
5347 # Don't try to exec as it changes $[0], causing all sort of problems
5348 # (the dirname of $[0] is not the place where we might find the
5349 # original and so on. Autoconf is especially sensible to this).
5351 # Exit status is that of the last command.
5356 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5357 *c*,-n*) ECHO_N= ECHO_C='
5359 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5360 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5363 if expr a : '\(a\)' >/dev/null 2>&1; then
5369 rm -f conf$$ conf$$.exe conf$$.file
5371 if ln -s conf$$.file conf$$ 2>/dev/null; then
5372 # We could just check for DJGPP; but this test a) works b) is more generic
5373 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5374 if test -f conf$$.exe; then
5375 # Don't use ln at all; we don't have any links
5380 elif ln conf$$.file conf$$ 2>/dev/null; then
5385 rm -f conf$$ conf$$.exe conf$$.file
5387 if mkdir -p . 2>/dev/null; then
5390 test -d ./-p && rmdir ./-p
5394 as_executable_p="test -f"
5396 # Sed expression to map a string onto a valid CPP name.
5397 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5399 # Sed expression to map a string onto a valid variable name.
5400 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5404 # We need space, tab and new line, in precisely that order.
5414 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5415 # report actual input values of CONFIG_FILES etc. instead of their
5416 # values after options handling. Logging --version etc. is OK.
5420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5421 ## Running $as_me. ##
5426 This file was extended by $as_me, which was
5427 generated by GNU Autoconf 2.59. Invocation command line was
5429 CONFIG_FILES = $CONFIG_FILES
5430 CONFIG_HEADERS = $CONFIG_HEADERS
5431 CONFIG_LINKS = $CONFIG_LINKS
5432 CONFIG_COMMANDS = $CONFIG_COMMANDS
5436 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5440 # Files that config.status was made for.
5441 if test -n "$ac_config_files"; then
5442 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5445 if test -n "$ac_config_headers"; then
5446 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5449 if test -n "$ac_config_links"; then
5450 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5453 if test -n "$ac_config_commands"; then
5454 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5457 cat >>$CONFIG_STATUS <<\_ACEOF
5460 \`$as_me' instantiates files from templates according to the
5461 current configuration.
5463 Usage: $0 [OPTIONS] [FILE]...
5465 -h, --help print this help, then exit
5466 -V, --version print version number, then exit
5467 -q, --quiet do not print progress messages
5468 -d, --debug don't remove temporary files
5469 --recheck update $as_me by reconfiguring in the same conditions
5470 --file=FILE[:TEMPLATE]
5471 instantiate the configuration file FILE
5473 Configuration files:
5476 Report bugs to <bug-autoconf@gnu.org>."
5479 cat >>$CONFIG_STATUS <<_ACEOF
5482 configured by $0, generated by GNU Autoconf 2.59,
5483 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5485 Copyright (C) 2003 Free Software Foundation, Inc.
5486 This config.status script is free software; the Free Software Foundation
5487 gives unlimited permission to copy, distribute and modify it."
5492 cat >>$CONFIG_STATUS <<\_ACEOF
5493 # If no file are specified by the user, then we need to provide default
5494 # value. By we need to know if files were specified by the user.
5500 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5501 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5509 *) # This is not an option, so the user has probably given explicit
5512 ac_need_defaults=false;;
5516 # Handling of the options.
5518 cat >>$CONFIG_STATUS <<\_ACEOF
5519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5521 --version | --vers* | -V )
5522 echo "$ac_cs_version"; exit 0 ;;
5524 # Conflict between --help and --header
5525 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5526 Try \`$0 --help' for more information." >&5
5527 echo "$as_me: error: ambiguous option: $1
5528 Try \`$0 --help' for more information." >&2;}
5529 { (exit 1); exit 1; }; };;
5530 --help | --hel | -h )
5531 echo "$ac_cs_usage"; exit 0 ;;
5532 --debug | --d* | -d )
5534 --file | --fil | --fi | --f )
5536 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5537 ac_need_defaults=false;;
5538 --header | --heade | --head | --hea )
5540 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5541 ac_need_defaults=false;;
5542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5543 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5547 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5548 Try \`$0 --help' for more information." >&5
5549 echo "$as_me: error: unrecognized option: $1
5550 Try \`$0 --help' for more information." >&2;}
5551 { (exit 1); exit 1; }; } ;;
5553 *) ac_config_targets="$ac_config_targets $1" ;;
5559 ac_configure_extra_args=
5561 if $ac_cs_silent; then
5563 ac_configure_extra_args="$ac_configure_extra_args --silent"
5567 cat >>$CONFIG_STATUS <<_ACEOF
5568 if \$ac_cs_recheck; then
5569 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5570 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5579 cat >>$CONFIG_STATUS <<\_ACEOF
5580 for ac_config_target in $ac_config_targets
5582 case "$ac_config_target" in
5583 # Handling of arguments.
5584 "extensions/Makefile" ) CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
5585 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5586 "conffile/Makefile" ) CONFIG_FILES="$CONFIG_FILES conffile/Makefile" ;;
5587 "libipulog/Makefile" ) CONFIG_FILES="$CONFIG_FILES libipulog/Makefile" ;;
5588 "mysql/Makefile" ) CONFIG_FILES="$CONFIG_FILES mysql/Makefile" ;;
5589 "pgsql/Makefile" ) CONFIG_FILES="$CONFIG_FILES pgsql/Makefile" ;;
5590 "pcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES pcap/Makefile" ;;
5591 "netflow/Makefile" ) CONFIG_FILES="$CONFIG_FILES netflow/Makefile" ;;
5592 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5593 "Rules.make" ) CONFIG_FILES="$CONFIG_FILES Rules.make" ;;
5594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5595 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5596 { (exit 1); exit 1; }; };;
5600 # If the user did not use the arguments to specify the items to instantiate,
5601 # then the envvar interface is used. Set only those that are not.
5602 # We use the long form for the default assignment because of an extremely
5603 # bizarre bug on SunOS 4.1.3.
5604 if $ac_need_defaults; then
5605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5608 # Have a temporary directory for convenience. Make it in the build tree
5609 # simply because there is no reason to put it here, and in addition,
5610 # creating and moving files from /tmp can sometimes cause problems.
5611 # Create a temporary directory, and hook for its removal unless debugging.
5614 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5615 trap '{ (exit 1); exit 1; }' 1 2 13 15
5618 # Create a (secure) tmp directory for tmp files.
5621 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5622 test -n "$tmp" && test -d "$tmp"
5625 tmp=./confstat$$-$RANDOM
5626 (umask 077 && mkdir $tmp)
5629 echo "$me: cannot create a temporary directory in ." >&2
5630 { (exit 1); exit 1; }
5635 cat >>$CONFIG_STATUS <<_ACEOF
5638 # CONFIG_FILES section.
5641 # No need to generate the scripts if there are no CONFIG_FILES.
5642 # This happens for instance when ./config.status config.h
5643 if test -n "\$CONFIG_FILES"; then
5644 # Protect against being on the right side of a sed subst in config.status.
5645 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5646 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5647 s,@SHELL@,$SHELL,;t t
5648 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5649 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5650 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5651 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5652 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5653 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5654 s,@exec_prefix@,$exec_prefix,;t t
5655 s,@prefix@,$prefix,;t t
5656 s,@program_transform_name@,$program_transform_name,;t t
5657 s,@bindir@,$bindir,;t t
5658 s,@sbindir@,$sbindir,;t t
5659 s,@libexecdir@,$libexecdir,;t t
5660 s,@datadir@,$datadir,;t t
5661 s,@sysconfdir@,$sysconfdir,;t t
5662 s,@sharedstatedir@,$sharedstatedir,;t t
5663 s,@localstatedir@,$localstatedir,;t t
5664 s,@libdir@,$libdir,;t t
5665 s,@includedir@,$includedir,;t t
5666 s,@oldincludedir@,$oldincludedir,;t t
5667 s,@infodir@,$infodir,;t t
5668 s,@mandir@,$mandir,;t t
5669 s,@build_alias@,$build_alias,;t t
5670 s,@host_alias@,$host_alias,;t t
5671 s,@target_alias@,$target_alias,;t t
5673 s,@ECHO_C@,$ECHO_C,;t t
5674 s,@ECHO_N@,$ECHO_N,;t t
5675 s,@ECHO_T@,$ECHO_T,;t t
5677 s,@SET_MAKE@,$SET_MAKE,;t t
5679 s,@CFLAGS@,$CFLAGS,;t t
5680 s,@LDFLAGS@,$LDFLAGS,;t t
5681 s,@CPPFLAGS@,$CPPFLAGS,;t t
5682 s,@ac_ct_CC@,$ac_ct_CC,;t t
5683 s,@EXEEXT@,$EXEEXT,;t t
5684 s,@OBJEXT@,$OBJEXT,;t t
5686 s,@ac_ct_LD@,$ac_ct_LD,;t t
5687 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5688 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5689 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5691 s,@EGREP@,$EGREP,;t t
5694 s,@MYSQLINCLUDES@,$MYSQLINCLUDES,;t t
5695 s,@MYSQL_LIB@,$MYSQL_LIB,;t t
5696 s,@PGSQLINCLUDES@,$PGSQLINCLUDES,;t t
5697 s,@PGSQL_LIB@,$PGSQL_LIB,;t t
5698 s,@DATABASE_DIR@,$DATABASE_DIR,;t t
5699 s,@DATABASE_LIB@,$DATABASE_LIB,;t t
5700 s,@DATABASE_LIB_DIR@,$DATABASE_LIB_DIR,;t t
5701 s,@DB_DEF@,$DB_DEF,;t t
5702 s,@EXTRA_MYSQL_DEF@,$EXTRA_MYSQL_DEF,;t t
5703 s,@EXTRA_PGSQL_DEF@,$EXTRA_PGSQL_DEF,;t t
5704 s,@DATABASE_DRIVERS@,$DATABASE_DRIVERS,;t t
5705 s,@HAVE_PCAP_H@,$HAVE_PCAP_H,;t t
5706 s,@HAVE_MYSQL_TRUE@,$HAVE_MYSQL_TRUE,;t t
5707 s,@HAVE_MYSQL_FALSE@,$HAVE_MYSQL_FALSE,;t t
5708 s,@HAVE_PGSQL_TRUE@,$HAVE_PGSQL_TRUE,;t t
5709 s,@HAVE_PGSQL_FALSE@,$HAVE_PGSQL_FALSE,;t t
5710 s,@LIBOBJS@,$LIBOBJS,;t t
5711 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5716 cat >>$CONFIG_STATUS <<\_ACEOF
5717 # Split the substitutions into bite-sized pieces for seds with
5718 # small command number limits, like on Digital OSF/1 and HP-UX.
5720 ac_sed_frag=1 # Number of current file.
5721 ac_beg=1 # First line for current file.
5722 ac_end=$ac_max_sed_lines # Line after last line for current file.
5725 while $ac_more_lines; do
5726 if test $ac_beg -gt 1; then
5727 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5729 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5731 if test ! -s $tmp/subs.frag; then
5734 # The purpose of the label and of the branching condition is to
5735 # speed up the sed processing (if there are no `@' at all, there
5736 # is no need to browse any of the substitutions).
5737 # These are the two extra sed commands mentioned above.
5739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5740 if test -z "$ac_sed_cmds"; then
5741 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5743 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5745 ac_sed_frag=`expr $ac_sed_frag + 1`
5747 ac_end=`expr $ac_end + $ac_max_sed_lines`
5750 if test -z "$ac_sed_cmds"; then
5753 fi # test -n "$CONFIG_FILES"
5756 cat >>$CONFIG_STATUS <<\_ACEOF
5757 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5758 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5760 - | *:- | *:-:* ) # input from stdin
5762 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5763 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5764 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5765 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5766 * ) ac_file_in=$ac_file.in ;;
5769 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5770 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5772 X"$ac_file" : 'X\(//\)[^/]' \| \
5773 X"$ac_file" : 'X\(//\)$' \| \
5774 X"$ac_file" : 'X\(/\)' \| \
5775 . : '\(.\)' 2>/dev/null ||
5777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5779 /^X\(\/\/\)$/{ s//\1/; q; }
5780 /^X\(\/\).*/{ s//\1/; q; }
5782 { if $as_mkdir_p; then
5787 while test ! -d "$as_dir"; do
5788 as_dirs="$as_dir $as_dirs"
5789 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5791 X"$as_dir" : 'X\(//\)[^/]' \| \
5792 X"$as_dir" : 'X\(//\)$' \| \
5793 X"$as_dir" : 'X\(/\)' \| \
5794 . : '\(.\)' 2>/dev/null ||
5796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5798 /^X\(\/\/\)$/{ s//\1/; q; }
5799 /^X\(\/\).*/{ s//\1/; q; }
5802 test ! -n "$as_dirs" || mkdir $as_dirs
5803 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5804 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5805 { (exit 1); exit 1; }; }; }
5809 if test "$ac_dir" != .; then
5810 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5811 # A "../" for each directory in $ac_dir_suffix.
5812 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5814 ac_dir_suffix= ac_top_builddir=
5818 .) # No --srcdir option. We are building in place.
5820 if test -z "$ac_top_builddir"; then
5823 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5825 [\\/]* | ?:[\\/]* ) # Absolute path.
5826 ac_srcdir=$srcdir$ac_dir_suffix;
5827 ac_top_srcdir=$srcdir ;;
5829 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5830 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5833 # Do not use `cd foo && pwd` to compute absolute paths, because
5834 # the directories may not exist.
5836 .) ac_abs_builddir="$ac_dir";;
5839 .) ac_abs_builddir=`pwd`;;
5840 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5841 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5844 case $ac_abs_builddir in
5845 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5847 case ${ac_top_builddir}. in
5848 .) ac_abs_top_builddir=$ac_abs_builddir;;
5849 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5850 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5853 case $ac_abs_builddir in
5854 .) ac_abs_srcdir=$ac_srcdir;;
5857 .) ac_abs_srcdir=$ac_abs_builddir;;
5858 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5859 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5862 case $ac_abs_builddir in
5863 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5865 case $ac_top_srcdir in
5866 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5867 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5868 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5874 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5875 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5878 if test x"$ac_file" != x-; then
5879 { echo "$as_me:$LINENO: creating $ac_file" >&5
5880 echo "$as_me: creating $ac_file" >&6;}
5883 # Let's still pretend it is `configure' which instantiates (i.e., don't
5884 # use $as_me), people would be surprised to read:
5885 # /* config.h. Generated by config.status. */
5886 if test x"$ac_file" = x-; then
5889 configure_input="$ac_file. "
5891 configure_input=$configure_input"Generated from `echo $ac_file_in |
5892 sed 's,.*/,,'` by configure."
5894 # First look for the input files in the build tree, otherwise in the
5896 ac_file_inputs=`IFS=:
5897 for f in $ac_file_in; do
5899 -) echo $tmp/stdin ;;
5901 # Absolute (can't be DOS-style, as IFS=:)
5902 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5903 echo "$as_me: error: cannot find input file: $f" >&2;}
5904 { (exit 1); exit 1; }; }
5907 if test -f "$f"; then
5910 elif test -f "$srcdir/$f"; then
5915 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5916 echo "$as_me: error: cannot find input file: $f" >&2;}
5917 { (exit 1); exit 1; }; }
5920 done` || { (exit 1); exit 1; }
5922 cat >>$CONFIG_STATUS <<_ACEOF
5926 cat >>$CONFIG_STATUS <<\_ACEOF
5928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5929 s,@configure_input@,$configure_input,;t t
5930 s,@srcdir@,$ac_srcdir,;t t
5931 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5932 s,@top_srcdir@,$ac_top_srcdir,;t t
5933 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5934 s,@builddir@,$ac_builddir,;t t
5935 s,@abs_builddir@,$ac_abs_builddir,;t t
5936 s,@top_builddir@,$ac_top_builddir,;t t
5937 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5938 s,@INSTALL@,$ac_INSTALL,;t t
5939 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5941 if test x"$ac_file" != x-; then
5942 mv $tmp/out $ac_file
5951 cat >>$CONFIG_STATUS <<\_ACEOF
5953 { (exit 0); exit 0; }
5955 chmod +x $CONFIG_STATUS
5956 ac_clean_files=$ac_clean_files_save
5959 # configure is writing to config.log, and then calls config.status.
5960 # config.status does its own redirection, appending to config.log.
5961 # Unfortunately, on DOS this fails, as config.log is still kept open
5962 # by configure, so config.status won't be able to write to it; its
5963 # output is simply discarded. So we exec the FD to /dev/null,
5964 # effectively closing config.log, so it can be properly (re)opened and
5965 # appended to by config.status. When coming back to configure, we
5966 # need to make the FD available again.
5967 if test "$no_create" != yes; then
5969 ac_config_status_args=
5970 test "$silent" = yes &&
5971 ac_config_status_args="$ac_config_status_args --quiet"
5973 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5975 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5976 # would make configure fail if this is the last instruction.
5977 $ac_cs_success || { (exit 1); exit 1; }