Merge branch 'svn-upstream'
[flowgrind.git] / configure
blob46a6d32cd1d06b49084040e68ee389c007b61757
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for flowgrind 0.12.
5 # Report bugs to <daniel.schaffrath@mac.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
48 rm -f conf$$.sh
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
59 # IFS
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
66 IFS=" "" $as_nl"
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85 as_myself=$0
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
100 # NLS nuisances.
101 for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 done
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
138 /^X\/\(\/\/\)$/{
139 s//\1/
142 /^X\/\(\/\).*/{
143 s//\1/
146 s/.*/./; q'`
148 # CDPATH.
149 $as_unset CDPATH
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
163 as_func_success () {
164 as_func_return 0
166 as_func_failure () {
167 as_func_return 1
169 as_func_ret_success () {
170 return 0
172 as_func_ret_failure () {
173 return 1
176 exitcode=0
177 if as_func_success; then
179 else
180 exitcode=1
181 echo as_func_success failed.
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 else
204 exitcode=1
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230 done
231 IFS=$as_save_IFS
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
253 _ASEOF
254 }; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
273 (as_func_return () {
274 (exit $1)
276 as_func_success () {
277 as_func_return 0
279 as_func_failure () {
280 as_func_return 1
282 as_func_ret_success () {
283 return 0
285 as_func_ret_failure () {
286 return 1
289 exitcode=0
290 if as_func_success; then
292 else
293 exitcode=1
294 echo as_func_success failed.
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 else
317 exitcode=1
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329 _ASEOF
330 }; then
331 break
336 done
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
363 (exit \$1)
365 as_func_success () {
366 as_func_return 0
368 as_func_failure () {
369 as_func_return 1
371 as_func_ret_success () {
372 return 0
374 as_func_ret_failure () {
375 return 1
378 exitcode=0
379 if as_func_success; then
381 else
382 exitcode=1
383 echo as_func_success failed.
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 else
406 exitcode=1
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
476 ECHO_N='-n';;
477 esac
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
529 rm -f conf$$.file
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 # Initializations.
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='flowgrind'
561 PACKAGE_TARNAME='flowgrind'
562 PACKAGE_VERSION='0.12'
563 PACKAGE_STRING='flowgrind 0.12'
564 PACKAGE_BUGREPORT='daniel.schaffrath@mac.com'
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #if HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #if HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #if STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # if HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #if HAVE_STRING_H
584 # if !STDC_HEADERS && HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #if HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #if HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #if HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #if HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_subst_vars='SHELL
603 PATH_SEPARATOR
604 PACKAGE_NAME
605 PACKAGE_TARNAME
606 PACKAGE_VERSION
607 PACKAGE_STRING
608 PACKAGE_BUGREPORT
609 exec_prefix
610 prefix
611 program_transform_name
612 bindir
613 sbindir
614 libexecdir
615 datarootdir
616 datadir
617 sysconfdir
618 sharedstatedir
619 localstatedir
620 includedir
621 oldincludedir
622 docdir
623 infodir
624 htmldir
625 dvidir
626 pdfdir
627 psdir
628 libdir
629 localedir
630 mandir
631 DEFS
632 ECHO_C
633 ECHO_N
634 ECHO_T
635 LIBS
636 build_alias
637 host_alias
638 target_alias
639 INSTALL_PROGRAM
640 INSTALL_SCRIPT
641 INSTALL_DATA
642 CYGPATH_W
643 PACKAGE
644 VERSION
645 ACLOCAL
646 AUTOCONF
647 AUTOMAKE
648 AUTOHEADER
649 MAKEINFO
650 install_sh
651 STRIP
652 INSTALL_STRIP_PROGRAM
653 mkdir_p
655 SET_MAKE
656 am__leading_dot
657 AMTAR
658 am__tar
659 am__untar
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 DEPDIR
668 am__include
669 am__quote
670 AMDEP_TRUE
671 AMDEP_FALSE
672 AMDEPBACKSLASH
673 CCDEPMODE
674 am__fastdepCC_TRUE
675 am__fastdepCC_FALSE
676 PERL
677 build
678 build_cpu
679 build_vendor
680 build_os
681 host
682 host_cpu
683 host_vendor
684 host_os
686 GREP
687 EGREP
688 LIBOBJS
689 PCAP_LIBS
690 LTLIBOBJS'
691 ac_subst_files=''
692 ac_precious_vars='build_alias
693 host_alias
694 target_alias
696 CFLAGS
697 LDFLAGS
698 CPPFLAGS
699 CPP'
702 # Initialize some variables set by options.
703 ac_init_help=
704 ac_init_version=false
705 # The variables have the same names as the options, with
706 # dashes changed to underlines.
707 cache_file=/dev/null
708 exec_prefix=NONE
709 no_create=
710 no_recursion=
711 prefix=NONE
712 program_prefix=NONE
713 program_suffix=NONE
714 program_transform_name=s,x,x,
715 silent=
716 site=
717 srcdir=
718 verbose=
719 x_includes=NONE
720 x_libraries=NONE
722 # Installation directory options.
723 # These are left unexpanded so users can "make install exec_prefix=/foo"
724 # and all the variables that are supposed to be based on exec_prefix
725 # by default will actually change.
726 # Use braces instead of parens because sh, perl, etc. also accept them.
727 # (The list follows the same order as the GNU Coding Standards.)
728 bindir='${exec_prefix}/bin'
729 sbindir='${exec_prefix}/sbin'
730 libexecdir='${exec_prefix}/libexec'
731 datarootdir='${prefix}/share'
732 datadir='${datarootdir}'
733 sysconfdir='${prefix}/etc'
734 sharedstatedir='${prefix}/com'
735 localstatedir='${prefix}/var'
736 includedir='${prefix}/include'
737 oldincludedir='/usr/include'
738 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
739 infodir='${datarootdir}/info'
740 htmldir='${docdir}'
741 dvidir='${docdir}'
742 pdfdir='${docdir}'
743 psdir='${docdir}'
744 libdir='${exec_prefix}/lib'
745 localedir='${datarootdir}/locale'
746 mandir='${datarootdir}/man'
748 ac_prev=
749 ac_dashdash=
750 for ac_option
752 # If the previous option needs an argument, assign it.
753 if test -n "$ac_prev"; then
754 eval $ac_prev=\$ac_option
755 ac_prev=
756 continue
759 case $ac_option in
760 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
761 *) ac_optarg=yes ;;
762 esac
764 # Accept the important Cygnus configure options, so we can diagnose typos.
766 case $ac_dashdash$ac_option in
768 ac_dashdash=yes ;;
770 -bindir | --bindir | --bindi | --bind | --bin | --bi)
771 ac_prev=bindir ;;
772 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
773 bindir=$ac_optarg ;;
775 -build | --build | --buil | --bui | --bu)
776 ac_prev=build_alias ;;
777 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
778 build_alias=$ac_optarg ;;
780 -cache-file | --cache-file | --cache-fil | --cache-fi \
781 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
782 ac_prev=cache_file ;;
783 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
784 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
785 cache_file=$ac_optarg ;;
787 --config-cache | -C)
788 cache_file=config.cache ;;
790 -datadir | --datadir | --datadi | --datad)
791 ac_prev=datadir ;;
792 -datadir=* | --datadir=* | --datadi=* | --datad=*)
793 datadir=$ac_optarg ;;
795 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
796 | --dataroo | --dataro | --datar)
797 ac_prev=datarootdir ;;
798 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
799 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
800 datarootdir=$ac_optarg ;;
802 -disable-* | --disable-*)
803 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
804 # Reject names that are not valid shell variable names.
805 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
806 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
807 { (exit 1); exit 1; }; }
808 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
809 eval enable_$ac_feature=no ;;
811 -docdir | --docdir | --docdi | --doc | --do)
812 ac_prev=docdir ;;
813 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
814 docdir=$ac_optarg ;;
816 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
817 ac_prev=dvidir ;;
818 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
819 dvidir=$ac_optarg ;;
821 -enable-* | --enable-*)
822 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
825 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
826 { (exit 1); exit 1; }; }
827 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
828 eval enable_$ac_feature=\$ac_optarg ;;
830 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
831 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
832 | --exec | --exe | --ex)
833 ac_prev=exec_prefix ;;
834 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
835 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
836 | --exec=* | --exe=* | --ex=*)
837 exec_prefix=$ac_optarg ;;
839 -gas | --gas | --ga | --g)
840 # Obsolete; use --with-gas.
841 with_gas=yes ;;
843 -help | --help | --hel | --he | -h)
844 ac_init_help=long ;;
845 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
846 ac_init_help=recursive ;;
847 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
848 ac_init_help=short ;;
850 -host | --host | --hos | --ho)
851 ac_prev=host_alias ;;
852 -host=* | --host=* | --hos=* | --ho=*)
853 host_alias=$ac_optarg ;;
855 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
856 ac_prev=htmldir ;;
857 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
858 | --ht=*)
859 htmldir=$ac_optarg ;;
861 -includedir | --includedir | --includedi | --included | --include \
862 | --includ | --inclu | --incl | --inc)
863 ac_prev=includedir ;;
864 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
865 | --includ=* | --inclu=* | --incl=* | --inc=*)
866 includedir=$ac_optarg ;;
868 -infodir | --infodir | --infodi | --infod | --info | --inf)
869 ac_prev=infodir ;;
870 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
871 infodir=$ac_optarg ;;
873 -libdir | --libdir | --libdi | --libd)
874 ac_prev=libdir ;;
875 -libdir=* | --libdir=* | --libdi=* | --libd=*)
876 libdir=$ac_optarg ;;
878 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
879 | --libexe | --libex | --libe)
880 ac_prev=libexecdir ;;
881 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
882 | --libexe=* | --libex=* | --libe=*)
883 libexecdir=$ac_optarg ;;
885 -localedir | --localedir | --localedi | --localed | --locale)
886 ac_prev=localedir ;;
887 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
888 localedir=$ac_optarg ;;
890 -localstatedir | --localstatedir | --localstatedi | --localstated \
891 | --localstate | --localstat | --localsta | --localst | --locals)
892 ac_prev=localstatedir ;;
893 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
894 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
895 localstatedir=$ac_optarg ;;
897 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
898 ac_prev=mandir ;;
899 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
900 mandir=$ac_optarg ;;
902 -nfp | --nfp | --nf)
903 # Obsolete; use --without-fp.
904 with_fp=no ;;
906 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
907 | --no-cr | --no-c | -n)
908 no_create=yes ;;
910 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
911 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
912 no_recursion=yes ;;
914 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
915 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
916 | --oldin | --oldi | --old | --ol | --o)
917 ac_prev=oldincludedir ;;
918 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
919 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
920 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
921 oldincludedir=$ac_optarg ;;
923 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
924 ac_prev=prefix ;;
925 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
926 prefix=$ac_optarg ;;
928 -program-prefix | --program-prefix | --program-prefi | --program-pref \
929 | --program-pre | --program-pr | --program-p)
930 ac_prev=program_prefix ;;
931 -program-prefix=* | --program-prefix=* | --program-prefi=* \
932 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
933 program_prefix=$ac_optarg ;;
935 -program-suffix | --program-suffix | --program-suffi | --program-suff \
936 | --program-suf | --program-su | --program-s)
937 ac_prev=program_suffix ;;
938 -program-suffix=* | --program-suffix=* | --program-suffi=* \
939 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
940 program_suffix=$ac_optarg ;;
942 -program-transform-name | --program-transform-name \
943 | --program-transform-nam | --program-transform-na \
944 | --program-transform-n | --program-transform- \
945 | --program-transform | --program-transfor \
946 | --program-transfo | --program-transf \
947 | --program-trans | --program-tran \
948 | --progr-tra | --program-tr | --program-t)
949 ac_prev=program_transform_name ;;
950 -program-transform-name=* | --program-transform-name=* \
951 | --program-transform-nam=* | --program-transform-na=* \
952 | --program-transform-n=* | --program-transform-=* \
953 | --program-transform=* | --program-transfor=* \
954 | --program-transfo=* | --program-transf=* \
955 | --program-trans=* | --program-tran=* \
956 | --progr-tra=* | --program-tr=* | --program-t=*)
957 program_transform_name=$ac_optarg ;;
959 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
960 ac_prev=pdfdir ;;
961 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
962 pdfdir=$ac_optarg ;;
964 -psdir | --psdir | --psdi | --psd | --ps)
965 ac_prev=psdir ;;
966 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
967 psdir=$ac_optarg ;;
969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
970 | -silent | --silent | --silen | --sile | --sil)
971 silent=yes ;;
973 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
974 ac_prev=sbindir ;;
975 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
976 | --sbi=* | --sb=*)
977 sbindir=$ac_optarg ;;
979 -sharedstatedir | --sharedstatedir | --sharedstatedi \
980 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
981 | --sharedst | --shareds | --shared | --share | --shar \
982 | --sha | --sh)
983 ac_prev=sharedstatedir ;;
984 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
985 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
986 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
987 | --sha=* | --sh=*)
988 sharedstatedir=$ac_optarg ;;
990 -site | --site | --sit)
991 ac_prev=site ;;
992 -site=* | --site=* | --sit=*)
993 site=$ac_optarg ;;
995 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
996 ac_prev=srcdir ;;
997 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
998 srcdir=$ac_optarg ;;
1000 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1001 | --syscon | --sysco | --sysc | --sys | --sy)
1002 ac_prev=sysconfdir ;;
1003 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1004 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1005 sysconfdir=$ac_optarg ;;
1007 -target | --target | --targe | --targ | --tar | --ta | --t)
1008 ac_prev=target_alias ;;
1009 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1010 target_alias=$ac_optarg ;;
1012 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1013 verbose=yes ;;
1015 -version | --version | --versio | --versi | --vers | -V)
1016 ac_init_version=: ;;
1018 -with-* | --with-*)
1019 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid package name: $ac_package" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_package=`echo $ac_package| sed 's/-/_/g'`
1025 eval with_$ac_package=\$ac_optarg ;;
1027 -without-* | --without-*)
1028 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1031 { echo "$as_me: error: invalid package name: $ac_package" >&2
1032 { (exit 1); exit 1; }; }
1033 ac_package=`echo $ac_package | sed 's/-/_/g'`
1034 eval with_$ac_package=no ;;
1036 --x)
1037 # Obsolete; use --with-x.
1038 with_x=yes ;;
1040 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1041 | --x-incl | --x-inc | --x-in | --x-i)
1042 ac_prev=x_includes ;;
1043 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1044 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1045 x_includes=$ac_optarg ;;
1047 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1048 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1049 ac_prev=x_libraries ;;
1050 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1051 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1052 x_libraries=$ac_optarg ;;
1054 -*) { echo "$as_me: error: unrecognized option: $ac_option
1055 Try \`$0 --help' for more information." >&2
1056 { (exit 1); exit 1; }; }
1059 *=*)
1060 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1064 { (exit 1); exit 1; }; }
1065 eval $ac_envvar=\$ac_optarg
1066 export $ac_envvar ;;
1069 # FIXME: should be removed in autoconf 3.0.
1070 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1071 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1073 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1076 esac
1077 done
1079 if test -n "$ac_prev"; then
1080 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1081 { echo "$as_me: error: missing argument to $ac_option" >&2
1082 { (exit 1); exit 1; }; }
1085 # Be sure to have absolute directory names.
1086 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1087 datadir sysconfdir sharedstatedir localstatedir includedir \
1088 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1089 libdir localedir mandir
1091 eval ac_val=\$$ac_var
1092 case $ac_val in
1093 [\\/$]* | ?:[\\/]* ) continue;;
1094 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1095 esac
1096 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1097 { (exit 1); exit 1; }; }
1098 done
1100 # There might be people who depend on the old broken behavior: `$host'
1101 # used to hold the argument of --host etc.
1102 # FIXME: To remove some day.
1103 build=$build_alias
1104 host=$host_alias
1105 target=$target_alias
1107 # FIXME: To remove some day.
1108 if test "x$host_alias" != x; then
1109 if test "x$build_alias" = x; then
1110 cross_compiling=maybe
1111 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1112 If a cross compiler is detected then cross compile mode will be used." >&2
1113 elif test "x$build_alias" != "x$host_alias"; then
1114 cross_compiling=yes
1118 ac_tool_prefix=
1119 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1121 test "$silent" = yes && exec 6>/dev/null
1124 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1125 ac_ls_di=`ls -di .` &&
1126 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1127 { echo "$as_me: error: Working directory cannot be determined" >&2
1128 { (exit 1); exit 1; }; }
1129 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1130 { echo "$as_me: error: pwd does not report name of working directory" >&2
1131 { (exit 1); exit 1; }; }
1134 # Find the source files, if location was not specified.
1135 if test -z "$srcdir"; then
1136 ac_srcdir_defaulted=yes
1137 # Try the directory containing this script, then the parent directory.
1138 ac_confdir=`$as_dirname -- "$0" ||
1139 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1140 X"$0" : 'X\(//\)[^/]' \| \
1141 X"$0" : 'X\(//\)$' \| \
1142 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1143 echo X"$0" |
1144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1145 s//\1/
1148 /^X\(\/\/\)[^/].*/{
1149 s//\1/
1152 /^X\(\/\/\)$/{
1153 s//\1/
1156 /^X\(\/\).*/{
1157 s//\1/
1160 s/.*/./; q'`
1161 srcdir=$ac_confdir
1162 if test ! -r "$srcdir/$ac_unique_file"; then
1163 srcdir=..
1165 else
1166 ac_srcdir_defaulted=no
1168 if test ! -r "$srcdir/$ac_unique_file"; then
1169 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1170 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1171 { (exit 1); exit 1; }; }
1173 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1174 ac_abs_confdir=`(
1175 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1176 { (exit 1); exit 1; }; }
1177 pwd)`
1178 # When building in place, set srcdir=.
1179 if test "$ac_abs_confdir" = "$ac_pwd"; then
1180 srcdir=.
1182 # Remove unnecessary trailing slashes from srcdir.
1183 # Double slashes in file names in object file debugging info
1184 # mess up M-x gdb in Emacs.
1185 case $srcdir in
1186 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1187 esac
1188 for ac_var in $ac_precious_vars; do
1189 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1190 eval ac_env_${ac_var}_value=\$${ac_var}
1191 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1192 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1193 done
1196 # Report the --help message.
1198 if test "$ac_init_help" = "long"; then
1199 # Omit some internal or obsolete options to make the list less imposing.
1200 # This message is too long to be a string in the A/UX 3.1 sh.
1201 cat <<_ACEOF
1202 \`configure' configures flowgrind 0.12 to adapt to many kinds of systems.
1204 Usage: $0 [OPTION]... [VAR=VALUE]...
1206 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1207 VAR=VALUE. See below for descriptions of some of the useful variables.
1209 Defaults for the options are specified in brackets.
1211 Configuration:
1212 -h, --help display this help and exit
1213 --help=short display options specific to this package
1214 --help=recursive display the short help of all the included packages
1215 -V, --version display version information and exit
1216 -q, --quiet, --silent do not print \`checking...' messages
1217 --cache-file=FILE cache test results in FILE [disabled]
1218 -C, --config-cache alias for \`--cache-file=config.cache'
1219 -n, --no-create do not create output files
1220 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1222 Installation directories:
1223 --prefix=PREFIX install architecture-independent files in PREFIX
1224 [$ac_default_prefix]
1225 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1226 [PREFIX]
1228 By default, \`make install' will install all the files in
1229 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1230 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1231 for instance \`--prefix=\$HOME'.
1233 For better control, use the options below.
1235 Fine tuning of the installation directories:
1236 --bindir=DIR user executables [EPREFIX/bin]
1237 --sbindir=DIR system admin executables [EPREFIX/sbin]
1238 --libexecdir=DIR program executables [EPREFIX/libexec]
1239 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1240 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1241 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1242 --libdir=DIR object code libraries [EPREFIX/lib]
1243 --includedir=DIR C header files [PREFIX/include]
1244 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1245 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1246 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1247 --infodir=DIR info documentation [DATAROOTDIR/info]
1248 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1249 --mandir=DIR man documentation [DATAROOTDIR/man]
1250 --docdir=DIR documentation root [DATAROOTDIR/doc/flowgrind]
1251 --htmldir=DIR html documentation [DOCDIR]
1252 --dvidir=DIR dvi documentation [DOCDIR]
1253 --pdfdir=DIR pdf documentation [DOCDIR]
1254 --psdir=DIR ps documentation [DOCDIR]
1255 _ACEOF
1257 cat <<\_ACEOF
1259 Program names:
1260 --program-prefix=PREFIX prepend PREFIX to installed program names
1261 --program-suffix=SUFFIX append SUFFIX to installed program names
1262 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1264 System types:
1265 --build=BUILD configure for building on BUILD [guessed]
1266 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1267 _ACEOF
1270 if test -n "$ac_init_help"; then
1271 case $ac_init_help in
1272 short | recursive ) echo "Configuration of flowgrind 0.12:";;
1273 esac
1274 cat <<\_ACEOF
1276 Optional Features:
1277 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1278 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1279 --disable-dependency-tracking speeds up one-time build
1280 --enable-dependency-tracking do not reject slow dependency extractors
1282 Optional Packages:
1283 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1284 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1285 --with-pcap[=DIR] use libpcap for packet capturing. [default=yes]
1287 Some influential environment variables:
1288 CC C compiler command
1289 CFLAGS C compiler flags
1290 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1291 nonstandard directory <lib dir>
1292 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293 you have headers in a nonstandard directory <include dir>
1294 CPP C preprocessor
1296 Use these variables to override the choices made by `configure' or to help
1297 it to find libraries and programs with nonstandard names/locations.
1299 Report bugs to <daniel.schaffrath@mac.com>.
1300 _ACEOF
1301 ac_status=$?
1304 if test "$ac_init_help" = "recursive"; then
1305 # If there are subdirs, report their specific --help.
1306 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307 test -d "$ac_dir" || continue
1308 ac_builddir=.
1310 case "$ac_dir" in
1311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314 # A ".." for each directory in $ac_dir_suffix.
1315 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316 case $ac_top_builddir_sub in
1317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319 esac ;;
1320 esac
1321 ac_abs_top_builddir=$ac_pwd
1322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir=$ac_top_build_prefix
1326 case $srcdir in
1327 .) # We are building in place.
1328 ac_srcdir=.
1329 ac_top_srcdir=$ac_top_builddir_sub
1330 ac_abs_top_srcdir=$ac_pwd ;;
1331 [\\/]* | ?:[\\/]* ) # Absolute name.
1332 ac_srcdir=$srcdir$ac_dir_suffix;
1333 ac_top_srcdir=$srcdir
1334 ac_abs_top_srcdir=$srcdir ;;
1335 *) # Relative name.
1336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337 ac_top_srcdir=$ac_top_build_prefix$srcdir
1338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339 esac
1340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1342 cd "$ac_dir" || { ac_status=$?; continue; }
1343 # Check for guested configure.
1344 if test -f "$ac_srcdir/configure.gnu"; then
1345 echo &&
1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347 elif test -f "$ac_srcdir/configure"; then
1348 echo &&
1349 $SHELL "$ac_srcdir/configure" --help=recursive
1350 else
1351 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352 fi || ac_status=$?
1353 cd "$ac_pwd" || { ac_status=$?; break; }
1354 done
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1359 cat <<\_ACEOF
1360 flowgrind configure 0.12
1361 generated by GNU Autoconf 2.60
1363 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1365 This configure script is free software; the Free Software Foundation
1366 gives unlimited permission to copy, distribute and modify it.
1367 _ACEOF
1368 exit
1370 cat >config.log <<_ACEOF
1371 This file contains any messages produced by compilers while
1372 running configure, to aid debugging if configure makes a mistake.
1374 It was created by flowgrind $as_me 0.12, which was
1375 generated by GNU Autoconf 2.60. Invocation command line was
1377 $ $0 $@
1379 _ACEOF
1380 exec 5>>config.log
1382 cat <<_ASUNAME
1383 ## --------- ##
1384 ## Platform. ##
1385 ## --------- ##
1387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1396 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1397 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1400 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1401 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1402 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1404 _ASUNAME
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 for as_dir in $PATH
1409 IFS=$as_save_IFS
1410 test -z "$as_dir" && as_dir=.
1411 echo "PATH: $as_dir"
1412 done
1413 IFS=$as_save_IFS
1415 } >&5
1417 cat >&5 <<_ACEOF
1420 ## ----------- ##
1421 ## Core tests. ##
1422 ## ----------- ##
1424 _ACEOF
1427 # Keep a trace of the command line.
1428 # Strip out --no-create and --no-recursion so they do not pile up.
1429 # Strip out --silent because we don't want to record it for future runs.
1430 # Also quote any args containing shell meta-characters.
1431 # Make two passes to allow for proper duplicate-argument suppression.
1432 ac_configure_args=
1433 ac_configure_args0=
1434 ac_configure_args1=
1435 ac_must_keep_next=false
1436 for ac_pass in 1 2
1438 for ac_arg
1440 case $ac_arg in
1441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1443 | -silent | --silent | --silen | --sile | --sil)
1444 continue ;;
1445 *\'*)
1446 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 esac
1448 case $ac_pass in
1449 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1451 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1452 if test $ac_must_keep_next = true; then
1453 ac_must_keep_next=false # Got value, back to normal.
1454 else
1455 case $ac_arg in
1456 *=* | --config-cache | -C | -disable-* | --disable-* \
1457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1459 | -with-* | --with-* | -without-* | --without-* | --x)
1460 case "$ac_configure_args0 " in
1461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1462 esac
1464 -* ) ac_must_keep_next=true ;;
1465 esac
1467 ac_configure_args="$ac_configure_args '$ac_arg'"
1469 esac
1470 done
1471 done
1472 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1473 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1475 # When interrupted or exit'd, cleanup temporary files, and complete
1476 # config.log. We remove comments because anyway the quotes in there
1477 # would cause problems or look ugly.
1478 # WARNING: Use '\'' to represent an apostrophe within the trap.
1479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480 trap 'exit_status=$?
1481 # Save into config.log some information that might help in debugging.
1483 echo
1485 cat <<\_ASBOX
1486 ## ---------------- ##
1487 ## Cache variables. ##
1488 ## ---------------- ##
1489 _ASBOX
1490 echo
1491 # The following way of writing the cache mishandles newlines in values,
1493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494 eval ac_val=\$$ac_var
1495 case $ac_val in #(
1496 *${as_nl}*)
1497 case $ac_var in #(
1498 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1500 esac
1501 case $ac_var in #(
1502 _ | IFS | as_nl) ;; #(
1503 *) $as_unset $ac_var ;;
1504 esac ;;
1505 esac
1506 done
1507 (set) 2>&1 |
1508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509 *${as_nl}ac_space=\ *)
1510 sed -n \
1511 "s/'\''/'\''\\\\'\'''\''/g;
1512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1513 ;; #(
1515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1517 esac |
1518 sort
1520 echo
1522 cat <<\_ASBOX
1523 ## ----------------- ##
1524 ## Output variables. ##
1525 ## ----------------- ##
1526 _ASBOX
1527 echo
1528 for ac_var in $ac_subst_vars
1530 eval ac_val=\$$ac_var
1531 case $ac_val in
1532 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533 esac
1534 echo "$ac_var='\''$ac_val'\''"
1535 done | sort
1536 echo
1538 if test -n "$ac_subst_files"; then
1539 cat <<\_ASBOX
1540 ## ------------------- ##
1541 ## File substitutions. ##
1542 ## ------------------- ##
1543 _ASBOX
1544 echo
1545 for ac_var in $ac_subst_files
1547 eval ac_val=\$$ac_var
1548 case $ac_val in
1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550 esac
1551 echo "$ac_var='\''$ac_val'\''"
1552 done | sort
1553 echo
1556 if test -s confdefs.h; then
1557 cat <<\_ASBOX
1558 ## ----------- ##
1559 ## confdefs.h. ##
1560 ## ----------- ##
1561 _ASBOX
1562 echo
1563 cat confdefs.h
1564 echo
1566 test "$ac_signal" != 0 &&
1567 echo "$as_me: caught signal $ac_signal"
1568 echo "$as_me: exit $exit_status"
1569 } >&5
1570 rm -f core *.core core.conftest.* &&
1571 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1572 exit $exit_status
1574 for ac_signal in 1 2 13 15; do
1575 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1576 done
1577 ac_signal=0
1579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1580 rm -f -r conftest* confdefs.h
1582 # Predefined preprocessor variables.
1584 cat >>confdefs.h <<_ACEOF
1585 #define PACKAGE_NAME "$PACKAGE_NAME"
1586 _ACEOF
1589 cat >>confdefs.h <<_ACEOF
1590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1591 _ACEOF
1594 cat >>confdefs.h <<_ACEOF
1595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1596 _ACEOF
1599 cat >>confdefs.h <<_ACEOF
1600 #define PACKAGE_STRING "$PACKAGE_STRING"
1601 _ACEOF
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1606 _ACEOF
1609 # Let the site file select an alternate cache file if it wants to.
1610 # Prefer explicitly selected file to automatically selected ones.
1611 if test -n "$CONFIG_SITE"; then
1612 set x "$CONFIG_SITE"
1613 elif test "x$prefix" != xNONE; then
1614 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615 else
1616 set x "$ac_default_prefix/share/config.site" \
1617 "$ac_default_prefix/etc/config.site"
1619 shift
1620 for ac_site_file
1622 if test -r "$ac_site_file"; then
1623 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624 echo "$as_me: loading site script $ac_site_file" >&6;}
1625 sed 's/^/| /' "$ac_site_file" >&5
1626 . "$ac_site_file"
1628 done
1630 if test -r "$cache_file"; then
1631 # Some versions of bash will fail to source /dev/null (special
1632 # files actually), so we avoid doing that.
1633 if test -f "$cache_file"; then
1634 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635 echo "$as_me: loading cache $cache_file" >&6;}
1636 case $cache_file in
1637 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1638 *) . "./$cache_file";;
1639 esac
1641 else
1642 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643 echo "$as_me: creating cache $cache_file" >&6;}
1644 >$cache_file
1647 # Check that the precious variables saved in the cache have kept the same
1648 # value.
1649 ac_cache_corrupted=false
1650 for ac_var in $ac_precious_vars; do
1651 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1652 eval ac_new_set=\$ac_env_${ac_var}_set
1653 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1654 eval ac_new_val=\$ac_env_${ac_var}_value
1655 case $ac_old_set,$ac_new_set in
1656 set,)
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659 ac_cache_corrupted=: ;;
1660 ,set)
1661 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663 ac_cache_corrupted=: ;;
1664 ,);;
1666 if test "x$ac_old_val" != "x$ac_new_val"; then
1667 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1670 echo "$as_me: former value: $ac_old_val" >&2;}
1671 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1672 echo "$as_me: current value: $ac_new_val" >&2;}
1673 ac_cache_corrupted=:
1674 fi;;
1675 esac
1676 # Pass precious variables to config.status.
1677 if test "$ac_new_set" = set; then
1678 case $ac_new_val in
1679 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 *) ac_arg=$ac_var=$ac_new_val ;;
1681 esac
1682 case " $ac_configure_args " in
1683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1684 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1685 esac
1687 done
1688 if $ac_cache_corrupted; then
1689 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693 { (exit 1); exit 1; }; }
1720 ac_ext=c
1721 ac_cpp='$CPP $CPPFLAGS'
1722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1727 ac_aux_dir=
1728 for ac_dir in build-aux "$srcdir"/build-aux; do
1729 if test -f "$ac_dir/install-sh"; then
1730 ac_aux_dir=$ac_dir
1731 ac_install_sh="$ac_aux_dir/install-sh -c"
1732 break
1733 elif test -f "$ac_dir/install.sh"; then
1734 ac_aux_dir=$ac_dir
1735 ac_install_sh="$ac_aux_dir/install.sh -c"
1736 break
1737 elif test -f "$ac_dir/shtool"; then
1738 ac_aux_dir=$ac_dir
1739 ac_install_sh="$ac_aux_dir/shtool install -c"
1740 break
1742 done
1743 if test -z "$ac_aux_dir"; then
1744 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
1745 echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
1746 { (exit 1); exit 1; }; }
1749 # These three variables are undocumented and unsupported,
1750 # and are intended to be withdrawn in a future Autoconf release.
1751 # They can cause serious problems if a builder's source tree is in a directory
1752 # whose full name contains unusual characters.
1753 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1754 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1755 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1758 am__api_version="1.9"
1759 # Find a good install program. We prefer a C program (faster),
1760 # so one script is as good as another. But avoid the broken or
1761 # incompatible versions:
1762 # SysV /etc/install, /usr/sbin/install
1763 # SunOS /usr/etc/install
1764 # IRIX /sbin/install
1765 # AIX /bin/install
1766 # AmigaOS /C/install, which installs bootblocks on floppy discs
1767 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1768 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1769 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1770 # OS/2's system install, which has a completely different semantic
1771 # ./install, which can be erroneously created by make from ./install.sh.
1772 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1773 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1774 if test -z "$INSTALL"; then
1775 if test "${ac_cv_path_install+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 # Account for people who put trailing slashes in PATH elements.
1784 case $as_dir/ in
1785 ./ | .// | /cC/* | \
1786 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1787 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1788 /usr/ucb/* ) ;;
1790 # OSF1 and SCO ODT 3.0 have their own names for install.
1791 # Don't use installbsd from OSF since it installs stuff as root
1792 # by default.
1793 for ac_prog in ginstall scoinst install; do
1794 for ac_exec_ext in '' $ac_executable_extensions; do
1795 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1796 if test $ac_prog = install &&
1797 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1798 # AIX install. It has an incompatible calling convention.
1800 elif test $ac_prog = install &&
1801 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1802 # program-specific install script used by HP pwplus--don't use.
1804 else
1805 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1806 break 3
1809 done
1810 done
1812 esac
1813 done
1814 IFS=$as_save_IFS
1818 if test "${ac_cv_path_install+set}" = set; then
1819 INSTALL=$ac_cv_path_install
1820 else
1821 # As a last resort, use the slow shell script. Don't cache a
1822 # value for INSTALL within a source directory, because that will
1823 # break other packages using the cache if that directory is
1824 # removed, or if the value is a relative name.
1825 INSTALL=$ac_install_sh
1828 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1829 echo "${ECHO_T}$INSTALL" >&6; }
1831 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1832 # It thinks the first close brace ends the variable substitution.
1833 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1835 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1837 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1839 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1840 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1841 # Just in case
1842 sleep 1
1843 echo timestamp > conftest.file
1844 # Do `set' in a subshell so we don't clobber the current shell's
1845 # arguments. Must try -L first in case configure is actually a
1846 # symlink; some systems play weird games with the mod time of symlinks
1847 # (eg FreeBSD returns the mod time of the symlink's containing
1848 # directory).
1849 if (
1850 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1851 if test "$*" = "X"; then
1852 # -L didn't work.
1853 set X `ls -t $srcdir/configure conftest.file`
1855 rm -f conftest.file
1856 if test "$*" != "X $srcdir/configure conftest.file" \
1857 && test "$*" != "X conftest.file $srcdir/configure"; then
1859 # If neither matched, then we have a broken ls. This can happen
1860 # if, for instance, CONFIG_SHELL is bash and it inherits a
1861 # broken ls alias from the environment. This has actually
1862 # happened. Such a system could not be considered "sane".
1863 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1864 alias in your environment" >&5
1865 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1866 alias in your environment" >&2;}
1867 { (exit 1); exit 1; }; }
1870 test "$2" = conftest.file
1872 then
1873 # Ok.
1875 else
1876 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1877 Check your system clock" >&5
1878 echo "$as_me: error: newly created file is older than distributed files!
1879 Check your system clock" >&2;}
1880 { (exit 1); exit 1; }; }
1882 { echo "$as_me:$LINENO: result: yes" >&5
1883 echo "${ECHO_T}yes" >&6; }
1884 test "$program_prefix" != NONE &&
1885 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1886 # Use a double $ so make ignores it.
1887 test "$program_suffix" != NONE &&
1888 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1889 # Double any \ or $. echo might interpret backslashes.
1890 # By default was `s,x,x', remove it if useless.
1891 cat <<\_ACEOF >conftest.sed
1892 s/[\\$]/&&/g;s/;s,x,x,$//
1893 _ACEOF
1894 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1895 rm -f conftest.sed
1897 # expand $ac_aux_dir to an absolute path
1898 am_aux_dir=`cd $ac_aux_dir && pwd`
1900 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1901 # Use eval to expand $SHELL
1902 if eval "$MISSING --run true"; then
1903 am_missing_run="$MISSING --run "
1904 else
1905 am_missing_run=
1906 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1907 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1910 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1911 # We used to keeping the `.' as first argument, in order to
1912 # allow $(mkdir_p) to be used without argument. As in
1913 # $(mkdir_p) $(somedir)
1914 # where $(somedir) is conditionally defined. However this is wrong
1915 # for two reasons:
1916 # 1. if the package is installed by a user who cannot write `.'
1917 # make install will fail,
1918 # 2. the above comment should most certainly read
1919 # $(mkdir_p) $(DESTDIR)$(somedir)
1920 # so it does not work when $(somedir) is undefined and
1921 # $(DESTDIR) is not.
1922 # To support the latter case, we have to write
1923 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1924 # so the `.' trick is pointless.
1925 mkdir_p='mkdir -p --'
1926 else
1927 # On NextStep and OpenStep, the `mkdir' command does not
1928 # recognize any option. It will interpret all options as
1929 # directories to create, and then abort because `.' already
1930 # exists.
1931 for d in ./-p ./--version;
1933 test -d $d && rmdir $d
1934 done
1935 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1936 if test -f "$ac_aux_dir/mkinstalldirs"; then
1937 mkdir_p='$(mkinstalldirs)'
1938 else
1939 mkdir_p='$(install_sh) -d'
1943 for ac_prog in gawk mawk nawk awk
1945 # Extract the first word of "$ac_prog", so it can be a program name with args.
1946 set dummy $ac_prog; ac_word=$2
1947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1949 if test "${ac_cv_prog_AWK+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952 if test -n "$AWK"; then
1953 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1954 else
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1962 ac_cv_prog_AWK="$ac_prog"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 break 2
1966 done
1967 done
1968 IFS=$as_save_IFS
1972 AWK=$ac_cv_prog_AWK
1973 if test -n "$AWK"; then
1974 { echo "$as_me:$LINENO: result: $AWK" >&5
1975 echo "${ECHO_T}$AWK" >&6; }
1976 else
1977 { echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6; }
1982 test -n "$AWK" && break
1983 done
1985 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1986 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1987 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1988 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 cat >conftest.make <<\_ACEOF
1992 SHELL = /bin/sh
1993 all:
1994 @echo '@@@%%%=$(MAKE)=@@@%%%'
1995 _ACEOF
1996 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1997 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1998 *@@@%%%=?*=@@@%%%*)
1999 eval ac_cv_prog_make_${ac_make}_set=yes;;
2001 eval ac_cv_prog_make_${ac_make}_set=no;;
2002 esac
2003 rm -f conftest.make
2005 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2006 { echo "$as_me:$LINENO: result: yes" >&5
2007 echo "${ECHO_T}yes" >&6; }
2008 SET_MAKE=
2009 else
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2012 SET_MAKE="MAKE=${MAKE-make}"
2015 rm -rf .tst 2>/dev/null
2016 mkdir .tst 2>/dev/null
2017 if test -d .tst; then
2018 am__leading_dot=.
2019 else
2020 am__leading_dot=_
2022 rmdir .tst 2>/dev/null
2024 # test to see if srcdir already configured
2025 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2026 test -f $srcdir/config.status; then
2027 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2028 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2029 { (exit 1); exit 1; }; }
2032 # test whether we have cygpath
2033 if test -z "$CYGPATH_W"; then
2034 if (cygpath --version) >/dev/null 2>/dev/null; then
2035 CYGPATH_W='cygpath -w'
2036 else
2037 CYGPATH_W=echo
2042 # Define the identity of the package.
2043 PACKAGE='flowgrind'
2044 VERSION='0.12'
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE "$PACKAGE"
2049 _ACEOF
2052 cat >>confdefs.h <<_ACEOF
2053 #define VERSION "$VERSION"
2054 _ACEOF
2056 # Some tools Automake needs.
2058 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2061 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2064 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2067 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2070 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2072 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2074 # Installed binaries are usually stripped using `strip' when the user
2075 # run `make install-strip'. However `strip' might not be the right
2076 # tool to use in cross-compilation environments, therefore Automake
2077 # will honor the `STRIP' environment variable to overrule this program.
2078 if test "$cross_compiling" != no; then
2079 if test -n "$ac_tool_prefix"; then
2080 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2081 set dummy ${ac_tool_prefix}strip; ac_word=$2
2082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2084 if test "${ac_cv_prog_STRIP+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087 if test -n "$STRIP"; then
2088 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2089 else
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 for as_dir in $PATH
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2097 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 break 2
2101 done
2102 done
2103 IFS=$as_save_IFS
2107 STRIP=$ac_cv_prog_STRIP
2108 if test -n "$STRIP"; then
2109 { echo "$as_me:$LINENO: result: $STRIP" >&5
2110 echo "${ECHO_T}$STRIP" >&6; }
2111 else
2112 { echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6; }
2118 if test -z "$ac_cv_prog_STRIP"; then
2119 ac_ct_STRIP=$STRIP
2120 # Extract the first word of "strip", so it can be a program name with args.
2121 set dummy strip; ac_word=$2
2122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 if test -n "$ac_ct_STRIP"; then
2128 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2137 ac_cv_prog_ac_ct_STRIP="strip"
2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 break 2
2141 done
2142 done
2143 IFS=$as_save_IFS
2147 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2148 if test -n "$ac_ct_STRIP"; then
2149 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2150 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2151 else
2152 { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2156 if test "x$ac_ct_STRIP" = x; then
2157 STRIP=":"
2158 else
2159 case $cross_compiling:$ac_tool_warned in
2160 yes:)
2161 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2162 whose name does not start with the host triplet. If you think this
2163 configuration is useful to you, please write to autoconf@gnu.org." >&5
2164 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2165 whose name does not start with the host triplet. If you think this
2166 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2167 ac_tool_warned=yes ;;
2168 esac
2169 STRIP=$ac_ct_STRIP
2171 else
2172 STRIP="$ac_cv_prog_STRIP"
2176 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2178 # We need awk for the "check" target. The system "awk" is bad on
2179 # some platforms.
2180 # Always define AMTAR for backward compatibility.
2182 AMTAR=${AMTAR-"${am_missing_run}tar"}
2184 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2191 # Checks for programs.
2192 ac_ext=c
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197 if test -n "$ac_tool_prefix"; then
2198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC="$CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 break 2
2219 done
2220 done
2221 IFS=$as_save_IFS
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227 { echo "$as_me:$LINENO: result: $CC" >&5
2228 echo "${ECHO_T}$CC" >&6; }
2229 else
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2236 if test -z "$ac_cv_prog_CC"; then
2237 ac_ct_CC=$CC
2238 # Extract the first word of "gcc", so it can be a program name with args.
2239 set dummy gcc; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 if test -n "$ac_ct_CC"; then
2246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_ac_ct_CC="gcc"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2259 done
2260 done
2261 IFS=$as_save_IFS
2265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2266 if test -n "$ac_ct_CC"; then
2267 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2268 echo "${ECHO_T}$ac_ct_CC" >&6; }
2269 else
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2274 if test "x$ac_ct_CC" = x; then
2275 CC=""
2276 else
2277 case $cross_compiling:$ac_tool_warned in
2278 yes:)
2279 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2280 whose name does not start with the host triplet. If you think this
2281 configuration is useful to you, please write to autoconf@gnu.org." >&5
2282 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2283 whose name does not start with the host triplet. If you think this
2284 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2285 ac_tool_warned=yes ;;
2286 esac
2287 CC=$ac_ct_CC
2289 else
2290 CC="$ac_cv_prog_CC"
2293 if test -z "$CC"; then
2294 if test -n "$ac_tool_prefix"; then
2295 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2296 set dummy ${ac_tool_prefix}cc; ac_word=$2
2297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2299 if test "${ac_cv_prog_CC+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302 if test -n "$CC"; then
2303 ac_cv_prog_CC="$CC" # Let the user override the test.
2304 else
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2308 IFS=$as_save_IFS
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2312 ac_cv_prog_CC="${ac_tool_prefix}cc"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314 break 2
2316 done
2317 done
2318 IFS=$as_save_IFS
2322 CC=$ac_cv_prog_CC
2323 if test -n "$CC"; then
2324 { echo "$as_me:$LINENO: result: $CC" >&5
2325 echo "${ECHO_T}$CC" >&6; }
2326 else
2327 { echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6; }
2334 if test -z "$CC"; then
2335 # Extract the first word of "cc", so it can be a program name with args.
2336 set dummy cc; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2344 else
2345 ac_prog_rejected=no
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2353 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2354 ac_prog_rejected=yes
2355 continue
2357 ac_cv_prog_CC="cc"
2358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 break 2
2361 done
2362 done
2363 IFS=$as_save_IFS
2365 if test $ac_prog_rejected = yes; then
2366 # We found a bogon in the path, so make sure we never use it.
2367 set dummy $ac_cv_prog_CC
2368 shift
2369 if test $# != 0; then
2370 # We chose a different compiler from the bogus one.
2371 # However, it has the same basename, so the bogon will be chosen
2372 # first if we set CC to just the basename; use the full file name.
2373 shift
2374 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2379 CC=$ac_cv_prog_CC
2380 if test -n "$CC"; then
2381 { echo "$as_me:$LINENO: result: $CC" >&5
2382 echo "${ECHO_T}$CC" >&6; }
2383 else
2384 { echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6; }
2390 if test -z "$CC"; then
2391 if test -n "$ac_tool_prefix"; then
2392 for ac_prog in cl.exe
2394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2398 if test "${ac_cv_prog_CC+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401 if test -n "$CC"; then
2402 ac_cv_prog_CC="$CC" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2415 done
2416 done
2417 IFS=$as_save_IFS
2421 CC=$ac_cv_prog_CC
2422 if test -n "$CC"; then
2423 { echo "$as_me:$LINENO: result: $CC" >&5
2424 echo "${ECHO_T}$CC" >&6; }
2425 else
2426 { echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6; }
2431 test -n "$CC" && break
2432 done
2434 if test -z "$CC"; then
2435 ac_ct_CC=$CC
2436 for ac_prog in cl.exe
2438 # Extract the first word of "$ac_prog", so it can be a program name with args.
2439 set dummy $ac_prog; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_ac_ct_CC="$ac_prog"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2459 done
2460 done
2461 IFS=$as_save_IFS
2465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6; }
2469 else
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2475 test -n "$ac_ct_CC" && break
2476 done
2478 if test "x$ac_ct_CC" = x; then
2479 CC=""
2480 else
2481 case $cross_compiling:$ac_tool_warned in
2482 yes:)
2483 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2484 whose name does not start with the host triplet. If you think this
2485 configuration is useful to you, please write to autoconf@gnu.org." >&5
2486 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2487 whose name does not start with the host triplet. If you think this
2488 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2489 ac_tool_warned=yes ;;
2490 esac
2491 CC=$ac_ct_CC
2498 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2499 See \`config.log' for more details." >&5
2500 echo "$as_me: error: no acceptable C compiler found in \$PATH
2501 See \`config.log' for more details." >&2;}
2502 { (exit 1); exit 1; }; }
2504 # Provide some information about the compiler.
2505 echo "$as_me:$LINENO: checking for C compiler version" >&5
2506 ac_compiler=`set X $ac_compile; echo $2`
2507 { (ac_try="$ac_compiler --version >&5"
2508 case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2511 esac
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_compiler --version >&5") 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }
2517 { (ac_try="$ac_compiler -v >&5"
2518 case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_compiler -v >&5") 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }
2527 { (ac_try="$ac_compiler -V >&5"
2528 case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531 esac
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_compiler -V >&5") 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }
2538 cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h. */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2546 main ()
2550 return 0;
2552 _ACEOF
2553 ac_clean_files_save=$ac_clean_files
2554 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2555 # Try to create an executable without -o first, disregard a.out.
2556 # It will help us diagnose broken compilers, and finding out an intuition
2557 # of exeext.
2558 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2559 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2560 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2562 # List of possible output files, starting from the most likely.
2563 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2564 # only as a last resort. b.out is created by i960 compilers.
2565 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2567 # The IRIX 6 linker writes into existing files which may not be
2568 # executable, retaining their permissions. Remove them first so a
2569 # subsequent execution test works.
2570 ac_rmfiles=
2571 for ac_file in $ac_files
2573 case $ac_file in
2574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2575 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2576 esac
2577 done
2578 rm -f $ac_rmfiles
2580 if { (ac_try="$ac_link_default"
2581 case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_link_default") 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
2590 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2591 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2592 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2593 # so that the user can short-circuit this test for compilers unknown to
2594 # Autoconf.
2595 for ac_file in $ac_files
2597 test -f "$ac_file" || continue
2598 case $ac_file in
2599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2601 [ab].out )
2602 # We found the default executable, but exeext='' is most
2603 # certainly right.
2604 break;;
2605 *.* )
2606 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2607 then :; else
2608 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2610 # We set ac_cv_exeext here because the later test for it is not
2611 # safe: cross compilers may not add the suffix if given an `-o'
2612 # argument, so we may need to know it at that point already.
2613 # Even if this section looks crufty: it has the advantage of
2614 # actually working.
2615 break;;
2617 break;;
2618 esac
2619 done
2620 test "$ac_cv_exeext" = no && ac_cv_exeext=
2622 else
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2626 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2627 See \`config.log' for more details." >&5
2628 echo "$as_me: error: C compiler cannot create executables
2629 See \`config.log' for more details." >&2;}
2630 { (exit 77); exit 77; }; }
2633 ac_exeext=$ac_cv_exeext
2634 { echo "$as_me:$LINENO: result: $ac_file" >&5
2635 echo "${ECHO_T}$ac_file" >&6; }
2637 # Check that the compiler produces executables we can run. If not, either
2638 # the compiler is broken, or we cross compile.
2639 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2640 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2641 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2642 # If not cross compiling, check that we can run a simple program.
2643 if test "$cross_compiling" != yes; then
2644 if { ac_try='./$ac_file'
2645 { (case "(($ac_try" in
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2648 esac
2649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_try") 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; }; then
2654 cross_compiling=no
2655 else
2656 if test "$cross_compiling" = maybe; then
2657 cross_compiling=yes
2658 else
2659 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2660 If you meant to cross compile, use \`--host'.
2661 See \`config.log' for more details." >&5
2662 echo "$as_me: error: cannot run C compiled programs.
2663 If you meant to cross compile, use \`--host'.
2664 See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2669 { echo "$as_me:$LINENO: result: yes" >&5
2670 echo "${ECHO_T}yes" >&6; }
2672 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2673 ac_clean_files=$ac_clean_files_save
2674 # Check that the compiler produces executables we can run. If not, either
2675 # the compiler is broken, or we cross compile.
2676 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2677 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2678 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2679 echo "${ECHO_T}$cross_compiling" >&6; }
2681 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2682 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2683 if { (ac_try="$ac_link"
2684 case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687 esac
2688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689 (eval "$ac_link") 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; then
2693 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2694 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2695 # work properly (i.e., refer to `conftest.exe'), while it won't with
2696 # `rm'.
2697 for ac_file in conftest.exe conftest conftest.*; do
2698 test -f "$ac_file" || continue
2699 case $ac_file in
2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2701 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2702 break;;
2703 * ) break;;
2704 esac
2705 done
2706 else
2707 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2708 See \`config.log' for more details." >&5
2709 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2710 See \`config.log' for more details." >&2;}
2711 { (exit 1); exit 1; }; }
2714 rm -f conftest$ac_cv_exeext
2715 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2716 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2718 rm -f conftest.$ac_ext
2719 EXEEXT=$ac_cv_exeext
2720 ac_exeext=$EXEEXT
2721 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2722 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2723 if test "${ac_cv_objext+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h. */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2734 main ()
2738 return 0;
2740 _ACEOF
2741 rm -f conftest.o conftest.obj
2742 if { (ac_try="$ac_compile"
2743 case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compile") 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; then
2752 for ac_file in conftest.o conftest.obj conftest.*; do
2753 test -f "$ac_file" || continue;
2754 case $ac_file in
2755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2756 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2757 break;;
2758 esac
2759 done
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2764 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2765 See \`config.log' for more details." >&5
2766 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2767 See \`config.log' for more details." >&2;}
2768 { (exit 1); exit 1; }; }
2771 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2773 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2774 echo "${ECHO_T}$ac_cv_objext" >&6; }
2775 OBJEXT=$ac_cv_objext
2776 ac_objext=$OBJEXT
2777 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2778 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2779 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782 cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h. */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2790 main ()
2792 #ifndef __GNUC__
2793 choke me
2794 #endif
2797 return 0;
2799 _ACEOF
2800 rm -f conftest.$ac_objext
2801 if { (ac_try="$ac_compile"
2802 case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805 esac
2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807 (eval "$ac_compile") 2>conftest.er1
2808 ac_status=$?
2809 grep -v '^ *+' conftest.er1 >conftest.err
2810 rm -f conftest.er1
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2815 { (case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_try") 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_try") 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2834 ac_compiler_gnu=yes
2835 else
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2839 ac_compiler_gnu=no
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2846 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2847 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2848 GCC=`test $ac_compiler_gnu = yes && echo yes`
2849 ac_test_CFLAGS=${CFLAGS+set}
2850 ac_save_CFLAGS=$CFLAGS
2851 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2852 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_cc_g+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 ac_save_c_werror_flag=$ac_c_werror_flag
2857 ac_c_werror_flag=yes
2858 ac_cv_prog_cc_g=no
2859 CFLAGS="-g"
2860 cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h. */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2868 main ()
2872 return 0;
2874 _ACEOF
2875 rm -f conftest.$ac_objext
2876 if { (ac_try="$ac_compile"
2877 case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compile") 2>conftest.er1
2883 ac_status=$?
2884 grep -v '^ *+' conftest.er1 >conftest.err
2885 rm -f conftest.er1
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2890 { (case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_try") 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; } &&
2899 { ac_try='test -s conftest.$ac_objext'
2900 { (case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_try") 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 ac_cv_prog_cc_g=yes
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 CFLAGS=""
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2923 main ()
2927 return 0;
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2945 { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2965 else
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 ac_c_werror_flag=$ac_save_c_werror_flag
2970 CFLAGS="-g"
2971 cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2979 main ()
2983 return 0;
2985 _ACEOF
2986 rm -f conftest.$ac_objext
2987 if { (ac_try="$ac_compile"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
3000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3001 { (case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_try") 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
3011 { (case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_try") 2>&5
3017 ac_status=$?
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3020 ac_cv_prog_cc_g=yes
3021 else
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 ac_c_werror_flag=$ac_save_c_werror_flag
3037 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3038 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3039 if test "$ac_test_CFLAGS" = set; then
3040 CFLAGS=$ac_save_CFLAGS
3041 elif test $ac_cv_prog_cc_g = yes; then
3042 if test "$GCC" = yes; then
3043 CFLAGS="-g -O2"
3044 else
3045 CFLAGS="-g"
3047 else
3048 if test "$GCC" = yes; then
3049 CFLAGS="-O2"
3050 else
3051 CFLAGS=
3054 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3055 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3056 if test "${ac_cv_prog_cc_c89+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059 ac_cv_prog_cc_c89=no
3060 ac_save_CC=$CC
3061 cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067 #include <stdarg.h>
3068 #include <stdio.h>
3069 #include <sys/types.h>
3070 #include <sys/stat.h>
3071 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3072 struct buf { int x; };
3073 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3074 static char *e (p, i)
3075 char **p;
3076 int i;
3078 return p[i];
3080 static char *f (char * (*g) (char **, int), char **p, ...)
3082 char *s;
3083 va_list v;
3084 va_start (v,p);
3085 s = g (p, va_arg (v,int));
3086 va_end (v);
3087 return s;
3090 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3091 function prototypes and stuff, but not '\xHH' hex character constants.
3092 These don't provoke an error unfortunately, instead are silently treated
3093 as 'x'. The following induces an error, until -std is added to get
3094 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3095 array size at least. It's necessary to write '\x00'==0 to get something
3096 that's true only with -std. */
3097 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3099 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3100 inside strings and character constants. */
3101 #define FOO(x) 'x'
3102 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3104 int test (int i, double x);
3105 struct s1 {int (*f) (int a);};
3106 struct s2 {int (*f) (double a);};
3107 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3108 int argc;
3109 char **argv;
3111 main ()
3113 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3115 return 0;
3117 _ACEOF
3118 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3119 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3121 CC="$ac_save_CC $ac_arg"
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 ac_cv_prog_cc_c89=$ac_arg
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3164 rm -f core conftest.err conftest.$ac_objext
3165 test "x$ac_cv_prog_cc_c89" != "xno" && break
3166 done
3167 rm -f conftest.$ac_ext
3168 CC=$ac_save_CC
3171 # AC_CACHE_VAL
3172 case "x$ac_cv_prog_cc_c89" in
3174 { echo "$as_me:$LINENO: result: none needed" >&5
3175 echo "${ECHO_T}none needed" >&6; } ;;
3176 xno)
3177 { echo "$as_me:$LINENO: result: unsupported" >&5
3178 echo "${ECHO_T}unsupported" >&6; } ;;
3180 CC="$CC $ac_cv_prog_cc_c89"
3181 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3182 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3183 esac
3186 ac_ext=c
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 DEPDIR="${am__leading_dot}deps"
3193 ac_config_commands="$ac_config_commands depfiles"
3196 am_make=${MAKE-make}
3197 cat > confinc << 'END'
3198 am__doit:
3199 @echo done
3200 .PHONY: am__doit
3202 # If we don't find an include directive, just comment out the code.
3203 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3204 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3205 am__include="#"
3206 am__quote=
3207 _am_result=none
3208 # First try GNU make style include.
3209 echo "include confinc" > confmf
3210 # We grep out `Entering directory' and `Leaving directory'
3211 # messages which can occur if `w' ends up in MAKEFLAGS.
3212 # In particular we don't look at `^make:' because GNU make might
3213 # be invoked under some other name (usually "gmake"), in which
3214 # case it prints its new name instead of `make'.
3215 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3216 am__include=include
3217 am__quote=
3218 _am_result=GNU
3220 # Now try BSD make style include.
3221 if test "$am__include" = "#"; then
3222 echo '.include "confinc"' > confmf
3223 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3224 am__include=.include
3225 am__quote="\""
3226 _am_result=BSD
3231 { echo "$as_me:$LINENO: result: $_am_result" >&5
3232 echo "${ECHO_T}$_am_result" >&6; }
3233 rm -f confinc confmf
3235 # Check whether --enable-dependency-tracking was given.
3236 if test "${enable_dependency_tracking+set}" = set; then
3237 enableval=$enable_dependency_tracking;
3240 if test "x$enable_dependency_tracking" != xno; then
3241 am_depcomp="$ac_aux_dir/depcomp"
3242 AMDEPBACKSLASH='\'
3246 if test "x$enable_dependency_tracking" != xno; then
3247 AMDEP_TRUE=
3248 AMDEP_FALSE='#'
3249 else
3250 AMDEP_TRUE='#'
3251 AMDEP_FALSE=
3257 depcc="$CC" am_compiler_list=
3259 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3260 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3261 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3265 # We make a subdir and do the tests there. Otherwise we can end up
3266 # making bogus files that we don't know about and never remove. For
3267 # instance it was reported that on HP-UX the gcc test will end up
3268 # making a dummy file named `D' -- because `-MD' means `put the output
3269 # in D'.
3270 mkdir conftest.dir
3271 # Copy depcomp to subdir because otherwise we won't find it if we're
3272 # using a relative directory.
3273 cp "$am_depcomp" conftest.dir
3274 cd conftest.dir
3275 # We will build objects and dependencies in a subdirectory because
3276 # it helps to detect inapplicable dependency modes. For instance
3277 # both Tru64's cc and ICC support -MD to output dependencies as a
3278 # side effect of compilation, but ICC will put the dependencies in
3279 # the current directory while Tru64 will put them in the object
3280 # directory.
3281 mkdir sub
3283 am_cv_CC_dependencies_compiler_type=none
3284 if test "$am_compiler_list" = ""; then
3285 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3287 for depmode in $am_compiler_list; do
3288 # Setup a source with many dependencies, because some compilers
3289 # like to wrap large dependency lists on column 80 (with \), and
3290 # we should not choose a depcomp mode which is confused by this.
3292 # We need to recreate these files for each test, as the compiler may
3293 # overwrite some of them when testing with obscure command lines.
3294 # This happens at least with the AIX C compiler.
3295 : > sub/conftest.c
3296 for i in 1 2 3 4 5 6; do
3297 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3298 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3299 # Solaris 8's {/usr,}/bin/sh.
3300 touch sub/conftst$i.h
3301 done
3302 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3304 case $depmode in
3305 nosideeffect)
3306 # after this tag, mechanisms are not by side-effect, so they'll
3307 # only be used when explicitly requested
3308 if test "x$enable_dependency_tracking" = xyes; then
3309 continue
3310 else
3311 break
3314 none) break ;;
3315 esac
3316 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3317 # mode. It turns out that the SunPro C++ compiler does not properly
3318 # handle `-M -o', and we need to detect this.
3319 if depmode=$depmode \
3320 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3321 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3322 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3323 >/dev/null 2>conftest.err &&
3324 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3325 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3326 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3327 # icc doesn't choke on unknown options, it will just issue warnings
3328 # or remarks (even with -Werror). So we grep stderr for any message
3329 # that says an option was ignored or not supported.
3330 # When given -MP, icc 7.0 and 7.1 complain thusly:
3331 # icc: Command line warning: ignoring option '-M'; no argument required
3332 # The diagnosis changed in icc 8.0:
3333 # icc: Command line remark: option '-MP' not supported
3334 if (grep 'ignoring option' conftest.err ||
3335 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3336 am_cv_CC_dependencies_compiler_type=$depmode
3337 break
3340 done
3342 cd ..
3343 rm -rf conftest.dir
3344 else
3345 am_cv_CC_dependencies_compiler_type=none
3349 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3350 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3351 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3356 test "x$enable_dependency_tracking" != xno \
3357 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3358 am__fastdepCC_TRUE=
3359 am__fastdepCC_FALSE='#'
3360 else
3361 am__fastdepCC_TRUE='#'
3362 am__fastdepCC_FALSE=
3366 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3367 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3368 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3369 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372 cat >conftest.make <<\_ACEOF
3373 SHELL = /bin/sh
3374 all:
3375 @echo '@@@%%%=$(MAKE)=@@@%%%'
3376 _ACEOF
3377 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3378 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3379 *@@@%%%=?*=@@@%%%*)
3380 eval ac_cv_prog_make_${ac_make}_set=yes;;
3382 eval ac_cv_prog_make_${ac_make}_set=no;;
3383 esac
3384 rm -f conftest.make
3386 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3387 { echo "$as_me:$LINENO: result: yes" >&5
3388 echo "${ECHO_T}yes" >&6; }
3389 SET_MAKE=
3390 else
3391 { echo "$as_me:$LINENO: result: no" >&5
3392 echo "${ECHO_T}no" >&6; }
3393 SET_MAKE="MAKE=${MAKE-make}"
3396 # Extract the first word of "perl", so it can be a program name with args.
3397 set dummy perl; ac_word=$2
3398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3400 if test "${ac_cv_path_PERL+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 case $PERL in
3404 [\\/]* | ?:[\\/]*)
3405 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3419 done
3420 done
3421 IFS=$as_save_IFS
3424 esac
3426 PERL=$ac_cv_path_PERL
3427 if test -n "$PERL"; then
3428 { echo "$as_me:$LINENO: result: $PERL" >&5
3429 echo "${ECHO_T}$PERL" >&6; }
3430 else
3431 { echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6; }
3437 # Checks for host-system types
3438 # Make sure we can run config.sub.
3439 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3440 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3441 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3442 { (exit 1); exit 1; }; }
3444 { echo "$as_me:$LINENO: checking build system type" >&5
3445 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3446 if test "${ac_cv_build+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 ac_build_alias=$build_alias
3450 test "x$ac_build_alias" = x &&
3451 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3452 test "x$ac_build_alias" = x &&
3453 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3454 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3455 { (exit 1); exit 1; }; }
3456 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3457 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3458 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3459 { (exit 1); exit 1; }; }
3462 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3463 echo "${ECHO_T}$ac_cv_build" >&6; }
3464 case $ac_cv_build in
3465 *-*-*) ;;
3466 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3467 echo "$as_me: error: invalid value of canonical build" >&2;}
3468 { (exit 1); exit 1; }; };;
3469 esac
3470 build=$ac_cv_build
3471 ac_save_IFS=$IFS; IFS='-'
3472 set x $ac_cv_build
3473 shift
3474 build_cpu=$1
3475 build_vendor=$2
3476 shift; shift
3477 # Remember, the first character of IFS is used to create $*,
3478 # except with old shells:
3479 build_os=$*
3480 IFS=$ac_save_IFS
3481 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3484 { echo "$as_me:$LINENO: checking host system type" >&5
3485 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3486 if test "${ac_cv_host+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489 if test "x$host_alias" = x; then
3490 ac_cv_host=$ac_cv_build
3491 else
3492 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3493 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3494 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3495 { (exit 1); exit 1; }; }
3499 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3500 echo "${ECHO_T}$ac_cv_host" >&6; }
3501 case $ac_cv_host in
3502 *-*-*) ;;
3503 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3504 echo "$as_me: error: invalid value of canonical host" >&2;}
3505 { (exit 1); exit 1; }; };;
3506 esac
3507 host=$ac_cv_host
3508 ac_save_IFS=$IFS; IFS='-'
3509 set x $ac_cv_host
3510 shift
3511 host_cpu=$1
3512 host_vendor=$2
3513 shift; shift
3514 # Remember, the first character of IFS is used to create $*,
3515 # except with old shells:
3516 host_os=$*
3517 IFS=$ac_save_IFS
3518 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3521 case $host in
3522 *darwin*)
3524 cat >>confdefs.h <<\_ACEOF
3525 #define __DARWIN__ 1
3526 _ACEOF
3529 cat >>confdefs.h <<\_ACEOF
3530 #define _BSD_SOCKLEN_T_
3531 _ACEOF
3534 *freebsd*)
3536 cat >>confdefs.h <<\_ACEOF
3537 #define __FREEBSD__ 1
3538 _ACEOF
3541 *linux*)
3543 cat >>confdefs.h <<\_ACEOF
3544 #define __LINUX__ 1
3545 _ACEOF
3548 *solaris*)
3550 cat >>confdefs.h <<\_ACEOF
3551 #define __SOLARIS__ 1
3552 _ACEOF
3555 esac
3558 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3559 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3560 if test "${ac_cv_c_const+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563 cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h. */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3571 main ()
3573 /* FIXME: Include the comments suggested by Paul. */
3574 #ifndef __cplusplus
3575 /* Ultrix mips cc rejects this. */
3576 typedef int charset[2];
3577 const charset x;
3578 /* SunOS 4.1.1 cc rejects this. */
3579 char const *const *ccp;
3580 char **p;
3581 /* NEC SVR4.0.2 mips cc rejects this. */
3582 struct point {int x, y;};
3583 static struct point const zero = {0,0};
3584 /* AIX XL C 1.02.0.0 rejects this.
3585 It does not let you subtract one const X* pointer from another in
3586 an arm of an if-expression whose if-part is not a constant
3587 expression */
3588 const char *g = "string";
3589 ccp = &g + (g ? g-g : 0);
3590 /* HPUX 7.0 cc rejects these. */
3591 ++ccp;
3592 p = (char**) ccp;
3593 ccp = (char const *const *) p;
3594 { /* SCO 3.2v4 cc rejects this. */
3595 char *t;
3596 char const *s = 0 ? (char *) 0 : (char const *) 0;
3598 *t++ = 0;
3599 if (s) return 0;
3601 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3602 int x[] = {25, 17};
3603 const int *foo = &x[0];
3604 ++foo;
3606 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3607 typedef const int *iptr;
3608 iptr p = 0;
3609 ++p;
3611 { /* AIX XL C 1.02.0.0 rejects this saying
3612 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3613 struct s { int j; const int *ap[3]; };
3614 struct s *b; b->j = 5;
3616 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3617 const int foo = 10;
3618 if (!foo) return 0;
3620 return !x[0] && !zero.x;
3621 #endif
3624 return 0;
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3629 case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634 (eval "$ac_compile") 2>conftest.er1
3635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3642 { (case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647 (eval "$ac_try") 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; } &&
3651 { ac_try='test -s conftest.$ac_objext'
3652 { (case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_try") 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3661 ac_cv_c_const=yes
3662 else
3663 echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3666 ac_cv_c_const=no
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3672 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3673 if test $ac_cv_c_const = no; then
3675 cat >>confdefs.h <<\_ACEOF
3676 #define const
3677 _ACEOF
3681 { echo "$as_me:$LINENO: checking for inline" >&5
3682 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3683 if test "${ac_cv_c_inline+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686 ac_cv_c_inline=no
3687 for ac_kw in inline __inline__ __inline; do
3688 cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h. */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3694 #ifndef __cplusplus
3695 typedef int foo_t;
3696 static $ac_kw foo_t static_foo () {return 0; }
3697 $ac_kw foo_t foo () {return 0; }
3698 #endif
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } &&
3715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3716 { (case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721 (eval "$ac_try") 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_try") 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 ac_cv_c_inline=$ac_kw
3736 else
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 test "$ac_cv_c_inline" != no && break
3745 done
3748 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3749 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3752 case $ac_cv_c_inline in
3753 inline | yes) ;;
3755 case $ac_cv_c_inline in
3756 no) ac_val=;;
3757 *) ac_val=$ac_cv_c_inline;;
3758 esac
3759 cat >>confdefs.h <<_ACEOF
3760 #ifndef __cplusplus
3761 #define inline $ac_val
3762 #endif
3763 _ACEOF
3765 esac
3768 ac_ext=c
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3774 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3775 # On Suns, sometimes $CPP names a directory.
3776 if test -n "$CPP" && test -d "$CPP"; then
3777 CPP=
3779 if test -z "$CPP"; then
3780 if test "${ac_cv_prog_CPP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 # Double quotes because CPP needs to be expanded
3784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3786 ac_preproc_ok=false
3787 for ac_c_preproc_warn_flag in '' yes
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
3802 # include <limits.h>
3803 #else
3804 # include <assert.h>
3805 #endif
3806 Syntax error
3807 _ACEOF
3808 if { (ac_try="$ac_cpp conftest.$ac_ext"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } >/dev/null; then
3821 if test -s conftest.err; then
3822 ac_cpp_err=$ac_c_preproc_warn_flag
3823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3824 else
3825 ac_cpp_err=
3827 else
3828 ac_cpp_err=yes
3830 if test -z "$ac_cpp_err"; then
3832 else
3833 echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3836 # Broken: fails on valid input.
3837 continue
3840 rm -f conftest.err conftest.$ac_ext
3842 # OK, works on sane cases. Now check whether nonexistent headers
3843 # can be detected and how.
3844 cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h. */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 #include <ac_nonexistent.h>
3851 _ACEOF
3852 if { (ac_try="$ac_cpp conftest.$ac_ext"
3853 case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } >/dev/null; then
3865 if test -s conftest.err; then
3866 ac_cpp_err=$ac_c_preproc_warn_flag
3867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3868 else
3869 ac_cpp_err=
3871 else
3872 ac_cpp_err=yes
3874 if test -z "$ac_cpp_err"; then
3875 # Broken: success on invalid input.
3876 continue
3877 else
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3881 # Passes both tests.
3882 ac_preproc_ok=:
3883 break
3886 rm -f conftest.err conftest.$ac_ext
3888 done
3889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3890 rm -f conftest.err conftest.$ac_ext
3891 if $ac_preproc_ok; then
3892 break
3895 done
3896 ac_cv_prog_CPP=$CPP
3899 CPP=$ac_cv_prog_CPP
3900 else
3901 ac_cv_prog_CPP=$CPP
3903 { echo "$as_me:$LINENO: result: $CPP" >&5
3904 echo "${ECHO_T}$CPP" >&6; }
3905 ac_preproc_ok=false
3906 for ac_c_preproc_warn_flag in '' yes
3908 # Use a header file that comes with gcc, so configuring glibc
3909 # with a fresh cross-compiler works.
3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 # <limits.h> exists even on freestanding compilers.
3912 # On the NeXT, cc -E runs the code through the compiler's parser,
3913 # not just through cpp. "Syntax error" is here to catch this case.
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 #ifdef __STDC__
3921 # include <limits.h>
3922 #else
3923 # include <assert.h>
3924 #endif
3925 Syntax error
3926 _ACEOF
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null; then
3940 if test -s conftest.err; then
3941 ac_cpp_err=$ac_c_preproc_warn_flag
3942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3943 else
3944 ac_cpp_err=
3946 else
3947 ac_cpp_err=yes
3949 if test -z "$ac_cpp_err"; then
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 # Broken: fails on valid input.
3956 continue
3959 rm -f conftest.err conftest.$ac_ext
3961 # OK, works on sane cases. Now check whether nonexistent headers
3962 # can be detected and how.
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 <ac_nonexistent.h>
3970 _ACEOF
3971 if { (ac_try="$ac_cpp conftest.$ac_ext"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } >/dev/null; then
3984 if test -s conftest.err; then
3985 ac_cpp_err=$ac_c_preproc_warn_flag
3986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3987 else
3988 ac_cpp_err=
3990 else
3991 ac_cpp_err=yes
3993 if test -z "$ac_cpp_err"; then
3994 # Broken: success on invalid input.
3995 continue
3996 else
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 # Passes both tests.
4001 ac_preproc_ok=:
4002 break
4005 rm -f conftest.err conftest.$ac_ext
4007 done
4008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009 rm -f conftest.err conftest.$ac_ext
4010 if $ac_preproc_ok; then
4012 else
4013 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4014 See \`config.log' for more details." >&5
4015 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4016 See \`config.log' for more details." >&2;}
4017 { (exit 1); exit 1; }; }
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4028 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4029 if test "${ac_cv_path_GREP+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032 # Extract the first word of "grep ggrep" to use in msg output
4033 if test -z "$GREP"; then
4034 set dummy grep ggrep; ac_prog_name=$2
4035 if test "${ac_cv_path_GREP+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038 ac_path_GREP_found=false
4039 # Loop through the user's path and test for each of PROGNAME-LIST
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_prog in grep ggrep; do
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4048 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4049 # Check for GNU ac_path_GREP and select it if it is found.
4050 # Check for GNU $ac_path_GREP
4051 case `"$ac_path_GREP" --version 2>&1` in
4052 *GNU*)
4053 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4055 ac_count=0
4056 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4057 while :
4059 cat "conftest.in" "conftest.in" >"conftest.tmp"
4060 mv "conftest.tmp" "conftest.in"
4061 cp "conftest.in" "conftest.nl"
4062 echo 'GREP' >> "conftest.nl"
4063 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4065 ac_count=`expr $ac_count + 1`
4066 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4067 # Best one so far, save it but keep looking for a better one
4068 ac_cv_path_GREP="$ac_path_GREP"
4069 ac_path_GREP_max=$ac_count
4071 # 10*(2^10) chars as input seems more than enough
4072 test $ac_count -gt 10 && break
4073 done
4074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4075 esac
4078 $ac_path_GREP_found && break 3
4079 done
4080 done
4082 done
4083 IFS=$as_save_IFS
4088 GREP="$ac_cv_path_GREP"
4089 if test -z "$GREP"; then
4090 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4091 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4092 { (exit 1); exit 1; }; }
4095 else
4096 ac_cv_path_GREP=$GREP
4101 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4102 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4103 GREP="$ac_cv_path_GREP"
4106 { echo "$as_me:$LINENO: checking for egrep" >&5
4107 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4108 if test "${ac_cv_path_EGREP+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4112 then ac_cv_path_EGREP="$GREP -E"
4113 else
4114 # Extract the first word of "egrep" to use in msg output
4115 if test -z "$EGREP"; then
4116 set dummy egrep; ac_prog_name=$2
4117 if test "${ac_cv_path_EGREP+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 ac_path_EGREP_found=false
4121 # Loop through the user's path and test for each of PROGNAME-LIST
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
4127 for ac_prog in egrep; do
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4130 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4131 # Check for GNU ac_path_EGREP and select it if it is found.
4132 # Check for GNU $ac_path_EGREP
4133 case `"$ac_path_EGREP" --version 2>&1` in
4134 *GNU*)
4135 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4137 ac_count=0
4138 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4139 while :
4141 cat "conftest.in" "conftest.in" >"conftest.tmp"
4142 mv "conftest.tmp" "conftest.in"
4143 cp "conftest.in" "conftest.nl"
4144 echo 'EGREP' >> "conftest.nl"
4145 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4147 ac_count=`expr $ac_count + 1`
4148 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4149 # Best one so far, save it but keep looking for a better one
4150 ac_cv_path_EGREP="$ac_path_EGREP"
4151 ac_path_EGREP_max=$ac_count
4153 # 10*(2^10) chars as input seems more than enough
4154 test $ac_count -gt 10 && break
4155 done
4156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4157 esac
4160 $ac_path_EGREP_found && break 3
4161 done
4162 done
4164 done
4165 IFS=$as_save_IFS
4170 EGREP="$ac_cv_path_EGREP"
4171 if test -z "$EGREP"; then
4172 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4173 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4174 { (exit 1); exit 1; }; }
4177 else
4178 ac_cv_path_EGREP=$EGREP
4184 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4185 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4186 EGREP="$ac_cv_path_EGREP"
4189 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4190 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4191 if test "${ac_cv_header_stdc+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h. */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 #include <stdlib.h>
4201 #include <stdarg.h>
4202 #include <string.h>
4203 #include <float.h>
4206 main ()
4210 return 0;
4212 _ACEOF
4213 rm -f conftest.$ac_objext
4214 if { (ac_try="$ac_compile"
4215 case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4218 esac
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_compile") 2>conftest.er1
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231 esac
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try='test -s conftest.$ac_objext'
4238 { (case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_try") 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 ac_cv_header_stdc=yes
4248 else
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 ac_cv_header_stdc=no
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 if test $ac_cv_header_stdc = yes; then
4258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4259 cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h. */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 #include <string.h>
4267 _ACEOF
4268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4269 $EGREP "memchr" >/dev/null 2>&1; then
4271 else
4272 ac_cv_header_stdc=no
4274 rm -f conftest*
4278 if test $ac_cv_header_stdc = yes; then
4279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h. */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 #include <stdlib.h>
4288 _ACEOF
4289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290 $EGREP "free" >/dev/null 2>&1; then
4292 else
4293 ac_cv_header_stdc=no
4295 rm -f conftest*
4299 if test $ac_cv_header_stdc = yes; then
4300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4301 if test "$cross_compiling" = yes; then
4303 else
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310 #include <ctype.h>
4311 #include <stdlib.h>
4312 #if ((' ' & 0x0FF) == 0x020)
4313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4315 #else
4316 # define ISLOWER(c) \
4317 (('a' <= (c) && (c) <= 'i') \
4318 || ('j' <= (c) && (c) <= 'r') \
4319 || ('s' <= (c) && (c) <= 'z'))
4320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4321 #endif
4323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4325 main ()
4327 int i;
4328 for (i = 0; i < 256; i++)
4329 if (XOR (islower (i), ISLOWER (i))
4330 || toupper (i) != TOUPPER (i))
4331 return 2;
4332 return 0;
4334 _ACEOF
4335 rm -f conftest$ac_exeext
4336 if { (ac_try="$ac_link"
4337 case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_link") 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4346 { (case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_try") 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4356 else
4357 echo "$as_me: program exited with status $ac_status" >&5
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4361 ( exit $ac_status )
4362 ac_cv_header_stdc=no
4364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4370 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4371 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4372 if test $ac_cv_header_stdc = yes; then
4374 cat >>confdefs.h <<\_ACEOF
4375 #define STDC_HEADERS 1
4376 _ACEOF
4380 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4391 inttypes.h stdint.h unistd.h
4393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h. */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 $ac_includes_default
4407 #include <$ac_header>
4408 _ACEOF
4409 rm -f conftest.$ac_objext
4410 if { (ac_try="$ac_compile"
4411 case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414 esac
4415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_compile") 2>conftest.er1
4417 ac_status=$?
4418 grep -v '^ *+' conftest.er1 >conftest.err
4419 rm -f conftest.er1
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4424 { (case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_try") 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; } &&
4433 { ac_try='test -s conftest.$ac_objext'
4434 { (case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437 esac
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_try") 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 eval "$as_ac_Header=yes"
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 eval "$as_ac_Header=no"
4451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 ac_res=`eval echo '${'$as_ac_Header'}'`
4454 { echo "$as_me:$LINENO: result: $ac_res" >&5
4455 echo "${ECHO_T}$ac_res" >&6; }
4456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4457 cat >>confdefs.h <<_ACEOF
4458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4459 _ACEOF
4463 done
4466 { echo "$as_me:$LINENO: checking for error_at_line" >&5
4467 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
4468 if test "${ac_cv_lib_error_at_line+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h. */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 $ac_includes_default
4479 main ()
4481 error_at_line (0, 0, "", 0, "");
4483 return 0;
4485 _ACEOF
4486 rm -f conftest.$ac_objext conftest$ac_exeext
4487 if { (ac_try="$ac_link"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_link") 2>conftest.er1
4494 ac_status=$?
4495 grep -v '^ *+' conftest.er1 >conftest.err
4496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } &&
4500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4501 { (case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504 esac
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_try") 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest$ac_exeext'
4511 { (case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514 esac
4515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4516 (eval "$ac_try") 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 ac_cv_lib_error_at_line=yes
4521 else
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4525 ac_cv_lib_error_at_line=no
4528 rm -f core conftest.err conftest.$ac_objext \
4529 conftest$ac_exeext conftest.$ac_ext
4531 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
4532 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
4533 if test $ac_cv_lib_error_at_line = no; then
4534 case " $LIBOBJS " in
4535 *" error.$ac_objext "* ) ;;
4536 *) LIBOBJS="$LIBOBJS error.$ac_objext"
4538 esac
4542 { echo "$as_me:$LINENO: checking for pid_t" >&5
4543 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
4544 if test "${ac_cv_type_pid_t+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h. */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 $ac_includes_default
4554 typedef pid_t ac__type_new_;
4556 main ()
4558 if ((ac__type_new_ *) 0)
4559 return 0;
4560 if (sizeof (ac__type_new_))
4561 return 0;
4563 return 0;
4565 _ACEOF
4566 rm -f conftest.$ac_objext
4567 if { (ac_try="$ac_compile"
4568 case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571 esac
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_compile") 2>conftest.er1
4574 ac_status=$?
4575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4581 { (case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584 esac
4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_try") 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; } &&
4590 { ac_try='test -s conftest.$ac_objext'
4591 { (case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594 esac
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_try") 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 ac_cv_type_pid_t=yes
4601 else
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 ac_cv_type_pid_t=no
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4611 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
4612 if test $ac_cv_type_pid_t = yes; then
4614 else
4616 cat >>confdefs.h <<_ACEOF
4617 #define pid_t int
4618 _ACEOF
4623 for ac_header in vfork.h
4625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 ac_res=`eval echo '${'$as_ac_Header'}'`
4633 { echo "$as_me:$LINENO: result: $ac_res" >&5
4634 echo "${ECHO_T}$ac_res" >&6; }
4635 else
4636 # Is the header compilable?
4637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4639 cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 $ac_includes_default
4646 #include <$ac_header>
4647 _ACEOF
4648 rm -f conftest.$ac_objext
4649 if { (ac_try="$ac_compile"
4650 case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4653 esac
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655 (eval "$ac_compile") 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4663 { (case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666 esac
4667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668 (eval "$ac_try") 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; } &&
4672 { ac_try='test -s conftest.$ac_objext'
4673 { (case "(($ac_try" in
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4676 esac
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678 (eval "$ac_try") 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_header_compiler=yes
4683 else
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 ac_header_compiler=no
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4692 echo "${ECHO_T}$ac_header_compiler" >&6; }
4694 # Is the header present?
4695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4697 cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h. */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 #include <$ac_header>
4704 _ACEOF
4705 if { (ac_try="$ac_cpp conftest.$ac_ext"
4706 case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4712 ac_status=$?
4713 grep -v '^ *+' conftest.er1 >conftest.err
4714 rm -f conftest.er1
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } >/dev/null; then
4718 if test -s conftest.err; then
4719 ac_cpp_err=$ac_c_preproc_warn_flag
4720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4721 else
4722 ac_cpp_err=
4724 else
4725 ac_cpp_err=yes
4727 if test -z "$ac_cpp_err"; then
4728 ac_header_preproc=yes
4729 else
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4733 ac_header_preproc=no
4736 rm -f conftest.err conftest.$ac_ext
4737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4738 echo "${ECHO_T}$ac_header_preproc" >&6; }
4740 # So? What about this header?
4741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4742 yes:no: )
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4747 ac_header_preproc=yes
4749 no:yes:* )
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4762 ( cat <<\_ASBOX
4763 ## ---------------------------------------- ##
4764 ## Report this to daniel.schaffrath@mac.com ##
4765 ## ---------------------------------------- ##
4766 _ASBOX
4767 ) | sed "s/^/$as_me: WARNING: /" >&2
4769 esac
4770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775 eval "$as_ac_Header=\$ac_header_preproc"
4777 ac_res=`eval echo '${'$as_ac_Header'}'`
4778 { echo "$as_me:$LINENO: result: $ac_res" >&5
4779 echo "${ECHO_T}$ac_res" >&6; }
4782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4783 cat >>confdefs.h <<_ACEOF
4784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4785 _ACEOF
4789 done
4793 for ac_func in fork vfork
4795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h. */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4809 #define $ac_func innocuous_$ac_func
4811 /* System header to define __stub macros and hopefully few prototypes,
4812 which can conflict with char $ac_func (); below.
4813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814 <limits.h> exists even on freestanding compilers. */
4816 #ifdef __STDC__
4817 # include <limits.h>
4818 #else
4819 # include <assert.h>
4820 #endif
4822 #undef $ac_func
4824 /* Override any GCC internal prototype to avoid an error.
4825 Use char because int might match the return type of a GCC
4826 builtin and then its argument prototype would still apply. */
4827 #ifdef __cplusplus
4828 extern "C"
4829 #endif
4830 char $ac_func ();
4831 /* The GNU C library defines this for functions which it implements
4832 to always fail with ENOSYS. Some functions are actually named
4833 something starting with __ and the normal name is an alias. */
4834 #if defined __stub_$ac_func || defined __stub___$ac_func
4835 choke me
4836 #endif
4839 main ()
4841 return $ac_func ();
4843 return 0;
4845 _ACEOF
4846 rm -f conftest.$ac_objext conftest$ac_exeext
4847 if { (ac_try="$ac_link"
4848 case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851 esac
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_link") 2>conftest.er1
4854 ac_status=$?
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } &&
4860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4861 { (case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864 esac
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_try") 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest$ac_exeext'
4871 { (case "(($ac_try" in
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4874 esac
4875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4876 (eval "$ac_try") 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; }; then
4880 eval "$as_ac_var=yes"
4881 else
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4885 eval "$as_ac_var=no"
4888 rm -f core conftest.err conftest.$ac_objext \
4889 conftest$ac_exeext conftest.$ac_ext
4891 ac_res=`eval echo '${'$as_ac_var'}'`
4892 { echo "$as_me:$LINENO: result: $ac_res" >&5
4893 echo "${ECHO_T}$ac_res" >&6; }
4894 if test `eval echo '${'$as_ac_var'}'` = yes; then
4895 cat >>confdefs.h <<_ACEOF
4896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4897 _ACEOF
4900 done
4902 if test "x$ac_cv_func_fork" = xyes; then
4903 { echo "$as_me:$LINENO: checking for working fork" >&5
4904 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
4905 if test "${ac_cv_func_fork_works+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 if test "$cross_compiling" = yes; then
4909 ac_cv_func_fork_works=cross
4910 else
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 $ac_includes_default
4919 main ()
4922 /* By Ruediger Kuhlmann. */
4923 return fork () < 0;
4926 return 0;
4928 _ACEOF
4929 rm -f conftest$ac_exeext
4930 if { (ac_try="$ac_link"
4931 case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934 esac
4935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_link") 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4940 { (case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943 esac
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945 (eval "$ac_try") 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; }; then
4949 ac_cv_func_fork_works=yes
4950 else
4951 echo "$as_me: program exited with status $ac_status" >&5
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4955 ( exit $ac_status )
4956 ac_cv_func_fork_works=no
4958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4963 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4964 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
4966 else
4967 ac_cv_func_fork_works=$ac_cv_func_fork
4969 if test "x$ac_cv_func_fork_works" = xcross; then
4970 case $host in
4971 *-*-amigaos* | *-*-msdosdjgpp*)
4972 # Override, as these systems have only a dummy fork() stub
4973 ac_cv_func_fork_works=no
4976 ac_cv_func_fork_works=yes
4978 esac
4979 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4980 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4982 ac_cv_func_vfork_works=$ac_cv_func_vfork
4983 if test "x$ac_cv_func_vfork" = xyes; then
4984 { echo "$as_me:$LINENO: checking for working vfork" >&5
4985 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
4986 if test "${ac_cv_func_vfork_works+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 if test "$cross_compiling" = yes; then
4990 ac_cv_func_vfork_works=cross
4991 else
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 /* Thanks to Paul Eggert for this test. */
4999 $ac_includes_default
5000 #include <sys/wait.h>
5001 #if HAVE_VFORK_H
5002 # include <vfork.h>
5003 #endif
5004 /* On some sparc systems, changes by the child to local and incoming
5005 argument registers are propagated back to the parent. The compiler
5006 is told about this with #include <vfork.h>, but some compilers
5007 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5008 static variable whose address is put into a register that is
5009 clobbered by the vfork. */
5010 static void
5011 #ifdef __cplusplus
5012 sparc_address_test (int arg)
5013 # else
5014 sparc_address_test (arg) int arg;
5015 #endif
5017 static pid_t child;
5018 if (!child) {
5019 child = vfork ();
5020 if (child < 0) {
5021 perror ("vfork");
5022 _exit(2);
5024 if (!child) {
5025 arg = getpid();
5026 write(-1, "", 0);
5027 _exit (arg);
5033 main ()
5035 pid_t parent = getpid ();
5036 pid_t child;
5038 sparc_address_test (0);
5040 child = vfork ();
5042 if (child == 0) {
5043 /* Here is another test for sparc vfork register problems. This
5044 test uses lots of local variables, at least as many local
5045 variables as main has allocated so far including compiler
5046 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5047 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5048 reuse the register of parent for one of the local variables,
5049 since it will think that parent can't possibly be used any more
5050 in this routine. Assigning to the local variable will thus
5051 munge parent in the parent process. */
5052 pid_t
5053 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5054 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5055 /* Convince the compiler that p..p7 are live; otherwise, it might
5056 use the same hardware register for all 8 local variables. */
5057 if (p != p1 || p != p2 || p != p3 || p != p4
5058 || p != p5 || p != p6 || p != p7)
5059 _exit(1);
5061 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5062 from child file descriptors. If the child closes a descriptor
5063 before it execs or exits, this munges the parent's descriptor
5064 as well. Test for this by closing stdout in the child. */
5065 _exit(close(fileno(stdout)) != 0);
5066 } else {
5067 int status;
5068 struct stat st;
5070 while (wait(&status) != child)
5072 return (
5073 /* Was there some problem with vforking? */
5074 child < 0
5076 /* Did the child fail? (This shouldn't happen.) */
5077 || status
5079 /* Did the vfork/compiler bug occur? */
5080 || parent != getpid()
5082 /* Did the file descriptor bug occur? */
5083 || fstat(fileno(stdout), &st) != 0
5087 _ACEOF
5088 rm -f conftest$ac_exeext
5089 if { (ac_try="$ac_link"
5090 case "(($ac_try" in
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5093 esac
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095 (eval "$ac_link") 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5099 { (case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_try") 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_func_vfork_works=yes
5109 else
5110 echo "$as_me: program exited with status $ac_status" >&5
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 ( exit $ac_status )
5115 ac_cv_func_vfork_works=no
5117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5122 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5123 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
5126 if test "x$ac_cv_func_fork_works" = xcross; then
5127 ac_cv_func_vfork_works=$ac_cv_func_vfork
5128 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5129 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5132 if test "x$ac_cv_func_vfork_works" = xyes; then
5134 cat >>confdefs.h <<\_ACEOF
5135 #define HAVE_WORKING_VFORK 1
5136 _ACEOF
5138 else
5140 cat >>confdefs.h <<\_ACEOF
5141 #define vfork fork
5142 _ACEOF
5145 if test "x$ac_cv_func_fork_works" = xyes; then
5147 cat >>confdefs.h <<\_ACEOF
5148 #define HAVE_WORKING_FORK 1
5149 _ACEOF
5154 for ac_header in stdlib.h
5156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 ac_res=`eval echo '${'$as_ac_Header'}'`
5164 { echo "$as_me:$LINENO: result: $ac_res" >&5
5165 echo "${ECHO_T}$ac_res" >&6; }
5166 else
5167 # Is the header compilable?
5168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5170 cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h. */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 $ac_includes_default
5177 #include <$ac_header>
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (ac_try="$ac_compile"
5181 case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5184 esac
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_compile") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5194 { (case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_try") 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; } &&
5203 { ac_try='test -s conftest.$ac_objext'
5204 { (case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207 esac
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_try") 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 ac_header_compiler=yes
5214 else
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 ac_header_compiler=no
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5223 echo "${ECHO_T}$ac_header_compiler" >&6; }
5225 # Is the header present?
5226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5228 cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h. */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234 #include <$ac_header>
5235 _ACEOF
5236 if { (ac_try="$ac_cpp conftest.$ac_ext"
5237 case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5240 esac
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } >/dev/null; then
5249 if test -s conftest.err; then
5250 ac_cpp_err=$ac_c_preproc_warn_flag
5251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5252 else
5253 ac_cpp_err=
5255 else
5256 ac_cpp_err=yes
5258 if test -z "$ac_cpp_err"; then
5259 ac_header_preproc=yes
5260 else
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5264 ac_header_preproc=no
5267 rm -f conftest.err conftest.$ac_ext
5268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5269 echo "${ECHO_T}$ac_header_preproc" >&6; }
5271 # So? What about this header?
5272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5273 yes:no: )
5274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5278 ac_header_preproc=yes
5280 no:yes:* )
5281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5293 ( cat <<\_ASBOX
5294 ## ---------------------------------------- ##
5295 ## Report this to daniel.schaffrath@mac.com ##
5296 ## ---------------------------------------- ##
5297 _ASBOX
5298 ) | sed "s/^/$as_me: WARNING: /" >&2
5300 esac
5301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306 eval "$as_ac_Header=\$ac_header_preproc"
5308 ac_res=`eval echo '${'$as_ac_Header'}'`
5309 { echo "$as_me:$LINENO: result: $ac_res" >&5
5310 echo "${ECHO_T}$ac_res" >&6; }
5313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5314 cat >>confdefs.h <<_ACEOF
5315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5316 _ACEOF
5320 done
5322 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5323 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
5324 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327 if test "$cross_compiling" = yes; then
5328 ac_cv_func_malloc_0_nonnull=no
5329 else
5330 cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h. */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 #if STDC_HEADERS || HAVE_STDLIB_H
5337 # include <stdlib.h>
5338 #else
5339 char *malloc ();
5340 #endif
5343 main ()
5345 return ! malloc (0);
5347 return 0;
5349 _ACEOF
5350 rm -f conftest$ac_exeext
5351 if { (ac_try="$ac_link"
5352 case "(($ac_try" in
5353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5354 *) ac_try_echo=$ac_try;;
5355 esac
5356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5357 (eval "$ac_link") 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5361 { (case "(($ac_try" in
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5364 esac
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366 (eval "$ac_try") 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 ac_cv_func_malloc_0_nonnull=yes
5371 else
5372 echo "$as_me: program exited with status $ac_status" >&5
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5376 ( exit $ac_status )
5377 ac_cv_func_malloc_0_nonnull=no
5379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5384 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5385 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
5386 if test $ac_cv_func_malloc_0_nonnull = yes; then
5388 cat >>confdefs.h <<\_ACEOF
5389 #define HAVE_MALLOC 1
5390 _ACEOF
5392 else
5393 cat >>confdefs.h <<\_ACEOF
5394 #define HAVE_MALLOC 0
5395 _ACEOF
5397 case " $LIBOBJS " in
5398 *" malloc.$ac_objext "* ) ;;
5399 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5401 esac
5404 cat >>confdefs.h <<\_ACEOF
5405 #define malloc rpl_malloc
5406 _ACEOF
5412 { echo "$as_me:$LINENO: checking for working memcmp" >&5
5413 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
5414 if test "${ac_cv_func_memcmp_working+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417 if test "$cross_compiling" = yes; then
5418 ac_cv_func_memcmp_working=no
5419 else
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5428 main ()
5431 /* Some versions of memcmp are not 8-bit clean. */
5432 char c0 = '\100', c1 = '\200', c2 = '\201';
5433 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5434 return 1;
5436 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5437 or more and with at least one buffer not starting on a 4-byte boundary.
5438 William Lewis provided this test program. */
5440 char foo[21];
5441 char bar[21];
5442 int i;
5443 for (i = 0; i < 4; i++)
5445 char *a = foo + i;
5446 char *b = bar + i;
5447 strcpy (a, "--------01111111");
5448 strcpy (b, "--------10000000");
5449 if (memcmp (a, b, 16) >= 0)
5450 return 1;
5452 return 0;
5456 return 0;
5458 _ACEOF
5459 rm -f conftest$ac_exeext
5460 if { (ac_try="$ac_link"
5461 case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_link") 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5470 { (case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473 esac
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_try") 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_cv_func_memcmp_working=yes
5480 else
5481 echo "$as_me: program exited with status $ac_status" >&5
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 ( exit $ac_status )
5486 ac_cv_func_memcmp_working=no
5488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5493 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5494 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
5495 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5496 *" memcmp.$ac_objext "* ) ;;
5497 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5499 esac
5504 for ac_header in sys/select.h sys/socket.h
5506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 ac_res=`eval echo '${'$as_ac_Header'}'`
5514 { echo "$as_me:$LINENO: result: $ac_res" >&5
5515 echo "${ECHO_T}$ac_res" >&6; }
5516 else
5517 # Is the header compilable?
5518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 $ac_includes_default
5527 #include <$ac_header>
5528 _ACEOF
5529 rm -f conftest.$ac_objext
5530 if { (ac_try="$ac_compile"
5531 case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5534 esac
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_compile") 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5544 { (case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_try") 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try='test -s conftest.$ac_objext'
5554 { (case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_try") 2>&5
5560 ac_status=$?
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; }; then
5563 ac_header_compiler=yes
5564 else
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5568 ac_header_compiler=no
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5573 echo "${ECHO_T}$ac_header_compiler" >&6; }
5575 # Is the header present?
5576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5578 cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h. */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 #include <$ac_header>
5585 _ACEOF
5586 if { (ac_try="$ac_cpp conftest.$ac_ext"
5587 case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590 esac
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } >/dev/null; then
5599 if test -s conftest.err; then
5600 ac_cpp_err=$ac_c_preproc_warn_flag
5601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5602 else
5603 ac_cpp_err=
5605 else
5606 ac_cpp_err=yes
5608 if test -z "$ac_cpp_err"; then
5609 ac_header_preproc=yes
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5614 ac_header_preproc=no
5617 rm -f conftest.err conftest.$ac_ext
5618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5619 echo "${ECHO_T}$ac_header_preproc" >&6; }
5621 # So? What about this header?
5622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5623 yes:no: )
5624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5628 ac_header_preproc=yes
5630 no:yes:* )
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5643 ( cat <<\_ASBOX
5644 ## ---------------------------------------- ##
5645 ## Report this to daniel.schaffrath@mac.com ##
5646 ## ---------------------------------------- ##
5647 _ASBOX
5648 ) | sed "s/^/$as_me: WARNING: /" >&2
5650 esac
5651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656 eval "$as_ac_Header=\$ac_header_preproc"
5658 ac_res=`eval echo '${'$as_ac_Header'}'`
5659 { echo "$as_me:$LINENO: result: $ac_res" >&5
5660 echo "${ECHO_T}$ac_res" >&6; }
5663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5664 cat >>confdefs.h <<_ACEOF
5665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5666 _ACEOF
5670 done
5672 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
5673 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
5674 if test "${ac_cv_func_select_args+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5678 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
5679 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 $ac_includes_default
5687 #if HAVE_SYS_SELECT_H
5688 # include <sys/select.h>
5689 #endif
5690 #if HAVE_SYS_SOCKET_H
5691 # include <sys/socket.h>
5692 #endif
5695 main ()
5697 extern int select ($ac_arg1,
5698 $ac_arg234, $ac_arg234, $ac_arg234,
5699 $ac_arg5);
5701 return 0;
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (ac_try="$ac_compile"
5706 case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_compile") 2>conftest.er1
5712 ac_status=$?
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5719 { (case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_try") 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest.$ac_objext'
5729 { (case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732 esac
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_try") 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5738 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5739 else
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 done
5748 done
5749 done
5750 # Provide a safe default value.
5751 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
5754 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
5755 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
5756 ac_save_IFS=$IFS; IFS=','
5757 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5758 IFS=$ac_save_IFS
5759 shift
5761 cat >>confdefs.h <<_ACEOF
5762 #define SELECT_TYPE_ARG1 $1
5763 _ACEOF
5766 cat >>confdefs.h <<_ACEOF
5767 #define SELECT_TYPE_ARG234 ($2)
5768 _ACEOF
5771 cat >>confdefs.h <<_ACEOF
5772 #define SELECT_TYPE_ARG5 ($3)
5773 _ACEOF
5775 rm -f conftest*
5778 for ac_func in strftime
5780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786 cat >conftest.$ac_ext <<_ACEOF
5787 /* confdefs.h. */
5788 _ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5794 #define $ac_func innocuous_$ac_func
5796 /* System header to define __stub macros and hopefully few prototypes,
5797 which can conflict with char $ac_func (); below.
5798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5799 <limits.h> exists even on freestanding compilers. */
5801 #ifdef __STDC__
5802 # include <limits.h>
5803 #else
5804 # include <assert.h>
5805 #endif
5807 #undef $ac_func
5809 /* Override any GCC internal prototype to avoid an error.
5810 Use char because int might match the return type of a GCC
5811 builtin and then its argument prototype would still apply. */
5812 #ifdef __cplusplus
5813 extern "C"
5814 #endif
5815 char $ac_func ();
5816 /* The GNU C library defines this for functions which it implements
5817 to always fail with ENOSYS. Some functions are actually named
5818 something starting with __ and the normal name is an alias. */
5819 #if defined __stub_$ac_func || defined __stub___$ac_func
5820 choke me
5821 #endif
5824 main ()
5826 return $ac_func ();
5828 return 0;
5830 _ACEOF
5831 rm -f conftest.$ac_objext conftest$ac_exeext
5832 if { (ac_try="$ac_link"
5833 case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836 esac
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_link") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5846 { (case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5849 esac
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_try") 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest$ac_exeext'
5856 { (case "(($ac_try" in
5857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858 *) ac_try_echo=$ac_try;;
5859 esac
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861 (eval "$ac_try") 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5865 eval "$as_ac_var=yes"
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 eval "$as_ac_var=no"
5873 rm -f core conftest.err conftest.$ac_objext \
5874 conftest$ac_exeext conftest.$ac_ext
5876 ac_res=`eval echo '${'$as_ac_var'}'`
5877 { echo "$as_me:$LINENO: result: $ac_res" >&5
5878 echo "${ECHO_T}$ac_res" >&6; }
5879 if test `eval echo '${'$as_ac_var'}'` = yes; then
5880 cat >>confdefs.h <<_ACEOF
5881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5882 _ACEOF
5884 else
5885 # strftime is in -lintl on SCO UNIX.
5886 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5887 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
5888 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891 ac_check_lib_save_LIBS=$LIBS
5892 LIBS="-lintl $LIBS"
5893 cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5900 /* Override any GCC internal prototype to avoid an error.
5901 Use char because int might match the return type of a GCC
5902 builtin and then its argument prototype would still apply. */
5903 #ifdef __cplusplus
5904 extern "C"
5905 #endif
5906 char strftime ();
5908 main ()
5910 return strftime ();
5912 return 0;
5914 _ACEOF
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (ac_try="$ac_link"
5917 case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920 esac
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_link") 2>conftest.er1
5923 ac_status=$?
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try='test -s conftest$ac_exeext'
5940 { (case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_try") 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5949 ac_cv_lib_intl_strftime=yes
5950 else
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5954 ac_cv_lib_intl_strftime=no
5957 rm -f core conftest.err conftest.$ac_objext \
5958 conftest$ac_exeext conftest.$ac_ext
5959 LIBS=$ac_check_lib_save_LIBS
5961 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5962 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
5963 if test $ac_cv_lib_intl_strftime = yes; then
5964 cat >>confdefs.h <<\_ACEOF
5965 #define HAVE_STRFTIME 1
5966 _ACEOF
5968 LIBS="-lintl $LIBS"
5972 done
5974 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5975 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
5976 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 #include <sys/types.h>
5986 #include <sys/wait.h>
5987 #ifndef WEXITSTATUS
5988 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5989 #endif
5990 #ifndef WIFEXITED
5991 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5992 #endif
5995 main ()
5997 int s;
5998 wait (&s);
5999 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6001 return 0;
6003 _ACEOF
6004 rm -f conftest.$ac_objext
6005 if { (ac_try="$ac_compile"
6006 case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_compile") 2>conftest.er1
6012 ac_status=$?
6013 grep -v '^ *+' conftest.er1 >conftest.err
6014 rm -f conftest.er1
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6019 { (case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022 esac
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_try") 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6032 esac
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_try") 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 ac_cv_header_sys_wait_h=yes
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 ac_cv_header_sys_wait_h=no
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6049 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6050 if test $ac_cv_header_sys_wait_h = yes; then
6052 cat >>confdefs.h <<\_ACEOF
6053 #define HAVE_SYS_WAIT_H 1
6054 _ACEOF
6058 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6059 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6060 if test "${ac_cv_header_time+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <sys/types.h>
6070 #include <sys/time.h>
6071 #include <time.h>
6074 main ()
6076 if ((struct tm *) 0)
6077 return 0;
6079 return 0;
6081 _ACEOF
6082 rm -f conftest.$ac_objext
6083 if { (ac_try="$ac_compile"
6084 case "(($ac_try" in
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6087 esac
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_compile") 2>conftest.er1
6090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } &&
6096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6097 { (case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100 esac
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_try") 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try='test -s conftest.$ac_objext'
6107 { (case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110 esac
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_try") 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 ac_cv_header_time=yes
6117 else
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6121 ac_cv_header_time=no
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6127 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6128 if test $ac_cv_header_time = yes; then
6130 cat >>confdefs.h <<\_ACEOF
6131 #define TIME_WITH_SYS_TIME 1
6132 _ACEOF
6136 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6137 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6138 if test "${ac_cv_struct_tm+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141 cat >conftest.$ac_ext <<_ACEOF
6142 /* confdefs.h. */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 #include <sys/types.h>
6148 #include <time.h>
6151 main ()
6153 struct tm *tp; tp->tm_sec;
6155 return 0;
6157 _ACEOF
6158 rm -f conftest.$ac_objext
6159 if { (ac_try="$ac_compile"
6160 case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163 esac
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_compile") 2>conftest.er1
6166 ac_status=$?
6167 grep -v '^ *+' conftest.er1 >conftest.err
6168 rm -f conftest.er1
6169 cat conftest.err >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } &&
6172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6173 { (case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_try") 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; } &&
6182 { ac_try='test -s conftest.$ac_objext'
6183 { (case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186 esac
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_try") 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 ac_cv_struct_tm=time.h
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 ac_cv_struct_tm=sys/time.h
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6203 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6204 if test $ac_cv_struct_tm = sys/time.h; then
6206 cat >>confdefs.h <<\_ACEOF
6207 #define TM_IN_SYS_TIME 1
6208 _ACEOF
6212 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6213 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6214 if test "${ac_cv_type_signal+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217 cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h. */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 #include <sys/types.h>
6224 #include <signal.h>
6227 main ()
6229 return *(signal (0, 0)) (0) == 1;
6231 return 0;
6233 _ACEOF
6234 rm -f conftest.$ac_objext
6235 if { (ac_try="$ac_compile"
6236 case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_compile") 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6249 { (case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_try") 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_try") 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_cv_type_signal=int
6269 else
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 ac_cv_type_signal=void
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6279 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6281 cat >>confdefs.h <<_ACEOF
6282 #define RETSIGTYPE $ac_cv_type_signal
6283 _ACEOF
6286 { echo "$as_me:$LINENO: checking for size_t" >&5
6287 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6288 if test "${ac_cv_type_size_t+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291 cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h. */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 $ac_includes_default
6298 typedef size_t ac__type_new_;
6300 main ()
6302 if ((ac__type_new_ *) 0)
6303 return 0;
6304 if (sizeof (ac__type_new_))
6305 return 0;
6307 return 0;
6309 _ACEOF
6310 rm -f conftest.$ac_objext
6311 if { (ac_try="$ac_compile"
6312 case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315 esac
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317 (eval "$ac_compile") 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6325 { (case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328 esac
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_try") 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try='test -s conftest.$ac_objext'
6335 { (case "(($ac_try" in
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6338 esac
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_try") 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_cv_type_size_t=yes
6345 else
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 ac_cv_type_size_t=no
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6355 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6356 if test $ac_cv_type_size_t = yes; then
6358 else
6360 cat >>confdefs.h <<_ACEOF
6361 #define size_t unsigned int
6362 _ACEOF
6366 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6367 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6368 if test "${ac_cv_type_ssize_t+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371 cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h. */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 $ac_includes_default
6378 typedef ssize_t ac__type_new_;
6380 main ()
6382 if ((ac__type_new_ *) 0)
6383 return 0;
6384 if (sizeof (ac__type_new_))
6385 return 0;
6387 return 0;
6389 _ACEOF
6390 rm -f conftest.$ac_objext
6391 if { (ac_try="$ac_compile"
6392 case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6405 { (case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408 esac
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_try") 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418 esac
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_try") 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 ac_cv_type_ssize_t=yes
6425 else
6426 echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6429 ac_cv_type_ssize_t=no
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6435 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6436 if test $ac_cv_type_ssize_t = yes; then
6438 else
6440 cat >>confdefs.h <<_ACEOF
6441 #define ssize_t int
6442 _ACEOF
6447 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6448 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6449 if test "${ac_cv_c_uint32_t+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 ac_cv_c_uint32_t=no
6453 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
6454 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6455 cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h. */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6461 $ac_includes_default
6463 main ()
6465 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
6466 test_array [0] = 0
6469 return 0;
6471 _ACEOF
6472 rm -f conftest.$ac_objext
6473 if { (ac_try="$ac_compile"
6474 case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477 esac
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_compile") 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6487 { (case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490 esac
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_try") 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest.$ac_objext'
6497 { (case "(($ac_try" in
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6500 esac
6501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502 (eval "$ac_try") 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6506 case $ac_type in
6507 uint32_t) ac_cv_c_uint32_t=yes ;;
6508 *) ac_cv_c_uint32_t=$ac_type ;;
6509 esac
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 test "$ac_cv_c_uint32_t" != no && break
6520 done
6522 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
6523 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
6524 case $ac_cv_c_uint32_t in #(
6525 no|yes) ;; #(
6528 cat >>confdefs.h <<\_ACEOF
6529 #define _UINT32_T 1
6530 _ACEOF
6533 cat >>confdefs.h <<_ACEOF
6534 #define uint32_t $ac_cv_c_uint32_t
6535 _ACEOF
6537 esac
6540 { echo "$as_me:$LINENO: checking for uint64_t" >&5
6541 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6542 if test "${ac_cv_c_uint64_t+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 ac_cv_c_uint64_t=no
6546 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
6547 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6548 cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h. */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 $ac_includes_default
6556 main ()
6558 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
6559 test_array [0] = 0
6562 return 0;
6564 _ACEOF
6565 rm -f conftest.$ac_objext
6566 if { (ac_try="$ac_compile"
6567 case "(($ac_try" in
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6570 esac
6571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572 (eval "$ac_compile") 2>conftest.er1
6573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6580 { (case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_try") 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest.$ac_objext'
6590 { (case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593 esac
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_try") 2>&5
6596 ac_status=$?
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 case $ac_type in
6600 uint64_t) ac_cv_c_uint64_t=yes ;;
6601 *) ac_cv_c_uint64_t=$ac_type ;;
6602 esac
6604 else
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 test "$ac_cv_c_uint64_t" != no && break
6613 done
6615 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
6616 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
6617 case $ac_cv_c_uint64_t in #(
6618 no|yes) ;; #(
6621 cat >>confdefs.h <<\_ACEOF
6622 #define _UINT64_T 1
6623 _ACEOF
6626 cat >>confdefs.h <<_ACEOF
6627 #define uint64_t $ac_cv_c_uint64_t
6628 _ACEOF
6630 esac
6633 { echo "$as_me:$LINENO: checking for uint8_t" >&5
6634 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
6635 if test "${ac_cv_c_uint8_t+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638 ac_cv_c_uint8_t=no
6639 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
6640 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h. */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6649 main ()
6651 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
6652 test_array [0] = 0
6655 return 0;
6657 _ACEOF
6658 rm -f conftest.$ac_objext
6659 if { (ac_try="$ac_compile"
6660 case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663 esac
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_compile") 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6673 { (case "(($ac_try" in
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6676 esac
6677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6678 (eval "$ac_try") 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; } &&
6682 { ac_try='test -s conftest.$ac_objext'
6683 { (case "(($ac_try" in
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6686 esac
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688 (eval "$ac_try") 2>&5
6689 ac_status=$?
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 case $ac_type in
6693 uint8_t) ac_cv_c_uint8_t=yes ;;
6694 *) ac_cv_c_uint8_t=$ac_type ;;
6695 esac
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 test "$ac_cv_c_uint8_t" != no && break
6706 done
6708 { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
6709 echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
6710 case $ac_cv_c_uint8_t in #(
6711 no|yes) ;; #(
6714 cat >>confdefs.h <<\_ACEOF
6715 #define _UINT8_T 1
6716 _ACEOF
6719 cat >>confdefs.h <<_ACEOF
6720 #define uint8_t $ac_cv_c_uint8_t
6721 _ACEOF
6723 esac
6734 for ac_func in \
6735 bzero \
6736 gettimeofday \
6737 memset \
6738 select \
6739 socket \
6740 strchr \
6741 strerror \
6742 uname \
6745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751 cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h. */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6759 #define $ac_func innocuous_$ac_func
6761 /* System header to define __stub macros and hopefully few prototypes,
6762 which can conflict with char $ac_func (); below.
6763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6764 <limits.h> exists even on freestanding compilers. */
6766 #ifdef __STDC__
6767 # include <limits.h>
6768 #else
6769 # include <assert.h>
6770 #endif
6772 #undef $ac_func
6774 /* Override any GCC internal prototype to avoid an error.
6775 Use char because int might match the return type of a GCC
6776 builtin and then its argument prototype would still apply. */
6777 #ifdef __cplusplus
6778 extern "C"
6779 #endif
6780 char $ac_func ();
6781 /* The GNU C library defines this for functions which it implements
6782 to always fail with ENOSYS. Some functions are actually named
6783 something starting with __ and the normal name is an alias. */
6784 #if defined __stub_$ac_func || defined __stub___$ac_func
6785 choke me
6786 #endif
6789 main ()
6791 return $ac_func ();
6793 return 0;
6795 _ACEOF
6796 rm -f conftest.$ac_objext conftest$ac_exeext
6797 if { (ac_try="$ac_link"
6798 case "(($ac_try" in
6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6801 esac
6802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6803 (eval "$ac_link") 2>conftest.er1
6804 ac_status=$?
6805 grep -v '^ *+' conftest.er1 >conftest.err
6806 rm -f conftest.er1
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } &&
6810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6811 { (case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_try") 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; } &&
6820 { ac_try='test -s conftest$ac_exeext'
6821 { (case "(($ac_try" in
6822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823 *) ac_try_echo=$ac_try;;
6824 esac
6825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6826 (eval "$ac_try") 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 eval "$as_ac_var=yes"
6831 else
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6835 eval "$as_ac_var=no"
6838 rm -f core conftest.err conftest.$ac_objext \
6839 conftest$ac_exeext conftest.$ac_ext
6841 ac_res=`eval echo '${'$as_ac_var'}'`
6842 { echo "$as_me:$LINENO: result: $ac_res" >&5
6843 echo "${ECHO_T}$ac_res" >&6; }
6844 if test `eval echo '${'$as_ac_var'}'` = yes; then
6845 cat >>confdefs.h <<_ACEOF
6846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6847 _ACEOF
6850 done
6854 { echo "$as_me:$LINENO: checking for log in -lm" >&5
6855 echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; }
6856 if test "${ac_cv_lib_m_log+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859 ac_check_lib_save_LIBS=$LIBS
6860 LIBS="-lm $LIBS"
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6868 /* Override any GCC internal prototype to avoid an error.
6869 Use char because int might match the return type of a GCC
6870 builtin and then its argument prototype would still apply. */
6871 #ifdef __cplusplus
6872 extern "C"
6873 #endif
6874 char log ();
6876 main ()
6878 return log ();
6880 return 0;
6882 _ACEOF
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884 if { (ac_try="$ac_link"
6885 case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888 esac
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_link") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6898 { (case "(($ac_try" in
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6901 esac
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_try") 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; } &&
6907 { ac_try='test -s conftest$ac_exeext'
6908 { (case "(($ac_try" in
6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6911 esac
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913 (eval "$ac_try") 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_cv_lib_m_log=yes
6918 else
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 ac_cv_lib_m_log=no
6925 rm -f core conftest.err conftest.$ac_objext \
6926 conftest$ac_exeext conftest.$ac_ext
6927 LIBS=$ac_check_lib_save_LIBS
6929 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
6930 echo "${ECHO_T}$ac_cv_lib_m_log" >&6; }
6931 if test $ac_cv_lib_m_log = yes; then
6932 cat >>confdefs.h <<_ACEOF
6933 #define HAVE_LIBM 1
6934 _ACEOF
6936 LIBS="-lm $LIBS"
6941 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6942 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6943 if test "${ac_cv_lib_socket_socket+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946 ac_check_lib_save_LIBS=$LIBS
6947 LIBS="-lsocket $LIBS"
6948 cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h. */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6955 /* Override any GCC internal prototype to avoid an error.
6956 Use char because int might match the return type of a GCC
6957 builtin and then its argument prototype would still apply. */
6958 #ifdef __cplusplus
6959 extern "C"
6960 #endif
6961 char socket ();
6963 main ()
6965 return socket ();
6967 return 0;
6969 _ACEOF
6970 rm -f conftest.$ac_objext conftest$ac_exeext
6971 if { (ac_try="$ac_link"
6972 case "(($ac_try" in
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6975 esac
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_link") 2>conftest.er1
6978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6985 { (case "(($ac_try" in
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6988 esac
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990 (eval "$ac_try") 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; } &&
6994 { ac_try='test -s conftest$ac_exeext'
6995 { (case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998 esac
6999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7000 (eval "$ac_try") 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 ac_cv_lib_socket_socket=yes
7005 else
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_lib_socket_socket=no
7012 rm -f core conftest.err conftest.$ac_objext \
7013 conftest$ac_exeext conftest.$ac_ext
7014 LIBS=$ac_check_lib_save_LIBS
7016 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7017 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
7018 if test $ac_cv_lib_socket_socket = yes; then
7019 cat >>confdefs.h <<_ACEOF
7020 #define HAVE_LIBSOCKET 1
7021 _ACEOF
7023 LIBS="-lsocket $LIBS"
7028 { echo "$as_me:$LINENO: checking for socket in -lnsl" >&5
7029 echo $ECHO_N "checking for socket in -lnsl... $ECHO_C" >&6; }
7030 if test "${ac_cv_lib_nsl_socket+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033 ac_check_lib_save_LIBS=$LIBS
7034 LIBS="-lnsl $LIBS"
7035 cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h. */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7042 /* Override any GCC internal prototype to avoid an error.
7043 Use char because int might match the return type of a GCC
7044 builtin and then its argument prototype would still apply. */
7045 #ifdef __cplusplus
7046 extern "C"
7047 #endif
7048 char socket ();
7050 main ()
7052 return socket ();
7054 return 0;
7056 _ACEOF
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (ac_try="$ac_link"
7059 case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062 esac
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_link") 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7072 { (case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075 esac
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_try") 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try='test -s conftest$ac_exeext'
7082 { (case "(($ac_try" in
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7085 esac
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_try") 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; }; then
7091 ac_cv_lib_nsl_socket=yes
7092 else
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7096 ac_cv_lib_nsl_socket=no
7099 rm -f core conftest.err conftest.$ac_objext \
7100 conftest$ac_exeext conftest.$ac_ext
7101 LIBS=$ac_check_lib_save_LIBS
7103 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_socket" >&5
7104 echo "${ECHO_T}$ac_cv_lib_nsl_socket" >&6; }
7105 if test $ac_cv_lib_nsl_socket = yes; then
7106 cat >>confdefs.h <<_ACEOF
7107 #define HAVE_LIBNSL 1
7108 _ACEOF
7110 LIBS="-lnsl $LIBS"
7115 { echo "$as_me:$LINENO: checking for herror in -lresolv" >&5
7116 echo $ECHO_N "checking for herror in -lresolv... $ECHO_C" >&6; }
7117 if test "${ac_cv_lib_resolv_herror+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120 ac_check_lib_save_LIBS=$LIBS
7121 LIBS="-lresolv $LIBS"
7122 cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h. */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7129 /* Override any GCC internal prototype to avoid an error.
7130 Use char because int might match the return type of a GCC
7131 builtin and then its argument prototype would still apply. */
7132 #ifdef __cplusplus
7133 extern "C"
7134 #endif
7135 char herror ();
7137 main ()
7139 return herror ();
7141 return 0;
7143 _ACEOF
7144 rm -f conftest.$ac_objext conftest$ac_exeext
7145 if { (ac_try="$ac_link"
7146 case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149 esac
7150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151 (eval "$ac_link") 2>conftest.er1
7152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7159 { (case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162 esac
7163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_try") 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; } &&
7168 { ac_try='test -s conftest$ac_exeext'
7169 { (case "(($ac_try" in
7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7172 esac
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174 (eval "$ac_try") 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_lib_resolv_herror=yes
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_cv_lib_resolv_herror=no
7186 rm -f core conftest.err conftest.$ac_objext \
7187 conftest$ac_exeext conftest.$ac_ext
7188 LIBS=$ac_check_lib_save_LIBS
7190 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_herror" >&5
7191 echo "${ECHO_T}$ac_cv_lib_resolv_herror" >&6; }
7192 if test $ac_cv_lib_resolv_herror = yes; then
7193 cat >>confdefs.h <<_ACEOF
7194 #define HAVE_LIBRESOLV 1
7195 _ACEOF
7197 LIBS="-lresolv $LIBS"
7202 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
7203 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
7204 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207 ac_check_lib_save_LIBS=$LIBS
7208 LIBS="-lrt $LIBS"
7209 cat >conftest.$ac_ext <<_ACEOF
7210 /* confdefs.h. */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7216 /* Override any GCC internal prototype to avoid an error.
7217 Use char because int might match the return type of a GCC
7218 builtin and then its argument prototype would still apply. */
7219 #ifdef __cplusplus
7220 extern "C"
7221 #endif
7222 char nanosleep ();
7224 main ()
7226 return nanosleep ();
7228 return 0;
7230 _ACEOF
7231 rm -f conftest.$ac_objext conftest$ac_exeext
7232 if { (ac_try="$ac_link"
7233 case "(($ac_try" in
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7236 esac
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238 (eval "$ac_link") 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7246 { (case "(($ac_try" in
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7249 esac
7250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_try") 2>&5
7252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; } &&
7255 { ac_try='test -s conftest$ac_exeext'
7256 { (case "(($ac_try" in
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7259 esac
7260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261 (eval "$ac_try") 2>&5
7262 ac_status=$?
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7265 ac_cv_lib_rt_nanosleep=yes
7266 else
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7270 ac_cv_lib_rt_nanosleep=no
7273 rm -f core conftest.err conftest.$ac_objext \
7274 conftest$ac_exeext conftest.$ac_ext
7275 LIBS=$ac_check_lib_save_LIBS
7277 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
7278 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
7279 if test $ac_cv_lib_rt_nanosleep = yes; then
7280 cat >>confdefs.h <<_ACEOF
7281 #define HAVE_LIBRT 1
7282 _ACEOF
7284 LIBS="-lrt $LIBS"
7289 { echo "$as_me:$LINENO: checking for fasttime_init_context in -lfasttime" >&5
7290 echo $ECHO_N "checking for fasttime_init_context in -lfasttime... $ECHO_C" >&6; }
7291 if test "${ac_cv_lib_fasttime_fasttime_init_context+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294 ac_check_lib_save_LIBS=$LIBS
7295 LIBS="-lfasttime $LIBS"
7296 cat >conftest.$ac_ext <<_ACEOF
7297 /* confdefs.h. */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7303 /* Override any GCC internal prototype to avoid an error.
7304 Use char because int might match the return type of a GCC
7305 builtin and then its argument prototype would still apply. */
7306 #ifdef __cplusplus
7307 extern "C"
7308 #endif
7309 char fasttime_init_context ();
7311 main ()
7313 return fasttime_init_context ();
7315 return 0;
7317 _ACEOF
7318 rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (ac_try="$ac_link"
7320 case "(($ac_try" in
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7323 esac
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325 (eval "$ac_link") 2>conftest.er1
7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7333 { (case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336 esac
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_try") 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest$ac_exeext'
7343 { (case "(($ac_try" in
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7346 esac
7347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348 (eval "$ac_try") 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_cv_lib_fasttime_fasttime_init_context=yes
7353 else
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 ac_cv_lib_fasttime_fasttime_init_context=no
7360 rm -f core conftest.err conftest.$ac_objext \
7361 conftest$ac_exeext conftest.$ac_ext
7362 LIBS=$ac_check_lib_save_LIBS
7364 { echo "$as_me:$LINENO: result: $ac_cv_lib_fasttime_fasttime_init_context" >&5
7365 echo "${ECHO_T}$ac_cv_lib_fasttime_fasttime_init_context" >&6; }
7366 if test $ac_cv_lib_fasttime_fasttime_init_context = yes; then
7367 cat >>confdefs.h <<_ACEOF
7368 #define HAVE_LIBFASTTIME 1
7369 _ACEOF
7371 LIBS="-lfasttime $LIBS"
7376 { echo "$as_me:$LINENO: checking for tsci2_init in -ltsci2" >&5
7377 echo $ECHO_N "checking for tsci2_init in -ltsci2... $ECHO_C" >&6; }
7378 if test "${ac_cv_lib_tsci2_tsci2_init+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 ac_check_lib_save_LIBS=$LIBS
7382 LIBS="-ltsci2 $LIBS"
7383 cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h. */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7390 /* Override any GCC internal prototype to avoid an error.
7391 Use char because int might match the return type of a GCC
7392 builtin and then its argument prototype would still apply. */
7393 #ifdef __cplusplus
7394 extern "C"
7395 #endif
7396 char tsci2_init ();
7398 main ()
7400 return tsci2_init ();
7402 return 0;
7404 _ACEOF
7405 rm -f conftest.$ac_objext conftest$ac_exeext
7406 if { (ac_try="$ac_link"
7407 case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410 esac
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_link") 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } &&
7419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7420 { (case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423 esac
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_try") 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; } &&
7429 { ac_try='test -s conftest$ac_exeext'
7430 { (case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433 esac
7434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435 (eval "$ac_try") 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; }; then
7439 ac_cv_lib_tsci2_tsci2_init=yes
7440 else
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7444 ac_cv_lib_tsci2_tsci2_init=no
7447 rm -f core conftest.err conftest.$ac_objext \
7448 conftest$ac_exeext conftest.$ac_ext
7449 LIBS=$ac_check_lib_save_LIBS
7451 { echo "$as_me:$LINENO: result: $ac_cv_lib_tsci2_tsci2_init" >&5
7452 echo "${ECHO_T}$ac_cv_lib_tsci2_tsci2_init" >&6; }
7453 if test $ac_cv_lib_tsci2_tsci2_init = yes; then
7454 cat >>confdefs.h <<_ACEOF
7455 #define HAVE_LIBTSCI2 1
7456 _ACEOF
7458 LIBS="-ltsci2 $LIBS"
7464 # Check whether --with-pcap was given.
7465 if test "${with_pcap+set}" = set; then
7466 withval=$with_pcap;
7467 if test $withval = no
7468 then
7469 want_pcap=no
7470 elif test $withval = yes
7471 then
7472 want_pcap=yes
7473 else
7474 want_pcap=yes
7475 pcap_dir=$withval
7478 else
7480 want_pcap=yes
7481 pcap_dir=
7485 if test "x$want_pcap" = "xno" ; then
7486 { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7488 else
7489 { echo "$as_me:$LINENO: result: yes" >&5
7490 echo "${ECHO_T}yes" >&6; }
7492 if test -z "$pcap_dir"
7493 then
7494 # Pcap header checks
7495 # XXX need to set a var AC_CHECK_HEADER(pcap.h,,)
7498 # The user didn't specify a directory in which libpcap resides;
7499 # we assume that the current library search path will work,
7500 # but we may have to look for the header in a "pcap"
7501 # subdirectory of "/usr/include" or "/usr/local/include",
7502 # as some systems apparently put "pcap.h" in a "pcap"
7503 # subdirectory, and we also check "$prefix/include" - and
7504 # "$prefix/include/pcap", in case $prefix is set to
7505 # "/usr/include" or "/usr/local/include".
7507 # XXX - should we just add "$prefix/include" to the include
7508 # search path and "$prefix/lib" to the library search path?
7510 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7511 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7512 found_pcap_dir=""
7513 pcap_dir_list="/usr/include/pcap $prefix/include/pcap $prefix/include"
7514 if test "x$ac_cv_enable_usr_local" = "xyes" ; then
7515 pcap_dir_list="$pcap_dir_list /usr/local/include/pcap"
7517 for pcap_dir in $pcap_dir_list
7519 if test -d $pcap_dir ; then
7520 if test x$pcap_dir != x/usr/include -a x$pcap_dir != x/usr/local/include ; then
7521 CFLAGS="$CFLAGS -I$pcap_dir"
7522 CPPFLAGS="$CPPFLAGS -I$pcap_dir"
7524 found_pcap_dir=" $found_pcap_dir -I$pcap_dir"
7525 break
7527 done
7529 if test "$found_pcap_dir" != "" ; then
7530 { echo "$as_me:$LINENO: result: found --$found_pcap_dir added to CFLAGS" >&5
7531 echo "${ECHO_T}found --$found_pcap_dir added to CFLAGS" >&6; }
7532 else
7533 { echo "$as_me:$LINENO: result: not found" >&5
7534 echo "${ECHO_T}not found" >&6; }
7536 else
7538 # The user specified a directory in which libpcap resides,
7539 # so add the "include" subdirectory of that directory to
7540 # the include file search path and the "lib" subdirectory
7541 # of that directory to the library search path.
7543 # XXX - if there's also a libpcap in a directory that's
7544 # already in CFLAGS, CPPFLAGS, or LDFLAGS, this won't
7545 # make us find the version in the specified directory,
7546 # as the compiler and/or linker will search that other
7547 # directory before it searches the specified directory.
7549 CFLAGS="$CFLAGS -I$pcap_dir/include"
7550 CPPFLAGS="$CPPFLAGS -I$pcap_dir/include"
7551 LDFLAGS="$LDFLAGS -L$pcap_dir/lib"
7552 case "$host_os" in
7553 solaris*)
7554 LDFLAGS="$LDFLAGS -R$pcap_dir/lib"
7556 esac
7560 # Pcap header check
7561 if test "${ac_cv_header_pcap_h+set}" = set; then
7562 { echo "$as_me:$LINENO: checking for pcap.h" >&5
7563 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
7564 if test "${ac_cv_header_pcap_h+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
7568 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
7569 else
7570 # Is the header compilable?
7571 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
7572 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
7573 cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h. */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 $ac_includes_default
7580 #include <pcap.h>
7581 _ACEOF
7582 rm -f conftest.$ac_objext
7583 if { (ac_try="$ac_compile"
7584 case "(($ac_try" in
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7587 esac
7588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7589 (eval "$ac_compile") 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7597 { (case "(($ac_try" in
7598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599 *) ac_try_echo=$ac_try;;
7600 esac
7601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602 (eval "$ac_try") 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; } &&
7606 { ac_try='test -s conftest.$ac_objext'
7607 { (case "(($ac_try" in
7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609 *) ac_try_echo=$ac_try;;
7610 esac
7611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7612 (eval "$ac_try") 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; }; then
7616 ac_header_compiler=yes
7617 else
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7621 ac_header_compiler=no
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7626 echo "${ECHO_T}$ac_header_compiler" >&6; }
7628 # Is the header present?
7629 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
7630 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
7631 cat >conftest.$ac_ext <<_ACEOF
7632 /* confdefs.h. */
7633 _ACEOF
7634 cat confdefs.h >>conftest.$ac_ext
7635 cat >>conftest.$ac_ext <<_ACEOF
7636 /* end confdefs.h. */
7637 #include <pcap.h>
7638 _ACEOF
7639 if { (ac_try="$ac_cpp conftest.$ac_ext"
7640 case "(($ac_try" in
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7643 esac
7644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } >/dev/null; then
7652 if test -s conftest.err; then
7653 ac_cpp_err=$ac_c_preproc_warn_flag
7654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7655 else
7656 ac_cpp_err=
7658 else
7659 ac_cpp_err=yes
7661 if test -z "$ac_cpp_err"; then
7662 ac_header_preproc=yes
7663 else
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7667 ac_header_preproc=no
7670 rm -f conftest.err conftest.$ac_ext
7671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7672 echo "${ECHO_T}$ac_header_preproc" >&6; }
7674 # So? What about this header?
7675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7676 yes:no: )
7677 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7678 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7679 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
7680 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
7681 ac_header_preproc=yes
7683 no:yes:* )
7684 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
7685 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
7686 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
7687 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
7688 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
7689 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
7690 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
7691 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7692 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
7693 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
7695 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
7696 ( cat <<\_ASBOX
7697 ## ---------------------------------------- ##
7698 ## Report this to daniel.schaffrath@mac.com ##
7699 ## ---------------------------------------- ##
7700 _ASBOX
7701 ) | sed "s/^/$as_me: WARNING: /" >&2
7703 esac
7704 { echo "$as_me:$LINENO: checking for pcap.h" >&5
7705 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
7706 if test "${ac_cv_header_pcap_h+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709 ac_cv_header_pcap_h=$ac_header_preproc
7711 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
7712 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
7715 if test $ac_cv_header_pcap_h = yes; then
7717 else
7718 { { echo "$as_me:$LINENO: error: Header file pcap.h not found; if you installed libpcap
7719 from source, did you also do \"make install-incl\", and if you installed a
7720 binary package of libpcap, is there also a developer's package of libpcap,
7721 and did you also install that package?" >&5
7722 echo "$as_me: error: Header file pcap.h not found; if you installed libpcap
7723 from source, did you also do \"make install-incl\", and if you installed a
7724 binary package of libpcap, is there also a developer's package of libpcap,
7725 and did you also install that package?" >&2;}
7726 { (exit 1); exit 1; }; }
7732 # Check to see if we find "pcap_open_live" in "-lpcap".
7733 # Also check for various additional libraries that libpcap might
7734 # require.
7736 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
7737 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
7738 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 else
7741 ac_check_lib_save_LIBS=$LIBS
7742 LIBS="-lpcap $SOCKET_LIBS $NSL_LIBS $LIBS"
7743 cat >conftest.$ac_ext <<_ACEOF
7744 /* confdefs.h. */
7745 _ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7750 /* Override any GCC internal prototype to avoid an error.
7751 Use char because int might match the return type of a GCC
7752 builtin and then its argument prototype would still apply. */
7753 #ifdef __cplusplus
7754 extern "C"
7755 #endif
7756 char pcap_open_live ();
7758 main ()
7760 return pcap_open_live ();
7762 return 0;
7764 _ACEOF
7765 rm -f conftest.$ac_objext conftest$ac_exeext
7766 if { (ac_try="$ac_link"
7767 case "(($ac_try" in
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7770 esac
7771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7772 (eval "$ac_link") 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7780 { (case "(($ac_try" in
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7783 esac
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_try") 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; } &&
7789 { ac_try='test -s conftest$ac_exeext'
7790 { (case "(($ac_try" in
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7793 esac
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795 (eval "$ac_try") 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 ac_cv_lib_pcap_pcap_open_live=yes
7800 else
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7804 ac_cv_lib_pcap_pcap_open_live=no
7807 rm -f core conftest.err conftest.$ac_objext \
7808 conftest$ac_exeext conftest.$ac_ext
7809 LIBS=$ac_check_lib_save_LIBS
7811 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
7812 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
7813 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
7815 PCAP_LIBS=-lpcap
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_LIBPCAP 1
7819 _ACEOF
7822 else
7824 ac_wireshark_extras_found=no
7825 ac_save_LIBS="$LIBS"
7826 for extras in "-lcfg -lodm" "-lpfring"
7828 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap with $extras" >&5
7829 echo $ECHO_N "checking for pcap_open_live in -lpcap with $extras... $ECHO_C" >&6; }
7830 LIBS="-lpcap $extras"
7832 # XXX - can't we use AC_CHECK_LIB here?
7834 cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h. */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7841 # include <pcap.h>
7844 main ()
7847 pcap_open_live(NULL, 0, 0, 0, NULL);
7850 return 0;
7852 _ACEOF
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (ac_try="$ac_link"
7855 case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_link") 2>conftest.er1
7861 ac_status=$?
7862 grep -v '^ *+' conftest.er1 >conftest.err
7863 rm -f conftest.er1
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7868 { (case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871 esac
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_try") 2>&5
7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; } &&
7877 { ac_try='test -s conftest$ac_exeext'
7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7881 esac
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7888 ac_wireshark_extras_found=yes
7889 { echo "$as_me:$LINENO: result: yes" >&5
7890 echo "${ECHO_T}yes" >&6; }
7891 PCAP_LIBS="-lpcap $extras"
7893 cat >>confdefs.h <<\_ACEOF
7894 #define HAVE_LIBPCAP 1
7895 _ACEOF
7898 else
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7903 { echo "$as_me:$LINENO: result: no" >&5
7904 echo "${ECHO_T}no" >&6; }
7908 rm -f core conftest.err conftest.$ac_objext \
7909 conftest$ac_exeext conftest.$ac_ext
7910 if test x$ac_wireshark_extras_found = xyes
7911 then
7912 break
7914 done
7915 if test x$ac_wireshark_extras_found = xno
7916 then
7917 { { echo "$as_me:$LINENO: error: Can't link with library libpcap." >&5
7918 echo "$as_me: error: Can't link with library libpcap." >&2;}
7919 { (exit 1); exit 1; }; }
7921 LIBS=$ac_save_LIBS
7928 # Check whether various variables and functions are defined by
7929 # libpcap.
7931 ac_save_LIBS="$LIBS"
7932 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
7933 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
7934 LIBS="$PCAP_LIBS $SOCKET_LIBS $NSL_LIBS $LIBS"
7935 cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h. */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7942 # include <stdio.h>
7943 extern char *pcap_version;
7946 main ()
7949 printf ("%s\n", pcap_version);
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7970 { (case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973 esac
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_try") 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest$ac_exeext'
7980 { (case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_try") 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 ac_cv_pcap_version_defined=yes
7990 else
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 ac_cv_pcap_version_defined=no
7997 rm -f core conftest.err conftest.$ac_objext \
7998 conftest$ac_exeext conftest.$ac_ext
7999 if test "$ac_cv_pcap_version_defined" = yes ; then
8000 { echo "$as_me:$LINENO: result: yes" >&5
8001 echo "${ECHO_T}yes" >&6; }
8003 cat >>confdefs.h <<\_ACEOF
8004 #define HAVE_PCAP_VERSION 1
8005 _ACEOF
8007 else
8008 { echo "$as_me:$LINENO: result: no" >&5
8009 echo "${ECHO_T}no" >&6; }
8014 for ac_func in pcap_open_dead pcap_freecode pcap_breakloop
8016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8030 #define $ac_func innocuous_$ac_func
8032 /* System header to define __stub macros and hopefully few prototypes,
8033 which can conflict with char $ac_func (); below.
8034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8035 <limits.h> exists even on freestanding compilers. */
8037 #ifdef __STDC__
8038 # include <limits.h>
8039 #else
8040 # include <assert.h>
8041 #endif
8043 #undef $ac_func
8045 /* Override any GCC internal prototype to avoid an error.
8046 Use char because int might match the return type of a GCC
8047 builtin and then its argument prototype would still apply. */
8048 #ifdef __cplusplus
8049 extern "C"
8050 #endif
8051 char $ac_func ();
8052 /* The GNU C library defines this for functions which it implements
8053 to always fail with ENOSYS. Some functions are actually named
8054 something starting with __ and the normal name is an alias. */
8055 #if defined __stub_$ac_func || defined __stub___$ac_func
8056 choke me
8057 #endif
8060 main ()
8062 return $ac_func ();
8064 return 0;
8066 _ACEOF
8067 rm -f conftest.$ac_objext conftest$ac_exeext
8068 if { (ac_try="$ac_link"
8069 case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072 esac
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_link") 2>conftest.er1
8075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8082 { (case "(($ac_try" in
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8085 esac
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_try") 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; } &&
8091 { ac_try='test -s conftest$ac_exeext'
8092 { (case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_try") 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 eval "$as_ac_var=yes"
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 eval "$as_ac_var=no"
8109 rm -f core conftest.err conftest.$ac_objext \
8110 conftest$ac_exeext conftest.$ac_ext
8112 ac_res=`eval echo '${'$as_ac_var'}'`
8113 { echo "$as_me:$LINENO: result: $ac_res" >&5
8114 echo "${ECHO_T}$ac_res" >&6; }
8115 if test `eval echo '${'$as_ac_var'}'` = yes; then
8116 cat >>confdefs.h <<_ACEOF
8117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8118 _ACEOF
8121 done
8124 # Later versions of Mac OS X 10.3[.x] ship a pcap.h that
8125 # doesn't define pcap_if_t but ship an 0.8[.x] libpcap,
8126 # so the library has "pcap_findalldevs()", but pcap.h
8127 # doesn't define "pcap_if_t" so you can't actually *use*
8128 # "pcap_findalldevs()".
8130 # That even appears to be true of systems shipped with
8131 # 10.3.4, so it doesn't appear only to be a case of
8132 # Software Update not updating header files.
8134 # (You can work around this by installing the 0.8 header
8135 # files.)
8137 { echo "$as_me:$LINENO: checking whether pcap_findalldevs is present and usable" >&5
8138 echo $ECHO_N "checking whether pcap_findalldevs is present and usable... $ECHO_C" >&6; }
8139 if test "${ac_cv_func_pcap_findalldevs+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 else
8143 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h. */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8151 #include <pcap.h>
8152 main()
8154 pcap_if_t *devpointer;
8155 char errbuf[1];
8157 pcap_findalldevs(&devpointer, errbuf);
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (ac_try="$ac_link"
8164 case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_link") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8177 { (case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_try") 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; } &&
8186 { ac_try='test -s conftest$ac_exeext'
8187 { (case "(($ac_try" in
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8190 esac
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192 (eval "$ac_try") 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8197 ac_cv_func_pcap_findalldevs=yes
8199 else
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8204 ac_cv_func_pcap_findalldevs=no
8208 rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8212 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_findalldevs" >&5
8213 echo "${ECHO_T}$ac_cv_func_pcap_findalldevs" >&6; }
8215 # Don't check for other new routines that showed up after
8216 # "pcap_findalldevs()" if we don't have a usable
8217 # "pcap_findalldevs()", so we don't end up using them if the
8218 # "pcap.h" is crufty and old and doesn't declare them.
8220 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
8222 cat >>confdefs.h <<\_ACEOF
8223 #define HAVE_PCAP_FINDALLDEVS 1
8224 _ACEOF
8228 for ac_func in pcap_datalink_val_to_name pcap_datalink_name_to_val
8230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236 cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h. */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8244 #define $ac_func innocuous_$ac_func
8246 /* System header to define __stub macros and hopefully few prototypes,
8247 which can conflict with char $ac_func (); below.
8248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8249 <limits.h> exists even on freestanding compilers. */
8251 #ifdef __STDC__
8252 # include <limits.h>
8253 #else
8254 # include <assert.h>
8255 #endif
8257 #undef $ac_func
8259 /* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
8262 #ifdef __cplusplus
8263 extern "C"
8264 #endif
8265 char $ac_func ();
8266 /* The GNU C library defines this for functions which it implements
8267 to always fail with ENOSYS. Some functions are actually named
8268 something starting with __ and the normal name is an alias. */
8269 #if defined __stub_$ac_func || defined __stub___$ac_func
8270 choke me
8271 #endif
8274 main ()
8276 return $ac_func ();
8278 return 0;
8280 _ACEOF
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (ac_try="$ac_link"
8283 case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_link") 2>conftest.er1
8289 ac_status=$?
8290 grep -v '^ *+' conftest.er1 >conftest.err
8291 rm -f conftest.er1
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8296 { (case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_try") 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try='test -s conftest$ac_exeext'
8306 { (case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_try") 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 eval "$as_ac_var=yes"
8316 else
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8320 eval "$as_ac_var=no"
8323 rm -f core conftest.err conftest.$ac_objext \
8324 conftest$ac_exeext conftest.$ac_ext
8326 ac_res=`eval echo '${'$as_ac_var'}'`
8327 { echo "$as_me:$LINENO: result: $ac_res" >&5
8328 echo "${ECHO_T}$ac_res" >&6; }
8329 if test `eval echo '${'$as_ac_var'}'` = yes; then
8330 cat >>confdefs.h <<_ACEOF
8331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8332 _ACEOF
8335 done
8340 for ac_func in pcap_list_datalinks pcap_set_datalink pcap_lib_version
8342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348 cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h. */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8356 #define $ac_func innocuous_$ac_func
8358 /* System header to define __stub macros and hopefully few prototypes,
8359 which can conflict with char $ac_func (); below.
8360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8361 <limits.h> exists even on freestanding compilers. */
8363 #ifdef __STDC__
8364 # include <limits.h>
8365 #else
8366 # include <assert.h>
8367 #endif
8369 #undef $ac_func
8371 /* Override any GCC internal prototype to avoid an error.
8372 Use char because int might match the return type of a GCC
8373 builtin and then its argument prototype would still apply. */
8374 #ifdef __cplusplus
8375 extern "C"
8376 #endif
8377 char $ac_func ();
8378 /* The GNU C library defines this for functions which it implements
8379 to always fail with ENOSYS. Some functions are actually named
8380 something starting with __ and the normal name is an alias. */
8381 #if defined __stub_$ac_func || defined __stub___$ac_func
8382 choke me
8383 #endif
8386 main ()
8388 return $ac_func ();
8390 return 0;
8392 _ACEOF
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (ac_try="$ac_link"
8395 case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_link") 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408 { (case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8411 esac
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_try") 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8421 esac
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_try") 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 eval "$as_ac_var=yes"
8428 else
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8432 eval "$as_ac_var=no"
8435 rm -f core conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8438 ac_res=`eval echo '${'$as_ac_var'}'`
8439 { echo "$as_me:$LINENO: result: $ac_res" >&5
8440 echo "${ECHO_T}$ac_res" >&6; }
8441 if test `eval echo '${'$as_ac_var'}'` = yes; then
8442 cat >>confdefs.h <<_ACEOF
8443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8444 _ACEOF
8447 done
8450 for ac_func in pcap_get_selectable_fd
8452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8466 #define $ac_func innocuous_$ac_func
8468 /* System header to define __stub macros and hopefully few prototypes,
8469 which can conflict with char $ac_func (); below.
8470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8471 <limits.h> exists even on freestanding compilers. */
8473 #ifdef __STDC__
8474 # include <limits.h>
8475 #else
8476 # include <assert.h>
8477 #endif
8479 #undef $ac_func
8481 /* Override any GCC internal prototype to avoid an error.
8482 Use char because int might match the return type of a GCC
8483 builtin and then its argument prototype would still apply. */
8484 #ifdef __cplusplus
8485 extern "C"
8486 #endif
8487 char $ac_func ();
8488 /* The GNU C library defines this for functions which it implements
8489 to always fail with ENOSYS. Some functions are actually named
8490 something starting with __ and the normal name is an alias. */
8491 #if defined __stub_$ac_func || defined __stub___$ac_func
8492 choke me
8493 #endif
8496 main ()
8498 return $ac_func ();
8500 return 0;
8502 _ACEOF
8503 rm -f conftest.$ac_objext conftest$ac_exeext
8504 if { (ac_try="$ac_link"
8505 case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8508 esac
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_link") 2>conftest.er1
8511 ac_status=$?
8512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8518 { (case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8521 esac
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_try") 2>&5
8524 ac_status=$?
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; } &&
8527 { ac_try='test -s conftest$ac_exeext'
8528 { (case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_try") 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 eval "$as_ac_var=yes"
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 eval "$as_ac_var=no"
8545 rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8548 ac_res=`eval echo '${'$as_ac_var'}'`
8549 { echo "$as_me:$LINENO: result: $ac_res" >&5
8550 echo "${ECHO_T}$ac_res" >&6; }
8551 if test `eval echo '${'$as_ac_var'}'` = yes; then
8552 cat >>confdefs.h <<_ACEOF
8553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8554 _ACEOF
8557 done
8560 LIBS="$ac_save_LIBS"
8564 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8565 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8566 if test "${ac_cv_header_stdc+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h. */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 #include <stdlib.h>
8576 #include <stdarg.h>
8577 #include <string.h>
8578 #include <float.h>
8581 main ()
8585 return 0;
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8590 case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } &&
8602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8603 { (case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_try") 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; } &&
8612 { ac_try='test -s conftest.$ac_objext'
8613 { (case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616 esac
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_try") 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_header_stdc=yes
8623 else
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 ac_cv_header_stdc=no
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632 if test $ac_cv_header_stdc = yes; then
8633 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h. */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 #include <string.h>
8642 _ACEOF
8643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8644 $EGREP "memchr" >/dev/null 2>&1; then
8646 else
8647 ac_cv_header_stdc=no
8649 rm -f conftest*
8653 if test $ac_cv_header_stdc = yes; then
8654 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8655 cat >conftest.$ac_ext <<_ACEOF
8656 /* confdefs.h. */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 #include <stdlib.h>
8663 _ACEOF
8664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8665 $EGREP "free" >/dev/null 2>&1; then
8667 else
8668 ac_cv_header_stdc=no
8670 rm -f conftest*
8674 if test $ac_cv_header_stdc = yes; then
8675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8676 if test "$cross_compiling" = yes; then
8678 else
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 #include <ctype.h>
8686 #include <stdlib.h>
8687 #if ((' ' & 0x0FF) == 0x020)
8688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8690 #else
8691 # define ISLOWER(c) \
8692 (('a' <= (c) && (c) <= 'i') \
8693 || ('j' <= (c) && (c) <= 'r') \
8694 || ('s' <= (c) && (c) <= 'z'))
8695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8696 #endif
8698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8700 main ()
8702 int i;
8703 for (i = 0; i < 256; i++)
8704 if (XOR (islower (i), ISLOWER (i))
8705 || toupper (i) != TOUPPER (i))
8706 return 2;
8707 return 0;
8709 _ACEOF
8710 rm -f conftest$ac_exeext
8711 if { (ac_try="$ac_link"
8712 case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_link") 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8721 { (case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8724 esac
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_try") 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8731 else
8732 echo "$as_me: program exited with status $ac_status" >&5
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 ( exit $ac_status )
8737 ac_cv_header_stdc=no
8739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8745 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8746 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8747 if test $ac_cv_header_stdc = yes; then
8749 cat >>confdefs.h <<\_ACEOF
8750 #define STDC_HEADERS 1
8751 _ACEOF
8768 for ac_header in \
8769 syslog.h \
8770 sys/time.h \
8771 sys/socket.h \
8772 sys/param.h \
8773 sys/ioctl.h \
8774 netinet/in.h \
8775 netdb.h \
8776 limits.h \
8777 fcntl.h \
8778 arpa/inet.h \
8779 fasttime.h \
8780 float.h \
8781 tsci2.h
8784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 ac_res=`eval echo '${'$as_ac_Header'}'`
8792 { echo "$as_me:$LINENO: result: $ac_res" >&5
8793 echo "${ECHO_T}$ac_res" >&6; }
8794 else
8795 # Is the header compilable?
8796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8798 cat >conftest.$ac_ext <<_ACEOF
8799 /* confdefs.h. */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8804 $ac_includes_default
8805 #include <$ac_header>
8806 _ACEOF
8807 rm -f conftest.$ac_objext
8808 if { (ac_try="$ac_compile"
8809 case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8812 esac
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_compile") 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8822 { (case "(($ac_try" in
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8825 esac
8826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8827 (eval "$ac_try") 2>&5
8828 ac_status=$?
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); }; } &&
8831 { ac_try='test -s conftest.$ac_objext'
8832 { (case "(($ac_try" in
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8835 esac
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_try") 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 ac_header_compiler=yes
8842 else
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 ac_header_compiler=no
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8851 echo "${ECHO_T}$ac_header_compiler" >&6; }
8853 # Is the header present?
8854 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8856 cat >conftest.$ac_ext <<_ACEOF
8857 /* confdefs.h. */
8858 _ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8862 #include <$ac_header>
8863 _ACEOF
8864 if { (ac_try="$ac_cpp conftest.$ac_ext"
8865 case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8868 esac
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } >/dev/null; then
8877 if test -s conftest.err; then
8878 ac_cpp_err=$ac_c_preproc_warn_flag
8879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8880 else
8881 ac_cpp_err=
8883 else
8884 ac_cpp_err=yes
8886 if test -z "$ac_cpp_err"; then
8887 ac_header_preproc=yes
8888 else
8889 echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.$ac_ext >&5
8892 ac_header_preproc=no
8895 rm -f conftest.err conftest.$ac_ext
8896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8897 echo "${ECHO_T}$ac_header_preproc" >&6; }
8899 # So? What about this header?
8900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8901 yes:no: )
8902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8906 ac_header_preproc=yes
8908 no:yes:* )
8909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8921 ( cat <<\_ASBOX
8922 ## ---------------------------------------- ##
8923 ## Report this to daniel.schaffrath@mac.com ##
8924 ## ---------------------------------------- ##
8925 _ASBOX
8926 ) | sed "s/^/$as_me: WARNING: /" >&2
8928 esac
8929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 else
8934 eval "$as_ac_Header=\$ac_header_preproc"
8936 ac_res=`eval echo '${'$as_ac_Header'}'`
8937 { echo "$as_me:$LINENO: result: $ac_res" >&5
8938 echo "${ECHO_T}$ac_res" >&6; }
8941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8942 cat >>confdefs.h <<_ACEOF
8943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8944 _ACEOF
8948 done
8951 ac_config_headers="$ac_config_headers config.h"
8953 ac_config_files="$ac_config_files Makefile src/Makefile"
8956 cat >confcache <<\_ACEOF
8957 # This file is a shell script that caches the results of configure
8958 # tests run on this system so they can be shared between configure
8959 # scripts and configure runs, see configure's option --config-cache.
8960 # It is not useful on other systems. If it contains results you don't
8961 # want to keep, you may remove or edit it.
8963 # config.status only pays attention to the cache file if you give it
8964 # the --recheck option to rerun configure.
8966 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8967 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8968 # following values.
8970 _ACEOF
8972 # The following way of writing the cache mishandles newlines in values,
8973 # but we know of no workaround that is simple, portable, and efficient.
8974 # So, we kill variables containing newlines.
8975 # Ultrix sh set writes to stderr and can't be redirected directly,
8976 # and sets the high bit in the cache file unless we assign to the vars.
8978 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8979 eval ac_val=\$$ac_var
8980 case $ac_val in #(
8981 *${as_nl}*)
8982 case $ac_var in #(
8983 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8984 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8985 esac
8986 case $ac_var in #(
8987 _ | IFS | as_nl) ;; #(
8988 *) $as_unset $ac_var ;;
8989 esac ;;
8990 esac
8991 done
8993 (set) 2>&1 |
8994 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8995 *${as_nl}ac_space=\ *)
8996 # `set' does not quote correctly, so add quotes (double-quote
8997 # substitution turns \\\\ into \\, and sed turns \\ into \).
8998 sed -n \
8999 "s/'/'\\\\''/g;
9000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9001 ;; #(
9003 # `set' quotes correctly as required by POSIX, so do not add quotes.
9004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9006 esac |
9007 sort
9009 sed '
9010 /^ac_cv_env_/b end
9011 t clear
9012 :clear
9013 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9014 t end
9015 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9016 :end' >>confcache
9017 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9018 if test -w "$cache_file"; then
9019 test "x$cache_file" != "x/dev/null" &&
9020 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9021 echo "$as_me: updating cache $cache_file" >&6;}
9022 cat confcache >$cache_file
9023 else
9024 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9025 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9028 rm -f confcache
9030 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9031 # Let make expand exec_prefix.
9032 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9034 DEFS=-DHAVE_CONFIG_H
9036 ac_libobjs=
9037 ac_ltlibobjs=
9038 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9039 # 1. Remove the extension, and $U if already installed.
9040 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9041 ac_i=`echo "$ac_i" | sed "$ac_script"`
9042 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9043 # will be set to the directory where LIBOBJS objects are built.
9044 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9045 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9046 done
9047 LIBOBJS=$ac_libobjs
9049 LTLIBOBJS=$ac_ltlibobjs
9052 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9053 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9054 Usually this means the macro was only invoked conditionally." >&5
9055 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9056 Usually this means the macro was only invoked conditionally." >&2;}
9057 { (exit 1); exit 1; }; }
9059 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9060 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9061 Usually this means the macro was only invoked conditionally." >&5
9062 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9063 Usually this means the macro was only invoked conditionally." >&2;}
9064 { (exit 1); exit 1; }; }
9067 : ${CONFIG_STATUS=./config.status}
9068 ac_clean_files_save=$ac_clean_files
9069 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9070 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9071 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9072 cat >$CONFIG_STATUS <<_ACEOF
9073 #! $SHELL
9074 # Generated by $as_me.
9075 # Run this file to recreate the current configuration.
9076 # Compiler output produced by configure, useful for debugging
9077 # configure, is in config.log if it exists.
9079 debug=false
9080 ac_cs_recheck=false
9081 ac_cs_silent=false
9082 SHELL=\${CONFIG_SHELL-$SHELL}
9083 _ACEOF
9085 cat >>$CONFIG_STATUS <<\_ACEOF
9086 ## --------------------- ##
9087 ## M4sh Initialization. ##
9088 ## --------------------- ##
9090 # Be Bourne compatible
9091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9092 emulate sh
9093 NULLCMD=:
9094 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9095 # is contrary to our usage. Disable this feature.
9096 alias -g '${1+"$@"}'='"$@"'
9097 setopt NO_GLOB_SUBST
9098 else
9099 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
9101 BIN_SH=xpg4; export BIN_SH # for Tru64
9102 DUALCASE=1; export DUALCASE # for MKS sh
9105 # PATH needs CR
9106 # Avoid depending upon Character Ranges.
9107 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9108 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9109 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9110 as_cr_digits='0123456789'
9111 as_cr_alnum=$as_cr_Letters$as_cr_digits
9113 # The user is always right.
9114 if test "${PATH_SEPARATOR+set}" != set; then
9115 echo "#! /bin/sh" >conf$$.sh
9116 echo "exit 0" >>conf$$.sh
9117 chmod +x conf$$.sh
9118 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9119 PATH_SEPARATOR=';'
9120 else
9121 PATH_SEPARATOR=:
9123 rm -f conf$$.sh
9126 # Support unset when possible.
9127 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9128 as_unset=unset
9129 else
9130 as_unset=false
9134 # IFS
9135 # We need space, tab and new line, in precisely that order. Quoting is
9136 # there to prevent editors from complaining about space-tab.
9137 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9138 # splitting by setting IFS to empty value.)
9139 as_nl='
9141 IFS=" "" $as_nl"
9143 # Find who we are. Look in the path if we contain no directory separator.
9144 case $0 in
9145 *[\\/]* ) as_myself=$0 ;;
9146 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147 for as_dir in $PATH
9149 IFS=$as_save_IFS
9150 test -z "$as_dir" && as_dir=.
9151 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9152 done
9153 IFS=$as_save_IFS
9156 esac
9157 # We did not find ourselves, most probably we were run as `sh COMMAND'
9158 # in which case we are not to be found in the path.
9159 if test "x$as_myself" = x; then
9160 as_myself=$0
9162 if test ! -f "$as_myself"; then
9163 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9164 { (exit 1); exit 1; }
9167 # Work around bugs in pre-3.0 UWIN ksh.
9168 for as_var in ENV MAIL MAILPATH
9169 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9170 done
9171 PS1='$ '
9172 PS2='> '
9173 PS4='+ '
9175 # NLS nuisances.
9176 for as_var in \
9177 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9178 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9179 LC_TELEPHONE LC_TIME
9181 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9182 eval $as_var=C; export $as_var
9183 else
9184 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9186 done
9188 # Required to use basename.
9189 if expr a : '\(a\)' >/dev/null 2>&1 &&
9190 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9191 as_expr=expr
9192 else
9193 as_expr=false
9196 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9197 as_basename=basename
9198 else
9199 as_basename=false
9203 # Name of the executable.
9204 as_me=`$as_basename -- "$0" ||
9205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9206 X"$0" : 'X\(//\)$' \| \
9207 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9208 echo X/"$0" |
9209 sed '/^.*\/\([^/][^/]*\)\/*$/{
9210 s//\1/
9213 /^X\/\(\/\/\)$/{
9214 s//\1/
9217 /^X\/\(\/\).*/{
9218 s//\1/
9221 s/.*/./; q'`
9223 # CDPATH.
9224 $as_unset CDPATH
9228 as_lineno_1=$LINENO
9229 as_lineno_2=$LINENO
9230 test "x$as_lineno_1" != "x$as_lineno_2" &&
9231 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9233 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9234 # uniformly replaced by the line number. The first 'sed' inserts a
9235 # line-number line after each line using $LINENO; the second 'sed'
9236 # does the real work. The second script uses 'N' to pair each
9237 # line-number line with the line containing $LINENO, and appends
9238 # trailing '-' during substitution so that $LINENO is not a special
9239 # case at line end.
9240 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9241 # scripts with optimization help from Paolo Bonzini. Blame Lee
9242 # E. McMahon (1931-1989) for sed's syntax. :-)
9243 sed -n '
9245 /[$]LINENO/=
9246 ' <$as_myself |
9247 sed '
9248 s/[$]LINENO.*/&-/
9249 t lineno
9251 :lineno
9253 :loop
9254 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9255 t loop
9256 s/-\n.*//
9257 ' >$as_me.lineno &&
9258 chmod +x "$as_me.lineno" ||
9259 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9260 { (exit 1); exit 1; }; }
9262 # Don't try to exec as it changes $[0], causing all sort of problems
9263 # (the dirname of $[0] is not the place where we might find the
9264 # original and so on. Autoconf is especially sensitive to this).
9265 . "./$as_me.lineno"
9266 # Exit status is that of the last command.
9267 exit
9271 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9272 as_dirname=dirname
9273 else
9274 as_dirname=false
9277 ECHO_C= ECHO_N= ECHO_T=
9278 case `echo -n x` in
9279 -n*)
9280 case `echo 'x\c'` in
9281 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9282 *) ECHO_C='\c';;
9283 esac;;
9285 ECHO_N='-n';;
9286 esac
9288 if expr a : '\(a\)' >/dev/null 2>&1 &&
9289 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9290 as_expr=expr
9291 else
9292 as_expr=false
9295 rm -f conf$$ conf$$.exe conf$$.file
9296 if test -d conf$$.dir; then
9297 rm -f conf$$.dir/conf$$.file
9298 else
9299 rm -f conf$$.dir
9300 mkdir conf$$.dir
9302 echo >conf$$.file
9303 if ln -s conf$$.file conf$$ 2>/dev/null; then
9304 as_ln_s='ln -s'
9305 # ... but there are two gotchas:
9306 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9307 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9308 # In both cases, we have to default to `cp -p'.
9309 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9310 as_ln_s='cp -p'
9311 elif ln conf$$.file conf$$ 2>/dev/null; then
9312 as_ln_s=ln
9313 else
9314 as_ln_s='cp -p'
9316 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9317 rmdir conf$$.dir 2>/dev/null
9319 if mkdir -p . 2>/dev/null; then
9320 as_mkdir_p=:
9321 else
9322 test -d ./-p && rmdir ./-p
9323 as_mkdir_p=false
9326 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
9327 # systems may use methods other than mode bits to determine executability.
9328 cat >conf$$.file <<_ASEOF
9329 #! /bin/sh
9330 exit 0
9331 _ASEOF
9332 chmod +x conf$$.file
9333 if test -x conf$$.file >/dev/null 2>&1; then
9334 as_executable_p="test -x"
9335 else
9336 as_executable_p=:
9338 rm -f conf$$.file
9340 # Sed expression to map a string onto a valid CPP name.
9341 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9343 # Sed expression to map a string onto a valid variable name.
9344 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9347 exec 6>&1
9349 # Save the log message, to keep $[0] and so on meaningful, and to
9350 # report actual input values of CONFIG_FILES etc. instead of their
9351 # values after options handling.
9352 ac_log="
9353 This file was extended by flowgrind $as_me 0.12, which was
9354 generated by GNU Autoconf 2.60. Invocation command line was
9356 CONFIG_FILES = $CONFIG_FILES
9357 CONFIG_HEADERS = $CONFIG_HEADERS
9358 CONFIG_LINKS = $CONFIG_LINKS
9359 CONFIG_COMMANDS = $CONFIG_COMMANDS
9360 $ $0 $@
9362 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9365 _ACEOF
9367 cat >>$CONFIG_STATUS <<_ACEOF
9368 # Files that config.status was made for.
9369 config_files="$ac_config_files"
9370 config_headers="$ac_config_headers"
9371 config_commands="$ac_config_commands"
9373 _ACEOF
9375 cat >>$CONFIG_STATUS <<\_ACEOF
9376 ac_cs_usage="\
9377 \`$as_me' instantiates files from templates according to the
9378 current configuration.
9380 Usage: $0 [OPTIONS] [FILE]...
9382 -h, --help print this help, then exit
9383 -V, --version print version number, then exit
9384 -q, --quiet do not print progress messages
9385 -d, --debug don't remove temporary files
9386 --recheck update $as_me by reconfiguring in the same conditions
9387 --file=FILE[:TEMPLATE]
9388 instantiate the configuration file FILE
9389 --header=FILE[:TEMPLATE]
9390 instantiate the configuration header FILE
9392 Configuration files:
9393 $config_files
9395 Configuration headers:
9396 $config_headers
9398 Configuration commands:
9399 $config_commands
9401 Report bugs to <bug-autoconf@gnu.org>."
9403 _ACEOF
9404 cat >>$CONFIG_STATUS <<_ACEOF
9405 ac_cs_version="\\
9406 flowgrind config.status 0.12
9407 configured by $0, generated by GNU Autoconf 2.60,
9408 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9410 Copyright (C) 2006 Free Software Foundation, Inc.
9411 This config.status script is free software; the Free Software Foundation
9412 gives unlimited permission to copy, distribute and modify it."
9414 ac_pwd='$ac_pwd'
9415 srcdir='$srcdir'
9416 INSTALL='$INSTALL'
9417 _ACEOF
9419 cat >>$CONFIG_STATUS <<\_ACEOF
9420 # If no file are specified by the user, then we need to provide default
9421 # value. By we need to know if files were specified by the user.
9422 ac_need_defaults=:
9423 while test $# != 0
9425 case $1 in
9426 --*=*)
9427 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9428 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9429 ac_shift=:
9432 ac_option=$1
9433 ac_optarg=$2
9434 ac_shift=shift
9436 esac
9438 case $ac_option in
9439 # Handling of the options.
9440 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9441 ac_cs_recheck=: ;;
9442 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9443 echo "$ac_cs_version"; exit ;;
9444 --debug | --debu | --deb | --de | --d | -d )
9445 debug=: ;;
9446 --file | --fil | --fi | --f )
9447 $ac_shift
9448 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9449 ac_need_defaults=false;;
9450 --header | --heade | --head | --hea )
9451 $ac_shift
9452 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9453 ac_need_defaults=false;;
9454 --he | --h)
9455 # Conflict between --help and --header
9456 { echo "$as_me: error: ambiguous option: $1
9457 Try \`$0 --help' for more information." >&2
9458 { (exit 1); exit 1; }; };;
9459 --help | --hel | -h )
9460 echo "$ac_cs_usage"; exit ;;
9461 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9462 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9463 ac_cs_silent=: ;;
9465 # This is an error.
9466 -*) { echo "$as_me: error: unrecognized option: $1
9467 Try \`$0 --help' for more information." >&2
9468 { (exit 1); exit 1; }; } ;;
9470 *) ac_config_targets="$ac_config_targets $1"
9471 ac_need_defaults=false ;;
9473 esac
9474 shift
9475 done
9477 ac_configure_extra_args=
9479 if $ac_cs_silent; then
9480 exec 6>/dev/null
9481 ac_configure_extra_args="$ac_configure_extra_args --silent"
9484 _ACEOF
9485 cat >>$CONFIG_STATUS <<_ACEOF
9486 if \$ac_cs_recheck; then
9487 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9488 CONFIG_SHELL=$SHELL
9489 export CONFIG_SHELL
9490 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9493 _ACEOF
9494 cat >>$CONFIG_STATUS <<\_ACEOF
9495 exec 5>>config.log
9497 echo
9498 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9499 ## Running $as_me. ##
9500 _ASBOX
9501 echo "$ac_log"
9502 } >&5
9504 _ACEOF
9505 cat >>$CONFIG_STATUS <<_ACEOF
9507 # INIT-COMMANDS
9509 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9511 _ACEOF
9513 cat >>$CONFIG_STATUS <<\_ACEOF
9515 # Handling of arguments.
9516 for ac_config_target in $ac_config_targets
9518 case $ac_config_target in
9519 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9520 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9521 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9522 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9524 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9525 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9526 { (exit 1); exit 1; }; };;
9527 esac
9528 done
9531 # If the user did not use the arguments to specify the items to instantiate,
9532 # then the envvar interface is used. Set only those that are not.
9533 # We use the long form for the default assignment because of an extremely
9534 # bizarre bug on SunOS 4.1.3.
9535 if $ac_need_defaults; then
9536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9537 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9538 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9541 # Have a temporary directory for convenience. Make it in the build tree
9542 # simply because there is no reason against having it here, and in addition,
9543 # creating and moving files from /tmp can sometimes cause problems.
9544 # Hook for its removal unless debugging.
9545 # Note that there is a small window in which the directory will not be cleaned:
9546 # after its creation but before its name has been assigned to `$tmp'.
9547 $debug ||
9549 tmp=
9550 trap 'exit_status=$?
9551 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9553 trap '{ (exit 1); exit 1; }' 1 2 13 15
9555 # Create a (secure) tmp directory for tmp files.
9558 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9559 test -n "$tmp" && test -d "$tmp"
9560 } ||
9562 tmp=./conf$$-$RANDOM
9563 (umask 077 && mkdir "$tmp")
9564 } ||
9566 echo "$me: cannot create a temporary directory in ." >&2
9567 { (exit 1); exit 1; }
9571 # Set up the sed scripts for CONFIG_FILES section.
9574 # No need to generate the scripts if there are no CONFIG_FILES.
9575 # This happens for instance when ./config.status config.h
9576 if test -n "$CONFIG_FILES"; then
9578 _ACEOF
9582 ac_delim='%!_!# '
9583 for ac_last_try in false false false false false :; do
9584 cat >conf$$subs.sed <<_ACEOF
9585 SHELL!$SHELL$ac_delim
9586 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9587 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9588 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9589 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9590 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9591 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9592 exec_prefix!$exec_prefix$ac_delim
9593 prefix!$prefix$ac_delim
9594 program_transform_name!$program_transform_name$ac_delim
9595 bindir!$bindir$ac_delim
9596 sbindir!$sbindir$ac_delim
9597 libexecdir!$libexecdir$ac_delim
9598 datarootdir!$datarootdir$ac_delim
9599 datadir!$datadir$ac_delim
9600 sysconfdir!$sysconfdir$ac_delim
9601 sharedstatedir!$sharedstatedir$ac_delim
9602 localstatedir!$localstatedir$ac_delim
9603 includedir!$includedir$ac_delim
9604 oldincludedir!$oldincludedir$ac_delim
9605 docdir!$docdir$ac_delim
9606 infodir!$infodir$ac_delim
9607 htmldir!$htmldir$ac_delim
9608 dvidir!$dvidir$ac_delim
9609 pdfdir!$pdfdir$ac_delim
9610 psdir!$psdir$ac_delim
9611 libdir!$libdir$ac_delim
9612 localedir!$localedir$ac_delim
9613 mandir!$mandir$ac_delim
9614 DEFS!$DEFS$ac_delim
9615 ECHO_C!$ECHO_C$ac_delim
9616 ECHO_N!$ECHO_N$ac_delim
9617 ECHO_T!$ECHO_T$ac_delim
9618 LIBS!$LIBS$ac_delim
9619 build_alias!$build_alias$ac_delim
9620 host_alias!$host_alias$ac_delim
9621 target_alias!$target_alias$ac_delim
9622 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9623 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9624 INSTALL_DATA!$INSTALL_DATA$ac_delim
9625 CYGPATH_W!$CYGPATH_W$ac_delim
9626 PACKAGE!$PACKAGE$ac_delim
9627 VERSION!$VERSION$ac_delim
9628 ACLOCAL!$ACLOCAL$ac_delim
9629 AUTOCONF!$AUTOCONF$ac_delim
9630 AUTOMAKE!$AUTOMAKE$ac_delim
9631 AUTOHEADER!$AUTOHEADER$ac_delim
9632 MAKEINFO!$MAKEINFO$ac_delim
9633 install_sh!$install_sh$ac_delim
9634 STRIP!$STRIP$ac_delim
9635 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
9636 mkdir_p!$mkdir_p$ac_delim
9637 AWK!$AWK$ac_delim
9638 SET_MAKE!$SET_MAKE$ac_delim
9639 am__leading_dot!$am__leading_dot$ac_delim
9640 AMTAR!$AMTAR$ac_delim
9641 am__tar!$am__tar$ac_delim
9642 am__untar!$am__untar$ac_delim
9643 CC!$CC$ac_delim
9644 CFLAGS!$CFLAGS$ac_delim
9645 LDFLAGS!$LDFLAGS$ac_delim
9646 CPPFLAGS!$CPPFLAGS$ac_delim
9647 ac_ct_CC!$ac_ct_CC$ac_delim
9648 EXEEXT!$EXEEXT$ac_delim
9649 OBJEXT!$OBJEXT$ac_delim
9650 DEPDIR!$DEPDIR$ac_delim
9651 am__include!$am__include$ac_delim
9652 am__quote!$am__quote$ac_delim
9653 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
9654 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
9655 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
9656 CCDEPMODE!$CCDEPMODE$ac_delim
9657 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
9658 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
9659 PERL!$PERL$ac_delim
9660 build!$build$ac_delim
9661 build_cpu!$build_cpu$ac_delim
9662 build_vendor!$build_vendor$ac_delim
9663 build_os!$build_os$ac_delim
9664 host!$host$ac_delim
9665 host_cpu!$host_cpu$ac_delim
9666 host_vendor!$host_vendor$ac_delim
9667 host_os!$host_os$ac_delim
9668 CPP!$CPP$ac_delim
9669 GREP!$GREP$ac_delim
9670 EGREP!$EGREP$ac_delim
9671 LIBOBJS!$LIBOBJS$ac_delim
9672 PCAP_LIBS!$PCAP_LIBS$ac_delim
9673 LTLIBOBJS!$LTLIBOBJS$ac_delim
9674 _ACEOF
9676 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
9677 break
9678 elif $ac_last_try; then
9679 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9680 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9681 { (exit 1); exit 1; }; }
9682 else
9683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9685 done
9687 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9688 if test -n "$ac_eof"; then
9689 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9690 ac_eof=`expr $ac_eof + 1`
9693 cat >>$CONFIG_STATUS <<_ACEOF
9694 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9695 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9696 _ACEOF
9697 sed '
9698 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9699 s/^/s,@/; s/!/@,|#_!!_#|/
9702 s/'"$ac_delim"'$/,g/; t
9703 s/$/\\/; p
9704 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9705 ' >>$CONFIG_STATUS <conf$$subs.sed
9706 rm -f conf$$subs.sed
9707 cat >>$CONFIG_STATUS <<_ACEOF
9708 :end
9709 s/|#_!!_#|//g
9710 CEOF$ac_eof
9711 _ACEOF
9714 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9715 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9716 # trailing colons and then remove the whole line if VPATH becomes empty
9717 # (actually we leave an empty line to preserve line numbers).
9718 if test "x$srcdir" = x.; then
9719 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9720 s/:*\$(srcdir):*/:/
9721 s/:*\${srcdir}:*/:/
9722 s/:*@srcdir@:*/:/
9723 s/^\([^=]*=[ ]*\):*/\1/
9724 s/:*$//
9725 s/^[^=]*=[ ]*$//
9729 cat >>$CONFIG_STATUS <<\_ACEOF
9730 fi # test -n "$CONFIG_FILES"
9733 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9735 case $ac_tag in
9736 :[FHLC]) ac_mode=$ac_tag; continue;;
9737 esac
9738 case $ac_mode$ac_tag in
9739 :[FHL]*:*);;
9740 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9741 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9742 { (exit 1); exit 1; }; };;
9743 :[FH]-) ac_tag=-:-;;
9744 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9745 esac
9746 ac_save_IFS=$IFS
9747 IFS=:
9748 set x $ac_tag
9749 IFS=$ac_save_IFS
9750 shift
9751 ac_file=$1
9752 shift
9754 case $ac_mode in
9755 :L) ac_source=$1;;
9756 :[FH])
9757 ac_file_inputs=
9758 for ac_f
9760 case $ac_f in
9761 -) ac_f="$tmp/stdin";;
9762 *) # Look for the file first in the build tree, then in the source tree
9763 # (if the path is not absolute). The absolute path cannot be DOS-style,
9764 # because $ac_f cannot contain `:'.
9765 test -f "$ac_f" ||
9766 case $ac_f in
9767 [\\/$]*) false;;
9768 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9769 esac ||
9770 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9771 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9772 { (exit 1); exit 1; }; };;
9773 esac
9774 ac_file_inputs="$ac_file_inputs $ac_f"
9775 done
9777 # Let's still pretend it is `configure' which instantiates (i.e., don't
9778 # use $as_me), people would be surprised to read:
9779 # /* config.h. Generated by config.status. */
9780 configure_input="Generated from "`IFS=:
9781 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9782 if test x"$ac_file" != x-; then
9783 configure_input="$ac_file. $configure_input"
9784 { echo "$as_me:$LINENO: creating $ac_file" >&5
9785 echo "$as_me: creating $ac_file" >&6;}
9788 case $ac_tag in
9789 *:-:* | *:-) cat >"$tmp/stdin";;
9790 esac
9792 esac
9794 ac_dir=`$as_dirname -- "$ac_file" ||
9795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9796 X"$ac_file" : 'X\(//\)[^/]' \| \
9797 X"$ac_file" : 'X\(//\)$' \| \
9798 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9799 echo X"$ac_file" |
9800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9801 s//\1/
9804 /^X\(\/\/\)[^/].*/{
9805 s//\1/
9808 /^X\(\/\/\)$/{
9809 s//\1/
9812 /^X\(\/\).*/{
9813 s//\1/
9816 s/.*/./; q'`
9817 { as_dir="$ac_dir"
9818 case $as_dir in #(
9819 -*) as_dir=./$as_dir;;
9820 esac
9821 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9822 as_dirs=
9823 while :; do
9824 case $as_dir in #(
9825 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9826 *) as_qdir=$as_dir;;
9827 esac
9828 as_dirs="'$as_qdir' $as_dirs"
9829 as_dir=`$as_dirname -- "$as_dir" ||
9830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9831 X"$as_dir" : 'X\(//\)[^/]' \| \
9832 X"$as_dir" : 'X\(//\)$' \| \
9833 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9834 echo X"$as_dir" |
9835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9836 s//\1/
9839 /^X\(\/\/\)[^/].*/{
9840 s//\1/
9843 /^X\(\/\/\)$/{
9844 s//\1/
9847 /^X\(\/\).*/{
9848 s//\1/
9851 s/.*/./; q'`
9852 test -d "$as_dir" && break
9853 done
9854 test -z "$as_dirs" || eval "mkdir $as_dirs"
9855 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9856 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9857 { (exit 1); exit 1; }; }; }
9858 ac_builddir=.
9860 case "$ac_dir" in
9861 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9864 # A ".." for each directory in $ac_dir_suffix.
9865 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9866 case $ac_top_builddir_sub in
9867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9869 esac ;;
9870 esac
9871 ac_abs_top_builddir=$ac_pwd
9872 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9873 # for backward compatibility:
9874 ac_top_builddir=$ac_top_build_prefix
9876 case $srcdir in
9877 .) # We are building in place.
9878 ac_srcdir=.
9879 ac_top_srcdir=$ac_top_builddir_sub
9880 ac_abs_top_srcdir=$ac_pwd ;;
9881 [\\/]* | ?:[\\/]* ) # Absolute name.
9882 ac_srcdir=$srcdir$ac_dir_suffix;
9883 ac_top_srcdir=$srcdir
9884 ac_abs_top_srcdir=$srcdir ;;
9885 *) # Relative name.
9886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9887 ac_top_srcdir=$ac_top_build_prefix$srcdir
9888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9889 esac
9890 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9893 case $ac_mode in
9896 # CONFIG_FILE
9899 case $INSTALL in
9900 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9901 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9902 esac
9903 _ACEOF
9905 cat >>$CONFIG_STATUS <<\_ACEOF
9906 # If the template does not know about datarootdir, expand it.
9907 # FIXME: This hack should be removed a few years after 2.60.
9908 ac_datarootdir_hack=; ac_datarootdir_seen=
9910 case `sed -n '/datarootdir/ {
9914 /@datadir@/p
9915 /@docdir@/p
9916 /@infodir@/p
9917 /@localedir@/p
9918 /@mandir@/p
9919 ' $ac_file_inputs` in
9920 *datarootdir*) ac_datarootdir_seen=yes;;
9921 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9922 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9923 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9924 _ACEOF
9925 cat >>$CONFIG_STATUS <<_ACEOF
9926 ac_datarootdir_hack='
9927 s&@datadir@&$datadir&g
9928 s&@docdir@&$docdir&g
9929 s&@infodir@&$infodir&g
9930 s&@localedir@&$localedir&g
9931 s&@mandir@&$mandir&g
9932 s&\\\${datarootdir}&$datarootdir&g' ;;
9933 esac
9934 _ACEOF
9936 # Neutralize VPATH when `$srcdir' = `.'.
9937 # Shell code in configure.ac might set extrasub.
9938 # FIXME: do we really want to maintain this feature?
9939 cat >>$CONFIG_STATUS <<_ACEOF
9940 sed "$ac_vpsub
9941 $extrasub
9942 _ACEOF
9943 cat >>$CONFIG_STATUS <<\_ACEOF
9945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9946 s&@configure_input@&$configure_input&;t t
9947 s&@top_builddir@&$ac_top_builddir_sub&;t t
9948 s&@srcdir@&$ac_srcdir&;t t
9949 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9950 s&@top_srcdir@&$ac_top_srcdir&;t t
9951 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9952 s&@builddir@&$ac_builddir&;t t
9953 s&@abs_builddir@&$ac_abs_builddir&;t t
9954 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9955 s&@INSTALL@&$ac_INSTALL&;t t
9956 $ac_datarootdir_hack
9957 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9959 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9960 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9961 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9962 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9963 which seems to be undefined. Please make sure it is defined." >&5
9964 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9965 which seems to be undefined. Please make sure it is defined." >&2;}
9967 rm -f "$tmp/stdin"
9968 case $ac_file in
9969 -) cat "$tmp/out"; rm -f "$tmp/out";;
9970 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9971 esac
9975 # CONFIG_HEADER
9977 _ACEOF
9979 # Transform confdefs.h into a sed script `conftest.defines', that
9980 # substitutes the proper values into config.h.in to produce config.h.
9981 rm -f conftest.defines conftest.tail
9982 # First, append a space to every undef/define line, to ease matching.
9983 echo 's/$/ /' >conftest.defines
9984 # Then, protect against being on the right side of a sed subst, or in
9985 # an unquoted here document, in config.status. If some macros were
9986 # called several times there might be several #defines for the same
9987 # symbol, which is useless. But do not sort them, since the last
9988 # AC_DEFINE must be honored.
9989 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9990 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9991 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9992 # PARAMS is the parameter list in the macro definition--in most cases, it's
9993 # just an empty string.
9994 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9995 ac_dB='\\)[ (].*,\\1define\\2'
9996 ac_dC=' '
9997 ac_dD=' ,'
9999 uniq confdefs.h |
10000 sed -n '
10001 t rset
10002 :rset
10003 s/^[ ]*#[ ]*define[ ][ ]*//
10004 t ok
10007 s/[\\&,]/\\&/g
10008 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10009 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10010 ' >>conftest.defines
10012 # Remove the space that was appended to ease matching.
10013 # Then replace #undef with comments. This is necessary, for
10014 # example, in the case of _POSIX_SOURCE, which is predefined and required
10015 # on some systems where configure will not decide to define it.
10016 # (The regexp can be short, since the line contains either #define or #undef.)
10017 echo 's/ $//
10018 s,^[ #]*u.*,/* & */,' >>conftest.defines
10020 # Break up conftest.defines:
10021 ac_max_sed_lines=50
10023 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10024 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10025 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10026 # et cetera.
10027 ac_in='$ac_file_inputs'
10028 ac_out='"$tmp/out1"'
10029 ac_nxt='"$tmp/out2"'
10031 while :
10033 # Write a here document:
10034 cat >>$CONFIG_STATUS <<_ACEOF
10035 # First, check the format of the line:
10036 cat >"\$tmp/defines.sed" <<\\CEOF
10037 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10038 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10040 :def
10041 _ACEOF
10042 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10043 echo 'CEOF
10044 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10045 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10046 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10047 grep . conftest.tail >/dev/null || break
10048 rm -f conftest.defines
10049 mv conftest.tail conftest.defines
10050 done
10051 rm -f conftest.defines conftest.tail
10053 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10054 cat >>$CONFIG_STATUS <<\_ACEOF
10055 if test x"$ac_file" != x-; then
10056 echo "/* $configure_input */" >"$tmp/config.h"
10057 cat "$ac_result" >>"$tmp/config.h"
10058 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10059 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10060 echo "$as_me: $ac_file is unchanged" >&6;}
10061 else
10062 rm -f $ac_file
10063 mv "$tmp/config.h" $ac_file
10065 else
10066 echo "/* $configure_input */"
10067 cat "$ac_result"
10069 rm -f "$tmp/out12"
10070 # Compute $ac_file's index in $config_headers.
10071 _am_stamp_count=1
10072 for _am_header in $config_headers :; do
10073 case $_am_header in
10074 $ac_file | $ac_file:* )
10075 break ;;
10077 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10078 esac
10079 done
10080 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
10081 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10082 X$ac_file : 'X\(//\)[^/]' \| \
10083 X$ac_file : 'X\(//\)$' \| \
10084 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
10085 echo X$ac_file |
10086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10087 s//\1/
10090 /^X\(\/\/\)[^/].*/{
10091 s//\1/
10094 /^X\(\/\/\)$/{
10095 s//\1/
10098 /^X\(\/\).*/{
10099 s//\1/
10102 s/.*/./; q'`/stamp-h$_am_stamp_count
10105 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
10106 echo "$as_me: executing $ac_file commands" >&6;}
10108 esac
10111 case $ac_file$ac_mode in
10112 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10113 # Strip MF so we end up with the name of the file.
10114 mf=`echo "$mf" | sed -e 's/:.*$//'`
10115 # Check whether this is an Automake generated Makefile or not.
10116 # We used to match only the files named `Makefile.in', but
10117 # some people rename them; so instead we look at the file content.
10118 # Grep'ing the first line is not enough: some people post-process
10119 # each Makefile.in and add a new line on top of each file to say so.
10120 # So let's grep whole file.
10121 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10122 dirpart=`$as_dirname -- "$mf" ||
10123 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10124 X"$mf" : 'X\(//\)[^/]' \| \
10125 X"$mf" : 'X\(//\)$' \| \
10126 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10127 echo X"$mf" |
10128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10129 s//\1/
10132 /^X\(\/\/\)[^/].*/{
10133 s//\1/
10136 /^X\(\/\/\)$/{
10137 s//\1/
10140 /^X\(\/\).*/{
10141 s//\1/
10144 s/.*/./; q'`
10145 else
10146 continue
10148 # Extract the definition of DEPDIR, am__include, and am__quote
10149 # from the Makefile without running `make'.
10150 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10151 test -z "$DEPDIR" && continue
10152 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10153 test -z "am__include" && continue
10154 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10155 # When using ansi2knr, U may be empty or an underscore; expand it
10156 U=`sed -n 's/^U = //p' < "$mf"`
10157 # Find all dependency output files, they are included files with
10158 # $(DEPDIR) in their names. We invoke sed twice because it is the
10159 # simplest approach to changing $(DEPDIR) to its actual value in the
10160 # expansion.
10161 for file in `sed -n "
10162 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10163 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10164 # Make sure the directory exists.
10165 test -f "$dirpart/$file" && continue
10166 fdir=`$as_dirname -- "$file" ||
10167 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10168 X"$file" : 'X\(//\)[^/]' \| \
10169 X"$file" : 'X\(//\)$' \| \
10170 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10171 echo X"$file" |
10172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10173 s//\1/
10176 /^X\(\/\/\)[^/].*/{
10177 s//\1/
10180 /^X\(\/\/\)$/{
10181 s//\1/
10184 /^X\(\/\).*/{
10185 s//\1/
10188 s/.*/./; q'`
10189 { as_dir=$dirpart/$fdir
10190 case $as_dir in #(
10191 -*) as_dir=./$as_dir;;
10192 esac
10193 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10194 as_dirs=
10195 while :; do
10196 case $as_dir in #(
10197 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10198 *) as_qdir=$as_dir;;
10199 esac
10200 as_dirs="'$as_qdir' $as_dirs"
10201 as_dir=`$as_dirname -- "$as_dir" ||
10202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10203 X"$as_dir" : 'X\(//\)[^/]' \| \
10204 X"$as_dir" : 'X\(//\)$' \| \
10205 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10206 echo X"$as_dir" |
10207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10208 s//\1/
10211 /^X\(\/\/\)[^/].*/{
10212 s//\1/
10215 /^X\(\/\/\)$/{
10216 s//\1/
10219 /^X\(\/\).*/{
10220 s//\1/
10223 s/.*/./; q'`
10224 test -d "$as_dir" && break
10225 done
10226 test -z "$as_dirs" || eval "mkdir $as_dirs"
10227 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10228 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10229 { (exit 1); exit 1; }; }; }
10230 # echo "creating $dirpart/$file"
10231 echo '# dummy' > "$dirpart/$file"
10232 done
10233 done
10236 esac
10237 done # for ac_tag
10240 { (exit 0); exit 0; }
10241 _ACEOF
10242 chmod +x $CONFIG_STATUS
10243 ac_clean_files=$ac_clean_files_save
10246 # configure is writing to config.log, and then calls config.status.
10247 # config.status does its own redirection, appending to config.log.
10248 # Unfortunately, on DOS this fails, as config.log is still kept open
10249 # by configure, so config.status won't be able to write to it; its
10250 # output is simply discarded. So we exec the FD to /dev/null,
10251 # effectively closing config.log, so it can be properly (re)opened and
10252 # appended to by config.status. When coming back to configure, we
10253 # need to make the FD available again.
10254 if test "$no_create" != yes; then
10255 ac_cs_success=:
10256 ac_config_status_args=
10257 test "$silent" = yes &&
10258 ac_config_status_args="$ac_config_status_args --quiet"
10259 exec 5>/dev/null
10260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10261 exec 5>>config.log
10262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10263 # would make configure fail if this is the last instruction.
10264 $ac_cs_success || { (exit 1); exit 1; }