No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / bind / dist / contrib / queryperf / configure
blob9cd2a99bb84b077744e780ea193421220e4093e4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="queryperf.c"
580 ac_subst_vars='SHELL
581 PATH_SEPARATOR
582 PACKAGE_NAME
583 PACKAGE_TARNAME
584 PACKAGE_VERSION
585 PACKAGE_STRING
586 PACKAGE_BUGREPORT
587 exec_prefix
588 prefix
589 program_transform_name
590 bindir
591 sbindir
592 libexecdir
593 datarootdir
594 datadir
595 sysconfdir
596 sharedstatedir
597 localstatedir
598 includedir
599 oldincludedir
600 docdir
601 infodir
602 htmldir
603 dvidir
604 pdfdir
605 psdir
606 libdir
607 localedir
608 mandir
609 DEFS
610 ECHO_C
611 ECHO_N
612 ECHO_T
613 LIBS
614 build_alias
615 host_alias
616 target_alias
618 CFLAGS
619 LDFLAGS
620 CPPFLAGS
621 ac_ct_CC
622 EXEEXT
623 OBJEXT
624 LIBOBJS
625 LTLIBOBJS'
626 ac_subst_files=''
627 ac_precious_vars='build_alias
628 host_alias
629 target_alias
631 CFLAGS
632 LDFLAGS
633 LIBS
634 CPPFLAGS'
637 # Initialize some variables set by options.
638 ac_init_help=
639 ac_init_version=false
640 # The variables have the same names as the options, with
641 # dashes changed to underlines.
642 cache_file=/dev/null
643 exec_prefix=NONE
644 no_create=
645 no_recursion=
646 prefix=NONE
647 program_prefix=NONE
648 program_suffix=NONE
649 program_transform_name=s,x,x,
650 silent=
651 site=
652 srcdir=
653 verbose=
654 x_includes=NONE
655 x_libraries=NONE
657 # Installation directory options.
658 # These are left unexpanded so users can "make install exec_prefix=/foo"
659 # and all the variables that are supposed to be based on exec_prefix
660 # by default will actually change.
661 # Use braces instead of parens because sh, perl, etc. also accept them.
662 # (The list follows the same order as the GNU Coding Standards.)
663 bindir='${exec_prefix}/bin'
664 sbindir='${exec_prefix}/sbin'
665 libexecdir='${exec_prefix}/libexec'
666 datarootdir='${prefix}/share'
667 datadir='${datarootdir}'
668 sysconfdir='${prefix}/etc'
669 sharedstatedir='${prefix}/com'
670 localstatedir='${prefix}/var'
671 includedir='${prefix}/include'
672 oldincludedir='/usr/include'
673 docdir='${datarootdir}/doc/${PACKAGE}'
674 infodir='${datarootdir}/info'
675 htmldir='${docdir}'
676 dvidir='${docdir}'
677 pdfdir='${docdir}'
678 psdir='${docdir}'
679 libdir='${exec_prefix}/lib'
680 localedir='${datarootdir}/locale'
681 mandir='${datarootdir}/man'
683 ac_prev=
684 ac_dashdash=
685 for ac_option
687 # If the previous option needs an argument, assign it.
688 if test -n "$ac_prev"; then
689 eval $ac_prev=\$ac_option
690 ac_prev=
691 continue
694 case $ac_option in
695 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
696 *) ac_optarg=yes ;;
697 esac
699 # Accept the important Cygnus configure options, so we can diagnose typos.
701 case $ac_dashdash$ac_option in
703 ac_dashdash=yes ;;
705 -bindir | --bindir | --bindi | --bind | --bin | --bi)
706 ac_prev=bindir ;;
707 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
708 bindir=$ac_optarg ;;
710 -build | --build | --buil | --bui | --bu)
711 ac_prev=build_alias ;;
712 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
713 build_alias=$ac_optarg ;;
715 -cache-file | --cache-file | --cache-fil | --cache-fi \
716 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
717 ac_prev=cache_file ;;
718 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
719 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
720 cache_file=$ac_optarg ;;
722 --config-cache | -C)
723 cache_file=config.cache ;;
725 -datadir | --datadir | --datadi | --datad)
726 ac_prev=datadir ;;
727 -datadir=* | --datadir=* | --datadi=* | --datad=*)
728 datadir=$ac_optarg ;;
730 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
731 | --dataroo | --dataro | --datar)
732 ac_prev=datarootdir ;;
733 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
734 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
735 datarootdir=$ac_optarg ;;
737 -disable-* | --disable-*)
738 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
739 # Reject names that are not valid shell variable names.
740 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
741 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
742 { (exit 1); exit 1; }; }
743 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
744 eval enable_$ac_feature=no ;;
746 -docdir | --docdir | --docdi | --doc | --do)
747 ac_prev=docdir ;;
748 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
749 docdir=$ac_optarg ;;
751 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
752 ac_prev=dvidir ;;
753 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
754 dvidir=$ac_optarg ;;
756 -enable-* | --enable-*)
757 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
761 { (exit 1); exit 1; }; }
762 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
763 eval enable_$ac_feature=\$ac_optarg ;;
765 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
766 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
767 | --exec | --exe | --ex)
768 ac_prev=exec_prefix ;;
769 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
770 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
771 | --exec=* | --exe=* | --ex=*)
772 exec_prefix=$ac_optarg ;;
774 -gas | --gas | --ga | --g)
775 # Obsolete; use --with-gas.
776 with_gas=yes ;;
778 -help | --help | --hel | --he | -h)
779 ac_init_help=long ;;
780 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
781 ac_init_help=recursive ;;
782 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
783 ac_init_help=short ;;
785 -host | --host | --hos | --ho)
786 ac_prev=host_alias ;;
787 -host=* | --host=* | --hos=* | --ho=*)
788 host_alias=$ac_optarg ;;
790 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
791 ac_prev=htmldir ;;
792 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
793 | --ht=*)
794 htmldir=$ac_optarg ;;
796 -includedir | --includedir | --includedi | --included | --include \
797 | --includ | --inclu | --incl | --inc)
798 ac_prev=includedir ;;
799 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
800 | --includ=* | --inclu=* | --incl=* | --inc=*)
801 includedir=$ac_optarg ;;
803 -infodir | --infodir | --infodi | --infod | --info | --inf)
804 ac_prev=infodir ;;
805 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
806 infodir=$ac_optarg ;;
808 -libdir | --libdir | --libdi | --libd)
809 ac_prev=libdir ;;
810 -libdir=* | --libdir=* | --libdi=* | --libd=*)
811 libdir=$ac_optarg ;;
813 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
814 | --libexe | --libex | --libe)
815 ac_prev=libexecdir ;;
816 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
817 | --libexe=* | --libex=* | --libe=*)
818 libexecdir=$ac_optarg ;;
820 -localedir | --localedir | --localedi | --localed | --locale)
821 ac_prev=localedir ;;
822 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
823 localedir=$ac_optarg ;;
825 -localstatedir | --localstatedir | --localstatedi | --localstated \
826 | --localstate | --localstat | --localsta | --localst | --locals)
827 ac_prev=localstatedir ;;
828 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
829 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
830 localstatedir=$ac_optarg ;;
832 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
833 ac_prev=mandir ;;
834 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
835 mandir=$ac_optarg ;;
837 -nfp | --nfp | --nf)
838 # Obsolete; use --without-fp.
839 with_fp=no ;;
841 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
842 | --no-cr | --no-c | -n)
843 no_create=yes ;;
845 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
846 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
847 no_recursion=yes ;;
849 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
850 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
851 | --oldin | --oldi | --old | --ol | --o)
852 ac_prev=oldincludedir ;;
853 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
854 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
855 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
856 oldincludedir=$ac_optarg ;;
858 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
859 ac_prev=prefix ;;
860 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
861 prefix=$ac_optarg ;;
863 -program-prefix | --program-prefix | --program-prefi | --program-pref \
864 | --program-pre | --program-pr | --program-p)
865 ac_prev=program_prefix ;;
866 -program-prefix=* | --program-prefix=* | --program-prefi=* \
867 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
868 program_prefix=$ac_optarg ;;
870 -program-suffix | --program-suffix | --program-suffi | --program-suff \
871 | --program-suf | --program-su | --program-s)
872 ac_prev=program_suffix ;;
873 -program-suffix=* | --program-suffix=* | --program-suffi=* \
874 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
875 program_suffix=$ac_optarg ;;
877 -program-transform-name | --program-transform-name \
878 | --program-transform-nam | --program-transform-na \
879 | --program-transform-n | --program-transform- \
880 | --program-transform | --program-transfor \
881 | --program-transfo | --program-transf \
882 | --program-trans | --program-tran \
883 | --progr-tra | --program-tr | --program-t)
884 ac_prev=program_transform_name ;;
885 -program-transform-name=* | --program-transform-name=* \
886 | --program-transform-nam=* | --program-transform-na=* \
887 | --program-transform-n=* | --program-transform-=* \
888 | --program-transform=* | --program-transfor=* \
889 | --program-transfo=* | --program-transf=* \
890 | --program-trans=* | --program-tran=* \
891 | --progr-tra=* | --program-tr=* | --program-t=*)
892 program_transform_name=$ac_optarg ;;
894 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
895 ac_prev=pdfdir ;;
896 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
897 pdfdir=$ac_optarg ;;
899 -psdir | --psdir | --psdi | --psd | --ps)
900 ac_prev=psdir ;;
901 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
902 psdir=$ac_optarg ;;
904 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
905 | -silent | --silent | --silen | --sile | --sil)
906 silent=yes ;;
908 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
909 ac_prev=sbindir ;;
910 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
911 | --sbi=* | --sb=*)
912 sbindir=$ac_optarg ;;
914 -sharedstatedir | --sharedstatedir | --sharedstatedi \
915 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
916 | --sharedst | --shareds | --shared | --share | --shar \
917 | --sha | --sh)
918 ac_prev=sharedstatedir ;;
919 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
920 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
921 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
922 | --sha=* | --sh=*)
923 sharedstatedir=$ac_optarg ;;
925 -site | --site | --sit)
926 ac_prev=site ;;
927 -site=* | --site=* | --sit=*)
928 site=$ac_optarg ;;
930 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
931 ac_prev=srcdir ;;
932 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
933 srcdir=$ac_optarg ;;
935 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
936 | --syscon | --sysco | --sysc | --sys | --sy)
937 ac_prev=sysconfdir ;;
938 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
939 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
940 sysconfdir=$ac_optarg ;;
942 -target | --target | --targe | --targ | --tar | --ta | --t)
943 ac_prev=target_alias ;;
944 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
945 target_alias=$ac_optarg ;;
947 -v | -verbose | --verbose | --verbos | --verbo | --verb)
948 verbose=yes ;;
950 -version | --version | --versio | --versi | --vers | -V)
951 ac_init_version=: ;;
953 -with-* | --with-*)
954 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
957 { echo "$as_me: error: invalid package name: $ac_package" >&2
958 { (exit 1); exit 1; }; }
959 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
960 eval with_$ac_package=\$ac_optarg ;;
962 -without-* | --without-*)
963 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
966 { echo "$as_me: error: invalid package name: $ac_package" >&2
967 { (exit 1); exit 1; }; }
968 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
969 eval with_$ac_package=no ;;
971 --x)
972 # Obsolete; use --with-x.
973 with_x=yes ;;
975 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
976 | --x-incl | --x-inc | --x-in | --x-i)
977 ac_prev=x_includes ;;
978 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
979 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
980 x_includes=$ac_optarg ;;
982 -x-libraries | --x-libraries | --x-librarie | --x-librari \
983 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
984 ac_prev=x_libraries ;;
985 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
986 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
987 x_libraries=$ac_optarg ;;
989 -*) { echo "$as_me: error: unrecognized option: $ac_option
990 Try \`$0 --help' for more information." >&2
991 { (exit 1); exit 1; }; }
994 *=*)
995 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
998 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
999 { (exit 1); exit 1; }; }
1000 eval $ac_envvar=\$ac_optarg
1001 export $ac_envvar ;;
1004 # FIXME: should be removed in autoconf 3.0.
1005 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1006 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1008 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1011 esac
1012 done
1014 if test -n "$ac_prev"; then
1015 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1016 { echo "$as_me: error: missing argument to $ac_option" >&2
1017 { (exit 1); exit 1; }; }
1020 # Be sure to have absolute directory names.
1021 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1022 datadir sysconfdir sharedstatedir localstatedir includedir \
1023 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1024 libdir localedir mandir
1026 eval ac_val=\$$ac_var
1027 case $ac_val in
1028 [\\/$]* | ?:[\\/]* ) continue;;
1029 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1030 esac
1031 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1032 { (exit 1); exit 1; }; }
1033 done
1035 # There might be people who depend on the old broken behavior: `$host'
1036 # used to hold the argument of --host etc.
1037 # FIXME: To remove some day.
1038 build=$build_alias
1039 host=$host_alias
1040 target=$target_alias
1042 # FIXME: To remove some day.
1043 if test "x$host_alias" != x; then
1044 if test "x$build_alias" = x; then
1045 cross_compiling=maybe
1046 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1047 If a cross compiler is detected then cross compile mode will be used." >&2
1048 elif test "x$build_alias" != "x$host_alias"; then
1049 cross_compiling=yes
1053 ac_tool_prefix=
1054 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1056 test "$silent" = yes && exec 6>/dev/null
1059 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1060 ac_ls_di=`ls -di .` &&
1061 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1062 { echo "$as_me: error: Working directory cannot be determined" >&2
1063 { (exit 1); exit 1; }; }
1064 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1065 { echo "$as_me: error: pwd does not report name of working directory" >&2
1066 { (exit 1); exit 1; }; }
1069 # Find the source files, if location was not specified.
1070 if test -z "$srcdir"; then
1071 ac_srcdir_defaulted=yes
1072 # Try the directory containing this script, then the parent directory.
1073 ac_confdir=`$as_dirname -- "$0" ||
1074 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1075 X"$0" : 'X\(//\)[^/]' \| \
1076 X"$0" : 'X\(//\)$' \| \
1077 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1078 echo X"$0" |
1079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1080 s//\1/
1083 /^X\(\/\/\)[^/].*/{
1084 s//\1/
1087 /^X\(\/\/\)$/{
1088 s//\1/
1091 /^X\(\/\).*/{
1092 s//\1/
1095 s/.*/./; q'`
1096 srcdir=$ac_confdir
1097 if test ! -r "$srcdir/$ac_unique_file"; then
1098 srcdir=..
1100 else
1101 ac_srcdir_defaulted=no
1103 if test ! -r "$srcdir/$ac_unique_file"; then
1104 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1105 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1106 { (exit 1); exit 1; }; }
1108 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1109 ac_abs_confdir=`(
1110 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1111 { (exit 1); exit 1; }; }
1112 pwd)`
1113 # When building in place, set srcdir=.
1114 if test "$ac_abs_confdir" = "$ac_pwd"; then
1115 srcdir=.
1117 # Remove unnecessary trailing slashes from srcdir.
1118 # Double slashes in file names in object file debugging info
1119 # mess up M-x gdb in Emacs.
1120 case $srcdir in
1121 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1122 esac
1123 for ac_var in $ac_precious_vars; do
1124 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1125 eval ac_env_${ac_var}_value=\$${ac_var}
1126 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1127 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1128 done
1131 # Report the --help message.
1133 if test "$ac_init_help" = "long"; then
1134 # Omit some internal or obsolete options to make the list less imposing.
1135 # This message is too long to be a string in the A/UX 3.1 sh.
1136 cat <<_ACEOF
1137 \`configure' configures this package to adapt to many kinds of systems.
1139 Usage: $0 [OPTION]... [VAR=VALUE]...
1141 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1142 VAR=VALUE. See below for descriptions of some of the useful variables.
1144 Defaults for the options are specified in brackets.
1146 Configuration:
1147 -h, --help display this help and exit
1148 --help=short display options specific to this package
1149 --help=recursive display the short help of all the included packages
1150 -V, --version display version information and exit
1151 -q, --quiet, --silent do not print \`checking...' messages
1152 --cache-file=FILE cache test results in FILE [disabled]
1153 -C, --config-cache alias for \`--cache-file=config.cache'
1154 -n, --no-create do not create output files
1155 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1157 Installation directories:
1158 --prefix=PREFIX install architecture-independent files in PREFIX
1159 [$ac_default_prefix]
1160 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1161 [PREFIX]
1163 By default, \`make install' will install all the files in
1164 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1165 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1166 for instance \`--prefix=\$HOME'.
1168 For better control, use the options below.
1170 Fine tuning of the installation directories:
1171 --bindir=DIR user executables [EPREFIX/bin]
1172 --sbindir=DIR system admin executables [EPREFIX/sbin]
1173 --libexecdir=DIR program executables [EPREFIX/libexec]
1174 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1175 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1176 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1177 --libdir=DIR object code libraries [EPREFIX/lib]
1178 --includedir=DIR C header files [PREFIX/include]
1179 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1180 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1181 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1182 --infodir=DIR info documentation [DATAROOTDIR/info]
1183 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1184 --mandir=DIR man documentation [DATAROOTDIR/man]
1185 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1186 --htmldir=DIR html documentation [DOCDIR]
1187 --dvidir=DIR dvi documentation [DOCDIR]
1188 --pdfdir=DIR pdf documentation [DOCDIR]
1189 --psdir=DIR ps documentation [DOCDIR]
1190 _ACEOF
1192 cat <<\_ACEOF
1193 _ACEOF
1196 if test -n "$ac_init_help"; then
1198 cat <<\_ACEOF
1200 Some influential environment variables:
1201 CC C compiler command
1202 CFLAGS C compiler flags
1203 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1204 nonstandard directory <lib dir>
1205 LIBS libraries to pass to the linker, e.g. -l<library>
1206 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1207 you have headers in a nonstandard directory <include dir>
1209 Use these variables to override the choices made by `configure' or to help
1210 it to find libraries and programs with nonstandard names/locations.
1212 _ACEOF
1213 ac_status=$?
1216 if test "$ac_init_help" = "recursive"; then
1217 # If there are subdirs, report their specific --help.
1218 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1219 test -d "$ac_dir" || continue
1220 ac_builddir=.
1222 case "$ac_dir" in
1223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1225 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1226 # A ".." for each directory in $ac_dir_suffix.
1227 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1228 case $ac_top_builddir_sub in
1229 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1230 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1231 esac ;;
1232 esac
1233 ac_abs_top_builddir=$ac_pwd
1234 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1235 # for backward compatibility:
1236 ac_top_builddir=$ac_top_build_prefix
1238 case $srcdir in
1239 .) # We are building in place.
1240 ac_srcdir=.
1241 ac_top_srcdir=$ac_top_builddir_sub
1242 ac_abs_top_srcdir=$ac_pwd ;;
1243 [\\/]* | ?:[\\/]* ) # Absolute name.
1244 ac_srcdir=$srcdir$ac_dir_suffix;
1245 ac_top_srcdir=$srcdir
1246 ac_abs_top_srcdir=$srcdir ;;
1247 *) # Relative name.
1248 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1249 ac_top_srcdir=$ac_top_build_prefix$srcdir
1250 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1251 esac
1252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1254 cd "$ac_dir" || { ac_status=$?; continue; }
1255 # Check for guested configure.
1256 if test -f "$ac_srcdir/configure.gnu"; then
1257 echo &&
1258 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1259 elif test -f "$ac_srcdir/configure"; then
1260 echo &&
1261 $SHELL "$ac_srcdir/configure" --help=recursive
1262 else
1263 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1264 fi || ac_status=$?
1265 cd "$ac_pwd" || { ac_status=$?; break; }
1266 done
1269 test -n "$ac_init_help" && exit $ac_status
1270 if $ac_init_version; then
1271 cat <<\_ACEOF
1272 configure
1273 generated by GNU Autoconf 2.61
1275 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1276 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1277 This configure script is free software; the Free Software Foundation
1278 gives unlimited permission to copy, distribute and modify it.
1279 _ACEOF
1280 exit
1282 cat >config.log <<_ACEOF
1283 This file contains any messages produced by compilers while
1284 running configure, to aid debugging if configure makes a mistake.
1286 It was created by $as_me, which was
1287 generated by GNU Autoconf 2.61. Invocation command line was
1289 $ $0 $@
1291 _ACEOF
1292 exec 5>>config.log
1294 cat <<_ASUNAME
1295 ## --------- ##
1296 ## Platform. ##
1297 ## --------- ##
1299 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1300 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1301 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1302 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1303 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1305 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1306 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1308 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1309 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1310 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1311 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1312 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1313 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1314 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1316 _ASUNAME
1318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1319 for as_dir in $PATH
1321 IFS=$as_save_IFS
1322 test -z "$as_dir" && as_dir=.
1323 echo "PATH: $as_dir"
1324 done
1325 IFS=$as_save_IFS
1327 } >&5
1329 cat >&5 <<_ACEOF
1332 ## ----------- ##
1333 ## Core tests. ##
1334 ## ----------- ##
1336 _ACEOF
1339 # Keep a trace of the command line.
1340 # Strip out --no-create and --no-recursion so they do not pile up.
1341 # Strip out --silent because we don't want to record it for future runs.
1342 # Also quote any args containing shell meta-characters.
1343 # Make two passes to allow for proper duplicate-argument suppression.
1344 ac_configure_args=
1345 ac_configure_args0=
1346 ac_configure_args1=
1347 ac_must_keep_next=false
1348 for ac_pass in 1 2
1350 for ac_arg
1352 case $ac_arg in
1353 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1355 | -silent | --silent | --silen | --sile | --sil)
1356 continue ;;
1357 *\'*)
1358 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1359 esac
1360 case $ac_pass in
1361 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1363 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1364 if test $ac_must_keep_next = true; then
1365 ac_must_keep_next=false # Got value, back to normal.
1366 else
1367 case $ac_arg in
1368 *=* | --config-cache | -C | -disable-* | --disable-* \
1369 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1370 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1371 | -with-* | --with-* | -without-* | --without-* | --x)
1372 case "$ac_configure_args0 " in
1373 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1374 esac
1376 -* ) ac_must_keep_next=true ;;
1377 esac
1379 ac_configure_args="$ac_configure_args '$ac_arg'"
1381 esac
1382 done
1383 done
1384 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1385 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1387 # When interrupted or exit'd, cleanup temporary files, and complete
1388 # config.log. We remove comments because anyway the quotes in there
1389 # would cause problems or look ugly.
1390 # WARNING: Use '\'' to represent an apostrophe within the trap.
1391 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1392 trap 'exit_status=$?
1393 # Save into config.log some information that might help in debugging.
1395 echo
1397 cat <<\_ASBOX
1398 ## ---------------- ##
1399 ## Cache variables. ##
1400 ## ---------------- ##
1401 _ASBOX
1402 echo
1403 # The following way of writing the cache mishandles newlines in values,
1405 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1406 eval ac_val=\$$ac_var
1407 case $ac_val in #(
1408 *${as_nl}*)
1409 case $ac_var in #(
1410 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1411 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1412 esac
1413 case $ac_var in #(
1414 _ | IFS | as_nl) ;; #(
1415 *) $as_unset $ac_var ;;
1416 esac ;;
1417 esac
1418 done
1419 (set) 2>&1 |
1420 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1421 *${as_nl}ac_space=\ *)
1422 sed -n \
1423 "s/'\''/'\''\\\\'\'''\''/g;
1424 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1425 ;; #(
1427 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1429 esac |
1430 sort
1432 echo
1434 cat <<\_ASBOX
1435 ## ----------------- ##
1436 ## Output variables. ##
1437 ## ----------------- ##
1438 _ASBOX
1439 echo
1440 for ac_var in $ac_subst_vars
1442 eval ac_val=\$$ac_var
1443 case $ac_val in
1444 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1445 esac
1446 echo "$ac_var='\''$ac_val'\''"
1447 done | sort
1448 echo
1450 if test -n "$ac_subst_files"; then
1451 cat <<\_ASBOX
1452 ## ------------------- ##
1453 ## File substitutions. ##
1454 ## ------------------- ##
1455 _ASBOX
1456 echo
1457 for ac_var in $ac_subst_files
1459 eval ac_val=\$$ac_var
1460 case $ac_val in
1461 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1462 esac
1463 echo "$ac_var='\''$ac_val'\''"
1464 done | sort
1465 echo
1468 if test -s confdefs.h; then
1469 cat <<\_ASBOX
1470 ## ----------- ##
1471 ## confdefs.h. ##
1472 ## ----------- ##
1473 _ASBOX
1474 echo
1475 cat confdefs.h
1476 echo
1478 test "$ac_signal" != 0 &&
1479 echo "$as_me: caught signal $ac_signal"
1480 echo "$as_me: exit $exit_status"
1481 } >&5
1482 rm -f core *.core core.conftest.* &&
1483 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1484 exit $exit_status
1486 for ac_signal in 1 2 13 15; do
1487 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1488 done
1489 ac_signal=0
1491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1492 rm -f -r conftest* confdefs.h
1494 # Predefined preprocessor variables.
1496 cat >>confdefs.h <<_ACEOF
1497 #define PACKAGE_NAME "$PACKAGE_NAME"
1498 _ACEOF
1501 cat >>confdefs.h <<_ACEOF
1502 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1503 _ACEOF
1506 cat >>confdefs.h <<_ACEOF
1507 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1508 _ACEOF
1511 cat >>confdefs.h <<_ACEOF
1512 #define PACKAGE_STRING "$PACKAGE_STRING"
1513 _ACEOF
1516 cat >>confdefs.h <<_ACEOF
1517 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1518 _ACEOF
1521 # Let the site file select an alternate cache file if it wants to.
1522 # Prefer explicitly selected file to automatically selected ones.
1523 if test -n "$CONFIG_SITE"; then
1524 set x "$CONFIG_SITE"
1525 elif test "x$prefix" != xNONE; then
1526 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1527 else
1528 set x "$ac_default_prefix/share/config.site" \
1529 "$ac_default_prefix/etc/config.site"
1531 shift
1532 for ac_site_file
1534 if test -r "$ac_site_file"; then
1535 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1536 echo "$as_me: loading site script $ac_site_file" >&6;}
1537 sed 's/^/| /' "$ac_site_file" >&5
1538 . "$ac_site_file"
1540 done
1542 if test -r "$cache_file"; then
1543 # Some versions of bash will fail to source /dev/null (special
1544 # files actually), so we avoid doing that.
1545 if test -f "$cache_file"; then
1546 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1547 echo "$as_me: loading cache $cache_file" >&6;}
1548 case $cache_file in
1549 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1550 *) . "./$cache_file";;
1551 esac
1553 else
1554 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1555 echo "$as_me: creating cache $cache_file" >&6;}
1556 >$cache_file
1559 # Check that the precious variables saved in the cache have kept the same
1560 # value.
1561 ac_cache_corrupted=false
1562 for ac_var in $ac_precious_vars; do
1563 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1564 eval ac_new_set=\$ac_env_${ac_var}_set
1565 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1566 eval ac_new_val=\$ac_env_${ac_var}_value
1567 case $ac_old_set,$ac_new_set in
1568 set,)
1569 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1570 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1571 ac_cache_corrupted=: ;;
1572 ,set)
1573 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1574 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1575 ac_cache_corrupted=: ;;
1576 ,);;
1578 if test "x$ac_old_val" != "x$ac_new_val"; then
1579 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1580 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1581 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1582 echo "$as_me: former value: $ac_old_val" >&2;}
1583 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1584 echo "$as_me: current value: $ac_new_val" >&2;}
1585 ac_cache_corrupted=:
1586 fi;;
1587 esac
1588 # Pass precious variables to config.status.
1589 if test "$ac_new_set" = set; then
1590 case $ac_new_val in
1591 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1592 *) ac_arg=$ac_var=$ac_new_val ;;
1593 esac
1594 case " $ac_configure_args " in
1595 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1596 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1597 esac
1599 done
1600 if $ac_cache_corrupted; then
1601 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1602 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1603 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1604 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1605 { (exit 1); exit 1; }; }
1624 ac_ext=c
1625 ac_cpp='$CPP $CPPFLAGS'
1626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 ac_ext=c
1635 ac_cpp='$CPP $CPPFLAGS'
1636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1639 if test -n "$ac_tool_prefix"; then
1640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1644 if test "${ac_cv_prog_CC+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647 if test -n "$CC"; then
1648 ac_cv_prog_CC="$CC" # Let the user override the test.
1649 else
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1657 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 break 2
1661 done
1662 done
1663 IFS=$as_save_IFS
1667 CC=$ac_cv_prog_CC
1668 if test -n "$CC"; then
1669 { echo "$as_me:$LINENO: result: $CC" >&5
1670 echo "${ECHO_T}$CC" >&6; }
1671 else
1672 { echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6; }
1678 if test -z "$ac_cv_prog_CC"; then
1679 ac_ct_CC=$CC
1680 # Extract the first word of "gcc", so it can be a program name with args.
1681 set dummy gcc; ac_word=$2
1682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687 if test -n "$ac_ct_CC"; then
1688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1697 ac_cv_prog_ac_ct_CC="gcc"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1701 done
1702 done
1703 IFS=$as_save_IFS
1707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1708 if test -n "$ac_ct_CC"; then
1709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1710 echo "${ECHO_T}$ac_ct_CC" >&6; }
1711 else
1712 { echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6; }
1716 if test "x$ac_ct_CC" = x; then
1717 CC=""
1718 else
1719 case $cross_compiling:$ac_tool_warned in
1720 yes:)
1721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1722 whose name does not start with the host triplet. If you think this
1723 configuration is useful to you, please write to autoconf@gnu.org." >&5
1724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1725 whose name does not start with the host triplet. If you think this
1726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1727 ac_tool_warned=yes ;;
1728 esac
1729 CC=$ac_ct_CC
1731 else
1732 CC="$ac_cv_prog_CC"
1735 if test -z "$CC"; then
1736 if test -n "$ac_tool_prefix"; then
1737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1738 set dummy ${ac_tool_prefix}cc; ac_word=$2
1739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1741 if test "${ac_cv_prog_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744 if test -n "$CC"; then
1745 ac_cv_prog_CC="$CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1750 IFS=$as_save_IFS
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1754 ac_cv_prog_CC="${ac_tool_prefix}cc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 break 2
1758 done
1759 done
1760 IFS=$as_save_IFS
1764 CC=$ac_cv_prog_CC
1765 if test -n "$CC"; then
1766 { echo "$as_me:$LINENO: result: $CC" >&5
1767 echo "${ECHO_T}$CC" >&6; }
1768 else
1769 { echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6; }
1776 if test -z "$CC"; then
1777 # Extract the first word of "cc", so it can be a program name with args.
1778 set dummy cc; ac_word=$2
1779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC="$CC" # Let the user override the test.
1786 else
1787 ac_prog_rejected=no
1788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 for as_dir in $PATH
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1796 ac_prog_rejected=yes
1797 continue
1799 ac_cv_prog_CC="cc"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 break 2
1803 done
1804 done
1805 IFS=$as_save_IFS
1807 if test $ac_prog_rejected = yes; then
1808 # We found a bogon in the path, so make sure we never use it.
1809 set dummy $ac_cv_prog_CC
1810 shift
1811 if test $# != 0; then
1812 # We chose a different compiler from the bogus one.
1813 # However, it has the same basename, so the bogon will be chosen
1814 # first if we set CC to just the basename; use the full file name.
1815 shift
1816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1821 CC=$ac_cv_prog_CC
1822 if test -n "$CC"; then
1823 { echo "$as_me:$LINENO: result: $CC" >&5
1824 echo "${ECHO_T}$CC" >&6; }
1825 else
1826 { echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6; }
1832 if test -z "$CC"; then
1833 if test -n "$ac_tool_prefix"; then
1834 for ac_prog in cl.exe
1836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC="$CC" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1849 IFS=$as_save_IFS
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
1857 done
1858 done
1859 IFS=$as_save_IFS
1863 CC=$ac_cv_prog_CC
1864 if test -n "$CC"; then
1865 { echo "$as_me:$LINENO: result: $CC" >&5
1866 echo "${ECHO_T}$CC" >&6; }
1867 else
1868 { echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6; }
1873 test -n "$CC" && break
1874 done
1876 if test -z "$CC"; then
1877 ac_ct_CC=$CC
1878 for ac_prog in cl.exe
1880 # Extract the first word of "$ac_prog", so it can be a program name with args.
1881 set dummy $ac_prog; ac_word=$2
1882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887 if test -n "$ac_ct_CC"; then
1888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1897 ac_cv_prog_ac_ct_CC="$ac_prog"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1901 done
1902 done
1903 IFS=$as_save_IFS
1907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1908 if test -n "$ac_ct_CC"; then
1909 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1910 echo "${ECHO_T}$ac_ct_CC" >&6; }
1911 else
1912 { echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6; }
1917 test -n "$ac_ct_CC" && break
1918 done
1920 if test "x$ac_ct_CC" = x; then
1921 CC=""
1922 else
1923 case $cross_compiling:$ac_tool_warned in
1924 yes:)
1925 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1926 whose name does not start with the host triplet. If you think this
1927 configuration is useful to you, please write to autoconf@gnu.org." >&5
1928 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1929 whose name does not start with the host triplet. If you think this
1930 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1931 ac_tool_warned=yes ;;
1932 esac
1933 CC=$ac_ct_CC
1940 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: no acceptable C compiler found in \$PATH
1943 See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }
1946 # Provide some information about the compiler.
1947 echo "$as_me:$LINENO: checking for C compiler version" >&5
1948 ac_compiler=`set X $ac_compile; echo $2`
1949 { (ac_try="$ac_compiler --version >&5"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1955 (eval "$ac_compiler --version >&5") 2>&5
1956 ac_status=$?
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }
1959 { (ac_try="$ac_compiler -v >&5"
1960 case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1965 (eval "$ac_compiler -v >&5") 2>&5
1966 ac_status=$?
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); }
1969 { (ac_try="$ac_compiler -V >&5"
1970 case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1975 (eval "$ac_compiler -V >&5") 2>&5
1976 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }
1980 cat >conftest.$ac_ext <<_ACEOF
1981 /* confdefs.h. */
1982 _ACEOF
1983 cat confdefs.h >>conftest.$ac_ext
1984 cat >>conftest.$ac_ext <<_ACEOF
1985 /* end confdefs.h. */
1988 main ()
1992 return 0;
1994 _ACEOF
1995 ac_clean_files_save=$ac_clean_files
1996 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1997 # Try to create an executable without -o first, disregard a.out.
1998 # It will help us diagnose broken compilers, and finding out an intuition
1999 # of exeext.
2000 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2001 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2002 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2004 # List of possible output files, starting from the most likely.
2005 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2006 # only as a last resort. b.out is created by i960 compilers.
2007 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2009 # The IRIX 6 linker writes into existing files which may not be
2010 # executable, retaining their permissions. Remove them first so a
2011 # subsequent execution test works.
2012 ac_rmfiles=
2013 for ac_file in $ac_files
2015 case $ac_file in
2016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2017 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2018 esac
2019 done
2020 rm -f $ac_rmfiles
2022 if { (ac_try="$ac_link_default"
2023 case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2028 (eval "$ac_link_default") 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; then
2032 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2033 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2034 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2035 # so that the user can short-circuit this test for compilers unknown to
2036 # Autoconf.
2037 for ac_file in $ac_files ''
2039 test -f "$ac_file" || continue
2040 case $ac_file in
2041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2043 [ab].out )
2044 # We found the default executable, but exeext='' is most
2045 # certainly right.
2046 break;;
2047 *.* )
2048 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2049 then :; else
2050 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2052 # We set ac_cv_exeext here because the later test for it is not
2053 # safe: cross compilers may not add the suffix if given an `-o'
2054 # argument, so we may need to know it at that point already.
2055 # Even if this section looks crufty: it has the advantage of
2056 # actually working.
2057 break;;
2059 break;;
2060 esac
2061 done
2062 test "$ac_cv_exeext" = no && ac_cv_exeext=
2064 else
2065 ac_file=''
2068 { echo "$as_me:$LINENO: result: $ac_file" >&5
2069 echo "${ECHO_T}$ac_file" >&6; }
2070 if test -z "$ac_file"; then
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: C compiler cannot create executables
2077 See \`config.log' for more details." >&2;}
2078 { (exit 77); exit 77; }; }
2081 ac_exeext=$ac_cv_exeext
2083 # Check that the compiler produces executables we can run. If not, either
2084 # the compiler is broken, or we cross compile.
2085 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2086 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2087 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2088 # If not cross compiling, check that we can run a simple program.
2089 if test "$cross_compiling" != yes; then
2090 if { ac_try='./$ac_file'
2091 { (case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094 esac
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_try") 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2100 cross_compiling=no
2101 else
2102 if test "$cross_compiling" = maybe; then
2103 cross_compiling=yes
2104 else
2105 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2106 If you meant to cross compile, use \`--host'.
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: cannot run C compiled programs.
2109 If you meant to cross compile, use \`--host'.
2110 See \`config.log' for more details." >&2;}
2111 { (exit 1); exit 1; }; }
2115 { echo "$as_me:$LINENO: result: yes" >&5
2116 echo "${ECHO_T}yes" >&6; }
2118 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2119 ac_clean_files=$ac_clean_files_save
2120 # Check that the compiler produces executables we can run. If not, either
2121 # the compiler is broken, or we cross compile.
2122 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2123 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2124 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2125 echo "${ECHO_T}$cross_compiling" >&6; }
2127 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2128 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2129 if { (ac_try="$ac_link"
2130 case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133 esac
2134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135 (eval "$ac_link") 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; then
2139 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2140 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2141 # work properly (i.e., refer to `conftest.exe'), while it won't with
2142 # `rm'.
2143 for ac_file in conftest.exe conftest conftest.*; do
2144 test -f "$ac_file" || continue
2145 case $ac_file in
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2147 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148 break;;
2149 * ) break;;
2150 esac
2151 done
2152 else
2153 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2156 See \`config.log' for more details." >&2;}
2157 { (exit 1); exit 1; }; }
2160 rm -f conftest$ac_cv_exeext
2161 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2162 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2164 rm -f conftest.$ac_ext
2165 EXEEXT=$ac_cv_exeext
2166 ac_exeext=$EXEEXT
2167 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2168 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2169 if test "${ac_cv_objext+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172 cat >conftest.$ac_ext <<_ACEOF
2173 /* confdefs.h. */
2174 _ACEOF
2175 cat confdefs.h >>conftest.$ac_ext
2176 cat >>conftest.$ac_ext <<_ACEOF
2177 /* end confdefs.h. */
2180 main ()
2184 return 0;
2186 _ACEOF
2187 rm -f conftest.o conftest.obj
2188 if { (ac_try="$ac_compile"
2189 case "(($ac_try" in
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2192 esac
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194 (eval "$ac_compile") 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; then
2198 for ac_file in conftest.o conftest.obj conftest.*; do
2199 test -f "$ac_file" || continue;
2200 case $ac_file in
2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2203 break;;
2204 esac
2205 done
2206 else
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2210 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2213 See \`config.log' for more details." >&2;}
2214 { (exit 1); exit 1; }; }
2217 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2219 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2220 echo "${ECHO_T}$ac_cv_objext" >&6; }
2221 OBJEXT=$ac_cv_objext
2222 ac_objext=$OBJEXT
2223 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2224 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2225 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228 cat >conftest.$ac_ext <<_ACEOF
2229 /* confdefs.h. */
2230 _ACEOF
2231 cat confdefs.h >>conftest.$ac_ext
2232 cat >>conftest.$ac_ext <<_ACEOF
2233 /* end confdefs.h. */
2236 main ()
2238 #ifndef __GNUC__
2239 choke me
2240 #endif
2243 return 0;
2245 _ACEOF
2246 rm -f conftest.$ac_objext
2247 if { (ac_try="$ac_compile"
2248 case "(($ac_try" in
2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 *) ac_try_echo=$ac_try;;
2251 esac
2252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2253 (eval "$ac_compile") 2>conftest.er1
2254 ac_status=$?
2255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } && {
2260 test -z "$ac_c_werror_flag" ||
2261 test ! -s conftest.err
2262 } && test -s conftest.$ac_objext; then
2263 ac_compiler_gnu=yes
2264 else
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2268 ac_compiler_gnu=no
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2275 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2276 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2277 GCC=`test $ac_compiler_gnu = yes && echo yes`
2278 ac_test_CFLAGS=${CFLAGS+set}
2279 ac_save_CFLAGS=$CFLAGS
2280 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2281 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2282 if test "${ac_cv_prog_cc_g+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 ac_save_c_werror_flag=$ac_c_werror_flag
2286 ac_c_werror_flag=yes
2287 ac_cv_prog_cc_g=no
2288 CFLAGS="-g"
2289 cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h. */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2297 main ()
2301 return 0;
2303 _ACEOF
2304 rm -f conftest.$ac_objext
2305 if { (ac_try="$ac_compile"
2306 case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309 esac
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_compile") 2>conftest.er1
2312 ac_status=$?
2313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } && {
2318 test -z "$ac_c_werror_flag" ||
2319 test ! -s conftest.err
2320 } && test -s conftest.$ac_objext; then
2321 ac_cv_prog_cc_g=yes
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2326 CFLAGS=""
2327 cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h. */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2335 main ()
2339 return 0;
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (ac_try="$ac_compile"
2344 case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347 esac
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349 (eval "$ac_compile") 2>conftest.er1
2350 ac_status=$?
2351 grep -v '^ *+' conftest.er1 >conftest.err
2352 rm -f conftest.er1
2353 cat conftest.err >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } && {
2356 test -z "$ac_c_werror_flag" ||
2357 test ! -s conftest.err
2358 } && test -s conftest.$ac_objext; then
2360 else
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2364 ac_c_werror_flag=$ac_save_c_werror_flag
2365 CFLAGS="-g"
2366 cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h. */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2374 main ()
2378 return 0;
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (ac_try="$ac_compile"
2383 case "(($ac_try" in
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2386 esac
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388 (eval "$ac_compile") 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } && {
2395 test -z "$ac_c_werror_flag" ||
2396 test ! -s conftest.err
2397 } && test -s conftest.$ac_objext; then
2398 ac_cv_prog_cc_g=yes
2399 else
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ac_c_werror_flag=$ac_save_c_werror_flag
2415 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2417 if test "$ac_test_CFLAGS" = set; then
2418 CFLAGS=$ac_save_CFLAGS
2419 elif test $ac_cv_prog_cc_g = yes; then
2420 if test "$GCC" = yes; then
2421 CFLAGS="-g -O2"
2422 else
2423 CFLAGS="-g"
2425 else
2426 if test "$GCC" = yes; then
2427 CFLAGS="-O2"
2428 else
2429 CFLAGS=
2432 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2433 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_cc_c89+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 ac_cv_prog_cc_c89=no
2438 ac_save_CC=$CC
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2445 #include <stdarg.h>
2446 #include <stdio.h>
2447 #include <sys/types.h>
2448 #include <sys/stat.h>
2449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2450 struct buf { int x; };
2451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2452 static char *e (p, i)
2453 char **p;
2454 int i;
2456 return p[i];
2458 static char *f (char * (*g) (char **, int), char **p, ...)
2460 char *s;
2461 va_list v;
2462 va_start (v,p);
2463 s = g (p, va_arg (v,int));
2464 va_end (v);
2465 return s;
2468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2469 function prototypes and stuff, but not '\xHH' hex character constants.
2470 These don't provoke an error unfortunately, instead are silently treated
2471 as 'x'. The following induces an error, until -std is added to get
2472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2473 array size at least. It's necessary to write '\x00'==0 to get something
2474 that's true only with -std. */
2475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2478 inside strings and character constants. */
2479 #define FOO(x) 'x'
2480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2486 int argc;
2487 char **argv;
2489 main ()
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2493 return 0;
2495 _ACEOF
2496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2499 CC="$ac_save_CC $ac_arg"
2500 rm -f conftest.$ac_objext
2501 if { (ac_try="$ac_compile"
2502 case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2505 esac
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_compile") 2>conftest.er1
2508 ac_status=$?
2509 grep -v '^ *+' conftest.er1 >conftest.err
2510 rm -f conftest.er1
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } && {
2514 test -z "$ac_c_werror_flag" ||
2515 test ! -s conftest.err
2516 } && test -s conftest.$ac_objext; then
2517 ac_cv_prog_cc_c89=$ac_arg
2518 else
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2525 rm -f core conftest.err conftest.$ac_objext
2526 test "x$ac_cv_prog_cc_c89" != "xno" && break
2527 done
2528 rm -f conftest.$ac_ext
2529 CC=$ac_save_CC
2532 # AC_CACHE_VAL
2533 case "x$ac_cv_prog_cc_c89" in
2535 { echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6; } ;;
2537 xno)
2538 { echo "$as_me:$LINENO: result: unsupported" >&5
2539 echo "${ECHO_T}unsupported" >&6; } ;;
2541 CC="$CC $ac_cv_prog_cc_c89"
2542 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2543 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2544 esac
2547 ac_ext=c
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558 ac_config_headers="$ac_config_headers config.h"
2561 { echo "$as_me:$LINENO: checking for library containing res_mkquery" >&5
2562 echo $ECHO_N "checking for library containing res_mkquery... $ECHO_C" >&6; }
2563 if test "${ac_cv_search_res_mkquery+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566 ac_func_search_save_LIBS=$LIBS
2567 cat >conftest.$ac_ext <<_ACEOF
2568 /* confdefs.h. */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2574 /* Override any GCC internal prototype to avoid an error.
2575 Use char because int might match the return type of a GCC
2576 builtin and then its argument prototype would still apply. */
2577 #ifdef __cplusplus
2578 extern "C"
2579 #endif
2580 char res_mkquery ();
2582 main ()
2584 return res_mkquery ();
2586 return 0;
2588 _ACEOF
2589 for ac_lib in '' resolv bind; do
2590 if test -z "$ac_lib"; then
2591 ac_res="none required"
2592 else
2593 ac_res=-l$ac_lib
2594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2596 rm -f conftest.$ac_objext conftest$ac_exeext
2597 if { (ac_try="$ac_link"
2598 case "(($ac_try" in
2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600 *) ac_try_echo=$ac_try;;
2601 esac
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603 (eval "$ac_link") 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } && {
2610 test -z "$ac_c_werror_flag" ||
2611 test ! -s conftest.err
2612 } && test -s conftest$ac_exeext &&
2613 $as_test_x conftest$ac_exeext; then
2614 ac_cv_search_res_mkquery=$ac_res
2615 else
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2623 conftest$ac_exeext
2624 if test "${ac_cv_search_res_mkquery+set}" = set; then
2625 break
2627 done
2628 if test "${ac_cv_search_res_mkquery+set}" = set; then
2630 else
2631 ac_cv_search_res_mkquery=no
2633 rm conftest.$ac_ext
2634 LIBS=$ac_func_search_save_LIBS
2636 { echo "$as_me:$LINENO: result: $ac_cv_search_res_mkquery" >&5
2637 echo "${ECHO_T}$ac_cv_search_res_mkquery" >&6; }
2638 ac_res=$ac_cv_search_res_mkquery
2639 if test "$ac_res" != no; then
2640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2644 { echo "$as_me:$LINENO: checking for library containing __res_mkquery" >&5
2645 echo $ECHO_N "checking for library containing __res_mkquery... $ECHO_C" >&6; }
2646 if test "${ac_cv_search___res_mkquery+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649 ac_func_search_save_LIBS=$LIBS
2650 cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h. */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2657 /* Override any GCC internal prototype to avoid an error.
2658 Use char because int might match the return type of a GCC
2659 builtin and then its argument prototype would still apply. */
2660 #ifdef __cplusplus
2661 extern "C"
2662 #endif
2663 char __res_mkquery ();
2665 main ()
2667 return __res_mkquery ();
2669 return 0;
2671 _ACEOF
2672 for ac_lib in '' resolv bind; do
2673 if test -z "$ac_lib"; then
2674 ac_res="none required"
2675 else
2676 ac_res=-l$ac_lib
2677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2679 rm -f conftest.$ac_objext conftest$ac_exeext
2680 if { (ac_try="$ac_link"
2681 case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684 esac
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_link") 2>conftest.er1
2687 ac_status=$?
2688 grep -v '^ *+' conftest.er1 >conftest.err
2689 rm -f conftest.er1
2690 cat conftest.err >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } && {
2693 test -z "$ac_c_werror_flag" ||
2694 test ! -s conftest.err
2695 } && test -s conftest$ac_exeext &&
2696 $as_test_x conftest$ac_exeext; then
2697 ac_cv_search___res_mkquery=$ac_res
2698 else
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2706 conftest$ac_exeext
2707 if test "${ac_cv_search___res_mkquery+set}" = set; then
2708 break
2710 done
2711 if test "${ac_cv_search___res_mkquery+set}" = set; then
2713 else
2714 ac_cv_search___res_mkquery=no
2716 rm conftest.$ac_ext
2717 LIBS=$ac_func_search_save_LIBS
2719 { echo "$as_me:$LINENO: result: $ac_cv_search___res_mkquery" >&5
2720 echo "${ECHO_T}$ac_cv_search___res_mkquery" >&6; }
2721 ac_res=$ac_cv_search___res_mkquery
2722 if test "$ac_res" != no; then
2723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2728 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
2729 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
2730 if test "${ac_cv_lib_socket_socket+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733 ac_check_lib_save_LIBS=$LIBS
2734 LIBS="-lsocket $LIBS"
2735 cat >conftest.$ac_ext <<_ACEOF
2736 /* confdefs.h. */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2742 /* Override any GCC internal prototype to avoid an error.
2743 Use char because int might match the return type of a GCC
2744 builtin and then its argument prototype would still apply. */
2745 #ifdef __cplusplus
2746 extern "C"
2747 #endif
2748 char socket ();
2750 main ()
2752 return socket ();
2754 return 0;
2756 _ACEOF
2757 rm -f conftest.$ac_objext conftest$ac_exeext
2758 if { (ac_try="$ac_link"
2759 case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762 esac
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_link") 2>conftest.er1
2765 ac_status=$?
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } && {
2771 test -z "$ac_c_werror_flag" ||
2772 test ! -s conftest.err
2773 } && test -s conftest$ac_exeext &&
2774 $as_test_x conftest$ac_exeext; then
2775 ac_cv_lib_socket_socket=yes
2776 else
2777 echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2780 ac_cv_lib_socket_socket=no
2783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2784 conftest$ac_exeext conftest.$ac_ext
2785 LIBS=$ac_check_lib_save_LIBS
2787 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
2788 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
2789 if test $ac_cv_lib_socket_socket = yes; then
2790 cat >>confdefs.h <<_ACEOF
2791 #define HAVE_LIBSOCKET 1
2792 _ACEOF
2794 LIBS="-lsocket $LIBS"
2799 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
2800 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
2801 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804 ac_check_lib_save_LIBS=$LIBS
2805 LIBS="-lnsl $LIBS"
2806 cat >conftest.$ac_ext <<_ACEOF
2807 /* confdefs.h. */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2813 /* Override any GCC internal prototype to avoid an error.
2814 Use char because int might match the return type of a GCC
2815 builtin and then its argument prototype would still apply. */
2816 #ifdef __cplusplus
2817 extern "C"
2818 #endif
2819 char inet_ntoa ();
2821 main ()
2823 return inet_ntoa ();
2825 return 0;
2827 _ACEOF
2828 rm -f conftest.$ac_objext conftest$ac_exeext
2829 if { (ac_try="$ac_link"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_link") 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } && {
2842 test -z "$ac_c_werror_flag" ||
2843 test ! -s conftest.err
2844 } && test -s conftest$ac_exeext &&
2845 $as_test_x conftest$ac_exeext; then
2846 ac_cv_lib_nsl_inet_ntoa=yes
2847 else
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2851 ac_cv_lib_nsl_inet_ntoa=no
2854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2855 conftest$ac_exeext conftest.$ac_ext
2856 LIBS=$ac_check_lib_save_LIBS
2858 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
2859 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
2860 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
2861 cat >>confdefs.h <<_ACEOF
2862 #define HAVE_LIBNSL 1
2863 _ACEOF
2865 LIBS="-lnsl $LIBS"
2870 for ac_func in gethostbyname2
2872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
2874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
2875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2886 #define $ac_func innocuous_$ac_func
2888 /* System header to define __stub macros and hopefully few prototypes,
2889 which can conflict with char $ac_func (); below.
2890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2891 <limits.h> exists even on freestanding compilers. */
2893 #ifdef __STDC__
2894 # include <limits.h>
2895 #else
2896 # include <assert.h>
2897 #endif
2899 #undef $ac_func
2901 /* Override any GCC internal prototype to avoid an error.
2902 Use char because int might match the return type of a GCC
2903 builtin and then its argument prototype would still apply. */
2904 #ifdef __cplusplus
2905 extern "C"
2906 #endif
2907 char $ac_func ();
2908 /* The GNU C library defines this for functions which it implements
2909 to always fail with ENOSYS. Some functions are actually named
2910 something starting with __ and the normal name is an alias. */
2911 #if defined __stub_$ac_func || defined __stub___$ac_func
2912 choke me
2913 #endif
2916 main ()
2918 return $ac_func ();
2920 return 0;
2922 _ACEOF
2923 rm -f conftest.$ac_objext conftest$ac_exeext
2924 if { (ac_try="$ac_link"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_link") 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } && {
2937 test -z "$ac_c_werror_flag" ||
2938 test ! -s conftest.err
2939 } && test -s conftest$ac_exeext &&
2940 $as_test_x conftest$ac_exeext; then
2941 eval "$as_ac_var=yes"
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 eval "$as_ac_var=no"
2949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2950 conftest$ac_exeext conftest.$ac_ext
2952 ac_res=`eval echo '${'$as_ac_var'}'`
2953 { echo "$as_me:$LINENO: result: $ac_res" >&5
2954 echo "${ECHO_T}$ac_res" >&6; }
2955 if test `eval echo '${'$as_ac_var'}'` = yes; then
2956 cat >>confdefs.h <<_ACEOF
2957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2958 _ACEOF
2961 done
2963 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
2964 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
2965 if test "${ac_cv_func_getaddrinfo+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h. */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
2975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2976 #define getaddrinfo innocuous_getaddrinfo
2978 /* System header to define __stub macros and hopefully few prototypes,
2979 which can conflict with char getaddrinfo (); below.
2980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981 <limits.h> exists even on freestanding compilers. */
2983 #ifdef __STDC__
2984 # include <limits.h>
2985 #else
2986 # include <assert.h>
2987 #endif
2989 #undef getaddrinfo
2991 /* Override any GCC internal prototype to avoid an error.
2992 Use char because int might match the return type of a GCC
2993 builtin and then its argument prototype would still apply. */
2994 #ifdef __cplusplus
2995 extern "C"
2996 #endif
2997 char getaddrinfo ();
2998 /* The GNU C library defines this for functions which it implements
2999 to always fail with ENOSYS. Some functions are actually named
3000 something starting with __ and the normal name is an alias. */
3001 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
3002 choke me
3003 #endif
3006 main ()
3008 return getaddrinfo ();
3010 return 0;
3012 _ACEOF
3013 rm -f conftest.$ac_objext conftest$ac_exeext
3014 if { (ac_try="$ac_link"
3015 case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_link") 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } && {
3027 test -z "$ac_c_werror_flag" ||
3028 test ! -s conftest.err
3029 } && test -s conftest$ac_exeext &&
3030 $as_test_x conftest$ac_exeext; then
3031 ac_cv_func_getaddrinfo=yes
3032 else
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 ac_cv_func_getaddrinfo=no
3039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3040 conftest$ac_exeext conftest.$ac_ext
3042 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
3043 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
3044 if test $ac_cv_func_getaddrinfo = yes; then
3046 cat >>confdefs.h <<\_ACEOF
3047 #define HAVE_GETADDRINFO 1
3048 _ACEOF
3050 else
3051 case " $LIBOBJS " in
3052 *" getaddrinfo.$ac_objext "* ) ;;
3053 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
3055 esac
3059 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
3060 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
3061 if test "${ac_cv_func_getnameinfo+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
3071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3072 #define getnameinfo innocuous_getnameinfo
3074 /* System header to define __stub macros and hopefully few prototypes,
3075 which can conflict with char getnameinfo (); below.
3076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077 <limits.h> exists even on freestanding compilers. */
3079 #ifdef __STDC__
3080 # include <limits.h>
3081 #else
3082 # include <assert.h>
3083 #endif
3085 #undef getnameinfo
3087 /* Override any GCC internal prototype to avoid an error.
3088 Use char because int might match the return type of a GCC
3089 builtin and then its argument prototype would still apply. */
3090 #ifdef __cplusplus
3091 extern "C"
3092 #endif
3093 char getnameinfo ();
3094 /* The GNU C library defines this for functions which it implements
3095 to always fail with ENOSYS. Some functions are actually named
3096 something starting with __ and the normal name is an alias. */
3097 #if defined __stub_getnameinfo || defined __stub___getnameinfo
3098 choke me
3099 #endif
3102 main ()
3104 return getnameinfo ();
3106 return 0;
3108 _ACEOF
3109 rm -f conftest.$ac_objext conftest$ac_exeext
3110 if { (ac_try="$ac_link"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_link") 2>conftest.er1
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && {
3123 test -z "$ac_c_werror_flag" ||
3124 test ! -s conftest.err
3125 } && test -s conftest$ac_exeext &&
3126 $as_test_x conftest$ac_exeext; then
3127 ac_cv_func_getnameinfo=yes
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 ac_cv_func_getnameinfo=no
3135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3136 conftest$ac_exeext conftest.$ac_ext
3138 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
3139 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
3140 if test $ac_cv_func_getnameinfo = yes; then
3142 cat >>confdefs.h <<\_ACEOF
3143 #define HAVE_GETNAMEINFO 1
3144 _ACEOF
3146 else
3147 case " $LIBOBJS " in
3148 *" getnameinfo.$ac_objext "* ) ;;
3149 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
3151 esac
3156 { echo "$as_me:$LINENO: checking for socklen_t" >&5
3157 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
3158 if test "${ac_cv_type_socklen_t+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3162 cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h. */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168 #include <sys/types.h>
3169 #include <sys/socket.h>
3171 main ()
3173 socklen_t len = 42; return len;
3175 return 0;
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (ac_try="$ac_compile"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_compile") 2>conftest.er1
3186 ac_status=$?
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } && {
3192 test -z "$ac_c_werror_flag" ||
3193 test ! -s conftest.err
3194 } && test -s conftest.$ac_objext; then
3195 ac_cv_type_socklen_t=yes
3196 else
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 ac_cv_type_socklen_t=no
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
3207 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
3208 if test $ac_cv_type_socklen_t != yes; then
3210 cat >>confdefs.h <<\_ACEOF
3211 #define socklen_t int
3212 _ACEOF
3216 { echo "$as_me:$LINENO: checking for sa_len" >&5
3217 echo $ECHO_N "checking for sa_len... $ECHO_C" >&6; }
3218 if test "${ac_cv_sa_len+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 #include <sys/types.h>
3229 #include <sys/socket.h>
3231 main ()
3233 struct sockaddr sa; sa.sa_len = 0;
3235 return 0;
3237 _ACEOF
3238 rm -f conftest.$ac_objext
3239 if { (ac_try="$ac_compile"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_compile") 2>conftest.er1
3246 ac_status=$?
3247 grep -v '^ *+' conftest.er1 >conftest.err
3248 rm -f conftest.er1
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } && {
3252 test -z "$ac_c_werror_flag" ||
3253 test ! -s conftest.err
3254 } && test -s conftest.$ac_objext; then
3255 ac_cv_sa_len=yes
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 ac_cv_sa_len=no
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 { echo "$as_me:$LINENO: result: $ac_cv_sa_len" >&5
3267 echo "${ECHO_T}$ac_cv_sa_len" >&6; }
3268 if test $ac_cv_sa_len = yes; then
3270 cat >>confdefs.h <<\_ACEOF
3271 #define HAVE_SA_LEN 1
3272 _ACEOF
3277 ac_config_files="$ac_config_files Makefile"
3279 cat >confcache <<\_ACEOF
3280 # This file is a shell script that caches the results of configure
3281 # tests run on this system so they can be shared between configure
3282 # scripts and configure runs, see configure's option --config-cache.
3283 # It is not useful on other systems. If it contains results you don't
3284 # want to keep, you may remove or edit it.
3286 # config.status only pays attention to the cache file if you give it
3287 # the --recheck option to rerun configure.
3289 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3290 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3291 # following values.
3293 _ACEOF
3295 # The following way of writing the cache mishandles newlines in values,
3296 # but we know of no workaround that is simple, portable, and efficient.
3297 # So, we kill variables containing newlines.
3298 # Ultrix sh set writes to stderr and can't be redirected directly,
3299 # and sets the high bit in the cache file unless we assign to the vars.
3301 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3302 eval ac_val=\$$ac_var
3303 case $ac_val in #(
3304 *${as_nl}*)
3305 case $ac_var in #(
3306 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3307 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3308 esac
3309 case $ac_var in #(
3310 _ | IFS | as_nl) ;; #(
3311 *) $as_unset $ac_var ;;
3312 esac ;;
3313 esac
3314 done
3316 (set) 2>&1 |
3317 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3318 *${as_nl}ac_space=\ *)
3319 # `set' does not quote correctly, so add quotes (double-quote
3320 # substitution turns \\\\ into \\, and sed turns \\ into \).
3321 sed -n \
3322 "s/'/'\\\\''/g;
3323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3324 ;; #(
3326 # `set' quotes correctly as required by POSIX, so do not add quotes.
3327 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3329 esac |
3330 sort
3332 sed '
3333 /^ac_cv_env_/b end
3334 t clear
3335 :clear
3336 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3337 t end
3338 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3339 :end' >>confcache
3340 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3341 if test -w "$cache_file"; then
3342 test "x$cache_file" != "x/dev/null" &&
3343 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3344 echo "$as_me: updating cache $cache_file" >&6;}
3345 cat confcache >$cache_file
3346 else
3347 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3348 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3351 rm -f confcache
3353 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3354 # Let make expand exec_prefix.
3355 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3357 DEFS=-DHAVE_CONFIG_H
3359 ac_libobjs=
3360 ac_ltlibobjs=
3361 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3362 # 1. Remove the extension, and $U if already installed.
3363 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3364 ac_i=`echo "$ac_i" | sed "$ac_script"`
3365 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3366 # will be set to the directory where LIBOBJS objects are built.
3367 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3368 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3369 done
3370 LIBOBJS=$ac_libobjs
3372 LTLIBOBJS=$ac_ltlibobjs
3376 : ${CONFIG_STATUS=./config.status}
3377 ac_clean_files_save=$ac_clean_files
3378 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3379 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3380 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3381 cat >$CONFIG_STATUS <<_ACEOF
3382 #! $SHELL
3383 # Generated by $as_me.
3384 # Run this file to recreate the current configuration.
3385 # Compiler output produced by configure, useful for debugging
3386 # configure, is in config.log if it exists.
3388 debug=false
3389 ac_cs_recheck=false
3390 ac_cs_silent=false
3391 SHELL=\${CONFIG_SHELL-$SHELL}
3392 _ACEOF
3394 cat >>$CONFIG_STATUS <<\_ACEOF
3395 ## --------------------- ##
3396 ## M4sh Initialization. ##
3397 ## --------------------- ##
3399 # Be more Bourne compatible
3400 DUALCASE=1; export DUALCASE # for MKS sh
3401 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3402 emulate sh
3403 NULLCMD=:
3404 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3405 # is contrary to our usage. Disable this feature.
3406 alias -g '${1+"$@"}'='"$@"'
3407 setopt NO_GLOB_SUBST
3408 else
3409 case `(set -o) 2>/dev/null` in
3410 *posix*) set -o posix ;;
3411 esac
3418 # PATH needs CR
3419 # Avoid depending upon Character Ranges.
3420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3423 as_cr_digits='0123456789'
3424 as_cr_alnum=$as_cr_Letters$as_cr_digits
3426 # The user is always right.
3427 if test "${PATH_SEPARATOR+set}" != set; then
3428 echo "#! /bin/sh" >conf$$.sh
3429 echo "exit 0" >>conf$$.sh
3430 chmod +x conf$$.sh
3431 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3432 PATH_SEPARATOR=';'
3433 else
3434 PATH_SEPARATOR=:
3436 rm -f conf$$.sh
3439 # Support unset when possible.
3440 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3441 as_unset=unset
3442 else
3443 as_unset=false
3447 # IFS
3448 # We need space, tab and new line, in precisely that order. Quoting is
3449 # there to prevent editors from complaining about space-tab.
3450 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3451 # splitting by setting IFS to empty value.)
3452 as_nl='
3454 IFS=" "" $as_nl"
3456 # Find who we are. Look in the path if we contain no directory separator.
3457 case $0 in
3458 *[\\/]* ) as_myself=$0 ;;
3459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3465 done
3466 IFS=$as_save_IFS
3469 esac
3470 # We did not find ourselves, most probably we were run as `sh COMMAND'
3471 # in which case we are not to be found in the path.
3472 if test "x$as_myself" = x; then
3473 as_myself=$0
3475 if test ! -f "$as_myself"; then
3476 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3477 { (exit 1); exit 1; }
3480 # Work around bugs in pre-3.0 UWIN ksh.
3481 for as_var in ENV MAIL MAILPATH
3482 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3483 done
3484 PS1='$ '
3485 PS2='> '
3486 PS4='+ '
3488 # NLS nuisances.
3489 for as_var in \
3490 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3491 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3492 LC_TELEPHONE LC_TIME
3494 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3495 eval $as_var=C; export $as_var
3496 else
3497 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3499 done
3501 # Required to use basename.
3502 if expr a : '\(a\)' >/dev/null 2>&1 &&
3503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3504 as_expr=expr
3505 else
3506 as_expr=false
3509 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3510 as_basename=basename
3511 else
3512 as_basename=false
3516 # Name of the executable.
3517 as_me=`$as_basename -- "$0" ||
3518 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3519 X"$0" : 'X\(//\)$' \| \
3520 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3521 echo X/"$0" |
3522 sed '/^.*\/\([^/][^/]*\)\/*$/{
3523 s//\1/
3526 /^X\/\(\/\/\)$/{
3527 s//\1/
3530 /^X\/\(\/\).*/{
3531 s//\1/
3534 s/.*/./; q'`
3536 # CDPATH.
3537 $as_unset CDPATH
3541 as_lineno_1=$LINENO
3542 as_lineno_2=$LINENO
3543 test "x$as_lineno_1" != "x$as_lineno_2" &&
3544 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3546 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3547 # uniformly replaced by the line number. The first 'sed' inserts a
3548 # line-number line after each line using $LINENO; the second 'sed'
3549 # does the real work. The second script uses 'N' to pair each
3550 # line-number line with the line containing $LINENO, and appends
3551 # trailing '-' during substitution so that $LINENO is not a special
3552 # case at line end.
3553 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3554 # scripts with optimization help from Paolo Bonzini. Blame Lee
3555 # E. McMahon (1931-1989) for sed's syntax. :-)
3556 sed -n '
3558 /[$]LINENO/=
3559 ' <$as_myself |
3560 sed '
3561 s/[$]LINENO.*/&-/
3562 t lineno
3564 :lineno
3566 :loop
3567 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3568 t loop
3569 s/-\n.*//
3570 ' >$as_me.lineno &&
3571 chmod +x "$as_me.lineno" ||
3572 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3573 { (exit 1); exit 1; }; }
3575 # Don't try to exec as it changes $[0], causing all sort of problems
3576 # (the dirname of $[0] is not the place where we might find the
3577 # original and so on. Autoconf is especially sensitive to this).
3578 . "./$as_me.lineno"
3579 # Exit status is that of the last command.
3580 exit
3584 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3585 as_dirname=dirname
3586 else
3587 as_dirname=false
3590 ECHO_C= ECHO_N= ECHO_T=
3591 case `echo -n x` in
3592 -n*)
3593 case `echo 'x\c'` in
3594 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3595 *) ECHO_C='\c';;
3596 esac;;
3598 ECHO_N='-n';;
3599 esac
3601 if expr a : '\(a\)' >/dev/null 2>&1 &&
3602 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3603 as_expr=expr
3604 else
3605 as_expr=false
3608 rm -f conf$$ conf$$.exe conf$$.file
3609 if test -d conf$$.dir; then
3610 rm -f conf$$.dir/conf$$.file
3611 else
3612 rm -f conf$$.dir
3613 mkdir conf$$.dir
3615 echo >conf$$.file
3616 if ln -s conf$$.file conf$$ 2>/dev/null; then
3617 as_ln_s='ln -s'
3618 # ... but there are two gotchas:
3619 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3620 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3621 # In both cases, we have to default to `cp -p'.
3622 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3623 as_ln_s='cp -p'
3624 elif ln conf$$.file conf$$ 2>/dev/null; then
3625 as_ln_s=ln
3626 else
3627 as_ln_s='cp -p'
3629 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3630 rmdir conf$$.dir 2>/dev/null
3632 if mkdir -p . 2>/dev/null; then
3633 as_mkdir_p=:
3634 else
3635 test -d ./-p && rmdir ./-p
3636 as_mkdir_p=false
3639 if test -x / >/dev/null 2>&1; then
3640 as_test_x='test -x'
3641 else
3642 if ls -dL / >/dev/null 2>&1; then
3643 as_ls_L_option=L
3644 else
3645 as_ls_L_option=
3647 as_test_x='
3648 eval sh -c '\''
3649 if test -d "$1"; then
3650 test -d "$1/.";
3651 else
3652 case $1 in
3653 -*)set "./$1";;
3654 esac;
3655 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3656 ???[sx]*):;;*)false;;esac;fi
3657 '\'' sh
3660 as_executable_p=$as_test_x
3662 # Sed expression to map a string onto a valid CPP name.
3663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3665 # Sed expression to map a string onto a valid variable name.
3666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3669 exec 6>&1
3671 # Save the log message, to keep $[0] and so on meaningful, and to
3672 # report actual input values of CONFIG_FILES etc. instead of their
3673 # values after options handling.
3674 ac_log="
3675 This file was extended by $as_me, which was
3676 generated by GNU Autoconf 2.61. Invocation command line was
3678 CONFIG_FILES = $CONFIG_FILES
3679 CONFIG_HEADERS = $CONFIG_HEADERS
3680 CONFIG_LINKS = $CONFIG_LINKS
3681 CONFIG_COMMANDS = $CONFIG_COMMANDS
3682 $ $0 $@
3684 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3687 _ACEOF
3689 cat >>$CONFIG_STATUS <<_ACEOF
3690 # Files that config.status was made for.
3691 config_files="$ac_config_files"
3692 config_headers="$ac_config_headers"
3694 _ACEOF
3696 cat >>$CONFIG_STATUS <<\_ACEOF
3697 ac_cs_usage="\
3698 \`$as_me' instantiates files from templates according to the
3699 current configuration.
3701 Usage: $0 [OPTIONS] [FILE]...
3703 -h, --help print this help, then exit
3704 -V, --version print version number and configuration settings, then exit
3705 -q, --quiet do not print progress messages
3706 -d, --debug don't remove temporary files
3707 --recheck update $as_me by reconfiguring in the same conditions
3708 --file=FILE[:TEMPLATE]
3709 instantiate the configuration file FILE
3710 --header=FILE[:TEMPLATE]
3711 instantiate the configuration header FILE
3713 Configuration files:
3714 $config_files
3716 Configuration headers:
3717 $config_headers
3719 Report bugs to <bug-autoconf@gnu.org>."
3721 _ACEOF
3722 cat >>$CONFIG_STATUS <<_ACEOF
3723 ac_cs_version="\\
3724 config.status
3725 configured by $0, generated by GNU Autoconf 2.61,
3726 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3728 Copyright (C) 2006 Free Software Foundation, Inc.
3729 This config.status script is free software; the Free Software Foundation
3730 gives unlimited permission to copy, distribute and modify it."
3732 ac_pwd='$ac_pwd'
3733 srcdir='$srcdir'
3734 _ACEOF
3736 cat >>$CONFIG_STATUS <<\_ACEOF
3737 # If no file are specified by the user, then we need to provide default
3738 # value. By we need to know if files were specified by the user.
3739 ac_need_defaults=:
3740 while test $# != 0
3742 case $1 in
3743 --*=*)
3744 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3745 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3746 ac_shift=:
3749 ac_option=$1
3750 ac_optarg=$2
3751 ac_shift=shift
3753 esac
3755 case $ac_option in
3756 # Handling of the options.
3757 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3758 ac_cs_recheck=: ;;
3759 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3760 echo "$ac_cs_version"; exit ;;
3761 --debug | --debu | --deb | --de | --d | -d )
3762 debug=: ;;
3763 --file | --fil | --fi | --f )
3764 $ac_shift
3765 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3766 ac_need_defaults=false;;
3767 --header | --heade | --head | --hea )
3768 $ac_shift
3769 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3770 ac_need_defaults=false;;
3771 --he | --h)
3772 # Conflict between --help and --header
3773 { echo "$as_me: error: ambiguous option: $1
3774 Try \`$0 --help' for more information." >&2
3775 { (exit 1); exit 1; }; };;
3776 --help | --hel | -h )
3777 echo "$ac_cs_usage"; exit ;;
3778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3779 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3780 ac_cs_silent=: ;;
3782 # This is an error.
3783 -*) { echo "$as_me: error: unrecognized option: $1
3784 Try \`$0 --help' for more information." >&2
3785 { (exit 1); exit 1; }; } ;;
3787 *) ac_config_targets="$ac_config_targets $1"
3788 ac_need_defaults=false ;;
3790 esac
3791 shift
3792 done
3794 ac_configure_extra_args=
3796 if $ac_cs_silent; then
3797 exec 6>/dev/null
3798 ac_configure_extra_args="$ac_configure_extra_args --silent"
3801 _ACEOF
3802 cat >>$CONFIG_STATUS <<_ACEOF
3803 if \$ac_cs_recheck; then
3804 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3805 CONFIG_SHELL=$SHELL
3806 export CONFIG_SHELL
3807 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3810 _ACEOF
3811 cat >>$CONFIG_STATUS <<\_ACEOF
3812 exec 5>>config.log
3814 echo
3815 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3816 ## Running $as_me. ##
3817 _ASBOX
3818 echo "$ac_log"
3819 } >&5
3821 _ACEOF
3822 cat >>$CONFIG_STATUS <<_ACEOF
3823 _ACEOF
3825 cat >>$CONFIG_STATUS <<\_ACEOF
3827 # Handling of arguments.
3828 for ac_config_target in $ac_config_targets
3830 case $ac_config_target in
3831 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3832 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3835 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3836 { (exit 1); exit 1; }; };;
3837 esac
3838 done
3841 # If the user did not use the arguments to specify the items to instantiate,
3842 # then the envvar interface is used. Set only those that are not.
3843 # We use the long form for the default assignment because of an extremely
3844 # bizarre bug on SunOS 4.1.3.
3845 if $ac_need_defaults; then
3846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3850 # Have a temporary directory for convenience. Make it in the build tree
3851 # simply because there is no reason against having it here, and in addition,
3852 # creating and moving files from /tmp can sometimes cause problems.
3853 # Hook for its removal unless debugging.
3854 # Note that there is a small window in which the directory will not be cleaned:
3855 # after its creation but before its name has been assigned to `$tmp'.
3856 $debug ||
3858 tmp=
3859 trap 'exit_status=$?
3860 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3862 trap '{ (exit 1); exit 1; }' 1 2 13 15
3864 # Create a (secure) tmp directory for tmp files.
3867 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3868 test -n "$tmp" && test -d "$tmp"
3869 } ||
3871 tmp=./conf$$-$RANDOM
3872 (umask 077 && mkdir "$tmp")
3873 } ||
3875 echo "$me: cannot create a temporary directory in ." >&2
3876 { (exit 1); exit 1; }
3880 # Set up the sed scripts for CONFIG_FILES section.
3883 # No need to generate the scripts if there are no CONFIG_FILES.
3884 # This happens for instance when ./config.status config.h
3885 if test -n "$CONFIG_FILES"; then
3887 _ACEOF
3891 ac_delim='%!_!# '
3892 for ac_last_try in false false false false false :; do
3893 cat >conf$$subs.sed <<_ACEOF
3894 SHELL!$SHELL$ac_delim
3895 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
3896 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
3897 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
3898 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
3899 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
3900 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
3901 exec_prefix!$exec_prefix$ac_delim
3902 prefix!$prefix$ac_delim
3903 program_transform_name!$program_transform_name$ac_delim
3904 bindir!$bindir$ac_delim
3905 sbindir!$sbindir$ac_delim
3906 libexecdir!$libexecdir$ac_delim
3907 datarootdir!$datarootdir$ac_delim
3908 datadir!$datadir$ac_delim
3909 sysconfdir!$sysconfdir$ac_delim
3910 sharedstatedir!$sharedstatedir$ac_delim
3911 localstatedir!$localstatedir$ac_delim
3912 includedir!$includedir$ac_delim
3913 oldincludedir!$oldincludedir$ac_delim
3914 docdir!$docdir$ac_delim
3915 infodir!$infodir$ac_delim
3916 htmldir!$htmldir$ac_delim
3917 dvidir!$dvidir$ac_delim
3918 pdfdir!$pdfdir$ac_delim
3919 psdir!$psdir$ac_delim
3920 libdir!$libdir$ac_delim
3921 localedir!$localedir$ac_delim
3922 mandir!$mandir$ac_delim
3923 DEFS!$DEFS$ac_delim
3924 ECHO_C!$ECHO_C$ac_delim
3925 ECHO_N!$ECHO_N$ac_delim
3926 ECHO_T!$ECHO_T$ac_delim
3927 LIBS!$LIBS$ac_delim
3928 build_alias!$build_alias$ac_delim
3929 host_alias!$host_alias$ac_delim
3930 target_alias!$target_alias$ac_delim
3931 CC!$CC$ac_delim
3932 CFLAGS!$CFLAGS$ac_delim
3933 LDFLAGS!$LDFLAGS$ac_delim
3934 CPPFLAGS!$CPPFLAGS$ac_delim
3935 ac_ct_CC!$ac_ct_CC$ac_delim
3936 EXEEXT!$EXEEXT$ac_delim
3937 OBJEXT!$OBJEXT$ac_delim
3938 LIBOBJS!$LIBOBJS$ac_delim
3939 LTLIBOBJS!$LTLIBOBJS$ac_delim
3940 _ACEOF
3942 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
3943 break
3944 elif $ac_last_try; then
3945 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3946 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3947 { (exit 1); exit 1; }; }
3948 else
3949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3951 done
3953 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
3954 if test -n "$ac_eof"; then
3955 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
3956 ac_eof=`expr $ac_eof + 1`
3959 cat >>$CONFIG_STATUS <<_ACEOF
3960 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
3961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
3962 _ACEOF
3963 sed '
3964 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
3965 s/^/s,@/; s/!/@,|#_!!_#|/
3968 s/'"$ac_delim"'$/,g/; t
3969 s/$/\\/; p
3970 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
3971 ' >>$CONFIG_STATUS <conf$$subs.sed
3972 rm -f conf$$subs.sed
3973 cat >>$CONFIG_STATUS <<_ACEOF
3974 :end
3975 s/|#_!!_#|//g
3976 CEOF$ac_eof
3977 _ACEOF
3980 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3981 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3982 # trailing colons and then remove the whole line if VPATH becomes empty
3983 # (actually we leave an empty line to preserve line numbers).
3984 if test "x$srcdir" = x.; then
3985 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3986 s/:*\$(srcdir):*/:/
3987 s/:*\${srcdir}:*/:/
3988 s/:*@srcdir@:*/:/
3989 s/^\([^=]*=[ ]*\):*/\1/
3990 s/:*$//
3991 s/^[^=]*=[ ]*$//
3995 cat >>$CONFIG_STATUS <<\_ACEOF
3996 fi # test -n "$CONFIG_FILES"
3999 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
4001 case $ac_tag in
4002 :[FHLC]) ac_mode=$ac_tag; continue;;
4003 esac
4004 case $ac_mode$ac_tag in
4005 :[FHL]*:*);;
4006 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4007 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4008 { (exit 1); exit 1; }; };;
4009 :[FH]-) ac_tag=-:-;;
4010 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4011 esac
4012 ac_save_IFS=$IFS
4013 IFS=:
4014 set x $ac_tag
4015 IFS=$ac_save_IFS
4016 shift
4017 ac_file=$1
4018 shift
4020 case $ac_mode in
4021 :L) ac_source=$1;;
4022 :[FH])
4023 ac_file_inputs=
4024 for ac_f
4026 case $ac_f in
4027 -) ac_f="$tmp/stdin";;
4028 *) # Look for the file first in the build tree, then in the source tree
4029 # (if the path is not absolute). The absolute path cannot be DOS-style,
4030 # because $ac_f cannot contain `:'.
4031 test -f "$ac_f" ||
4032 case $ac_f in
4033 [\\/$]*) false;;
4034 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4035 esac ||
4036 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4037 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4038 { (exit 1); exit 1; }; };;
4039 esac
4040 ac_file_inputs="$ac_file_inputs $ac_f"
4041 done
4043 # Let's still pretend it is `configure' which instantiates (i.e., don't
4044 # use $as_me), people would be surprised to read:
4045 # /* config.h. Generated by config.status. */
4046 configure_input="Generated from "`IFS=:
4047 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4048 if test x"$ac_file" != x-; then
4049 configure_input="$ac_file. $configure_input"
4050 { echo "$as_me:$LINENO: creating $ac_file" >&5
4051 echo "$as_me: creating $ac_file" >&6;}
4054 case $ac_tag in
4055 *:-:* | *:-) cat >"$tmp/stdin";;
4056 esac
4058 esac
4060 ac_dir=`$as_dirname -- "$ac_file" ||
4061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4062 X"$ac_file" : 'X\(//\)[^/]' \| \
4063 X"$ac_file" : 'X\(//\)$' \| \
4064 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4065 echo X"$ac_file" |
4066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4067 s//\1/
4070 /^X\(\/\/\)[^/].*/{
4071 s//\1/
4074 /^X\(\/\/\)$/{
4075 s//\1/
4078 /^X\(\/\).*/{
4079 s//\1/
4082 s/.*/./; q'`
4083 { as_dir="$ac_dir"
4084 case $as_dir in #(
4085 -*) as_dir=./$as_dir;;
4086 esac
4087 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4088 as_dirs=
4089 while :; do
4090 case $as_dir in #(
4091 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4092 *) as_qdir=$as_dir;;
4093 esac
4094 as_dirs="'$as_qdir' $as_dirs"
4095 as_dir=`$as_dirname -- "$as_dir" ||
4096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4097 X"$as_dir" : 'X\(//\)[^/]' \| \
4098 X"$as_dir" : 'X\(//\)$' \| \
4099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4100 echo X"$as_dir" |
4101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4102 s//\1/
4105 /^X\(\/\/\)[^/].*/{
4106 s//\1/
4109 /^X\(\/\/\)$/{
4110 s//\1/
4113 /^X\(\/\).*/{
4114 s//\1/
4117 s/.*/./; q'`
4118 test -d "$as_dir" && break
4119 done
4120 test -z "$as_dirs" || eval "mkdir $as_dirs"
4121 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4122 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4123 { (exit 1); exit 1; }; }; }
4124 ac_builddir=.
4126 case "$ac_dir" in
4127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4129 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4130 # A ".." for each directory in $ac_dir_suffix.
4131 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4132 case $ac_top_builddir_sub in
4133 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4134 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4135 esac ;;
4136 esac
4137 ac_abs_top_builddir=$ac_pwd
4138 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4139 # for backward compatibility:
4140 ac_top_builddir=$ac_top_build_prefix
4142 case $srcdir in
4143 .) # We are building in place.
4144 ac_srcdir=.
4145 ac_top_srcdir=$ac_top_builddir_sub
4146 ac_abs_top_srcdir=$ac_pwd ;;
4147 [\\/]* | ?:[\\/]* ) # Absolute name.
4148 ac_srcdir=$srcdir$ac_dir_suffix;
4149 ac_top_srcdir=$srcdir
4150 ac_abs_top_srcdir=$srcdir ;;
4151 *) # Relative name.
4152 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4153 ac_top_srcdir=$ac_top_build_prefix$srcdir
4154 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4155 esac
4156 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4159 case $ac_mode in
4162 # CONFIG_FILE
4165 _ACEOF
4167 cat >>$CONFIG_STATUS <<\_ACEOF
4168 # If the template does not know about datarootdir, expand it.
4169 # FIXME: This hack should be removed a few years after 2.60.
4170 ac_datarootdir_hack=; ac_datarootdir_seen=
4172 case `sed -n '/datarootdir/ {
4176 /@datadir@/p
4177 /@docdir@/p
4178 /@infodir@/p
4179 /@localedir@/p
4180 /@mandir@/p
4181 ' $ac_file_inputs` in
4182 *datarootdir*) ac_datarootdir_seen=yes;;
4183 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4184 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4185 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4186 _ACEOF
4187 cat >>$CONFIG_STATUS <<_ACEOF
4188 ac_datarootdir_hack='
4189 s&@datadir@&$datadir&g
4190 s&@docdir@&$docdir&g
4191 s&@infodir@&$infodir&g
4192 s&@localedir@&$localedir&g
4193 s&@mandir@&$mandir&g
4194 s&\\\${datarootdir}&$datarootdir&g' ;;
4195 esac
4196 _ACEOF
4198 # Neutralize VPATH when `$srcdir' = `.'.
4199 # Shell code in configure.ac might set extrasub.
4200 # FIXME: do we really want to maintain this feature?
4201 cat >>$CONFIG_STATUS <<_ACEOF
4202 sed "$ac_vpsub
4203 $extrasub
4204 _ACEOF
4205 cat >>$CONFIG_STATUS <<\_ACEOF
4207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4208 s&@configure_input@&$configure_input&;t t
4209 s&@top_builddir@&$ac_top_builddir_sub&;t t
4210 s&@srcdir@&$ac_srcdir&;t t
4211 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4212 s&@top_srcdir@&$ac_top_srcdir&;t t
4213 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4214 s&@builddir@&$ac_builddir&;t t
4215 s&@abs_builddir@&$ac_abs_builddir&;t t
4216 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4217 $ac_datarootdir_hack
4218 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4220 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4221 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4222 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4223 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4224 which seems to be undefined. Please make sure it is defined." >&5
4225 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4226 which seems to be undefined. Please make sure it is defined." >&2;}
4228 rm -f "$tmp/stdin"
4229 case $ac_file in
4230 -) cat "$tmp/out"; rm -f "$tmp/out";;
4231 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4232 esac
4236 # CONFIG_HEADER
4238 _ACEOF
4240 # Transform confdefs.h into a sed script `conftest.defines', that
4241 # substitutes the proper values into config.h.in to produce config.h.
4242 rm -f conftest.defines conftest.tail
4243 # First, append a space to every undef/define line, to ease matching.
4244 echo 's/$/ /' >conftest.defines
4245 # Then, protect against being on the right side of a sed subst, or in
4246 # an unquoted here document, in config.status. If some macros were
4247 # called several times there might be several #defines for the same
4248 # symbol, which is useless. But do not sort them, since the last
4249 # AC_DEFINE must be honored.
4250 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4251 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
4252 # NAME is the cpp macro being defined, VALUE is the value it is being given.
4253 # PARAMS is the parameter list in the macro definition--in most cases, it's
4254 # just an empty string.
4255 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
4256 ac_dB='\\)[ (].*,\\1define\\2'
4257 ac_dC=' '
4258 ac_dD=' ,'
4260 uniq confdefs.h |
4261 sed -n '
4262 t rset
4263 :rset
4264 s/^[ ]*#[ ]*define[ ][ ]*//
4265 t ok
4268 s/[\\&,]/\\&/g
4269 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
4270 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
4271 ' >>conftest.defines
4273 # Remove the space that was appended to ease matching.
4274 # Then replace #undef with comments. This is necessary, for
4275 # example, in the case of _POSIX_SOURCE, which is predefined and required
4276 # on some systems where configure will not decide to define it.
4277 # (The regexp can be short, since the line contains either #define or #undef.)
4278 echo 's/ $//
4279 s,^[ #]*u.*,/* & */,' >>conftest.defines
4281 # Break up conftest.defines:
4282 ac_max_sed_lines=50
4284 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
4285 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
4286 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
4287 # et cetera.
4288 ac_in='$ac_file_inputs'
4289 ac_out='"$tmp/out1"'
4290 ac_nxt='"$tmp/out2"'
4292 while :
4294 # Write a here document:
4295 cat >>$CONFIG_STATUS <<_ACEOF
4296 # First, check the format of the line:
4297 cat >"\$tmp/defines.sed" <<\\CEOF
4298 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
4299 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
4301 :def
4302 _ACEOF
4303 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
4304 echo 'CEOF
4305 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
4306 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
4307 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
4308 grep . conftest.tail >/dev/null || break
4309 rm -f conftest.defines
4310 mv conftest.tail conftest.defines
4311 done
4312 rm -f conftest.defines conftest.tail
4314 echo "ac_result=$ac_in" >>$CONFIG_STATUS
4315 cat >>$CONFIG_STATUS <<\_ACEOF
4316 if test x"$ac_file" != x-; then
4317 echo "/* $configure_input */" >"$tmp/config.h"
4318 cat "$ac_result" >>"$tmp/config.h"
4319 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
4320 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4321 echo "$as_me: $ac_file is unchanged" >&6;}
4322 else
4323 rm -f $ac_file
4324 mv "$tmp/config.h" $ac_file
4326 else
4327 echo "/* $configure_input */"
4328 cat "$ac_result"
4330 rm -f "$tmp/out12"
4334 esac
4336 done # for ac_tag
4339 { (exit 0); exit 0; }
4340 _ACEOF
4341 chmod +x $CONFIG_STATUS
4342 ac_clean_files=$ac_clean_files_save
4345 # configure is writing to config.log, and then calls config.status.
4346 # config.status does its own redirection, appending to config.log.
4347 # Unfortunately, on DOS this fails, as config.log is still kept open
4348 # by configure, so config.status won't be able to write to it; its
4349 # output is simply discarded. So we exec the FD to /dev/null,
4350 # effectively closing config.log, so it can be properly (re)opened and
4351 # appended to by config.status. When coming back to configure, we
4352 # need to make the FD available again.
4353 if test "$no_create" != yes; then
4354 ac_cs_success=:
4355 ac_config_status_args=
4356 test "$silent" = yes &&
4357 ac_config_status_args="$ac_config_status_args --quiet"
4358 exec 5>/dev/null
4359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4360 exec 5>>config.log
4361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4362 # would make configure fail if this is the last instruction.
4363 $ac_cs_success || { (exit 1); exit 1; }