cleanup
[distributedratelimiting.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="ulogd.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 SET_MAKE
654 CC
655 CFLAGS
656 LDFLAGS
657 CPPFLAGS
658 ac_ct_CC
659 EXEEXT
660 OBJEXT
661 LD
662 INSTALL_PROGRAM
663 INSTALL_SCRIPT
664 INSTALL_DATA
665 CPP
666 GREP
667 EGREP
668 MYSQLINCLUDES
669 MYSQL_LIB
670 XMLINCLUDES
671 XMLLIBS
672 ZKLIBS
673 ZKFLAGS
674 PGSQLINCLUDES
675 PGSQL_LIB
676 SQLITE3INCLUDES
677 SQLITE3_LIB
678 DATABASE_DIR
679 DATABASE_LIB
680 DATABASE_LIB_DIR
681 DB_DEF
682 EXTRA_MYSQL_DEF
683 EXTRA_PGSQL_DEF
684 EXTRA_SQLITE3_DEF
685 DATABASE_DRIVERS
686 HAVE_PCAP_H
687 HAVE_MYSQL_TRUE
688 HAVE_MYSQL_FALSE
689 HAVE_PGSQL_TRUE
690 HAVE_PGSQL_FALSE
691 HAVE_SQLITE3_TRUE
692 HAVE_SQLITE3_FALSE
693 LIBOBJS
694 LTLIBOBJS'
695 ac_subst_files=''
696       ac_precious_vars='build_alias
697 host_alias
698 target_alias
699 CC
700 CFLAGS
701 LDFLAGS
702 LIBS
703 CPPFLAGS
704 CPP'
705
706
707 # Initialize some variables set by options.
708 ac_init_help=
709 ac_init_version=false
710 # The variables have the same names as the options, with
711 # dashes changed to underlines.
712 cache_file=/dev/null
713 exec_prefix=NONE
714 no_create=
715 no_recursion=
716 prefix=NONE
717 program_prefix=NONE
718 program_suffix=NONE
719 program_transform_name=s,x,x,
720 silent=
721 site=
722 srcdir=
723 verbose=
724 x_includes=NONE
725 x_libraries=NONE
726
727 # Installation directory options.
728 # These are left unexpanded so users can "make install exec_prefix=/foo"
729 # and all the variables that are supposed to be based on exec_prefix
730 # by default will actually change.
731 # Use braces instead of parens because sh, perl, etc. also accept them.
732 # (The list follows the same order as the GNU Coding Standards.)
733 bindir='${exec_prefix}/bin'
734 sbindir='${exec_prefix}/sbin'
735 libexecdir='${exec_prefix}/libexec'
736 datarootdir='${prefix}/share'
737 datadir='${datarootdir}'
738 sysconfdir='${prefix}/etc'
739 sharedstatedir='${prefix}/com'
740 localstatedir='${prefix}/var'
741 includedir='${prefix}/include'
742 oldincludedir='/usr/include'
743 docdir='${datarootdir}/doc/${PACKAGE}'
744 infodir='${datarootdir}/info'
745 htmldir='${docdir}'
746 dvidir='${docdir}'
747 pdfdir='${docdir}'
748 psdir='${docdir}'
749 libdir='${exec_prefix}/lib'
750 localedir='${datarootdir}/locale'
751 mandir='${datarootdir}/man'
752
753 ac_prev=
754 ac_dashdash=
755 for ac_option
756 do
757   # If the previous option needs an argument, assign it.
758   if test -n "$ac_prev"; then
759     eval $ac_prev=\$ac_option
760     ac_prev=
761     continue
762   fi
763
764   case $ac_option in
765   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
766   *)    ac_optarg=yes ;;
767   esac
768
769   # Accept the important Cygnus configure options, so we can diagnose typos.
770
771   case $ac_dashdash$ac_option in
772   --)
773     ac_dashdash=yes ;;
774
775   -bindir | --bindir | --bindi | --bind | --bin | --bi)
776     ac_prev=bindir ;;
777   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
778     bindir=$ac_optarg ;;
779
780   -build | --build | --buil | --bui | --bu)
781     ac_prev=build_alias ;;
782   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
783     build_alias=$ac_optarg ;;
784
785   -cache-file | --cache-file | --cache-fil | --cache-fi \
786   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
787     ac_prev=cache_file ;;
788   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
789   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
790     cache_file=$ac_optarg ;;
791
792   --config-cache | -C)
793     cache_file=config.cache ;;
794
795   -datadir | --datadir | --datadi | --datad)
796     ac_prev=datadir ;;
797   -datadir=* | --datadir=* | --datadi=* | --datad=*)
798     datadir=$ac_optarg ;;
799
800   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
801   | --dataroo | --dataro | --datar)
802     ac_prev=datarootdir ;;
803   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
804   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
805     datarootdir=$ac_optarg ;;
806
807   -disable-* | --disable-*)
808     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
809     # Reject names that are not valid shell variable names.
810     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
812    { (exit 1); exit 1; }; }
813     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
814     eval enable_$ac_feature=no ;;
815
816   -docdir | --docdir | --docdi | --doc | --do)
817     ac_prev=docdir ;;
818   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
819     docdir=$ac_optarg ;;
820
821   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
822     ac_prev=dvidir ;;
823   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
824     dvidir=$ac_optarg ;;
825
826   -enable-* | --enable-*)
827     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
828     # Reject names that are not valid shell variable names.
829     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
830       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831    { (exit 1); exit 1; }; }
832     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
833     eval enable_$ac_feature=\$ac_optarg ;;
834
835   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
836   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
837   | --exec | --exe | --ex)
838     ac_prev=exec_prefix ;;
839   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
840   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
841   | --exec=* | --exe=* | --ex=*)
842     exec_prefix=$ac_optarg ;;
843
844   -gas | --gas | --ga | --g)
845     # Obsolete; use --with-gas.
846     with_gas=yes ;;
847
848   -help | --help | --hel | --he | -h)
849     ac_init_help=long ;;
850   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
851     ac_init_help=recursive ;;
852   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
853     ac_init_help=short ;;
854
855   -host | --host | --hos | --ho)
856     ac_prev=host_alias ;;
857   -host=* | --host=* | --hos=* | --ho=*)
858     host_alias=$ac_optarg ;;
859
860   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
861     ac_prev=htmldir ;;
862   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
863   | --ht=*)
864     htmldir=$ac_optarg ;;
865
866   -includedir | --includedir | --includedi | --included | --include \
867   | --includ | --inclu | --incl | --inc)
868     ac_prev=includedir ;;
869   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
870   | --includ=* | --inclu=* | --incl=* | --inc=*)
871     includedir=$ac_optarg ;;
872
873   -infodir | --infodir | --infodi | --infod | --info | --inf)
874     ac_prev=infodir ;;
875   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
876     infodir=$ac_optarg ;;
877
878   -libdir | --libdir | --libdi | --libd)
879     ac_prev=libdir ;;
880   -libdir=* | --libdir=* | --libdi=* | --libd=*)
881     libdir=$ac_optarg ;;
882
883   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
884   | --libexe | --libex | --libe)
885     ac_prev=libexecdir ;;
886   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
887   | --libexe=* | --libex=* | --libe=*)
888     libexecdir=$ac_optarg ;;
889
890   -localedir | --localedir | --localedi | --localed | --locale)
891     ac_prev=localedir ;;
892   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
893     localedir=$ac_optarg ;;
894
895   -localstatedir | --localstatedir | --localstatedi | --localstated \
896   | --localstate | --localstat | --localsta | --localst | --locals)
897     ac_prev=localstatedir ;;
898   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
899   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
900     localstatedir=$ac_optarg ;;
901
902   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
903     ac_prev=mandir ;;
904   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
905     mandir=$ac_optarg ;;
906
907   -nfp | --nfp | --nf)
908     # Obsolete; use --without-fp.
909     with_fp=no ;;
910
911   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
912   | --no-cr | --no-c | -n)
913     no_create=yes ;;
914
915   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
916   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
917     no_recursion=yes ;;
918
919   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
920   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
921   | --oldin | --oldi | --old | --ol | --o)
922     ac_prev=oldincludedir ;;
923   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
924   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
925   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
926     oldincludedir=$ac_optarg ;;
927
928   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
929     ac_prev=prefix ;;
930   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
931     prefix=$ac_optarg ;;
932
933   -program-prefix | --program-prefix | --program-prefi | --program-pref \
934   | --program-pre | --program-pr | --program-p)
935     ac_prev=program_prefix ;;
936   -program-prefix=* | --program-prefix=* | --program-prefi=* \
937   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
938     program_prefix=$ac_optarg ;;
939
940   -program-suffix | --program-suffix | --program-suffi | --program-suff \
941   | --program-suf | --program-su | --program-s)
942     ac_prev=program_suffix ;;
943   -program-suffix=* | --program-suffix=* | --program-suffi=* \
944   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
945     program_suffix=$ac_optarg ;;
946
947   -program-transform-name | --program-transform-name \
948   | --program-transform-nam | --program-transform-na \
949   | --program-transform-n | --program-transform- \
950   | --program-transform | --program-transfor \
951   | --program-transfo | --program-transf \
952   | --program-trans | --program-tran \
953   | --progr-tra | --program-tr | --program-t)
954     ac_prev=program_transform_name ;;
955   -program-transform-name=* | --program-transform-name=* \
956   | --program-transform-nam=* | --program-transform-na=* \
957   | --program-transform-n=* | --program-transform-=* \
958   | --program-transform=* | --program-transfor=* \
959   | --program-transfo=* | --program-transf=* \
960   | --program-trans=* | --program-tran=* \
961   | --progr-tra=* | --program-tr=* | --program-t=*)
962     program_transform_name=$ac_optarg ;;
963
964   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
965     ac_prev=pdfdir ;;
966   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
967     pdfdir=$ac_optarg ;;
968
969   -psdir | --psdir | --psdi | --psd | --ps)
970     ac_prev=psdir ;;
971   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
972     psdir=$ac_optarg ;;
973
974   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
975   | -silent | --silent | --silen | --sile | --sil)
976     silent=yes ;;
977
978   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
979     ac_prev=sbindir ;;
980   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
981   | --sbi=* | --sb=*)
982     sbindir=$ac_optarg ;;
983
984   -sharedstatedir | --sharedstatedir | --sharedstatedi \
985   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
986   | --sharedst | --shareds | --shared | --share | --shar \
987   | --sha | --sh)
988     ac_prev=sharedstatedir ;;
989   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
990   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
991   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
992   | --sha=* | --sh=*)
993     sharedstatedir=$ac_optarg ;;
994
995   -site | --site | --sit)
996     ac_prev=site ;;
997   -site=* | --site=* | --sit=*)
998     site=$ac_optarg ;;
999
1000   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1001     ac_prev=srcdir ;;
1002   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1003     srcdir=$ac_optarg ;;
1004
1005   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1006   | --syscon | --sysco | --sysc | --sys | --sy)
1007     ac_prev=sysconfdir ;;
1008   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1009   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1010     sysconfdir=$ac_optarg ;;
1011
1012   -target | --target | --targe | --targ | --tar | --ta | --t)
1013     ac_prev=target_alias ;;
1014   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1015     target_alias=$ac_optarg ;;
1016
1017   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1018     verbose=yes ;;
1019
1020   -version | --version | --versio | --versi | --vers | -V)
1021     ac_init_version=: ;;
1022
1023   -with-* | --with-*)
1024     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027       { echo "$as_me: error: invalid package name: $ac_package" >&2
1028    { (exit 1); exit 1; }; }
1029     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1030     eval with_$ac_package=\$ac_optarg ;;
1031
1032   -without-* | --without-*)
1033     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1034     # Reject names that are not valid shell variable names.
1035     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036       { echo "$as_me: error: invalid package name: $ac_package" >&2
1037    { (exit 1); exit 1; }; }
1038     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1039     eval with_$ac_package=no ;;
1040
1041   --x)
1042     # Obsolete; use --with-x.
1043     with_x=yes ;;
1044
1045   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1046   | --x-incl | --x-inc | --x-in | --x-i)
1047     ac_prev=x_includes ;;
1048   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1049   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1050     x_includes=$ac_optarg ;;
1051
1052   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1053   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1054     ac_prev=x_libraries ;;
1055   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1056   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1057     x_libraries=$ac_optarg ;;
1058
1059   -*) { echo "$as_me: error: unrecognized option: $ac_option
1060 Try \`$0 --help' for more information." >&2
1061    { (exit 1); exit 1; }; }
1062     ;;
1063
1064   *=*)
1065     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1068       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1069    { (exit 1); exit 1; }; }
1070     eval $ac_envvar=\$ac_optarg
1071     export $ac_envvar ;;
1072
1073   *)
1074     # FIXME: should be removed in autoconf 3.0.
1075     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1076     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1078     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1079     ;;
1080
1081   esac
1082 done
1083
1084 if test -n "$ac_prev"; then
1085   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1086   { echo "$as_me: error: missing argument to $ac_option" >&2
1087    { (exit 1); exit 1; }; }
1088 fi
1089
1090 # Be sure to have absolute directory names.
1091 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1092                 datadir sysconfdir sharedstatedir localstatedir includedir \
1093                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1094                 libdir localedir mandir
1095 do
1096   eval ac_val=\$$ac_var
1097   case $ac_val in
1098     [\\/$]* | ?:[\\/]* )  continue;;
1099     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1100   esac
1101   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1102    { (exit 1); exit 1; }; }
1103 done
1104
1105 # There might be people who depend on the old broken behavior: `$host'
1106 # used to hold the argument of --host etc.
1107 # FIXME: To remove some day.
1108 build=$build_alias
1109 host=$host_alias
1110 target=$target_alias
1111
1112 # FIXME: To remove some day.
1113 if test "x$host_alias" != x; then
1114   if test "x$build_alias" = x; then
1115     cross_compiling=maybe
1116     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1117     If a cross compiler is detected then cross compile mode will be used." >&2
1118   elif test "x$build_alias" != "x$host_alias"; then
1119     cross_compiling=yes
1120   fi
1121 fi
1122
1123 ac_tool_prefix=
1124 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1125
1126 test "$silent" = yes && exec 6>/dev/null
1127
1128
1129 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1130 ac_ls_di=`ls -di .` &&
1131 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1132   { echo "$as_me: error: Working directory cannot be determined" >&2
1133    { (exit 1); exit 1; }; }
1134 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1135   { echo "$as_me: error: pwd does not report name of working directory" >&2
1136    { (exit 1); exit 1; }; }
1137
1138
1139 # Find the source files, if location was not specified.
1140 if test -z "$srcdir"; then
1141   ac_srcdir_defaulted=yes
1142   # Try the directory containing this script, then the parent directory.
1143   ac_confdir=`$as_dirname -- "$0" ||
1144 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1145          X"$0" : 'X\(//\)[^/]' \| \
1146          X"$0" : 'X\(//\)$' \| \
1147          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1148 echo X"$0" |
1149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1150             s//\1/
1151             q
1152           }
1153           /^X\(\/\/\)[^/].*/{
1154             s//\1/
1155             q
1156           }
1157           /^X\(\/\/\)$/{
1158             s//\1/
1159             q
1160           }
1161           /^X\(\/\).*/{
1162             s//\1/
1163             q
1164           }
1165           s/.*/./; q'`
1166   srcdir=$ac_confdir
1167   if test ! -r "$srcdir/$ac_unique_file"; then
1168     srcdir=..
1169   fi
1170 else
1171   ac_srcdir_defaulted=no
1172 fi
1173 if test ! -r "$srcdir/$ac_unique_file"; then
1174   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1175   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1176    { (exit 1); exit 1; }; }
1177 fi
1178 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1179 ac_abs_confdir=`(
1180         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1181    { (exit 1); exit 1; }; }
1182         pwd)`
1183 # When building in place, set srcdir=.
1184 if test "$ac_abs_confdir" = "$ac_pwd"; then
1185   srcdir=.
1186 fi
1187 # Remove unnecessary trailing slashes from srcdir.
1188 # Double slashes in file names in object file debugging info
1189 # mess up M-x gdb in Emacs.
1190 case $srcdir in
1191 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1192 esac
1193 for ac_var in $ac_precious_vars; do
1194   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1195   eval ac_env_${ac_var}_value=\$${ac_var}
1196   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1197   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1198 done
1199
1200 #
1201 # Report the --help message.
1202 #
1203 if test "$ac_init_help" = "long"; then
1204   # Omit some internal or obsolete options to make the list less imposing.
1205   # This message is too long to be a string in the A/UX 3.1 sh.
1206   cat <<_ACEOF
1207 \`configure' configures this package to adapt to many kinds of systems.
1208
1209 Usage: $0 [OPTION]... [VAR=VALUE]...
1210
1211 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1212 VAR=VALUE.  See below for descriptions of some of the useful variables.
1213
1214 Defaults for the options are specified in brackets.
1215
1216 Configuration:
1217   -h, --help              display this help and exit
1218       --help=short        display options specific to this package
1219       --help=recursive    display the short help of all the included packages
1220   -V, --version           display version information and exit
1221   -q, --quiet, --silent   do not print \`checking...' messages
1222       --cache-file=FILE   cache test results in FILE [disabled]
1223   -C, --config-cache      alias for \`--cache-file=config.cache'
1224   -n, --no-create         do not create output files
1225       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1226
1227 Installation directories:
1228   --prefix=PREFIX         install architecture-independent files in PREFIX
1229                           [$ac_default_prefix]
1230   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1231                           [PREFIX]
1232
1233 By default, \`make install' will install all the files in
1234 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1235 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1236 for instance \`--prefix=\$HOME'.
1237
1238 For better control, use the options below.
1239
1240 Fine tuning of the installation directories:
1241   --bindir=DIR           user executables [EPREFIX/bin]
1242   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1243   --libexecdir=DIR       program executables [EPREFIX/libexec]
1244   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1245   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1246   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1247   --libdir=DIR           object code libraries [EPREFIX/lib]
1248   --includedir=DIR       C header files [PREFIX/include]
1249   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1250   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1251   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1252   --infodir=DIR          info documentation [DATAROOTDIR/info]
1253   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1254   --mandir=DIR           man documentation [DATAROOTDIR/man]
1255   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1256   --htmldir=DIR          html documentation [DOCDIR]
1257   --dvidir=DIR           dvi documentation [DOCDIR]
1258   --pdfdir=DIR           pdf documentation [DOCDIR]
1259   --psdir=DIR            ps documentation [DOCDIR]
1260 _ACEOF
1261
1262   cat <<\_ACEOF
1263 _ACEOF
1264 fi
1265
1266 if test -n "$ac_init_help"; then
1267
1268   cat <<\_ACEOF
1269
1270 Optional Packages:
1271   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1272   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1273 --with-proper=<directory>               proper installed in <directory>
1274 --with-mysql=<directory>                mysql installed in <directory>
1275 --with-mysql-log-ip-as-string           log IPs as string rather than as
1276                                         unsigned long-integer.
1277
1278 --with-libxml=<directory>               libxml2 installed in <directory>
1279 --with-zookeeperlib=<directory>         zookeeper shared object located in <directory>
1280 --with-pgsql=<directory>                pgsql installed in <directory>
1281 --with-pgsql-log-ip-as-string           log IPs as string rather than as interger
1282
1283 --with-sqlite3=<directory>              sqlite3 installed in <directory>
1284 --with-sqlite3-log-ip-as-string         log IPs as string rather than as
1285                                                 unsigned long-integer.
1286
1287
1288 Some influential environment variables:
1289   CC          C compiler command
1290   CFLAGS      C compiler flags
1291   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1292               nonstandard directory <lib dir>
1293   LIBS        libraries to pass to the linker, e.g. -l<library>
1294   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1295               you have headers in a nonstandard directory <include dir>
1296   CPP         C preprocessor
1297
1298 Use these variables to override the choices made by `configure' or to help
1299 it to find libraries and programs with nonstandard names/locations.
1300
1301 _ACEOF
1302 ac_status=$?
1303 fi
1304
1305 if test "$ac_init_help" = "recursive"; then
1306   # If there are subdirs, report their specific --help.
1307   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1308     test -d "$ac_dir" || continue
1309     ac_builddir=.
1310
1311 case "$ac_dir" in
1312 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1313 *)
1314   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1315   # A ".." for each directory in $ac_dir_suffix.
1316   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1317   case $ac_top_builddir_sub in
1318   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1319   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1320   esac ;;
1321 esac
1322 ac_abs_top_builddir=$ac_pwd
1323 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1324 # for backward compatibility:
1325 ac_top_builddir=$ac_top_build_prefix
1326
1327 case $srcdir in
1328   .)  # We are building in place.
1329     ac_srcdir=.
1330     ac_top_srcdir=$ac_top_builddir_sub
1331     ac_abs_top_srcdir=$ac_pwd ;;
1332   [\\/]* | ?:[\\/]* )  # Absolute name.
1333     ac_srcdir=$srcdir$ac_dir_suffix;
1334     ac_top_srcdir=$srcdir
1335     ac_abs_top_srcdir=$srcdir ;;
1336   *) # Relative name.
1337     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1338     ac_top_srcdir=$ac_top_build_prefix$srcdir
1339     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1340 esac
1341 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1342
1343     cd "$ac_dir" || { ac_status=$?; continue; }
1344     # Check for guested configure.
1345     if test -f "$ac_srcdir/configure.gnu"; then
1346       echo &&
1347       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1348     elif test -f "$ac_srcdir/configure"; then
1349       echo &&
1350       $SHELL "$ac_srcdir/configure" --help=recursive
1351     else
1352       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1353     fi || ac_status=$?
1354     cd "$ac_pwd" || { ac_status=$?; break; }
1355   done
1356 fi
1357
1358 test -n "$ac_init_help" && exit $ac_status
1359 if $ac_init_version; then
1360   cat <<\_ACEOF
1361 configure
1362 generated by GNU Autoconf 2.61
1363
1364 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1365 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1366 This configure script is free software; the Free Software Foundation
1367 gives unlimited permission to copy, distribute and modify it.
1368 _ACEOF
1369   exit
1370 fi
1371 cat >config.log <<_ACEOF
1372 This file contains any messages produced by compilers while
1373 running configure, to aid debugging if configure makes a mistake.
1374
1375 It was created by $as_me, which was
1376 generated by GNU Autoconf 2.61.  Invocation command line was
1377
1378   $ $0 $@
1379
1380 _ACEOF
1381 exec 5>>config.log
1382 {
1383 cat <<_ASUNAME
1384 ## --------- ##
1385 ## Platform. ##
1386 ## --------- ##
1387
1388 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1389 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1390 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1391 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1392 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1393
1394 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1395 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1396
1397 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1398 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1399 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1400 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1401 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1402 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1403 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1404
1405 _ASUNAME
1406
1407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1408 for as_dir in $PATH
1409 do
1410   IFS=$as_save_IFS
1411   test -z "$as_dir" && as_dir=.
1412   echo "PATH: $as_dir"
1413 done
1414 IFS=$as_save_IFS
1415
1416 } >&5
1417
1418 cat >&5 <<_ACEOF
1419
1420
1421 ## ----------- ##
1422 ## Core tests. ##
1423 ## ----------- ##
1424
1425 _ACEOF
1426
1427
1428 # Keep a trace of the command line.
1429 # Strip out --no-create and --no-recursion so they do not pile up.
1430 # Strip out --silent because we don't want to record it for future runs.
1431 # Also quote any args containing shell meta-characters.
1432 # Make two passes to allow for proper duplicate-argument suppression.
1433 ac_configure_args=
1434 ac_configure_args0=
1435 ac_configure_args1=
1436 ac_must_keep_next=false
1437 for ac_pass in 1 2
1438 do
1439   for ac_arg
1440   do
1441     case $ac_arg in
1442     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1443     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1444     | -silent | --silent | --silen | --sile | --sil)
1445       continue ;;
1446     *\'*)
1447       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1448     esac
1449     case $ac_pass in
1450     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1451     2)
1452       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1453       if test $ac_must_keep_next = true; then
1454         ac_must_keep_next=false # Got value, back to normal.
1455       else
1456         case $ac_arg in
1457           *=* | --config-cache | -C | -disable-* | --disable-* \
1458           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1459           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1460           | -with-* | --with-* | -without-* | --without-* | --x)
1461             case "$ac_configure_args0 " in
1462               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1463             esac
1464             ;;
1465           -* ) ac_must_keep_next=true ;;
1466         esac
1467       fi
1468       ac_configure_args="$ac_configure_args '$ac_arg'"
1469       ;;
1470     esac
1471   done
1472 done
1473 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1474 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1475
1476 # When interrupted or exit'd, cleanup temporary files, and complete
1477 # config.log.  We remove comments because anyway the quotes in there
1478 # would cause problems or look ugly.
1479 # WARNING: Use '\'' to represent an apostrophe within the trap.
1480 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1481 trap 'exit_status=$?
1482   # Save into config.log some information that might help in debugging.
1483   {
1484     echo
1485
1486     cat <<\_ASBOX
1487 ## ---------------- ##
1488 ## Cache variables. ##
1489 ## ---------------- ##
1490 _ASBOX
1491     echo
1492     # The following way of writing the cache mishandles newlines in values,
1493 (
1494   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1495     eval ac_val=\$$ac_var
1496     case $ac_val in #(
1497     *${as_nl}*)
1498       case $ac_var in #(
1499       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1500 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1501       esac
1502       case $ac_var in #(
1503       _ | IFS | as_nl) ;; #(
1504       *) $as_unset $ac_var ;;
1505       esac ;;
1506     esac
1507   done
1508   (set) 2>&1 |
1509     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1510     *${as_nl}ac_space=\ *)
1511       sed -n \
1512         "s/'\''/'\''\\\\'\'''\''/g;
1513           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1514       ;; #(
1515     *)
1516       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1517       ;;
1518     esac |
1519     sort
1520 )
1521     echo
1522
1523     cat <<\_ASBOX
1524 ## ----------------- ##
1525 ## Output variables. ##
1526 ## ----------------- ##
1527 _ASBOX
1528     echo
1529     for ac_var in $ac_subst_vars
1530     do
1531       eval ac_val=\$$ac_var
1532       case $ac_val in
1533       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1534       esac
1535       echo "$ac_var='\''$ac_val'\''"
1536     done | sort
1537     echo
1538
1539     if test -n "$ac_subst_files"; then
1540       cat <<\_ASBOX
1541 ## ------------------- ##
1542 ## File substitutions. ##
1543 ## ------------------- ##
1544 _ASBOX
1545       echo
1546       for ac_var in $ac_subst_files
1547       do
1548         eval ac_val=\$$ac_var
1549         case $ac_val in
1550         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1551         esac
1552         echo "$ac_var='\''$ac_val'\''"
1553       done | sort
1554       echo
1555     fi
1556
1557     if test -s confdefs.h; then
1558       cat <<\_ASBOX
1559 ## ----------- ##
1560 ## confdefs.h. ##
1561 ## ----------- ##
1562 _ASBOX
1563       echo
1564       cat confdefs.h
1565       echo
1566     fi
1567     test "$ac_signal" != 0 &&
1568       echo "$as_me: caught signal $ac_signal"
1569     echo "$as_me: exit $exit_status"
1570   } >&5
1571   rm -f core *.core core.conftest.* &&
1572     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1573     exit $exit_status
1574 ' 0
1575 for ac_signal in 1 2 13 15; do
1576   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1577 done
1578 ac_signal=0
1579
1580 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1581 rm -f -r conftest* confdefs.h
1582
1583 # Predefined preprocessor variables.
1584
1585 cat >>confdefs.h <<_ACEOF
1586 #define PACKAGE_NAME "$PACKAGE_NAME"
1587 _ACEOF
1588
1589
1590 cat >>confdefs.h <<_ACEOF
1591 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1592 _ACEOF
1593
1594
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1597 _ACEOF
1598
1599
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_STRING "$PACKAGE_STRING"
1602 _ACEOF
1603
1604
1605 cat >>confdefs.h <<_ACEOF
1606 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1607 _ACEOF
1608
1609
1610 # Let the site file select an alternate cache file if it wants to.
1611 # Prefer explicitly selected file to automatically selected ones.
1612 if test -n "$CONFIG_SITE"; then
1613   set x "$CONFIG_SITE"
1614 elif test "x$prefix" != xNONE; then
1615   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1616 else
1617   set x "$ac_default_prefix/share/config.site" \
1618         "$ac_default_prefix/etc/config.site"
1619 fi
1620 shift
1621 for ac_site_file
1622 do
1623   if test -r "$ac_site_file"; then
1624     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1625 echo "$as_me: loading site script $ac_site_file" >&6;}
1626     sed 's/^/| /' "$ac_site_file" >&5
1627     . "$ac_site_file"
1628   fi
1629 done
1630
1631 if test -r "$cache_file"; then
1632   # Some versions of bash will fail to source /dev/null (special
1633   # files actually), so we avoid doing that.
1634   if test -f "$cache_file"; then
1635     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1636 echo "$as_me: loading cache $cache_file" >&6;}
1637     case $cache_file in
1638       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1639       *)                      . "./$cache_file";;
1640     esac
1641   fi
1642 else
1643   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1644 echo "$as_me: creating cache $cache_file" >&6;}
1645   >$cache_file
1646 fi
1647
1648 # Check that the precious variables saved in the cache have kept the same
1649 # value.
1650 ac_cache_corrupted=false
1651 for ac_var in $ac_precious_vars; do
1652   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1653   eval ac_new_set=\$ac_env_${ac_var}_set
1654   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1655   eval ac_new_val=\$ac_env_${ac_var}_value
1656   case $ac_old_set,$ac_new_set in
1657     set,)
1658       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1659 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1660       ac_cache_corrupted=: ;;
1661     ,set)
1662       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1663 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1664       ac_cache_corrupted=: ;;
1665     ,);;
1666     *)
1667       if test "x$ac_old_val" != "x$ac_new_val"; then
1668         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1669 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1670         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1671 echo "$as_me:   former value:  $ac_old_val" >&2;}
1672         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1673 echo "$as_me:   current value: $ac_new_val" >&2;}
1674         ac_cache_corrupted=:
1675       fi;;
1676   esac
1677   # Pass precious variables to config.status.
1678   if test "$ac_new_set" = set; then
1679     case $ac_new_val in
1680     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1681     *) ac_arg=$ac_var=$ac_new_val ;;
1682     esac
1683     case " $ac_configure_args " in
1684       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1685       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1686     esac
1687   fi
1688 done
1689 if $ac_cache_corrupted; then
1690   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1691 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1692   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1693 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1694    { (exit 1); exit 1; }; }
1695 fi
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713 ac_ext=c
1714 ac_cpp='$CPP $CPPFLAGS'
1715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1718
1719
1720
1721 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1722 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1723 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1724 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1725   echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727   cat >conftest.make <<\_ACEOF
1728 SHELL = /bin/sh
1729 all:
1730         @echo '@@@%%%=$(MAKE)=@@@%%%'
1731 _ACEOF
1732 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1733 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1734   *@@@%%%=?*=@@@%%%*)
1735     eval ac_cv_prog_make_${ac_make}_set=yes;;
1736   *)
1737     eval ac_cv_prog_make_${ac_make}_set=no;;
1738 esac
1739 rm -f conftest.make
1740 fi
1741 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1742   { echo "$as_me:$LINENO: result: yes" >&5
1743 echo "${ECHO_T}yes" >&6; }
1744   SET_MAKE=
1745 else
1746   { echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6; }
1748   SET_MAKE="MAKE=${MAKE-make}"
1749 fi
1750
1751 ac_ext=c
1752 ac_cpp='$CPP $CPPFLAGS'
1753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1756 if test -n "$ac_tool_prefix"; then
1757   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1758 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762   echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764   if test -n "$CC"; then
1765   ac_cv_prog_CC="$CC" # Let the user override the test.
1766 else
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1769 do
1770   IFS=$as_save_IFS
1771   test -z "$as_dir" && as_dir=.
1772   for ac_exec_ext in '' $ac_executable_extensions; do
1773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1774     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776     break 2
1777   fi
1778 done
1779 done
1780 IFS=$as_save_IFS
1781
1782 fi
1783 fi
1784 CC=$ac_cv_prog_CC
1785 if test -n "$CC"; then
1786   { echo "$as_me:$LINENO: result: $CC" >&5
1787 echo "${ECHO_T}$CC" >&6; }
1788 else
1789   { echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6; }
1791 fi
1792
1793
1794 fi
1795 if test -z "$ac_cv_prog_CC"; then
1796   ac_ct_CC=$CC
1797   # Extract the first word of "gcc", so it can be a program name with args.
1798 set dummy gcc; ac_word=$2
1799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1802   echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804   if test -n "$ac_ct_CC"; then
1805   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1806 else
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1809 do
1810   IFS=$as_save_IFS
1811   test -z "$as_dir" && as_dir=.
1812   for ac_exec_ext in '' $ac_executable_extensions; do
1813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1814     ac_cv_prog_ac_ct_CC="gcc"
1815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816     break 2
1817   fi
1818 done
1819 done
1820 IFS=$as_save_IFS
1821
1822 fi
1823 fi
1824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825 if test -n "$ac_ct_CC"; then
1826   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1827 echo "${ECHO_T}$ac_ct_CC" >&6; }
1828 else
1829   { echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6; }
1831 fi
1832
1833   if test "x$ac_ct_CC" = x; then
1834     CC=""
1835   else
1836     case $cross_compiling:$ac_tool_warned in
1837 yes:)
1838 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1839 whose name does not start with the host triplet.  If you think this
1840 configuration is useful to you, please write to autoconf@gnu.org." >&5
1841 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1842 whose name does not start with the host triplet.  If you think this
1843 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1844 ac_tool_warned=yes ;;
1845 esac
1846     CC=$ac_ct_CC
1847   fi
1848 else
1849   CC="$ac_cv_prog_CC"
1850 fi
1851
1852 if test -z "$CC"; then
1853           if test -n "$ac_tool_prefix"; then
1854     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1855 set dummy ${ac_tool_prefix}cc; ac_word=$2
1856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1858 if test "${ac_cv_prog_CC+set}" = set; then
1859   echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861   if test -n "$CC"; then
1862   ac_cv_prog_CC="$CC" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867   IFS=$as_save_IFS
1868   test -z "$as_dir" && as_dir=.
1869   for ac_exec_ext in '' $ac_executable_extensions; do
1870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1871     ac_cv_prog_CC="${ac_tool_prefix}cc"
1872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873     break 2
1874   fi
1875 done
1876 done
1877 IFS=$as_save_IFS
1878
1879 fi
1880 fi
1881 CC=$ac_cv_prog_CC
1882 if test -n "$CC"; then
1883   { echo "$as_me:$LINENO: result: $CC" >&5
1884 echo "${ECHO_T}$CC" >&6; }
1885 else
1886   { echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6; }
1888 fi
1889
1890
1891   fi
1892 fi
1893 if test -z "$CC"; then
1894   # Extract the first word of "cc", so it can be a program name with args.
1895 set dummy cc; ac_word=$2
1896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1898 if test "${ac_cv_prog_CC+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901   if test -n "$CC"; then
1902   ac_cv_prog_CC="$CC" # Let the user override the test.
1903 else
1904   ac_prog_rejected=no
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908   IFS=$as_save_IFS
1909   test -z "$as_dir" && as_dir=.
1910   for ac_exec_ext in '' $ac_executable_extensions; do
1911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1912     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1913        ac_prog_rejected=yes
1914        continue
1915      fi
1916     ac_cv_prog_CC="cc"
1917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918     break 2
1919   fi
1920 done
1921 done
1922 IFS=$as_save_IFS
1923
1924 if test $ac_prog_rejected = yes; then
1925   # We found a bogon in the path, so make sure we never use it.
1926   set dummy $ac_cv_prog_CC
1927   shift
1928   if test $# != 0; then
1929     # We chose a different compiler from the bogus one.
1930     # However, it has the same basename, so the bogon will be chosen
1931     # first if we set CC to just the basename; use the full file name.
1932     shift
1933     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1934   fi
1935 fi
1936 fi
1937 fi
1938 CC=$ac_cv_prog_CC
1939 if test -n "$CC"; then
1940   { echo "$as_me:$LINENO: result: $CC" >&5
1941 echo "${ECHO_T}$CC" >&6; }
1942 else
1943   { echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6; }
1945 fi
1946
1947
1948 fi
1949 if test -z "$CC"; then
1950   if test -n "$ac_tool_prefix"; then
1951   for ac_prog in cl.exe
1952   do
1953     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   if test -n "$CC"; then
1961   ac_cv_prog_CC="$CC" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966   IFS=$as_save_IFS
1967   test -z "$as_dir" && as_dir=.
1968   for ac_exec_ext in '' $ac_executable_extensions; do
1969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972     break 2
1973   fi
1974 done
1975 done
1976 IFS=$as_save_IFS
1977
1978 fi
1979 fi
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982   { echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6; }
1984 else
1985   { echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6; }
1987 fi
1988
1989
1990     test -n "$CC" && break
1991   done
1992 fi
1993 if test -z "$CC"; then
1994   ac_ct_CC=$CC
1995   for ac_prog in cl.exe
1996 do
1997   # Extract the first word of "$ac_prog", so it can be a program name with args.
1998 set dummy $ac_prog; ac_word=$2
1999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002   echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004   if test -n "$ac_ct_CC"; then
2005   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006 else
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010   IFS=$as_save_IFS
2011   test -z "$as_dir" && as_dir=.
2012   for ac_exec_ext in '' $ac_executable_extensions; do
2013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2014     ac_cv_prog_ac_ct_CC="$ac_prog"
2015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016     break 2
2017   fi
2018 done
2019 done
2020 IFS=$as_save_IFS
2021
2022 fi
2023 fi
2024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2025 if test -n "$ac_ct_CC"; then
2026   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2027 echo "${ECHO_T}$ac_ct_CC" >&6; }
2028 else
2029   { echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6; }
2031 fi
2032
2033
2034   test -n "$ac_ct_CC" && break
2035 done
2036
2037   if test "x$ac_ct_CC" = x; then
2038     CC=""
2039   else
2040     case $cross_compiling:$ac_tool_warned in
2041 yes:)
2042 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2043 whose name does not start with the host triplet.  If you think this
2044 configuration is useful to you, please write to autoconf@gnu.org." >&5
2045 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2046 whose name does not start with the host triplet.  If you think this
2047 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2048 ac_tool_warned=yes ;;
2049 esac
2050     CC=$ac_ct_CC
2051   fi
2052 fi
2053
2054 fi
2055
2056
2057 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2058 See \`config.log' for more details." >&5
2059 echo "$as_me: error: no acceptable C compiler found in \$PATH
2060 See \`config.log' for more details." >&2;}
2061    { (exit 1); exit 1; }; }
2062
2063 # Provide some information about the compiler.
2064 echo "$as_me:$LINENO: checking for C compiler version" >&5
2065 ac_compiler=`set X $ac_compile; echo $2`
2066 { (ac_try="$ac_compiler --version >&5"
2067 case "(($ac_try" in
2068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069   *) ac_try_echo=$ac_try;;
2070 esac
2071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2072   (eval "$ac_compiler --version >&5") 2>&5
2073   ac_status=$?
2074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075   (exit $ac_status); }
2076 { (ac_try="$ac_compiler -v >&5"
2077 case "(($ac_try" in
2078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079   *) ac_try_echo=$ac_try;;
2080 esac
2081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2082   (eval "$ac_compiler -v >&5") 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }
2086 { (ac_try="$ac_compiler -V >&5"
2087 case "(($ac_try" in
2088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089   *) ac_try_echo=$ac_try;;
2090 esac
2091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2092   (eval "$ac_compiler -V >&5") 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }
2096
2097 cat >conftest.$ac_ext <<_ACEOF
2098 /* confdefs.h.  */
2099 _ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h.  */
2103
2104 int
2105 main ()
2106 {
2107
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 ac_clean_files_save=$ac_clean_files
2113 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2114 # Try to create an executable without -o first, disregard a.out.
2115 # It will help us diagnose broken compilers, and finding out an intuition
2116 # of exeext.
2117 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2118 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2119 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2120 #
2121 # List of possible output files, starting from the most likely.
2122 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2123 # only as a last resort.  b.out is created by i960 compilers.
2124 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2125 #
2126 # The IRIX 6 linker writes into existing files which may not be
2127 # executable, retaining their permissions.  Remove them first so a
2128 # subsequent execution test works.
2129 ac_rmfiles=
2130 for ac_file in $ac_files
2131 do
2132   case $ac_file in
2133     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2134     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2135   esac
2136 done
2137 rm -f $ac_rmfiles
2138
2139 if { (ac_try="$ac_link_default"
2140 case "(($ac_try" in
2141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142   *) ac_try_echo=$ac_try;;
2143 esac
2144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145   (eval "$ac_link_default") 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; then
2149   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2150 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2151 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2152 # so that the user can short-circuit this test for compilers unknown to
2153 # Autoconf.
2154 for ac_file in $ac_files ''
2155 do
2156   test -f "$ac_file" || continue
2157   case $ac_file in
2158     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2159         ;;
2160     [ab].out )
2161         # We found the default executable, but exeext='' is most
2162         # certainly right.
2163         break;;
2164     *.* )
2165         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2166         then :; else
2167            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2168         fi
2169         # We set ac_cv_exeext here because the later test for it is not
2170         # safe: cross compilers may not add the suffix if given an `-o'
2171         # argument, so we may need to know it at that point already.
2172         # Even if this section looks crufty: it has the advantage of
2173         # actually working.
2174         break;;
2175     * )
2176         break;;
2177   esac
2178 done
2179 test "$ac_cv_exeext" = no && ac_cv_exeext=
2180
2181 else
2182   ac_file=''
2183 fi
2184
2185 { echo "$as_me:$LINENO: result: $ac_file" >&5
2186 echo "${ECHO_T}$ac_file" >&6; }
2187 if test -z "$ac_file"; then
2188   echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2190
2191 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&5
2193 echo "$as_me: error: C compiler cannot create executables
2194 See \`config.log' for more details." >&2;}
2195    { (exit 77); exit 77; }; }
2196 fi
2197
2198 ac_exeext=$ac_cv_exeext
2199
2200 # Check that the compiler produces executables we can run.  If not, either
2201 # the compiler is broken, or we cross compile.
2202 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207   if { ac_try='./$ac_file'
2208   { (case "(($ac_try" in
2209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210   *) ac_try_echo=$ac_try;;
2211 esac
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213   (eval "$ac_try") 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; }; then
2217     cross_compiling=no
2218   else
2219     if test "$cross_compiling" = maybe; then
2220         cross_compiling=yes
2221     else
2222         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&2;}
2228    { (exit 1); exit 1; }; }
2229     fi
2230   fi
2231 fi
2232 { echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6; }
2234
2235 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236 ac_clean_files=$ac_clean_files_save
2237 # Check that the compiler produces executables we can run.  If not, either
2238 # the compiler is broken, or we cross compile.
2239 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242 echo "${ECHO_T}$cross_compiling" >&6; }
2243
2244 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246 if { (ac_try="$ac_link"
2247 case "(($ac_try" in
2248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249   *) ac_try_echo=$ac_try;;
2250 esac
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252   (eval "$ac_link") 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; then
2256   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2258 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 # `rm'.
2260 for ac_file in conftest.exe conftest conftest.*; do
2261   test -f "$ac_file" || continue
2262   case $ac_file in
2263     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2264     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265           break;;
2266     * ) break;;
2267   esac
2268 done
2269 else
2270   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275 fi
2276
2277 rm -f conftest$ac_cv_exeext
2278 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2280
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2283 ac_exeext=$EXEEXT
2284 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286 if test "${ac_cv_objext+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295
2296 int
2297 main ()
2298 {
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.o conftest.obj
2305 if { (ac_try="$ac_compile"
2306 case "(($ac_try" in
2307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308   *) ac_try_echo=$ac_try;;
2309 esac
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311   (eval "$ac_compile") 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); }; then
2315   for ac_file in conftest.o conftest.obj conftest.*; do
2316   test -f "$ac_file" || continue;
2317   case $ac_file in
2318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2319     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320        break;;
2321   esac
2322 done
2323 else
2324   echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331    { (exit 1); exit 1; }; }
2332 fi
2333
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335 fi
2336 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6; }
2338 OBJEXT=$ac_cv_objext
2339 ac_objext=$OBJEXT
2340 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h.  */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h.  */
2351
2352 int
2353 main ()
2354 {
2355 #ifndef __GNUC__
2356        choke me
2357 #endif
2358
2359   ;
2360   return 0;
2361 }
2362 _ACEOF
2363 rm -f conftest.$ac_objext
2364 if { (ac_try="$ac_compile"
2365 case "(($ac_try" in
2366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367   *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370   (eval "$ac_compile") 2>conftest.er1
2371   ac_status=$?
2372   grep -v '^ *+' conftest.er1 >conftest.err
2373   rm -f conftest.er1
2374   cat conftest.err >&5
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } && {
2377          test -z "$ac_c_werror_flag" ||
2378          test ! -s conftest.err
2379        } && test -s conftest.$ac_objext; then
2380   ac_compiler_gnu=yes
2381 else
2382   echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2384
2385         ac_compiler_gnu=no
2386 fi
2387
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2390
2391 fi
2392 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2393 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2394 GCC=`test $ac_compiler_gnu = yes && echo yes`
2395 ac_test_CFLAGS=${CFLAGS+set}
2396 ac_save_CFLAGS=$CFLAGS
2397 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2398 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_cc_g+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   ac_save_c_werror_flag=$ac_c_werror_flag
2403    ac_c_werror_flag=yes
2404    ac_cv_prog_cc_g=no
2405    CFLAGS="-g"
2406    cat >conftest.$ac_ext <<_ACEOF
2407 /* confdefs.h.  */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h.  */
2412
2413 int
2414 main ()
2415 {
2416
2417   ;
2418   return 0;
2419 }
2420 _ACEOF
2421 rm -f conftest.$ac_objext
2422 if { (ac_try="$ac_compile"
2423 case "(($ac_try" in
2424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425   *) ac_try_echo=$ac_try;;
2426 esac
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428   (eval "$ac_compile") 2>conftest.er1
2429   ac_status=$?
2430   grep -v '^ *+' conftest.er1 >conftest.err
2431   rm -f conftest.er1
2432   cat conftest.err >&5
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); } && {
2435          test -z "$ac_c_werror_flag" ||
2436          test ! -s conftest.err
2437        } && test -s conftest.$ac_objext; then
2438   ac_cv_prog_cc_g=yes
2439 else
2440   echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443         CFLAGS=""
2444       cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h.  */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h.  */
2450
2451 int
2452 main ()
2453 {
2454
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 rm -f conftest.$ac_objext
2460 if { (ac_try="$ac_compile"
2461 case "(($ac_try" in
2462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463   *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466   (eval "$ac_compile") 2>conftest.er1
2467   ac_status=$?
2468   grep -v '^ *+' conftest.er1 >conftest.err
2469   rm -f conftest.er1
2470   cat conftest.err >&5
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); } && {
2473          test -z "$ac_c_werror_flag" ||
2474          test ! -s conftest.err
2475        } && test -s conftest.$ac_objext; then
2476   :
2477 else
2478   echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481         ac_c_werror_flag=$ac_save_c_werror_flag
2482          CFLAGS="-g"
2483          cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489
2490 int
2491 main ()
2492 {
2493
2494   ;
2495   return 0;
2496 }
2497 _ACEOF
2498 rm -f conftest.$ac_objext
2499 if { (ac_try="$ac_compile"
2500 case "(($ac_try" in
2501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502   *) ac_try_echo=$ac_try;;
2503 esac
2504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2505   (eval "$ac_compile") 2>conftest.er1
2506   ac_status=$?
2507   grep -v '^ *+' conftest.er1 >conftest.err
2508   rm -f conftest.er1
2509   cat conftest.err >&5
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); } && {
2512          test -z "$ac_c_werror_flag" ||
2513          test ! -s conftest.err
2514        } && test -s conftest.$ac_objext; then
2515   ac_cv_prog_cc_g=yes
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520
2521 fi
2522
2523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 fi
2525
2526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527 fi
2528
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2530    ac_c_werror_flag=$ac_save_c_werror_flag
2531 fi
2532 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2533 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2534 if test "$ac_test_CFLAGS" = set; then
2535   CFLAGS=$ac_save_CFLAGS
2536 elif test $ac_cv_prog_cc_g = yes; then
2537   if test "$GCC" = yes; then
2538     CFLAGS="-g -O2"
2539   else
2540     CFLAGS="-g"
2541   fi
2542 else
2543   if test "$GCC" = yes; then
2544     CFLAGS="-O2"
2545   else
2546     CFLAGS=
2547   fi
2548 fi
2549 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2550 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2551 if test "${ac_cv_prog_cc_c89+set}" = set; then
2552   echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554   ac_cv_prog_cc_c89=no
2555 ac_save_CC=$CC
2556 cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562 #include <stdarg.h>
2563 #include <stdio.h>
2564 #include <sys/types.h>
2565 #include <sys/stat.h>
2566 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2567 struct buf { int x; };
2568 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2569 static char *e (p, i)
2570      char **p;
2571      int i;
2572 {
2573   return p[i];
2574 }
2575 static char *f (char * (*g) (char **, int), char **p, ...)
2576 {
2577   char *s;
2578   va_list v;
2579   va_start (v,p);
2580   s = g (p, va_arg (v,int));
2581   va_end (v);
2582   return s;
2583 }
2584
2585 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2586    function prototypes and stuff, but not '\xHH' hex character constants.
2587    These don't provoke an error unfortunately, instead are silently treated
2588    as 'x'.  The following induces an error, until -std is added to get
2589    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2590    array size at least.  It's necessary to write '\x00'==0 to get something
2591    that's true only with -std.  */
2592 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2593
2594 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2595    inside strings and character constants.  */
2596 #define FOO(x) 'x'
2597 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2598
2599 int test (int i, double x);
2600 struct s1 {int (*f) (int a);};
2601 struct s2 {int (*f) (double a);};
2602 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2603 int argc;
2604 char **argv;
2605 int
2606 main ()
2607 {
2608 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2614         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2615 do
2616   CC="$ac_save_CC $ac_arg"
2617   rm -f conftest.$ac_objext
2618 if { (ac_try="$ac_compile"
2619 case "(($ac_try" in
2620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621   *) ac_try_echo=$ac_try;;
2622 esac
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624   (eval "$ac_compile") 2>conftest.er1
2625   ac_status=$?
2626   grep -v '^ *+' conftest.er1 >conftest.err
2627   rm -f conftest.er1
2628   cat conftest.err >&5
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); } && {
2631          test -z "$ac_c_werror_flag" ||
2632          test ! -s conftest.err
2633        } && test -s conftest.$ac_objext; then
2634   ac_cv_prog_cc_c89=$ac_arg
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639
2640 fi
2641
2642 rm -f core conftest.err conftest.$ac_objext
2643   test "x$ac_cv_prog_cc_c89" != "xno" && break
2644 done
2645 rm -f conftest.$ac_ext
2646 CC=$ac_save_CC
2647
2648 fi
2649 # AC_CACHE_VAL
2650 case "x$ac_cv_prog_cc_c89" in
2651   x)
2652     { echo "$as_me:$LINENO: result: none needed" >&5
2653 echo "${ECHO_T}none needed" >&6; } ;;
2654   xno)
2655     { echo "$as_me:$LINENO: result: unsupported" >&5
2656 echo "${ECHO_T}unsupported" >&6; } ;;
2657   *)
2658     CC="$CC $ac_cv_prog_cc_c89"
2659     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2660 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2661 esac
2662
2663
2664 ac_ext=c
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669
2670 if test -n "$ac_tool_prefix"; then
2671   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2672 set dummy ${ac_tool_prefix}ld; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_LD+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   if test -n "$LD"; then
2679   ac_cv_prog_LD="$LD" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684   IFS=$as_save_IFS
2685   test -z "$as_dir" && as_dir=.
2686   for ac_exec_ext in '' $ac_executable_extensions; do
2687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688     ac_cv_prog_LD="${ac_tool_prefix}ld"
2689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690     break 2
2691   fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 LD=$ac_cv_prog_LD
2699 if test -n "$LD"; then
2700   { echo "$as_me:$LINENO: result: $LD" >&5
2701 echo "${ECHO_T}$LD" >&6; }
2702 else
2703   { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2705 fi
2706
2707
2708 fi
2709 if test -z "$ac_cv_prog_LD"; then
2710   ac_ct_LD=$LD
2711   # Extract the first word of "ld", so it can be a program name with args.
2712 set dummy ld; ac_word=$2
2713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2715 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2716   echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718   if test -n "$ac_ct_LD"; then
2719   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724   IFS=$as_save_IFS
2725   test -z "$as_dir" && as_dir=.
2726   for ac_exec_ext in '' $ac_executable_extensions; do
2727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728     ac_cv_prog_ac_ct_LD="ld"
2729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730     break 2
2731   fi
2732 done
2733 done
2734 IFS=$as_save_IFS
2735
2736 fi
2737 fi
2738 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2739 if test -n "$ac_ct_LD"; then
2740   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2741 echo "${ECHO_T}$ac_ct_LD" >&6; }
2742 else
2743   { echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6; }
2745 fi
2746
2747   if test "x$ac_ct_LD" = x; then
2748     LD=""
2749   else
2750     case $cross_compiling:$ac_tool_warned in
2751 yes:)
2752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2753 whose name does not start with the host triplet.  If you think this
2754 configuration is useful to you, please write to autoconf@gnu.org." >&5
2755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2756 whose name does not start with the host triplet.  If you think this
2757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2758 ac_tool_warned=yes ;;
2759 esac
2760     LD=$ac_ct_LD
2761   fi
2762 else
2763   LD="$ac_cv_prog_LD"
2764 fi
2765
2766 ac_aux_dir=
2767 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2768   if test -f "$ac_dir/install-sh"; then
2769     ac_aux_dir=$ac_dir
2770     ac_install_sh="$ac_aux_dir/install-sh -c"
2771     break
2772   elif test -f "$ac_dir/install.sh"; then
2773     ac_aux_dir=$ac_dir
2774     ac_install_sh="$ac_aux_dir/install.sh -c"
2775     break
2776   elif test -f "$ac_dir/shtool"; then
2777     ac_aux_dir=$ac_dir
2778     ac_install_sh="$ac_aux_dir/shtool install -c"
2779     break
2780   fi
2781 done
2782 if test -z "$ac_aux_dir"; then
2783   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2784 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2785    { (exit 1); exit 1; }; }
2786 fi
2787
2788 # These three variables are undocumented and unsupported,
2789 # and are intended to be withdrawn in a future Autoconf release.
2790 # They can cause serious problems if a builder's source tree is in a directory
2791 # whose full name contains unusual characters.
2792 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2793 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2794 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2795
2796
2797 # Find a good install program.  We prefer a C program (faster),
2798 # so one script is as good as another.  But avoid the broken or
2799 # incompatible versions:
2800 # SysV /etc/install, /usr/sbin/install
2801 # SunOS /usr/etc/install
2802 # IRIX /sbin/install
2803 # AIX /bin/install
2804 # AmigaOS /C/install, which installs bootblocks on floppy discs
2805 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2806 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2807 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2808 # OS/2's system install, which has a completely different semantic
2809 # ./install, which can be erroneously created by make from ./install.sh.
2810 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2811 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2812 if test -z "$INSTALL"; then
2813 if test "${ac_cv_path_install+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821   # Account for people who put trailing slashes in PATH elements.
2822 case $as_dir/ in
2823   ./ | .// | /cC/* | \
2824   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2825   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2826   /usr/ucb/* ) ;;
2827   *)
2828     # OSF1 and SCO ODT 3.0 have their own names for install.
2829     # Don't use installbsd from OSF since it installs stuff as root
2830     # by default.
2831     for ac_prog in ginstall scoinst install; do
2832       for ac_exec_ext in '' $ac_executable_extensions; do
2833         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2834           if test $ac_prog = install &&
2835             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2836             # AIX install.  It has an incompatible calling convention.
2837             :
2838           elif test $ac_prog = install &&
2839             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2840             # program-specific install script used by HP pwplus--don't use.
2841             :
2842           else
2843             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2844             break 3
2845           fi
2846         fi
2847       done
2848     done
2849     ;;
2850 esac
2851 done
2852 IFS=$as_save_IFS
2853
2854
2855 fi
2856   if test "${ac_cv_path_install+set}" = set; then
2857     INSTALL=$ac_cv_path_install
2858   else
2859     # As a last resort, use the slow shell script.  Don't cache a
2860     # value for INSTALL within a source directory, because that will
2861     # break other packages using the cache if that directory is
2862     # removed, or if the value is a relative name.
2863     INSTALL=$ac_install_sh
2864   fi
2865 fi
2866 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2867 echo "${ECHO_T}$INSTALL" >&6; }
2868
2869 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2870 # It thinks the first close brace ends the variable substitution.
2871 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2872
2873 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2874
2875 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2876
2877
2878
2879
2880 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
2881 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
2882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885   ac_check_lib_save_LIBS=$LIBS
2886 LIBS="-ldl  $LIBS"
2887 cat >conftest.$ac_ext <<_ACEOF
2888 /* confdefs.h.  */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h.  */
2893
2894 /* Override any GCC internal prototype to avoid an error.
2895    Use char because int might match the return type of a GCC
2896    builtin and then its argument prototype would still apply.  */
2897 #ifdef __cplusplus
2898 extern "C"
2899 #endif
2900 char dlopen ();
2901 int
2902 main ()
2903 {
2904 return dlopen ();
2905   ;
2906   return 0;
2907 }
2908 _ACEOF
2909 rm -f conftest.$ac_objext conftest$ac_exeext
2910 if { (ac_try="$ac_link"
2911 case "(($ac_try" in
2912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913   *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916   (eval "$ac_link") 2>conftest.er1
2917   ac_status=$?
2918   grep -v '^ *+' conftest.er1 >conftest.err
2919   rm -f conftest.er1
2920   cat conftest.err >&5
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); } && {
2923          test -z "$ac_c_werror_flag" ||
2924          test ! -s conftest.err
2925        } && test -s conftest$ac_exeext &&
2926        $as_test_x conftest$ac_exeext; then
2927   ac_cv_lib_dl_dlopen=yes
2928 else
2929   echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932         ac_cv_lib_dl_dlopen=no
2933 fi
2934
2935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2936       conftest$ac_exeext conftest.$ac_ext
2937 LIBS=$ac_check_lib_save_LIBS
2938 fi
2939 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
2940 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
2941 if test $ac_cv_lib_dl_dlopen = yes; then
2942   cat >>confdefs.h <<_ACEOF
2943 #define HAVE_LIBDL 1
2944 _ACEOF
2945
2946   LIBS="-ldl $LIBS"
2947
2948 fi
2949
2950 ac_ext=c
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2956 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2957 # On Suns, sometimes $CPP names a directory.
2958 if test -n "$CPP" && test -d "$CPP"; then
2959   CPP=
2960 fi
2961 if test -z "$CPP"; then
2962   if test "${ac_cv_prog_CPP+set}" = set; then
2963   echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965       # Double quotes because CPP needs to be expanded
2966     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2967     do
2968       ac_preproc_ok=false
2969 for ac_c_preproc_warn_flag in '' yes
2970 do
2971   # Use a header file that comes with gcc, so configuring glibc
2972   # with a fresh cross-compiler works.
2973   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2974   # <limits.h> exists even on freestanding compilers.
2975   # On the NeXT, cc -E runs the code through the compiler's parser,
2976   # not just through cpp. "Syntax error" is here to catch this case.
2977   cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983 #ifdef __STDC__
2984 # include <limits.h>
2985 #else
2986 # include <assert.h>
2987 #endif
2988                      Syntax error
2989 _ACEOF
2990 if { (ac_try="$ac_cpp conftest.$ac_ext"
2991 case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } >/dev/null && {
3003          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3004          test ! -s conftest.err
3005        }; then
3006   :
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011   # Broken: fails on valid input.
3012 continue
3013 fi
3014
3015 rm -f conftest.err conftest.$ac_ext
3016
3017   # OK, works on sane cases.  Now check whether nonexistent headers
3018   # can be detected and how.
3019   cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h.  */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h.  */
3025 #include <ac_nonexistent.h>
3026 _ACEOF
3027 if { (ac_try="$ac_cpp conftest.$ac_ext"
3028 case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3034   ac_status=$?
3035   grep -v '^ *+' conftest.er1 >conftest.err
3036   rm -f conftest.er1
3037   cat conftest.err >&5
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); } >/dev/null && {
3040          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3041          test ! -s conftest.err
3042        }; then
3043   # Broken: success on invalid input.
3044 continue
3045 else
3046   echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049   # Passes both tests.
3050 ac_preproc_ok=:
3051 break
3052 fi
3053
3054 rm -f conftest.err conftest.$ac_ext
3055
3056 done
3057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3058 rm -f conftest.err conftest.$ac_ext
3059 if $ac_preproc_ok; then
3060   break
3061 fi
3062
3063     done
3064     ac_cv_prog_CPP=$CPP
3065
3066 fi
3067   CPP=$ac_cv_prog_CPP
3068 else
3069   ac_cv_prog_CPP=$CPP
3070 fi
3071 { echo "$as_me:$LINENO: result: $CPP" >&5
3072 echo "${ECHO_T}$CPP" >&6; }
3073 ac_preproc_ok=false
3074 for ac_c_preproc_warn_flag in '' yes
3075 do
3076   # Use a header file that comes with gcc, so configuring glibc
3077   # with a fresh cross-compiler works.
3078   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3079   # <limits.h> exists even on freestanding compilers.
3080   # On the NeXT, cc -E runs the code through the compiler's parser,
3081   # not just through cpp. "Syntax error" is here to catch this case.
3082   cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088 #ifdef __STDC__
3089 # include <limits.h>
3090 #else
3091 # include <assert.h>
3092 #endif
3093                      Syntax error
3094 _ACEOF
3095 if { (ac_try="$ac_cpp conftest.$ac_ext"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } >/dev/null && {
3108          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3109          test ! -s conftest.err
3110        }; then
3111   :
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116   # Broken: fails on valid input.
3117 continue
3118 fi
3119
3120 rm -f conftest.err conftest.$ac_ext
3121
3122   # OK, works on sane cases.  Now check whether nonexistent headers
3123   # can be detected and how.
3124   cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130 #include <ac_nonexistent.h>
3131 _ACEOF
3132 if { (ac_try="$ac_cpp conftest.$ac_ext"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } >/dev/null && {
3145          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3146          test ! -s conftest.err
3147        }; then
3148   # Broken: success on invalid input.
3149 continue
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154   # Passes both tests.
3155 ac_preproc_ok=:
3156 break
3157 fi
3158
3159 rm -f conftest.err conftest.$ac_ext
3160
3161 done
3162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3163 rm -f conftest.err conftest.$ac_ext
3164 if $ac_preproc_ok; then
3165   :
3166 else
3167   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3168 See \`config.log' for more details." >&5
3169 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3170 See \`config.log' for more details." >&2;}
3171    { (exit 1); exit 1; }; }
3172 fi
3173
3174 ac_ext=c
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179
3180
3181 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3182 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3183 if test "${ac_cv_path_GREP+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   # Extract the first word of "grep ggrep" to use in msg output
3187 if test -z "$GREP"; then
3188 set dummy grep ggrep; ac_prog_name=$2
3189 if test "${ac_cv_path_GREP+set}" = set; then
3190   echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192   ac_path_GREP_found=false
3193 # Loop through the user's path and test for each of PROGNAME-LIST
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199   for ac_prog in grep ggrep; do
3200   for ac_exec_ext in '' $ac_executable_extensions; do
3201     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3202     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3203     # Check for GNU ac_path_GREP and select it if it is found.
3204   # Check for GNU $ac_path_GREP
3205 case `"$ac_path_GREP" --version 2>&1` in
3206 *GNU*)
3207   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3208 *)
3209   ac_count=0
3210   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3211   while :
3212   do
3213     cat "conftest.in" "conftest.in" >"conftest.tmp"
3214     mv "conftest.tmp" "conftest.in"
3215     cp "conftest.in" "conftest.nl"
3216     echo 'GREP' >> "conftest.nl"
3217     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3219     ac_count=`expr $ac_count + 1`
3220     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3221       # Best one so far, save it but keep looking for a better one
3222       ac_cv_path_GREP="$ac_path_GREP"
3223       ac_path_GREP_max=$ac_count
3224     fi
3225     # 10*(2^10) chars as input seems more than enough
3226     test $ac_count -gt 10 && break
3227   done
3228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3229 esac
3230
3231
3232     $ac_path_GREP_found && break 3
3233   done
3234 done
3235
3236 done
3237 IFS=$as_save_IFS
3238
3239
3240 fi
3241
3242 GREP="$ac_cv_path_GREP"
3243 if test -z "$GREP"; then
3244   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3245 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3246    { (exit 1); exit 1; }; }
3247 fi
3248
3249 else
3250   ac_cv_path_GREP=$GREP
3251 fi
3252
3253
3254 fi
3255 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3256 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3257  GREP="$ac_cv_path_GREP"
3258
3259
3260 { echo "$as_me:$LINENO: checking for egrep" >&5
3261 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3262 if test "${ac_cv_path_EGREP+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3266    then ac_cv_path_EGREP="$GREP -E"
3267    else
3268      # Extract the first word of "egrep" to use in msg output
3269 if test -z "$EGREP"; then
3270 set dummy egrep; ac_prog_name=$2
3271 if test "${ac_cv_path_EGREP+set}" = set; then
3272   echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274   ac_path_EGREP_found=false
3275 # Loop through the user's path and test for each of PROGNAME-LIST
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281   for ac_prog in egrep; do
3282   for ac_exec_ext in '' $ac_executable_extensions; do
3283     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3284     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3285     # Check for GNU ac_path_EGREP and select it if it is found.
3286   # Check for GNU $ac_path_EGREP
3287 case `"$ac_path_EGREP" --version 2>&1` in
3288 *GNU*)
3289   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3290 *)
3291   ac_count=0
3292   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3293   while :
3294   do
3295     cat "conftest.in" "conftest.in" >"conftest.tmp"
3296     mv "conftest.tmp" "conftest.in"
3297     cp "conftest.in" "conftest.nl"
3298     echo 'EGREP' >> "conftest.nl"
3299     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3300     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3301     ac_count=`expr $ac_count + 1`
3302     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3303       # Best one so far, save it but keep looking for a better one
3304       ac_cv_path_EGREP="$ac_path_EGREP"
3305       ac_path_EGREP_max=$ac_count
3306     fi
3307     # 10*(2^10) chars as input seems more than enough
3308     test $ac_count -gt 10 && break
3309   done
3310   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3311 esac
3312
3313
3314     $ac_path_EGREP_found && break 3
3315   done
3316 done
3317
3318 done
3319 IFS=$as_save_IFS
3320
3321
3322 fi
3323
3324 EGREP="$ac_cv_path_EGREP"
3325 if test -z "$EGREP"; then
3326   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3327 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3328    { (exit 1); exit 1; }; }
3329 fi
3330
3331 else
3332   ac_cv_path_EGREP=$EGREP
3333 fi
3334
3335
3336    fi
3337 fi
3338 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3339 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3340  EGREP="$ac_cv_path_EGREP"
3341
3342
3343 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3344 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3345 if test "${ac_cv_header_stdc+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h.  */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h.  */
3354 #include <stdlib.h>
3355 #include <stdarg.h>
3356 #include <string.h>
3357 #include <float.h>
3358
3359 int
3360 main ()
3361 {
3362
3363   ;
3364   return 0;
3365 }
3366 _ACEOF
3367 rm -f conftest.$ac_objext
3368 if { (ac_try="$ac_compile"
3369 case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374   (eval "$ac_compile") 2>conftest.er1
3375   ac_status=$?
3376   grep -v '^ *+' conftest.er1 >conftest.err
3377   rm -f conftest.er1
3378   cat conftest.err >&5
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); } && {
3381          test -z "$ac_c_werror_flag" ||
3382          test ! -s conftest.err
3383        } && test -s conftest.$ac_objext; then
3384   ac_cv_header_stdc=yes
3385 else
3386   echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389         ac_cv_header_stdc=no
3390 fi
3391
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393
3394 if test $ac_cv_header_stdc = yes; then
3395   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3396   cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h.  */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h.  */
3402 #include <string.h>
3403
3404 _ACEOF
3405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3406   $EGREP "memchr" >/dev/null 2>&1; then
3407   :
3408 else
3409   ac_cv_header_stdc=no
3410 fi
3411 rm -f conftest*
3412
3413 fi
3414
3415 if test $ac_cv_header_stdc = yes; then
3416   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3417   cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #include <stdlib.h>
3424
3425 _ACEOF
3426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3427   $EGREP "free" >/dev/null 2>&1; then
3428   :
3429 else
3430   ac_cv_header_stdc=no
3431 fi
3432 rm -f conftest*
3433
3434 fi
3435
3436 if test $ac_cv_header_stdc = yes; then
3437   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3438   if test "$cross_compiling" = yes; then
3439   :
3440 else
3441   cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #include <ctype.h>
3448 #include <stdlib.h>
3449 #if ((' ' & 0x0FF) == 0x020)
3450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3452 #else
3453 # define ISLOWER(c) \
3454                    (('a' <= (c) && (c) <= 'i') \
3455                      || ('j' <= (c) && (c) <= 'r') \
3456                      || ('s' <= (c) && (c) <= 'z'))
3457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3458 #endif
3459
3460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3461 int
3462 main ()
3463 {
3464   int i;
3465   for (i = 0; i < 256; i++)
3466     if (XOR (islower (i), ISLOWER (i))
3467         || toupper (i) != TOUPPER (i))
3468       return 2;
3469   return 0;
3470 }
3471 _ACEOF
3472 rm -f conftest$ac_exeext
3473 if { (ac_try="$ac_link"
3474 case "(($ac_try" in
3475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476   *) ac_try_echo=$ac_try;;
3477 esac
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479   (eval "$ac_link") 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3483   { (case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488   (eval "$ac_try") 2>&5
3489   ac_status=$?
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); }; }; then
3492   :
3493 else
3494   echo "$as_me: program exited with status $ac_status" >&5
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 ( exit $ac_status )
3499 ac_cv_header_stdc=no
3500 fi
3501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3502 fi
3503
3504
3505 fi
3506 fi
3507 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3508 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3509 if test $ac_cv_header_stdc = yes; then
3510
3511 cat >>confdefs.h <<\_ACEOF
3512 #define STDC_HEADERS 1
3513 _ACEOF
3514
3515 fi
3516
3517 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3528                   inttypes.h stdint.h unistd.h
3529 do
3530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542 $ac_includes_default
3543
3544 #include <$ac_header>
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3548 case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553   (eval "$ac_compile") 2>conftest.er1
3554   ac_status=$?
3555   grep -v '^ *+' conftest.er1 >conftest.err
3556   rm -f conftest.er1
3557   cat conftest.err >&5
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); } && {
3560          test -z "$ac_c_werror_flag" ||
3561          test ! -s conftest.err
3562        } && test -s conftest.$ac_objext; then
3563   eval "$as_ac_Header=yes"
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568         eval "$as_ac_Header=no"
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 fi
3573 ac_res=`eval echo '${'$as_ac_Header'}'`
3574                { echo "$as_me:$LINENO: result: $ac_res" >&5
3575 echo "${ECHO_T}$ac_res" >&6; }
3576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3577   cat >>confdefs.h <<_ACEOF
3578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3579 _ACEOF
3580
3581 fi
3582
3583 done
3584
3585
3586 if test "${ac_cv_header_pcap_h+set}" = set; then
3587   { echo "$as_me:$LINENO: checking for pcap.h" >&5
3588 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
3589 if test "${ac_cv_header_pcap_h+set}" = set; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 fi
3592 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
3593 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
3594 else
3595   # Is the header compilable?
3596 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
3597 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604 $ac_includes_default
3605 #include <pcap.h>
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3609 case "(($ac_try" in
3610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611   *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614   (eval "$ac_compile") 2>conftest.er1
3615   ac_status=$?
3616   grep -v '^ *+' conftest.er1 >conftest.err
3617   rm -f conftest.er1
3618   cat conftest.err >&5
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } && {
3621          test -z "$ac_c_werror_flag" ||
3622          test ! -s conftest.err
3623        } && test -s conftest.$ac_objext; then
3624   ac_header_compiler=yes
3625 else
3626   echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629         ac_header_compiler=no
3630 fi
3631
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3634 echo "${ECHO_T}$ac_header_compiler" >&6; }
3635
3636 # Is the header present?
3637 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
3638 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
3639 cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h.  */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h.  */
3645 #include <pcap.h>
3646 _ACEOF
3647 if { (ac_try="$ac_cpp conftest.$ac_ext"
3648 case "(($ac_try" in
3649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650   *) ac_try_echo=$ac_try;;
3651 esac
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3654   ac_status=$?
3655   grep -v '^ *+' conftest.er1 >conftest.err
3656   rm -f conftest.er1
3657   cat conftest.err >&5
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); } >/dev/null && {
3660          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3661          test ! -s conftest.err
3662        }; then
3663   ac_header_preproc=yes
3664 else
3665   echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668   ac_header_preproc=no
3669 fi
3670
3671 rm -f conftest.err conftest.$ac_ext
3672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3673 echo "${ECHO_T}$ac_header_preproc" >&6; }
3674
3675 # So?  What about this header?
3676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3677   yes:no: )
3678     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
3679 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3680     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
3681 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
3682     ac_header_preproc=yes
3683     ;;
3684   no:yes:* )
3685     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
3686 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
3687     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
3688 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
3689     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
3690 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
3691     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
3692 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3693     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
3694 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
3695     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
3696 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
3697
3698     ;;
3699 esac
3700 { echo "$as_me:$LINENO: checking for pcap.h" >&5
3701 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
3702 if test "${ac_cv_header_pcap_h+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   ac_cv_header_pcap_h=$ac_header_preproc
3706 fi
3707 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
3708 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
3709
3710 fi
3711 if test $ac_cv_header_pcap_h = yes; then
3712   HAVE_PCAP_H=true
3713 fi
3714
3715
3716
3717
3718
3719
3720
3721
3722 ac_header_dirent=no
3723 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3724   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3725 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3726 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h.  */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h.  */
3736 #include <sys/types.h>
3737 #include <$ac_hdr>
3738
3739 int
3740 main ()
3741 {
3742 if ((DIR *) 0)
3743 return 0;
3744   ;
3745   return 0;
3746 }
3747 _ACEOF
3748 rm -f conftest.$ac_objext
3749 if { (ac_try="$ac_compile"
3750 case "(($ac_try" in
3751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752   *) ac_try_echo=$ac_try;;
3753 esac
3754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3755   (eval "$ac_compile") 2>conftest.er1
3756   ac_status=$?
3757   grep -v '^ *+' conftest.er1 >conftest.err
3758   rm -f conftest.er1
3759   cat conftest.err >&5
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); } && {
3762          test -z "$ac_c_werror_flag" ||
3763          test ! -s conftest.err
3764        } && test -s conftest.$ac_objext; then
3765   eval "$as_ac_Header=yes"
3766 else
3767   echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3769
3770         eval "$as_ac_Header=no"
3771 fi
3772
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 fi
3775 ac_res=`eval echo '${'$as_ac_Header'}'`
3776                { echo "$as_me:$LINENO: result: $ac_res" >&5
3777 echo "${ECHO_T}$ac_res" >&6; }
3778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3779   cat >>confdefs.h <<_ACEOF
3780 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3781 _ACEOF
3782
3783 ac_header_dirent=$ac_hdr; break
3784 fi
3785
3786 done
3787 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3788 if test $ac_header_dirent = dirent.h; then
3789   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3790 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3791 if test "${ac_cv_search_opendir+set}" = set; then
3792   echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794   ac_func_search_save_LIBS=$LIBS
3795 cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h.  */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h.  */
3801
3802 /* Override any GCC internal prototype to avoid an error.
3803    Use char because int might match the return type of a GCC
3804    builtin and then its argument prototype would still apply.  */
3805 #ifdef __cplusplus
3806 extern "C"
3807 #endif
3808 char opendir ();
3809 int
3810 main ()
3811 {
3812 return opendir ();
3813   ;
3814   return 0;
3815 }
3816 _ACEOF
3817 for ac_lib in '' dir; do
3818   if test -z "$ac_lib"; then
3819     ac_res="none required"
3820   else
3821     ac_res=-l$ac_lib
3822     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3823   fi
3824   rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (ac_try="$ac_link"
3826 case "(($ac_try" in
3827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828   *) ac_try_echo=$ac_try;;
3829 esac
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831   (eval "$ac_link") 2>conftest.er1
3832   ac_status=$?
3833   grep -v '^ *+' conftest.er1 >conftest.err
3834   rm -f conftest.er1
3835   cat conftest.err >&5
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); } && {
3838          test -z "$ac_c_werror_flag" ||
3839          test ! -s conftest.err
3840        } && test -s conftest$ac_exeext &&
3841        $as_test_x conftest$ac_exeext; then
3842   ac_cv_search_opendir=$ac_res
3843 else
3844   echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847
3848 fi
3849
3850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3851       conftest$ac_exeext
3852   if test "${ac_cv_search_opendir+set}" = set; then
3853   break
3854 fi
3855 done
3856 if test "${ac_cv_search_opendir+set}" = set; then
3857   :
3858 else
3859   ac_cv_search_opendir=no
3860 fi
3861 rm conftest.$ac_ext
3862 LIBS=$ac_func_search_save_LIBS
3863 fi
3864 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3865 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3866 ac_res=$ac_cv_search_opendir
3867 if test "$ac_res" != no; then
3868   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3869
3870 fi
3871
3872 else
3873   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3874 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3875 if test "${ac_cv_search_opendir+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   ac_func_search_save_LIBS=$LIBS
3879 cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h.  */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h.  */
3885
3886 /* Override any GCC internal prototype to avoid an error.
3887    Use char because int might match the return type of a GCC
3888    builtin and then its argument prototype would still apply.  */
3889 #ifdef __cplusplus
3890 extern "C"
3891 #endif
3892 char opendir ();
3893 int
3894 main ()
3895 {
3896 return opendir ();
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 for ac_lib in '' x; do
3902   if test -z "$ac_lib"; then
3903     ac_res="none required"
3904   else
3905     ac_res=-l$ac_lib
3906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3907   fi
3908   rm -f conftest.$ac_objext conftest$ac_exeext
3909 if { (ac_try="$ac_link"
3910 case "(($ac_try" in
3911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912   *) ac_try_echo=$ac_try;;
3913 esac
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915   (eval "$ac_link") 2>conftest.er1
3916   ac_status=$?
3917   grep -v '^ *+' conftest.er1 >conftest.err
3918   rm -f conftest.er1
3919   cat conftest.err >&5
3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); } && {
3922          test -z "$ac_c_werror_flag" ||
3923          test ! -s conftest.err
3924        } && test -s conftest$ac_exeext &&
3925        $as_test_x conftest$ac_exeext; then
3926   ac_cv_search_opendir=$ac_res
3927 else
3928   echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931
3932 fi
3933
3934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3935       conftest$ac_exeext
3936   if test "${ac_cv_search_opendir+set}" = set; then
3937   break
3938 fi
3939 done
3940 if test "${ac_cv_search_opendir+set}" = set; then
3941   :
3942 else
3943   ac_cv_search_opendir=no
3944 fi
3945 rm conftest.$ac_ext
3946 LIBS=$ac_func_search_save_LIBS
3947 fi
3948 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3949 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3950 ac_res=$ac_cv_search_opendir
3951 if test "$ac_res" != no; then
3952   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3953
3954 fi
3955
3956 fi
3957
3958 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3959 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3960 if test "${ac_cv_header_stdc+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h.  */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h.  */
3969 #include <stdlib.h>
3970 #include <stdarg.h>
3971 #include <string.h>
3972 #include <float.h>
3973
3974 int
3975 main ()
3976 {
3977
3978   ;
3979   return 0;
3980 }
3981 _ACEOF
3982 rm -f conftest.$ac_objext
3983 if { (ac_try="$ac_compile"
3984 case "(($ac_try" in
3985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986   *) ac_try_echo=$ac_try;;
3987 esac
3988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989   (eval "$ac_compile") 2>conftest.er1
3990   ac_status=$?
3991   grep -v '^ *+' conftest.er1 >conftest.err
3992   rm -f conftest.er1
3993   cat conftest.err >&5
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); } && {
3996          test -z "$ac_c_werror_flag" ||
3997          test ! -s conftest.err
3998        } && test -s conftest.$ac_objext; then
3999   ac_cv_header_stdc=yes
4000 else
4001   echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004         ac_cv_header_stdc=no
4005 fi
4006
4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008
4009 if test $ac_cv_header_stdc = yes; then
4010   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4011   cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h.  */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h.  */
4017 #include <string.h>
4018
4019 _ACEOF
4020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4021   $EGREP "memchr" >/dev/null 2>&1; then
4022   :
4023 else
4024   ac_cv_header_stdc=no
4025 fi
4026 rm -f conftest*
4027
4028 fi
4029
4030 if test $ac_cv_header_stdc = yes; then
4031   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4032   cat >conftest.$ac_ext <<_ACEOF
4033 /* confdefs.h.  */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h.  */
4038 #include <stdlib.h>
4039
4040 _ACEOF
4041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042   $EGREP "free" >/dev/null 2>&1; then
4043   :
4044 else
4045   ac_cv_header_stdc=no
4046 fi
4047 rm -f conftest*
4048
4049 fi
4050
4051 if test $ac_cv_header_stdc = yes; then
4052   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4053   if test "$cross_compiling" = yes; then
4054   :
4055 else
4056   cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h.  */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h.  */
4062 #include <ctype.h>
4063 #include <stdlib.h>
4064 #if ((' ' & 0x0FF) == 0x020)
4065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4067 #else
4068 # define ISLOWER(c) \
4069                    (('a' <= (c) && (c) <= 'i') \
4070                      || ('j' <= (c) && (c) <= 'r') \
4071                      || ('s' <= (c) && (c) <= 'z'))
4072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4073 #endif
4074
4075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4076 int
4077 main ()
4078 {
4079   int i;
4080   for (i = 0; i < 256; i++)
4081     if (XOR (islower (i), ISLOWER (i))
4082         || toupper (i) != TOUPPER (i))
4083       return 2;
4084   return 0;
4085 }
4086 _ACEOF
4087 rm -f conftest$ac_exeext
4088 if { (ac_try="$ac_link"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094   (eval "$ac_link") 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4098   { (case "(($ac_try" in
4099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100   *) ac_try_echo=$ac_try;;
4101 esac
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103   (eval "$ac_try") 2>&5
4104   ac_status=$?
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); }; }; then
4107   :
4108 else
4109   echo "$as_me: program exited with status $ac_status" >&5
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 ( exit $ac_status )
4114 ac_cv_header_stdc=no
4115 fi
4116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4117 fi
4118
4119
4120 fi
4121 fi
4122 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4123 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4124 if test $ac_cv_header_stdc = yes; then
4125
4126 cat >>confdefs.h <<\_ACEOF
4127 #define STDC_HEADERS 1
4128 _ACEOF
4129
4130 fi
4131
4132
4133
4134 for ac_header in fcntl.h unistd.h
4135 do
4136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4138   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 fi
4143 ac_res=`eval echo '${'$as_ac_Header'}'`
4144                { echo "$as_me:$LINENO: result: $ac_res" >&5
4145 echo "${ECHO_T}$ac_res" >&6; }
4146 else
4147   # Is the header compilable?
4148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4150 cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156 $ac_includes_default
4157 #include <$ac_header>
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4161 case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166   (eval "$ac_compile") 2>conftest.er1
4167   ac_status=$?
4168   grep -v '^ *+' conftest.er1 >conftest.err
4169   rm -f conftest.er1
4170   cat conftest.err >&5
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); } && {
4173          test -z "$ac_c_werror_flag" ||
4174          test ! -s conftest.err
4175        } && test -s conftest.$ac_objext; then
4176   ac_header_compiler=yes
4177 else
4178   echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181         ac_header_compiler=no
4182 fi
4183
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4186 echo "${ECHO_T}$ac_header_compiler" >&6; }
4187
4188 # Is the header present?
4189 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4191 cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h.  */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h.  */
4197 #include <$ac_header>
4198 _ACEOF
4199 if { (ac_try="$ac_cpp conftest.$ac_ext"
4200 case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4206   ac_status=$?
4207   grep -v '^ *+' conftest.er1 >conftest.err
4208   rm -f conftest.er1
4209   cat conftest.err >&5
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } >/dev/null && {
4212          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4213          test ! -s conftest.err
4214        }; then
4215   ac_header_preproc=yes
4216 else
4217   echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220   ac_header_preproc=no
4221 fi
4222
4223 rm -f conftest.err conftest.$ac_ext
4224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4225 echo "${ECHO_T}$ac_header_preproc" >&6; }
4226
4227 # So?  What about this header?
4228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4229   yes:no: )
4230     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4234     ac_header_preproc=yes
4235     ;;
4236   no:yes:* )
4237     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4239     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4240 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4241     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4243     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4244 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4247     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4249
4250     ;;
4251 esac
4252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4255   echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257   eval "$as_ac_Header=\$ac_header_preproc"
4258 fi
4259 ac_res=`eval echo '${'$as_ac_Header'}'`
4260                { echo "$as_me:$LINENO: result: $ac_res" >&5
4261 echo "${ECHO_T}$ac_res" >&6; }
4262
4263 fi
4264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4265   cat >>confdefs.h <<_ACEOF
4266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4267 _ACEOF
4268
4269 fi
4270
4271 done
4272
4273
4274 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4275 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4276 if test "${ac_cv_c_const+set}" = set; then
4277   echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279   cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h.  */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h.  */
4285
4286 int
4287 main ()
4288 {
4289 /* FIXME: Include the comments suggested by Paul. */
4290 #ifndef __cplusplus
4291   /* Ultrix mips cc rejects this.  */
4292   typedef int charset[2];
4293   const charset cs;
4294   /* SunOS 4.1.1 cc rejects this.  */
4295   char const *const *pcpcc;
4296   char **ppc;
4297   /* NEC SVR4.0.2 mips cc rejects this.  */
4298   struct point {int x, y;};
4299   static struct point const zero = {0,0};
4300   /* AIX XL C 1.02.0.0 rejects this.
4301      It does not let you subtract one const X* pointer from another in
4302      an arm of an if-expression whose if-part is not a constant
4303      expression */
4304   const char *g = "string";
4305   pcpcc = &g + (g ? g-g : 0);
4306   /* HPUX 7.0 cc rejects these. */
4307   ++pcpcc;
4308   ppc = (char**) pcpcc;
4309   pcpcc = (char const *const *) ppc;
4310   { /* SCO 3.2v4 cc rejects this.  */
4311     char *t;
4312     char const *s = 0 ? (char *) 0 : (char const *) 0;
4313
4314     *t++ = 0;
4315     if (s) return 0;
4316   }
4317   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4318     int x[] = {25, 17};
4319     const int *foo = &x[0];
4320     ++foo;
4321   }
4322   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4323     typedef const int *iptr;
4324     iptr p = 0;
4325     ++p;
4326   }
4327   { /* AIX XL C 1.02.0.0 rejects this saying
4328        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4329     struct s { int j; const int *ap[3]; };
4330     struct s *b; b->j = 5;
4331   }
4332   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4333     const int foo = 10;
4334     if (!foo) return 0;
4335   }
4336   return !cs[0] && !zero.x;
4337 #endif
4338
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4345 case "(($ac_try" in
4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347   *) ac_try_echo=$ac_try;;
4348 esac
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350   (eval "$ac_compile") 2>conftest.er1
4351   ac_status=$?
4352   grep -v '^ *+' conftest.er1 >conftest.err
4353   rm -f conftest.er1
4354   cat conftest.err >&5
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); } && {
4357          test -z "$ac_c_werror_flag" ||
4358          test ! -s conftest.err
4359        } && test -s conftest.$ac_objext; then
4360   ac_cv_c_const=yes
4361 else
4362   echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365         ac_cv_c_const=no
4366 fi
4367
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 fi
4370 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4371 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4372 if test $ac_cv_c_const = no; then
4373
4374 cat >>confdefs.h <<\_ACEOF
4375 #define const
4376 _ACEOF
4377
4378 fi
4379
4380 { echo "$as_me:$LINENO: checking for size_t" >&5
4381 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4382 if test "${ac_cv_type_size_t+set}" = set; then
4383   echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385   cat >conftest.$ac_ext <<_ACEOF
4386 /* confdefs.h.  */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h.  */
4391 $ac_includes_default
4392 typedef size_t ac__type_new_;
4393 int
4394 main ()
4395 {
4396 if ((ac__type_new_ *) 0)
4397   return 0;
4398 if (sizeof (ac__type_new_))
4399   return 0;
4400   ;
4401   return 0;
4402 }
4403 _ACEOF
4404 rm -f conftest.$ac_objext
4405 if { (ac_try="$ac_compile"
4406 case "(($ac_try" in
4407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408   *) ac_try_echo=$ac_try;;
4409 esac
4410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411   (eval "$ac_compile") 2>conftest.er1
4412   ac_status=$?
4413   grep -v '^ *+' conftest.er1 >conftest.err
4414   rm -f conftest.er1
4415   cat conftest.err >&5
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); } && {
4418          test -z "$ac_c_werror_flag" ||
4419          test ! -s conftest.err
4420        } && test -s conftest.$ac_objext; then
4421   ac_cv_type_size_t=yes
4422 else
4423   echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4425
4426         ac_cv_type_size_t=no
4427 fi
4428
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 fi
4431 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4432 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4433 if test $ac_cv_type_size_t = yes; then
4434   :
4435 else
4436
4437 cat >>confdefs.h <<_ACEOF
4438 #define size_t unsigned int
4439 _ACEOF
4440
4441 fi
4442
4443 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4444 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
4445 if test "${ac_cv_struct_tm+set}" = set; then
4446   echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448   cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 #include <sys/types.h>
4455 #include <time.h>
4456
4457 int
4458 main ()
4459 {
4460 struct tm tm;
4461                                      int *p = &tm.tm_sec;
4462                                      return !p;
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 rm -f conftest.$ac_objext
4468 if { (ac_try="$ac_compile"
4469 case "(($ac_try" in
4470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471   *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474   (eval "$ac_compile") 2>conftest.er1
4475   ac_status=$?
4476   grep -v '^ *+' conftest.er1 >conftest.err
4477   rm -f conftest.er1
4478   cat conftest.err >&5
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); } && {
4481          test -z "$ac_c_werror_flag" ||
4482          test ! -s conftest.err
4483        } && test -s conftest.$ac_objext; then
4484   ac_cv_struct_tm=time.h
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489         ac_cv_struct_tm=sys/time.h
4490 fi
4491
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 fi
4494 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4495 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
4496 if test $ac_cv_struct_tm = sys/time.h; then
4497
4498 cat >>confdefs.h <<\_ACEOF
4499 #define TM_IN_SYS_TIME 1
4500 _ACEOF
4501
4502 fi
4503
4504
4505
4506 for ac_func in vprintf
4507 do
4508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h.  */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h.  */
4520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4522 #define $ac_func innocuous_$ac_func
4523
4524 /* System header to define __stub macros and hopefully few prototypes,
4525     which can conflict with char $ac_func (); below.
4526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527     <limits.h> exists even on freestanding compilers.  */
4528
4529 #ifdef __STDC__
4530 # include <limits.h>
4531 #else
4532 # include <assert.h>
4533 #endif
4534
4535 #undef $ac_func
4536
4537 /* Override any GCC internal prototype to avoid an error.
4538    Use char because int might match the return type of a GCC
4539    builtin and then its argument prototype would still apply.  */
4540 #ifdef __cplusplus
4541 extern "C"
4542 #endif
4543 char $ac_func ();
4544 /* The GNU C library defines this for functions which it implements
4545     to always fail with ENOSYS.  Some functions are actually named
4546     something starting with __ and the normal name is an alias.  */
4547 #if defined __stub_$ac_func || defined __stub___$ac_func
4548 choke me
4549 #endif
4550
4551 int
4552 main ()
4553 {
4554 return $ac_func ();
4555   ;
4556   return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.$ac_objext conftest$ac_exeext
4560 if { (ac_try="$ac_link"
4561 case "(($ac_try" in
4562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563   *) ac_try_echo=$ac_try;;
4564 esac
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566   (eval "$ac_link") 2>conftest.er1
4567   ac_status=$?
4568   grep -v '^ *+' conftest.er1 >conftest.err
4569   rm -f conftest.er1
4570   cat conftest.err >&5
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); } && {
4573          test -z "$ac_c_werror_flag" ||
4574          test ! -s conftest.err
4575        } && test -s conftest$ac_exeext &&
4576        $as_test_x conftest$ac_exeext; then
4577   eval "$as_ac_var=yes"
4578 else
4579   echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4581
4582         eval "$as_ac_var=no"
4583 fi
4584
4585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4586       conftest$ac_exeext conftest.$ac_ext
4587 fi
4588 ac_res=`eval echo '${'$as_ac_var'}'`
4589                { echo "$as_me:$LINENO: result: $ac_res" >&5
4590 echo "${ECHO_T}$ac_res" >&6; }
4591 if test `eval echo '${'$as_ac_var'}'` = yes; then
4592   cat >>confdefs.h <<_ACEOF
4593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4594 _ACEOF
4595
4596 { echo "$as_me:$LINENO: checking for _doprnt" >&5
4597 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
4598 if test "${ac_cv_func__doprnt+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h.  */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h.  */
4607 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4609 #define _doprnt innocuous__doprnt
4610
4611 /* System header to define __stub macros and hopefully few prototypes,
4612     which can conflict with char _doprnt (); below.
4613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4614     <limits.h> exists even on freestanding compilers.  */
4615
4616 #ifdef __STDC__
4617 # include <limits.h>
4618 #else
4619 # include <assert.h>
4620 #endif
4621
4622 #undef _doprnt
4623
4624 /* Override any GCC internal prototype to avoid an error.
4625    Use char because int might match the return type of a GCC
4626    builtin and then its argument prototype would still apply.  */
4627 #ifdef __cplusplus
4628 extern "C"
4629 #endif
4630 char _doprnt ();
4631 /* The GNU C library defines this for functions which it implements
4632     to always fail with ENOSYS.  Some functions are actually named
4633     something starting with __ and the normal name is an alias.  */
4634 #if defined __stub__doprnt || defined __stub____doprnt
4635 choke me
4636 #endif
4637
4638 int
4639 main ()
4640 {
4641 return _doprnt ();
4642   ;
4643   return 0;
4644 }
4645 _ACEOF
4646 rm -f conftest.$ac_objext conftest$ac_exeext
4647 if { (ac_try="$ac_link"
4648 case "(($ac_try" in
4649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650   *) ac_try_echo=$ac_try;;
4651 esac
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653   (eval "$ac_link") 2>conftest.er1
4654   ac_status=$?
4655   grep -v '^ *+' conftest.er1 >conftest.err
4656   rm -f conftest.er1
4657   cat conftest.err >&5
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); } && {
4660          test -z "$ac_c_werror_flag" ||
4661          test ! -s conftest.err
4662        } && test -s conftest$ac_exeext &&
4663        $as_test_x conftest$ac_exeext; then
4664   ac_cv_func__doprnt=yes
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669         ac_cv_func__doprnt=no
4670 fi
4671
4672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4673       conftest$ac_exeext conftest.$ac_ext
4674 fi
4675 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4676 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
4677 if test $ac_cv_func__doprnt = yes; then
4678
4679 cat >>confdefs.h <<\_ACEOF
4680 #define HAVE_DOPRNT 1
4681 _ACEOF
4682
4683 fi
4684
4685 fi
4686 done
4687
4688
4689
4690
4691 for ac_func in socket strerror
4692 do
4693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4697   echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699   cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h.  */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h.  */
4705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4707 #define $ac_func innocuous_$ac_func
4708
4709 /* System header to define __stub macros and hopefully few prototypes,
4710     which can conflict with char $ac_func (); below.
4711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712     <limits.h> exists even on freestanding compilers.  */
4713
4714 #ifdef __STDC__
4715 # include <limits.h>
4716 #else
4717 # include <assert.h>
4718 #endif
4719
4720 #undef $ac_func
4721
4722 /* Override any GCC internal prototype to avoid an error.
4723    Use char because int might match the return type of a GCC
4724    builtin and then its argument prototype would still apply.  */
4725 #ifdef __cplusplus
4726 extern "C"
4727 #endif
4728 char $ac_func ();
4729 /* The GNU C library defines this for functions which it implements
4730     to always fail with ENOSYS.  Some functions are actually named
4731     something starting with __ and the normal name is an alias.  */
4732 #if defined __stub_$ac_func || defined __stub___$ac_func
4733 choke me
4734 #endif
4735
4736 int
4737 main ()
4738 {
4739 return $ac_func ();
4740   ;
4741   return 0;
4742 }
4743 _ACEOF
4744 rm -f conftest.$ac_objext conftest$ac_exeext
4745 if { (ac_try="$ac_link"
4746 case "(($ac_try" in
4747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748   *) ac_try_echo=$ac_try;;
4749 esac
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751   (eval "$ac_link") 2>conftest.er1
4752   ac_status=$?
4753   grep -v '^ *+' conftest.er1 >conftest.err
4754   rm -f conftest.er1
4755   cat conftest.err >&5
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); } && {
4758          test -z "$ac_c_werror_flag" ||
4759          test ! -s conftest.err
4760        } && test -s conftest$ac_exeext &&
4761        $as_test_x conftest$ac_exeext; then
4762   eval "$as_ac_var=yes"
4763 else
4764   echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767         eval "$as_ac_var=no"
4768 fi
4769
4770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4771       conftest$ac_exeext conftest.$ac_ext
4772 fi
4773 ac_res=`eval echo '${'$as_ac_var'}'`
4774                { echo "$as_me:$LINENO: result: $ac_res" >&5
4775 echo "${ECHO_T}$ac_res" >&6; }
4776 if test `eval echo '${'$as_ac_var'}'` = yes; then
4777   cat >>confdefs.h <<_ACEOF
4778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4779 _ACEOF
4780
4781 fi
4782 done
4783
4784
4785
4786 # Check whether --with-proper was given.
4787 if test "${with_proper+set}" = set; then
4788   withval=$with_proper;  CPPFLAGS="$CPPFLAGS -I$withval/include" ; LDFLAGS="$LDFLAGS -L$withval/.libs"
4789 fi
4790
4791 if test "${ac_cv_header_prop_h+set}" = set; then
4792   { echo "$as_me:$LINENO: checking for prop.h" >&5
4793 echo $ECHO_N "checking for prop.h... $ECHO_C" >&6; }
4794 if test "${ac_cv_header_prop_h+set}" = set; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 fi
4797 { echo "$as_me:$LINENO: result: $ac_cv_header_prop_h" >&5
4798 echo "${ECHO_T}$ac_cv_header_prop_h" >&6; }
4799 else
4800   # Is the header compilable?
4801 { echo "$as_me:$LINENO: checking prop.h usability" >&5
4802 echo $ECHO_N "checking prop.h usability... $ECHO_C" >&6; }
4803 cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 $ac_includes_default
4810 #include <prop.h>
4811 _ACEOF
4812 rm -f conftest.$ac_objext
4813 if { (ac_try="$ac_compile"
4814 case "(($ac_try" in
4815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816   *) ac_try_echo=$ac_try;;
4817 esac
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819   (eval "$ac_compile") 2>conftest.er1
4820   ac_status=$?
4821   grep -v '^ *+' conftest.er1 >conftest.err
4822   rm -f conftest.er1
4823   cat conftest.err >&5
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); } && {
4826          test -z "$ac_c_werror_flag" ||
4827          test ! -s conftest.err
4828        } && test -s conftest.$ac_objext; then
4829   ac_header_compiler=yes
4830 else
4831   echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834         ac_header_compiler=no
4835 fi
4836
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4839 echo "${ECHO_T}$ac_header_compiler" >&6; }
4840
4841 # Is the header present?
4842 { echo "$as_me:$LINENO: checking prop.h presence" >&5
4843 echo $ECHO_N "checking prop.h presence... $ECHO_C" >&6; }
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850 #include <prop.h>
4851 _ACEOF
4852 if { (ac_try="$ac_cpp conftest.$ac_ext"
4853 case "(($ac_try" in
4854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855   *) ac_try_echo=$ac_try;;
4856 esac
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } >/dev/null && {
4865          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4866          test ! -s conftest.err
4867        }; then
4868   ac_header_preproc=yes
4869 else
4870   echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873   ac_header_preproc=no
4874 fi
4875
4876 rm -f conftest.err conftest.$ac_ext
4877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4878 echo "${ECHO_T}$ac_header_preproc" >&6; }
4879
4880 # So?  What about this header?
4881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4882   yes:no: )
4883     { echo "$as_me:$LINENO: WARNING: prop.h: accepted by the compiler, rejected by the preprocessor!" >&5
4884 echo "$as_me: WARNING: prop.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4885     { echo "$as_me:$LINENO: WARNING: prop.h: proceeding with the compiler's result" >&5
4886 echo "$as_me: WARNING: prop.h: proceeding with the compiler's result" >&2;}
4887     ac_header_preproc=yes
4888     ;;
4889   no:yes:* )
4890     { echo "$as_me:$LINENO: WARNING: prop.h: present but cannot be compiled" >&5
4891 echo "$as_me: WARNING: prop.h: present but cannot be compiled" >&2;}
4892     { echo "$as_me:$LINENO: WARNING: prop.h:     check for missing prerequisite headers?" >&5
4893 echo "$as_me: WARNING: prop.h:     check for missing prerequisite headers?" >&2;}
4894     { echo "$as_me:$LINENO: WARNING: prop.h: see the Autoconf documentation" >&5
4895 echo "$as_me: WARNING: prop.h: see the Autoconf documentation" >&2;}
4896     { echo "$as_me:$LINENO: WARNING: prop.h:     section \"Present But Cannot Be Compiled\"" >&5
4897 echo "$as_me: WARNING: prop.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4898     { echo "$as_me:$LINENO: WARNING: prop.h: proceeding with the preprocessor's result" >&5
4899 echo "$as_me: WARNING: prop.h: proceeding with the preprocessor's result" >&2;}
4900     { echo "$as_me:$LINENO: WARNING: prop.h: in the future, the compiler will take precedence" >&5
4901 echo "$as_me: WARNING: prop.h: in the future, the compiler will take precedence" >&2;}
4902
4903     ;;
4904 esac
4905 { echo "$as_me:$LINENO: checking for prop.h" >&5
4906 echo $ECHO_N "checking for prop.h... $ECHO_C" >&6; }
4907 if test "${ac_cv_header_prop_h+set}" = set; then
4908   echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910   ac_cv_header_prop_h=$ac_header_preproc
4911 fi
4912 { echo "$as_me:$LINENO: result: $ac_cv_header_prop_h" >&5
4913 echo "${ECHO_T}$ac_cv_header_prop_h" >&6; }
4914
4915 fi
4916 if test $ac_cv_header_prop_h = yes; then
4917   HAVE_PROP_H=true
4918 fi
4919
4920
4921
4922 { echo "$as_me:$LINENO: checking for prop_create_socket in -lproper" >&5
4923 echo $ECHO_N "checking for prop_create_socket in -lproper... $ECHO_C" >&6; }
4924 if test "${ac_cv_lib_proper_prop_create_socket+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   ac_check_lib_save_LIBS=$LIBS
4928 LIBS="-lproper  $LIBS"
4929 cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935
4936 /* Override any GCC internal prototype to avoid an error.
4937    Use char because int might match the return type of a GCC
4938    builtin and then its argument prototype would still apply.  */
4939 #ifdef __cplusplus
4940 extern "C"
4941 #endif
4942 char prop_create_socket ();
4943 int
4944 main ()
4945 {
4946 return prop_create_socket ();
4947   ;
4948   return 0;
4949 }
4950 _ACEOF
4951 rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (ac_try="$ac_link"
4953 case "(($ac_try" in
4954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955   *) ac_try_echo=$ac_try;;
4956 esac
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958   (eval "$ac_link") 2>conftest.er1
4959   ac_status=$?
4960   grep -v '^ *+' conftest.er1 >conftest.err
4961   rm -f conftest.er1
4962   cat conftest.err >&5
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } && {
4965          test -z "$ac_c_werror_flag" ||
4966          test ! -s conftest.err
4967        } && test -s conftest$ac_exeext &&
4968        $as_test_x conftest$ac_exeext; then
4969   ac_cv_lib_proper_prop_create_socket=yes
4970 else
4971   echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4973
4974         ac_cv_lib_proper_prop_create_socket=no
4975 fi
4976
4977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4978       conftest$ac_exeext conftest.$ac_ext
4979 LIBS=$ac_check_lib_save_LIBS
4980 fi
4981 { echo "$as_me:$LINENO: result: $ac_cv_lib_proper_prop_create_socket" >&5
4982 echo "${ECHO_T}$ac_cv_lib_proper_prop_create_socket" >&6; }
4983 if test $ac_cv_lib_proper_prop_create_socket = yes; then
4984   cat >>confdefs.h <<_ACEOF
4985 #define HAVE_LIBPROPER 1
4986 _ACEOF
4987
4988   LIBS="-lproper $LIBS"
4989
4990 fi
4991
4992 if test "${ac_cv_header_pthread_h+set}" = set; then
4993   { echo "$as_me:$LINENO: checking for pthread.h" >&5
4994 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
4995 if test "${ac_cv_header_pthread_h+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 fi
4998 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
4999 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
5000 else
5001   # Is the header compilable?
5002 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
5003 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h.  */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h.  */
5010 $ac_includes_default
5011 #include <pthread.h>
5012 _ACEOF
5013 rm -f conftest.$ac_objext
5014 if { (ac_try="$ac_compile"
5015 case "(($ac_try" in
5016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017   *) ac_try_echo=$ac_try;;
5018 esac
5019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020   (eval "$ac_compile") 2>conftest.er1
5021   ac_status=$?
5022   grep -v '^ *+' conftest.er1 >conftest.err
5023   rm -f conftest.er1
5024   cat conftest.err >&5
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); } && {
5027          test -z "$ac_c_werror_flag" ||
5028          test ! -s conftest.err
5029        } && test -s conftest.$ac_objext; then
5030   ac_header_compiler=yes
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035         ac_header_compiler=no
5036 fi
5037
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5040 echo "${ECHO_T}$ac_header_compiler" >&6; }
5041
5042 # Is the header present?
5043 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
5044 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
5045 cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h.  */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h.  */
5051 #include <pthread.h>
5052 _ACEOF
5053 if { (ac_try="$ac_cpp conftest.$ac_ext"
5054 case "(($ac_try" in
5055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056   *) ac_try_echo=$ac_try;;
5057 esac
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5060   ac_status=$?
5061   grep -v '^ *+' conftest.er1 >conftest.err
5062   rm -f conftest.er1
5063   cat conftest.err >&5
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); } >/dev/null && {
5066          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5067          test ! -s conftest.err
5068        }; then
5069   ac_header_preproc=yes
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074   ac_header_preproc=no
5075 fi
5076
5077 rm -f conftest.err conftest.$ac_ext
5078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5079 echo "${ECHO_T}$ac_header_preproc" >&6; }
5080
5081 # So?  What about this header?
5082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5083   yes:no: )
5084     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5085 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5086     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
5087 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
5088     ac_header_preproc=yes
5089     ;;
5090   no:yes:* )
5091     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5092 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5093     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
5094 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
5095     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
5096 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
5097     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
5098 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5099     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5100 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5101     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
5102 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
5103
5104     ;;
5105 esac
5106 { echo "$as_me:$LINENO: checking for pthread.h" >&5
5107 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
5108 if test "${ac_cv_header_pthread_h+set}" = set; then
5109   echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111   ac_cv_header_pthread_h=$ac_header_preproc
5112 fi
5113 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5114 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
5115
5116 fi
5117 if test $ac_cv_header_pthread_h = yes; then
5118   HAVE_PTHREAD_H=true
5119 else
5120   { { echo "$as_me:$LINENO: error: NetFlow requires pthread" >&5
5121 echo "$as_me: error: NetFlow requires pthread" >&2;}
5122    { (exit 1); exit 1; }; }
5123 fi
5124
5125
5126
5127 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5128 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
5129 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5130   echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132   ac_check_lib_save_LIBS=$LIBS
5133 LIBS="-lpthread  $LIBS"
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h.  */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h.  */
5140
5141 /* Override any GCC internal prototype to avoid an error.
5142    Use char because int might match the return type of a GCC
5143    builtin and then its argument prototype would still apply.  */
5144 #ifdef __cplusplus
5145 extern "C"
5146 #endif
5147 char pthread_create ();
5148 int
5149 main ()
5150 {
5151 return pthread_create ();
5152   ;
5153   return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest.$ac_objext conftest$ac_exeext
5157 if { (ac_try="$ac_link"
5158 case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163   (eval "$ac_link") 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } && {
5170          test -z "$ac_c_werror_flag" ||
5171          test ! -s conftest.err
5172        } && test -s conftest$ac_exeext &&
5173        $as_test_x conftest$ac_exeext; then
5174   ac_cv_lib_pthread_pthread_create=yes
5175 else
5176   echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179         ac_cv_lib_pthread_pthread_create=no
5180 fi
5181
5182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5183       conftest$ac_exeext conftest.$ac_ext
5184 LIBS=$ac_check_lib_save_LIBS
5185 fi
5186 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5187 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
5188 if test $ac_cv_lib_pthread_pthread_create = yes; then
5189   cat >>confdefs.h <<_ACEOF
5190 #define HAVE_LIBPTHREAD 1
5191 _ACEOF
5192
5193   LIBS="-lpthread $LIBS"
5194
5195 else
5196   { { echo "$as_me:$LINENO: error: NetFlow requires pthread" >&5
5197 echo "$as_me: error: NetFlow requires pthread" >&2;}
5198    { (exit 1); exit 1; }; }
5199 fi
5200
5201
5202 DATABASE_DIR=""
5203 DATABASE_LIB=""
5204 DATABASE_LIB_DIR=""
5205
5206 DATABASE_DRIVERS=""
5207
5208
5209 # Check whether --with-mysql was given.
5210 if test "${with_mysql+set}" = set; then
5211   withval=$with_mysql;
5212 if test $withval != yes
5213 then
5214         dir=$withval
5215 else
5216         dir="/usr/local"
5217 fi
5218 mysqldir=""
5219 { echo "$as_me:$LINENO: checking for MySQL files" >&5
5220 echo $ECHO_N "checking for MySQL files... $ECHO_C" >&6; }
5221 for d in $dir/bin /usr/bin /usr/local/bin /usr/local/mysql/bin /opt/mysql/bin /opt/packages/mysql/bin
5222 do
5223         if test -f $d/mysql_config
5224         then
5225                 { echo "$as_me:$LINENO: result: found mysql_config in $d" >&5
5226 echo "${ECHO_T}found mysql_config in $d" >&6; }
5227                 mysqldir=$d
5228                 break
5229         fi
5230 done
5231
5232 if test x$mysqldir = x
5233 then
5234         { echo "$as_me:$LINENO: WARNING: MySQL backend not used" >&5
5235 echo "$as_me: WARNING: MySQL backend not used" >&2;}
5236 else
5237         cat >>confdefs.h <<\_ACEOF
5238 #define HAVE_MYSQL 1
5239 _ACEOF
5240
5241         MYSQLINCLUDES=`$d/mysql_config --include`
5242         MYSQLLIBS=`$d/mysql_config --libs`
5243
5244         DATABASE_DIR="${DATABASE_DIR} mysql"
5245
5246         MYSQL_LIB="${DATABASE_LIB} ${MYSQLLIBS} "
5247         # no change to DATABASE_LIB_DIR, since --libs already includes -L
5248
5249         DATABASE_DRIVERS="${DATABASE_DRIVERS} ../mysql/mysql_driver.o "
5250
5251         DB_DEF="${DB_DEF} -DHAVE_MYSQL "
5252
5253
5254
5255
5256
5257
5258         { echo "$as_me:$LINENO: checking for mysql_real_escape_string support" >&5
5259 echo $ECHO_N "checking for mysql_real_escape_string support... $ECHO_C" >&6; }
5260
5261         MYSQL_FUNCTION_TEST=`strings ${MYSQLLIBS}/libmysqlclient.so | grep mysql_real_escape_string`
5262
5263         if test "x$MYSQL_FUNCTION_TEST" = x
5264         then
5265                 EXTRA_MYSQL_DEF="-DOLD_MYSQL=1 "
5266                 { echo "$as_me:$LINENO: result: found old MySQL" >&5
5267 echo "${ECHO_T}found old MySQL" >&6; }
5268         else
5269                 { echo "$as_me:$LINENO: result: found new MySQL" >&5
5270 echo "${ECHO_T}found new MySQL" >&6; }
5271         fi
5272
5273 fi
5274
5275 fi
5276
5277
5278
5279
5280
5281 # Check whether --with-mysql-log-ip-as-string was given.
5282 if test "${with_mysql_log_ip_as_string+set}" = set; then
5283   withval=$with_mysql_log_ip_as_string;
5284    EXTRA_MYSQL_DEF="${EXTRA_MYSQL_DEF} -DIP_AS_STRING=1"
5285    { echo "$as_me:$LINENO: WARNING: the use of --with-mysql-log-ip-as-string is discouraged" >&5
5286 echo "$as_me: WARNING: the use of --with-mysql-log-ip-as-string is discouraged" >&2;}
5287
5288 fi
5289
5290
5291
5292 # Check whether --with-libxml2 was given.
5293 if test "${with_libxml2+set}" = set; then
5294   withval=$with_libxml2;
5295 if test $withval != yes
5296 then
5297         dir=$withval
5298 else
5299         dir="/usr/local"
5300 fi
5301 fi
5302
5303
5304 libxmldir=""
5305 { echo "$as_me:$LINENO: checking for LIBXML2 files" >&5
5306 echo $ECHO_N "checking for LIBXML2 files... $ECHO_C" >&6; }
5307 for d in $dir/bin /usr/bin /usr/local/bin /usr/local/libxml2/bin /opt/libxml2/bin /opt/packages/libxml2/bin
5308 do
5309     if test -x $d/xml2-config
5310     then
5311         { echo "$as_me:$LINENO: result: found xml2-config in $d" >&5
5312 echo "${ECHO_T}found xml2-config in $d" >&6; }
5313         libxmldir=$d
5314         break
5315     fi
5316 done
5317
5318 if test x$libxmldir = x
5319 then
5320     { { echo "$as_me:$LINENO: error: xml2-config not found" >&5
5321 echo "$as_me: error: xml2-config not found" >&2;}
5322    { (exit 1); exit 1; }; }
5323 else
5324     XMLINCLUDES=`$libxmldir/xml2-config --cflags`
5325
5326
5327     XMLLIBS=`$libxmldir/xml2-config --libs`
5328
5329 fi
5330
5331 zkdir="/usr/local/lib"
5332
5333
5334 # Check whether --with-zookeeper was given.
5335 if test "${with_zookeeper+set}" = set; then
5336   withval=$with_zookeeper;
5337 if test $withval = no
5338 then
5339     zkdir=no
5340     { echo "$as_me:$LINENO: WARNING: Building without zookeeper support." >&5
5341 echo "$as_me: WARNING: Building without zookeeper support." >&2;}
5342 else
5343     zkdir=$withval
5344 fi
5345 fi
5346
5347
5348 zklib=""
5349 if test $zkdir != no
5350 then
5351     { echo "$as_me:$LINENO: checking for zookeeper libraries" >&5
5352 echo $ECHO_N "checking for zookeeper libraries... $ECHO_C" >&6; }
5353     for d in $zkdir /usr/local/lib /lib /usr/lib
5354     do
5355         if test -f $d/libzookeeper_mt.so
5356         then
5357             { echo "$as_me:$LINENO: result: found libzookeeper_mt.so in $d" >&5
5358 echo "${ECHO_T}found libzookeeper_mt.so in $d" >&6; }
5359             zklib=$d/libzookeeper_mt.so
5360             break
5361         fi
5362     done
5363
5364     if test x$zklib = x
5365     then
5366                 { echo "$as_me:$LINENO: WARNING: Zookeeper libraries not found." >&5
5367 echo "$as_me: WARNING: Zookeeper libraries not found." >&2;}
5368         ZKLIBS=""
5369
5370
5371         ZKFLAGS=""
5372
5373     else
5374                 ZKLIBS=$zklib
5375
5376
5377         ZKFLAGS="-DTHREADED -DBUILD_ZOOKEEPER"
5378
5379     fi
5380 fi
5381
5382
5383 # Check whether --with-pgsql was given.
5384 if test "${with_pgsql+set}" = set; then
5385   withval=$with_pgsql;
5386 if test $withval != yes
5387 then
5388         dir=$withval
5389 else
5390         dir="/usr/local"
5391 fi
5392 pgsqldir=""
5393 { echo "$as_me:$LINENO: checking for PGSQL files" >&5
5394 echo $ECHO_N "checking for PGSQL files... $ECHO_C" >&6; }
5395 for d in $dir/bin /usr/bin /usr/local/bin /usr/local/pgsql/bin /opt/pgsql/bin /opt/packages/pgsql/bin
5396 do
5397         if test -x $d/pg_config
5398         then
5399                 { echo "$as_me:$LINENO: result: found pg_config in $d" >&5
5400 echo "${ECHO_T}found pg_config in $d" >&6; }
5401                 pgsqldir=$d
5402                 break
5403         fi
5404 done
5405
5406 if test x$pgsqldir = x
5407 then
5408         { echo "$as_me:$LINENO: WARNING: PGSQL backend not used" >&5
5409 echo "$as_me: WARNING: PGSQL backend not used" >&2;}
5410 else
5411         cat >>confdefs.h <<\_ACEOF
5412 #define HAVE_PGSQL 1
5413 _ACEOF
5414
5415         PGSQLINCLUDES=`$pgsqldir/pg_config --includedir`
5416         PGSQLLIBS=`$pgsqldir/pg_config --libdir`
5417
5418         DATABASE_DIR="${DATABASE_DIR} pgsql"
5419         PGSQL_LIB="${DATABASE_LIB} -lpq "
5420
5421         DATABASE_LIB_DIR="${DATABASE_LIB_DIR} -L${PGSQLLIBS} "
5422         DB_DEF="${DB_DEF} -DHAVE_PGSQL "
5423
5424
5425
5426
5427 fi
5428
5429 fi
5430
5431
5432
5433
5434 # Check whether --with-pgsql-log-ip-as-string was given.
5435 if test "${with_pgsql_log_ip_as_string+set}" = set; then
5436   withval=$with_pgsql_log_ip_as_string;
5437    EXTRA_PGSQL_DEF="-DIP_AS_STRING=1"
5438
5439 fi
5440
5441
5442
5443
5444 # Check whether --with-sqlite3 was given.
5445 if test "${with_sqlite3+set}" = set; then
5446   withval=$with_sqlite3;
5447 if test $withval != yes
5448 then
5449         dir=$withval
5450 else
5451         dir="/usr/local"
5452 fi
5453 mysqldir=""
5454 { echo "$as_me:$LINENO: checking for sqlite3 files" >&5
5455 echo $ECHO_N "checking for sqlite3 files... $ECHO_C" >&6; }
5456 for d in $dir /usr /usr/local /usr/local/sqlite3
5457 do
5458         if test -f $d/lib/sqlite3/libsqlite3.so
5459         then
5460                 { echo "$as_me:$LINENO: result: found sqlite3 in $d" >&5
5461 echo "${ECHO_T}found sqlite3 in $d" >&6; }
5462                 sqlite3dir=$d
5463                 sqlite3dir_suffix=/sqlite3
5464                 break
5465         elif test -f $d/lib64/sqlite3/libsqlite3.so
5466         then
5467                 { echo "$as_me:$LINENO: result: found sqlite3 in $d" >&5
5468 echo "${ECHO_T}found sqlite3 in $d" >&6; }
5469                 sqlite3dir=$d
5470                 sqlite3dir_suffix=/sqlite3
5471                 break
5472         elif test -f $d/lib/libsqlite3.so
5473         then
5474                 { echo "$as_me:$LINENO: result: found sqlite in $d" >&5
5475 echo "${ECHO_T}found sqlite in $d" >&6; }
5476                 sqlite3dir=$d
5477                 sqlite3dir_suffix=
5478                 break
5479         elif test -f $d/lib64/libsqlite3.so
5480         then
5481                 { echo "$as_me:$LINENO: result: found sqlite in $d" >&5
5482 echo "${ECHO_T}found sqlite in $d" >&6; }
5483                 sqlite3dir=$d
5484                 sqlite3dir_suffix=
5485                 break
5486         fi
5487 done
5488
5489 if test x$sqlite3dir = x
5490 then
5491         { echo "$as_me:$LINENO: WARNING: sqlite3 backend not used" >&5
5492 echo "$as_me: WARNING: sqlite3 backend not used" >&2;}
5493 else
5494         cat >>confdefs.h <<\_ACEOF
5495 #define HAVE_SQLITE3 1
5496 _ACEOF
5497
5498         SQLITE3INCLUDES=${sqlite3dir}/include${sqlite3dir_suffix}
5499         SQLITE3LIBS=${sqlite3dir}/lib${sqlite3dir_suffix}
5500
5501         DATABASE_DIR="${DATABASE_DIR} sqlite3"
5502
5503         SQLITE3_LIB="${DATABASE_LIB} -lsqlite3 "
5504         DATABASE_LIB_DIR="${DATABASE_LIB_DIR} -L${SQLITE3LIBS} "
5505
5506
5507         DB_DEF="${DB_DEF} -DHAVE_SQLITE3 "
5508
5509
5510
5511
5512
5513 fi
5514
5515 fi
5516
5517
5518
5519
5520
5521 # Check whether --with-sqlite3-log-ip-as-string was given.
5522 if test "${with_sqlite3_log_ip_as_string+set}" = set; then
5523   withval=$with_sqlite3_log_ip_as_string;
5524    EXTRA_SQLITE3_DEF="${EXTRA_SQLITE3_DEF} -DIP_AS_STRING=1"
5525    { echo "$as_me:$LINENO: WARNING: the use of --with-sqlite3-log-ip-as-string is discouraged" >&5
5526 echo "$as_me: WARNING: the use of --with-sqlite3-log-ip-as-string is discouraged" >&2;}
5527
5528 fi
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543  if test x$mysqldir != x; then
5544   HAVE_MYSQL_TRUE=
5545   HAVE_MYSQL_FALSE='#'
5546 else
5547   HAVE_MYSQL_TRUE='#'
5548   HAVE_MYSQL_FALSE=
5549 fi
5550
5551  if test x$pgsqldir != x; then
5552   HAVE_PGSQL_TRUE=
5553   HAVE_PGSQL_FALSE='#'
5554 else
5555   HAVE_PGSQL_TRUE='#'
5556   HAVE_PGSQL_FALSE=
5557 fi
5558
5559  if test x$sqlite3dir != x; then
5560   HAVE_SQLITE3_TRUE=
5561   HAVE_SQLITE3_FALSE='#'
5562 else
5563   HAVE_SQLITE3_TRUE='#'
5564   HAVE_SQLITE3_FALSE=
5565 fi
5566
5567
5568 ac_config_files="$ac_config_files extensions/Makefile doc/Makefile conffile/Makefile libipulog/Makefile mysql/Makefile pgsql/Makefile sqlite3/Makefile pcap/Makefile drl/Makefile Makefile Rules.make"
5569
5570 cat >confcache <<\_ACEOF
5571 # This file is a shell script that caches the results of configure
5572 # tests run on this system so they can be shared between configure
5573 # scripts and configure runs, see configure's option --config-cache.
5574 # It is not useful on other systems.  If it contains results you don't
5575 # want to keep, you may remove or edit it.
5576 #
5577 # config.status only pays attention to the cache file if you give it
5578 # the --recheck option to rerun configure.
5579 #
5580 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5581 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5582 # following values.
5583
5584 _ACEOF
5585
5586 # The following way of writing the cache mishandles newlines in values,
5587 # but we know of no workaround that is simple, portable, and efficient.
5588 # So, we kill variables containing newlines.
5589 # Ultrix sh set writes to stderr and can't be redirected directly,
5590 # and sets the high bit in the cache file unless we assign to the vars.
5591 (
5592   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5593     eval ac_val=\$$ac_var
5594     case $ac_val in #(
5595     *${as_nl}*)
5596       case $ac_var in #(
5597       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5598 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5599       esac
5600       case $ac_var in #(
5601       _ | IFS | as_nl) ;; #(
5602       *) $as_unset $ac_var ;;
5603       esac ;;
5604     esac
5605   done
5606
5607   (set) 2>&1 |
5608     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5609     *${as_nl}ac_space=\ *)
5610       # `set' does not quote correctly, so add quotes (double-quote
5611       # substitution turns \\\\ into \\, and sed turns \\ into \).
5612       sed -n \
5613         "s/'/'\\\\''/g;
5614           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5615       ;; #(
5616     *)
5617       # `set' quotes correctly as required by POSIX, so do not add quotes.
5618       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5619       ;;
5620     esac |
5621     sort
5622 ) |
5623   sed '
5624      /^ac_cv_env_/b end
5625      t clear
5626      :clear
5627      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5628      t end
5629      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5630      :end' >>confcache
5631 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5632   if test -w "$cache_file"; then
5633     test "x$cache_file" != "x/dev/null" &&
5634       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5635 echo "$as_me: updating cache $cache_file" >&6;}
5636     cat confcache >$cache_file
5637   else
5638     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5639 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5640   fi
5641 fi
5642 rm -f confcache
5643
5644 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5645 # Let make expand exec_prefix.
5646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5647
5648 # Transform confdefs.h into DEFS.
5649 # Protect against shell expansion while executing Makefile rules.
5650 # Protect against Makefile macro expansion.
5651 #
5652 # If the first sed substitution is executed (which looks for macros that
5653 # take arguments), then branch to the quote section.  Otherwise,
5654 # look for a macro that doesn't take arguments.
5655 ac_script='
5656 t clear
5657 :clear
5658 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
5659 t quote
5660 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
5661 t quote
5662 b any
5663 :quote
5664 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5665 s/\[/\\&/g
5666 s/\]/\\&/g
5667 s/\$/$$/g
5668 H
5669 :any
5670 ${
5671         g
5672         s/^\n//
5673         s/\n/ /g
5674         p
5675 }
5676 '
5677 DEFS=`sed -n "$ac_script" confdefs.h`
5678
5679
5680 ac_libobjs=
5681 ac_ltlibobjs=
5682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5683   # 1. Remove the extension, and $U if already installed.
5684   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5685   ac_i=`echo "$ac_i" | sed "$ac_script"`
5686   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5687   #    will be set to the directory where LIBOBJS objects are built.
5688   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5689   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5690 done
5691 LIBOBJS=$ac_libobjs
5692
5693 LTLIBOBJS=$ac_ltlibobjs
5694
5695
5696 if test -z "${HAVE_MYSQL_TRUE}" && test -z "${HAVE_MYSQL_FALSE}"; then
5697   { { echo "$as_me:$LINENO: error: conditional \"HAVE_MYSQL\" was never defined.
5698 Usually this means the macro was only invoked conditionally." >&5
5699 echo "$as_me: error: conditional \"HAVE_MYSQL\" was never defined.
5700 Usually this means the macro was only invoked conditionally." >&2;}
5701    { (exit 1); exit 1; }; }
5702 fi
5703 if test -z "${HAVE_PGSQL_TRUE}" && test -z "${HAVE_PGSQL_FALSE}"; then
5704   { { echo "$as_me:$LINENO: error: conditional \"HAVE_PGSQL\" was never defined.
5705 Usually this means the macro was only invoked conditionally." >&5
5706 echo "$as_me: error: conditional \"HAVE_PGSQL\" was never defined.
5707 Usually this means the macro was only invoked conditionally." >&2;}
5708    { (exit 1); exit 1; }; }
5709 fi
5710 if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
5711   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
5712 Usually this means the macro was only invoked conditionally." >&5
5713 echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
5714 Usually this means the macro was only invoked conditionally." >&2;}
5715    { (exit 1); exit 1; }; }
5716 fi
5717
5718 : ${CONFIG_STATUS=./config.status}
5719 ac_clean_files_save=$ac_clean_files
5720 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5721 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5722 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5723 cat >$CONFIG_STATUS <<_ACEOF
5724 #! $SHELL
5725 # Generated by $as_me.
5726 # Run this file to recreate the current configuration.
5727 # Compiler output produced by configure, useful for debugging
5728 # configure, is in config.log if it exists.
5729
5730 debug=false
5731 ac_cs_recheck=false
5732 ac_cs_silent=false
5733 SHELL=\${CONFIG_SHELL-$SHELL}
5734 _ACEOF
5735
5736 cat >>$CONFIG_STATUS <<\_ACEOF
5737 ## --------------------- ##
5738 ## M4sh Initialization.  ##
5739 ## --------------------- ##
5740
5741 # Be more Bourne compatible
5742 DUALCASE=1; export DUALCASE # for MKS sh
5743 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5744   emulate sh
5745   NULLCMD=:
5746   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5747   # is contrary to our usage.  Disable this feature.
5748   alias -g '${1+"$@"}'='"$@"'
5749   setopt NO_GLOB_SUBST
5750 else
5751   case `(set -o) 2>/dev/null` in
5752   *posix*) set -o posix ;;
5753 esac
5754
5755 fi
5756
5757
5758
5759
5760 # PATH needs CR
5761 # Avoid depending upon Character Ranges.
5762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5765 as_cr_digits='0123456789'
5766 as_cr_alnum=$as_cr_Letters$as_cr_digits
5767
5768 # The user is always right.
5769 if test "${PATH_SEPARATOR+set}" != set; then
5770   echo "#! /bin/sh" >conf$$.sh
5771   echo  "exit 0"   >>conf$$.sh
5772   chmod +x conf$$.sh
5773   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5774     PATH_SEPARATOR=';'
5775   else
5776     PATH_SEPARATOR=:
5777   fi
5778   rm -f conf$$.sh
5779 fi
5780
5781 # Support unset when possible.
5782 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5783   as_unset=unset
5784 else
5785   as_unset=false
5786 fi
5787
5788
5789 # IFS
5790 # We need space, tab and new line, in precisely that order.  Quoting is
5791 # there to prevent editors from complaining about space-tab.
5792 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5793 # splitting by setting IFS to empty value.)
5794 as_nl='
5795 '
5796 IFS=" ""        $as_nl"
5797
5798 # Find who we are.  Look in the path if we contain no directory separator.
5799 case $0 in
5800   *[\\/]* ) as_myself=$0 ;;
5801   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804   IFS=$as_save_IFS
5805   test -z "$as_dir" && as_dir=.
5806   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5807 done
5808 IFS=$as_save_IFS
5809
5810      ;;
5811 esac
5812 # We did not find ourselves, most probably we were run as `sh COMMAND'
5813 # in which case we are not to be found in the path.
5814 if test "x$as_myself" = x; then
5815   as_myself=$0
5816 fi
5817 if test ! -f "$as_myself"; then
5818   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5819   { (exit 1); exit 1; }
5820 fi
5821
5822 # Work around bugs in pre-3.0 UWIN ksh.
5823 for as_var in ENV MAIL MAILPATH
5824 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5825 done
5826 PS1='$ '
5827 PS2='> '
5828 PS4='+ '
5829
5830 # NLS nuisances.
5831 for as_var in \
5832   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5833   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5834   LC_TELEPHONE LC_TIME
5835 do
5836   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5837     eval $as_var=C; export $as_var
5838   else
5839     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5840   fi
5841 done
5842
5843 # Required to use basename.
5844 if expr a : '\(a\)' >/dev/null 2>&1 &&
5845    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5846   as_expr=expr
5847 else
5848   as_expr=false
5849 fi
5850
5851 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5852   as_basename=basename
5853 else
5854   as_basename=false
5855 fi
5856
5857
5858 # Name of the executable.
5859 as_me=`$as_basename -- "$0" ||
5860 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5861          X"$0" : 'X\(//\)$' \| \
5862          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5863 echo X/"$0" |
5864     sed '/^.*\/\([^/][^/]*\)\/*$/{
5865             s//\1/
5866             q
5867           }
5868           /^X\/\(\/\/\)$/{
5869             s//\1/
5870             q
5871           }
5872           /^X\/\(\/\).*/{
5873             s//\1/
5874             q
5875           }
5876           s/.*/./; q'`
5877
5878 # CDPATH.
5879 $as_unset CDPATH
5880
5881
5882
5883   as_lineno_1=$LINENO
5884   as_lineno_2=$LINENO
5885   test "x$as_lineno_1" != "x$as_lineno_2" &&
5886   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5887
5888   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5889   # uniformly replaced by the line number.  The first 'sed' inserts a
5890   # line-number line after each line using $LINENO; the second 'sed'
5891   # does the real work.  The second script uses 'N' to pair each
5892   # line-number line with the line containing $LINENO, and appends
5893   # trailing '-' during substitution so that $LINENO is not a special
5894   # case at line end.
5895   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5896   # scripts with optimization help from Paolo Bonzini.  Blame Lee
5897   # E. McMahon (1931-1989) for sed's syntax.  :-)
5898   sed -n '
5899     p
5900     /[$]LINENO/=
5901   ' <$as_myself |
5902     sed '
5903       s/[$]LINENO.*/&-/
5904       t lineno
5905       b
5906       :lineno
5907       N
5908       :loop
5909       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5910       t loop
5911       s/-\n.*//
5912     ' >$as_me.lineno &&
5913   chmod +x "$as_me.lineno" ||
5914     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5915    { (exit 1); exit 1; }; }
5916
5917   # Don't try to exec as it changes $[0], causing all sort of problems
5918   # (the dirname of $[0] is not the place where we might find the
5919   # original and so on.  Autoconf is especially sensitive to this).
5920   . "./$as_me.lineno"
5921   # Exit status is that of the last command.
5922   exit
5923 }
5924
5925
5926 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5927   as_dirname=dirname
5928 else
5929   as_dirname=false
5930 fi
5931
5932 ECHO_C= ECHO_N= ECHO_T=
5933 case `echo -n x` in
5934 -n*)
5935   case `echo 'x\c'` in
5936   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5937   *)   ECHO_C='\c';;
5938   esac;;
5939 *)
5940   ECHO_N='-n';;
5941 esac
5942
5943 if expr a : '\(a\)' >/dev/null 2>&1 &&
5944    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5945   as_expr=expr
5946 else
5947   as_expr=false
5948 fi
5949
5950 rm -f conf$$ conf$$.exe conf$$.file
5951 if test -d conf$$.dir; then
5952   rm -f conf$$.dir/conf$$.file
5953 else
5954   rm -f conf$$.dir
5955   mkdir conf$$.dir
5956 fi
5957 echo >conf$$.file
5958 if ln -s conf$$.file conf$$ 2>/dev/null; then
5959   as_ln_s='ln -s'
5960   # ... but there are two gotchas:
5961   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5962   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5963   # In both cases, we have to default to `cp -p'.
5964   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5965     as_ln_s='cp -p'
5966 elif ln conf$$.file conf$$ 2>/dev/null; then
5967   as_ln_s=ln
5968 else
5969   as_ln_s='cp -p'
5970 fi
5971 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5972 rmdir conf$$.dir 2>/dev/null
5973
5974 if mkdir -p . 2>/dev/null; then
5975   as_mkdir_p=:
5976 else
5977   test -d ./-p && rmdir ./-p
5978   as_mkdir_p=false
5979 fi
5980
5981 if test -x / >/dev/null 2>&1; then
5982   as_test_x='test -x'
5983 else
5984   if ls -dL / >/dev/null 2>&1; then
5985     as_ls_L_option=L
5986   else
5987     as_ls_L_option=
5988   fi
5989   as_test_x='
5990     eval sh -c '\''
5991       if test -d "$1"; then
5992         test -d "$1/.";
5993       else
5994         case $1 in
5995         -*)set "./$1";;
5996         esac;
5997         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5998         ???[sx]*):;;*)false;;esac;fi
5999     '\'' sh
6000   '
6001 fi
6002 as_executable_p=$as_test_x
6003
6004 # Sed expression to map a string onto a valid CPP name.
6005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6006
6007 # Sed expression to map a string onto a valid variable name.
6008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6009
6010
6011 exec 6>&1
6012
6013 # Save the log message, to keep $[0] and so on meaningful, and to
6014 # report actual input values of CONFIG_FILES etc. instead of their
6015 # values after options handling.
6016 ac_log="
6017 This file was extended by $as_me, which was
6018 generated by GNU Autoconf 2.61.  Invocation command line was
6019
6020   CONFIG_FILES    = $CONFIG_FILES
6021   CONFIG_HEADERS  = $CONFIG_HEADERS
6022   CONFIG_LINKS    = $CONFIG_LINKS
6023   CONFIG_COMMANDS = $CONFIG_COMMANDS
6024   $ $0 $@
6025
6026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6027 "
6028
6029 _ACEOF
6030
6031 cat >>$CONFIG_STATUS <<_ACEOF
6032 # Files that config.status was made for.
6033 config_files="$ac_config_files"
6034
6035 _ACEOF
6036
6037 cat >>$CONFIG_STATUS <<\_ACEOF
6038 ac_cs_usage="\
6039 \`$as_me' instantiates files from templates according to the
6040 current configuration.
6041
6042 Usage: $0 [OPTIONS] [FILE]...
6043
6044   -h, --help       print this help, then exit
6045   -V, --version    print version number and configuration settings, then exit
6046   -q, --quiet      do not print progress messages
6047   -d, --debug      don't remove temporary files
6048       --recheck    update $as_me by reconfiguring in the same conditions
6049   --file=FILE[:TEMPLATE]
6050                    instantiate the configuration file FILE
6051
6052 Configuration files:
6053 $config_files
6054
6055 Report bugs to <bug-autoconf@gnu.org>."
6056
6057 _ACEOF
6058 cat >>$CONFIG_STATUS <<_ACEOF
6059 ac_cs_version="\\
6060 config.status
6061 configured by $0, generated by GNU Autoconf 2.61,
6062   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6063
6064 Copyright (C) 2006 Free Software Foundation, Inc.
6065 This config.status script is free software; the Free Software Foundation
6066 gives unlimited permission to copy, distribute and modify it."
6067
6068 ac_pwd='$ac_pwd'
6069 srcdir='$srcdir'
6070 INSTALL='$INSTALL'
6071 _ACEOF
6072
6073 cat >>$CONFIG_STATUS <<\_ACEOF
6074 # If no file are specified by the user, then we need to provide default
6075 # value.  By we need to know if files were specified by the user.
6076 ac_need_defaults=:
6077 while test $# != 0
6078 do
6079   case $1 in
6080   --*=*)
6081     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6082     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6083     ac_shift=:
6084     ;;
6085   *)
6086     ac_option=$1
6087     ac_optarg=$2
6088     ac_shift=shift
6089     ;;
6090   esac
6091
6092   case $ac_option in
6093   # Handling of the options.
6094   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6095     ac_cs_recheck=: ;;
6096   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6097     echo "$ac_cs_version"; exit ;;
6098   --debug | --debu | --deb | --de | --d | -d )
6099     debug=: ;;
6100   --file | --fil | --fi | --f )
6101     $ac_shift
6102     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6103     ac_need_defaults=false;;
6104   --he | --h |  --help | --hel | -h )
6105     echo "$ac_cs_usage"; exit ;;
6106   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6107   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6108     ac_cs_silent=: ;;
6109
6110   # This is an error.
6111   -*) { echo "$as_me: error: unrecognized option: $1
6112 Try \`$0 --help' for more information." >&2
6113    { (exit 1); exit 1; }; } ;;
6114
6115   *) ac_config_targets="$ac_config_targets $1"
6116      ac_need_defaults=false ;;
6117
6118   esac
6119   shift
6120 done
6121
6122 ac_configure_extra_args=
6123
6124 if $ac_cs_silent; then
6125   exec 6>/dev/null
6126   ac_configure_extra_args="$ac_configure_extra_args --silent"
6127 fi
6128
6129 _ACEOF
6130 cat >>$CONFIG_STATUS <<_ACEOF
6131 if \$ac_cs_recheck; then
6132   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6133   CONFIG_SHELL=$SHELL
6134   export CONFIG_SHELL
6135   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6136 fi
6137
6138 _ACEOF
6139 cat >>$CONFIG_STATUS <<\_ACEOF
6140 exec 5>>config.log
6141 {
6142   echo
6143   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6144 ## Running $as_me. ##
6145 _ASBOX
6146   echo "$ac_log"
6147 } >&5
6148
6149 _ACEOF
6150 cat >>$CONFIG_STATUS <<_ACEOF
6151 _ACEOF
6152
6153 cat >>$CONFIG_STATUS <<\_ACEOF
6154
6155 # Handling of arguments.
6156 for ac_config_target in $ac_config_targets
6157 do
6158   case $ac_config_target in
6159     "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
6160     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6161     "conffile/Makefile") CONFIG_FILES="$CONFIG_FILES conffile/Makefile" ;;
6162     "libipulog/Makefile") CONFIG_FILES="$CONFIG_FILES libipulog/Makefile" ;;
6163     "mysql/Makefile") CONFIG_FILES="$CONFIG_FILES mysql/Makefile" ;;
6164     "pgsql/Makefile") CONFIG_FILES="$CONFIG_FILES pgsql/Makefile" ;;
6165     "sqlite3/Makefile") CONFIG_FILES="$CONFIG_FILES sqlite3/Makefile" ;;
6166     "pcap/Makefile") CONFIG_FILES="$CONFIG_FILES pcap/Makefile" ;;
6167     "drl/Makefile") CONFIG_FILES="$CONFIG_FILES drl/Makefile" ;;
6168     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6169     "Rules.make") CONFIG_FILES="$CONFIG_FILES Rules.make" ;;
6170
6171   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6172 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6173    { (exit 1); exit 1; }; };;
6174   esac
6175 done
6176
6177
6178 # If the user did not use the arguments to specify the items to instantiate,
6179 # then the envvar interface is used.  Set only those that are not.
6180 # We use the long form for the default assignment because of an extremely
6181 # bizarre bug on SunOS 4.1.3.
6182 if $ac_need_defaults; then
6183   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6184 fi
6185
6186 # Have a temporary directory for convenience.  Make it in the build tree
6187 # simply because there is no reason against having it here, and in addition,
6188 # creating and moving files from /tmp can sometimes cause problems.
6189 # Hook for its removal unless debugging.
6190 # Note that there is a small window in which the directory will not be cleaned:
6191 # after its creation but before its name has been assigned to `$tmp'.
6192 $debug ||
6193 {
6194   tmp=
6195   trap 'exit_status=$?
6196   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6197 ' 0
6198   trap '{ (exit 1); exit 1; }' 1 2 13 15
6199 }
6200 # Create a (secure) tmp directory for tmp files.
6201
6202 {
6203   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6204   test -n "$tmp" && test -d "$tmp"
6205 }  ||
6206 {
6207   tmp=./conf$$-$RANDOM
6208   (umask 077 && mkdir "$tmp")
6209 } ||
6210 {
6211    echo "$me: cannot create a temporary directory in ." >&2
6212    { (exit 1); exit 1; }
6213 }
6214
6215 #
6216 # Set up the sed scripts for CONFIG_FILES section.
6217 #
6218
6219 # No need to generate the scripts if there are no CONFIG_FILES.
6220 # This happens for instance when ./config.status config.h
6221 if test -n "$CONFIG_FILES"; then
6222
6223 _ACEOF
6224
6225
6226
6227 ac_delim='%!_!# '
6228 for ac_last_try in false false false false false :; do
6229   cat >conf$$subs.sed <<_ACEOF
6230 SHELL!$SHELL$ac_delim
6231 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6232 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6233 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6234 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6235 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6236 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6237 exec_prefix!$exec_prefix$ac_delim
6238 prefix!$prefix$ac_delim
6239 program_transform_name!$program_transform_name$ac_delim
6240 bindir!$bindir$ac_delim
6241 sbindir!$sbindir$ac_delim
6242 libexecdir!$libexecdir$ac_delim
6243 datarootdir!$datarootdir$ac_delim
6244 datadir!$datadir$ac_delim
6245 sysconfdir!$sysconfdir$ac_delim
6246 sharedstatedir!$sharedstatedir$ac_delim
6247 localstatedir!$localstatedir$ac_delim
6248 includedir!$includedir$ac_delim
6249 oldincludedir!$oldincludedir$ac_delim
6250 docdir!$docdir$ac_delim
6251 infodir!$infodir$ac_delim
6252 htmldir!$htmldir$ac_delim
6253 dvidir!$dvidir$ac_delim
6254 pdfdir!$pdfdir$ac_delim
6255 psdir!$psdir$ac_delim
6256 libdir!$libdir$ac_delim
6257 localedir!$localedir$ac_delim
6258 mandir!$mandir$ac_delim
6259 DEFS!$DEFS$ac_delim
6260 ECHO_C!$ECHO_C$ac_delim
6261 ECHO_N!$ECHO_N$ac_delim
6262 ECHO_T!$ECHO_T$ac_delim
6263 LIBS!$LIBS$ac_delim
6264 build_alias!$build_alias$ac_delim
6265 host_alias!$host_alias$ac_delim
6266 target_alias!$target_alias$ac_delim
6267 SET_MAKE!$SET_MAKE$ac_delim
6268 CC!$CC$ac_delim
6269 CFLAGS!$CFLAGS$ac_delim
6270 LDFLAGS!$LDFLAGS$ac_delim
6271 CPPFLAGS!$CPPFLAGS$ac_delim
6272 ac_ct_CC!$ac_ct_CC$ac_delim
6273 EXEEXT!$EXEEXT$ac_delim
6274 OBJEXT!$OBJEXT$ac_delim
6275 LD!$LD$ac_delim
6276 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6277 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6278 INSTALL_DATA!$INSTALL_DATA$ac_delim
6279 CPP!$CPP$ac_delim
6280 GREP!$GREP$ac_delim
6281 EGREP!$EGREP$ac_delim
6282 MYSQLINCLUDES!$MYSQLINCLUDES$ac_delim
6283 MYSQL_LIB!$MYSQL_LIB$ac_delim
6284 XMLINCLUDES!$XMLINCLUDES$ac_delim
6285 XMLLIBS!$XMLLIBS$ac_delim
6286 ZKLIBS!$ZKLIBS$ac_delim
6287 ZKFLAGS!$ZKFLAGS$ac_delim
6288 PGSQLINCLUDES!$PGSQLINCLUDES$ac_delim
6289 PGSQL_LIB!$PGSQL_LIB$ac_delim
6290 SQLITE3INCLUDES!$SQLITE3INCLUDES$ac_delim
6291 SQLITE3_LIB!$SQLITE3_LIB$ac_delim
6292 DATABASE_DIR!$DATABASE_DIR$ac_delim
6293 DATABASE_LIB!$DATABASE_LIB$ac_delim
6294 DATABASE_LIB_DIR!$DATABASE_LIB_DIR$ac_delim
6295 DB_DEF!$DB_DEF$ac_delim
6296 EXTRA_MYSQL_DEF!$EXTRA_MYSQL_DEF$ac_delim
6297 EXTRA_PGSQL_DEF!$EXTRA_PGSQL_DEF$ac_delim
6298 EXTRA_SQLITE3_DEF!$EXTRA_SQLITE3_DEF$ac_delim
6299 DATABASE_DRIVERS!$DATABASE_DRIVERS$ac_delim
6300 HAVE_PCAP_H!$HAVE_PCAP_H$ac_delim
6301 HAVE_MYSQL_TRUE!$HAVE_MYSQL_TRUE$ac_delim
6302 HAVE_MYSQL_FALSE!$HAVE_MYSQL_FALSE$ac_delim
6303 HAVE_PGSQL_TRUE!$HAVE_PGSQL_TRUE$ac_delim
6304 HAVE_PGSQL_FALSE!$HAVE_PGSQL_FALSE$ac_delim
6305 HAVE_SQLITE3_TRUE!$HAVE_SQLITE3_TRUE$ac_delim
6306 HAVE_SQLITE3_FALSE!$HAVE_SQLITE3_FALSE$ac_delim
6307 LIBOBJS!$LIBOBJS$ac_delim
6308 LTLIBOBJS!$LTLIBOBJS$ac_delim
6309 _ACEOF
6310
6311   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
6312     break
6313   elif $ac_last_try; then
6314     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6315 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6316    { (exit 1); exit 1; }; }
6317   else
6318     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6319   fi
6320 done
6321
6322 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6323 if test -n "$ac_eof"; then
6324   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6325   ac_eof=`expr $ac_eof + 1`
6326 fi
6327
6328 cat >>$CONFIG_STATUS <<_ACEOF
6329 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6331 _ACEOF
6332 sed '
6333 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6334 s/^/s,@/; s/!/@,|#_!!_#|/
6335 :n
6336 t n
6337 s/'"$ac_delim"'$/,g/; t
6338 s/$/\\/; p
6339 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6340 ' >>$CONFIG_STATUS <conf$$subs.sed
6341 rm -f conf$$subs.sed
6342 cat >>$CONFIG_STATUS <<_ACEOF
6343 :end
6344 s/|#_!!_#|//g
6345 CEOF$ac_eof
6346 _ACEOF
6347
6348
6349 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6350 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6351 # trailing colons and then remove the whole line if VPATH becomes empty
6352 # (actually we leave an empty line to preserve line numbers).
6353 if test "x$srcdir" = x.; then
6354   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6355 s/:*\$(srcdir):*/:/
6356 s/:*\${srcdir}:*/:/
6357 s/:*@srcdir@:*/:/
6358 s/^\([^=]*=[     ]*\):*/\1/
6359 s/:*$//
6360 s/^[^=]*=[       ]*$//
6361 }'
6362 fi
6363
6364 cat >>$CONFIG_STATUS <<\_ACEOF
6365 fi # test -n "$CONFIG_FILES"
6366
6367
6368 for ac_tag in  :F $CONFIG_FILES
6369 do
6370   case $ac_tag in
6371   :[FHLC]) ac_mode=$ac_tag; continue;;
6372   esac
6373   case $ac_mode$ac_tag in
6374   :[FHL]*:*);;
6375   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6376 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6377    { (exit 1); exit 1; }; };;
6378   :[FH]-) ac_tag=-:-;;
6379   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6380   esac
6381   ac_save_IFS=$IFS
6382   IFS=:
6383   set x $ac_tag
6384   IFS=$ac_save_IFS
6385   shift
6386   ac_file=$1
6387   shift
6388
6389   case $ac_mode in
6390   :L) ac_source=$1;;
6391   :[FH])
6392     ac_file_inputs=
6393     for ac_f
6394     do
6395       case $ac_f in
6396       -) ac_f="$tmp/stdin";;
6397       *) # Look for the file first in the build tree, then in the source tree
6398          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6399          # because $ac_f cannot contain `:'.
6400          test -f "$ac_f" ||
6401            case $ac_f in
6402            [\\/$]*) false;;
6403            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6404            esac ||
6405            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6406 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6407    { (exit 1); exit 1; }; };;
6408       esac
6409       ac_file_inputs="$ac_file_inputs $ac_f"
6410     done
6411
6412     # Let's still pretend it is `configure' which instantiates (i.e., don't
6413     # use $as_me), people would be surprised to read:
6414     #    /* config.h.  Generated by config.status.  */
6415     configure_input="Generated from "`IFS=:
6416           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6417     if test x"$ac_file" != x-; then
6418       configure_input="$ac_file.  $configure_input"
6419       { echo "$as_me:$LINENO: creating $ac_file" >&5
6420 echo "$as_me: creating $ac_file" >&6;}
6421     fi
6422
6423     case $ac_tag in
6424     *:-:* | *:-) cat >"$tmp/stdin";;
6425     esac
6426     ;;
6427   esac
6428
6429   ac_dir=`$as_dirname -- "$ac_file" ||
6430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6431          X"$ac_file" : 'X\(//\)[^/]' \| \
6432          X"$ac_file" : 'X\(//\)$' \| \
6433          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6434 echo X"$ac_file" |
6435     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6436             s//\1/
6437             q
6438           }
6439           /^X\(\/\/\)[^/].*/{
6440             s//\1/
6441             q
6442           }
6443           /^X\(\/\/\)$/{
6444             s//\1/
6445             q
6446           }
6447           /^X\(\/\).*/{
6448             s//\1/
6449             q
6450           }
6451           s/.*/./; q'`
6452   { as_dir="$ac_dir"
6453   case $as_dir in #(
6454   -*) as_dir=./$as_dir;;
6455   esac
6456   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6457     as_dirs=
6458     while :; do
6459       case $as_dir in #(
6460       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6461       *) as_qdir=$as_dir;;
6462       esac
6463       as_dirs="'$as_qdir' $as_dirs"
6464       as_dir=`$as_dirname -- "$as_dir" ||
6465 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6466          X"$as_dir" : 'X\(//\)[^/]' \| \
6467          X"$as_dir" : 'X\(//\)$' \| \
6468          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6469 echo X"$as_dir" |
6470     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6471             s//\1/
6472             q
6473           }
6474           /^X\(\/\/\)[^/].*/{
6475             s//\1/
6476             q
6477           }
6478           /^X\(\/\/\)$/{
6479             s//\1/
6480             q
6481           }
6482           /^X\(\/\).*/{
6483             s//\1/
6484             q
6485           }
6486           s/.*/./; q'`
6487       test -d "$as_dir" && break
6488     done
6489     test -z "$as_dirs" || eval "mkdir $as_dirs"
6490   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6491 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6492    { (exit 1); exit 1; }; }; }
6493   ac_builddir=.
6494
6495 case "$ac_dir" in
6496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6497 *)
6498   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6499   # A ".." for each directory in $ac_dir_suffix.
6500   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6501   case $ac_top_builddir_sub in
6502   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6503   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6504   esac ;;
6505 esac
6506 ac_abs_top_builddir=$ac_pwd
6507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6508 # for backward compatibility:
6509 ac_top_builddir=$ac_top_build_prefix
6510
6511 case $srcdir in
6512   .)  # We are building in place.
6513     ac_srcdir=.
6514     ac_top_srcdir=$ac_top_builddir_sub
6515     ac_abs_top_srcdir=$ac_pwd ;;
6516   [\\/]* | ?:[\\/]* )  # Absolute name.
6517     ac_srcdir=$srcdir$ac_dir_suffix;
6518     ac_top_srcdir=$srcdir
6519     ac_abs_top_srcdir=$srcdir ;;
6520   *) # Relative name.
6521     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6522     ac_top_srcdir=$ac_top_build_prefix$srcdir
6523     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6524 esac
6525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6526
6527
6528   case $ac_mode in
6529   :F)
6530   #
6531   # CONFIG_FILE
6532   #
6533
6534   case $INSTALL in
6535   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6536   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6537   esac
6538 _ACEOF
6539
6540 cat >>$CONFIG_STATUS <<\_ACEOF
6541 # If the template does not know about datarootdir, expand it.
6542 # FIXME: This hack should be removed a few years after 2.60.
6543 ac_datarootdir_hack=; ac_datarootdir_seen=
6544
6545 case `sed -n '/datarootdir/ {
6546   p
6547   q
6548 }
6549 /@datadir@/p
6550 /@docdir@/p
6551 /@infodir@/p
6552 /@localedir@/p
6553 /@mandir@/p
6554 ' $ac_file_inputs` in
6555 *datarootdir*) ac_datarootdir_seen=yes;;
6556 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6557   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6558 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6559 _ACEOF
6560 cat >>$CONFIG_STATUS <<_ACEOF
6561   ac_datarootdir_hack='
6562   s&@datadir@&$datadir&g
6563   s&@docdir@&$docdir&g
6564   s&@infodir@&$infodir&g
6565   s&@localedir@&$localedir&g
6566   s&@mandir@&$mandir&g
6567     s&\\\${datarootdir}&$datarootdir&g' ;;
6568 esac
6569 _ACEOF
6570
6571 # Neutralize VPATH when `$srcdir' = `.'.
6572 # Shell code in configure.ac might set extrasub.
6573 # FIXME: do we really want to maintain this feature?
6574 cat >>$CONFIG_STATUS <<_ACEOF
6575   sed "$ac_vpsub
6576 $extrasub
6577 _ACEOF
6578 cat >>$CONFIG_STATUS <<\_ACEOF
6579 :t
6580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6581 s&@configure_input@&$configure_input&;t t
6582 s&@top_builddir@&$ac_top_builddir_sub&;t t
6583 s&@srcdir@&$ac_srcdir&;t t
6584 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6585 s&@top_srcdir@&$ac_top_srcdir&;t t
6586 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6587 s&@builddir@&$ac_builddir&;t t
6588 s&@abs_builddir@&$ac_abs_builddir&;t t
6589 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6590 s&@INSTALL@&$ac_INSTALL&;t t
6591 $ac_datarootdir_hack
6592 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6593
6594 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6595   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6596   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6597   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6598 which seems to be undefined.  Please make sure it is defined." >&5
6599 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6600 which seems to be undefined.  Please make sure it is defined." >&2;}
6601
6602   rm -f "$tmp/stdin"
6603   case $ac_file in
6604   -) cat "$tmp/out"; rm -f "$tmp/out";;
6605   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6606   esac
6607  ;;
6608
6609
6610
6611   esac
6612
6613 done # for ac_tag
6614
6615
6616 { (exit 0); exit 0; }
6617 _ACEOF
6618 chmod +x $CONFIG_STATUS
6619 ac_clean_files=$ac_clean_files_save
6620
6621
6622 # configure is writing to config.log, and then calls config.status.
6623 # config.status does its own redirection, appending to config.log.
6624 # Unfortunately, on DOS this fails, as config.log is still kept open
6625 # by configure, so config.status won't be able to write to it; its
6626 # output is simply discarded.  So we exec the FD to /dev/null,
6627 # effectively closing config.log, so it can be properly (re)opened and
6628 # appended to by config.status.  When coming back to configure, we
6629 # need to make the FD available again.
6630 if test "$no_create" != yes; then
6631   ac_cs_success=:
6632   ac_config_status_args=
6633   test "$silent" = yes &&
6634     ac_config_status_args="$ac_config_status_args --quiet"
6635   exec 5>/dev/null
6636   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6637   exec 5>>config.log
6638   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6639   # would make configure fail if this is the last instruction.
6640   $ac_cs_success || { (exit 1); exit 1; }
6641 fi
6642