Added support for suPHP_UserGroup directive
[vhostgen.git] / configure
blob149ef8a2c6f80f00dac50c9e17bcd337ad61c6df
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for vhostgen 1.0.
5 # Report bugs to <sjk@ankeborg.nu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='vhostgen'
576 PACKAGE_TARNAME='vhostgen'
577 PACKAGE_VERSION='1.0'
578 PACKAGE_STRING='vhostgen 1.0'
579 PACKAGE_BUGREPORT='sjk@ankeborg.nu'
581 ac_unique_file="vhostgen.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
656 CFLAGS
657 LDFLAGS
658 CPPFLAGS
659 ac_ct_CC
660 EXEEXT
661 OBJEXT
662 INSTALL_PROGRAM
663 INSTALL_SCRIPT
664 INSTALL_DATA
665 MYSQL_CFLAGS
666 MYSQL_LIBS
667 mysqlconfig
669 GREP
670 EGREP
671 LIBOBJS
672 LTLIBOBJS'
673 ac_subst_files=''
674 ac_precious_vars='build_alias
675 host_alias
676 target_alias
678 CFLAGS
679 LDFLAGS
680 LIBS
681 CPPFLAGS
682 CPP'
685 # Initialize some variables set by options.
686 ac_init_help=
687 ac_init_version=false
688 # The variables have the same names as the options, with
689 # dashes changed to underlines.
690 cache_file=/dev/null
691 exec_prefix=NONE
692 no_create=
693 no_recursion=
694 prefix=NONE
695 program_prefix=NONE
696 program_suffix=NONE
697 program_transform_name=s,x,x,
698 silent=
699 site=
700 srcdir=
701 verbose=
702 x_includes=NONE
703 x_libraries=NONE
705 # Installation directory options.
706 # These are left unexpanded so users can "make install exec_prefix=/foo"
707 # and all the variables that are supposed to be based on exec_prefix
708 # by default will actually change.
709 # Use braces instead of parens because sh, perl, etc. also accept them.
710 # (The list follows the same order as the GNU Coding Standards.)
711 bindir='${exec_prefix}/bin'
712 sbindir='${exec_prefix}/sbin'
713 libexecdir='${exec_prefix}/libexec'
714 datarootdir='${prefix}/share'
715 datadir='${datarootdir}'
716 sysconfdir='${prefix}/etc'
717 sharedstatedir='${prefix}/com'
718 localstatedir='${prefix}/var'
719 includedir='${prefix}/include'
720 oldincludedir='/usr/include'
721 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
722 infodir='${datarootdir}/info'
723 htmldir='${docdir}'
724 dvidir='${docdir}'
725 pdfdir='${docdir}'
726 psdir='${docdir}'
727 libdir='${exec_prefix}/lib'
728 localedir='${datarootdir}/locale'
729 mandir='${datarootdir}/man'
731 ac_prev=
732 ac_dashdash=
733 for ac_option
735 # If the previous option needs an argument, assign it.
736 if test -n "$ac_prev"; then
737 eval $ac_prev=\$ac_option
738 ac_prev=
739 continue
742 case $ac_option in
743 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
744 *) ac_optarg=yes ;;
745 esac
747 # Accept the important Cygnus configure options, so we can diagnose typos.
749 case $ac_dashdash$ac_option in
751 ac_dashdash=yes ;;
753 -bindir | --bindir | --bindi | --bind | --bin | --bi)
754 ac_prev=bindir ;;
755 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
756 bindir=$ac_optarg ;;
758 -build | --build | --buil | --bui | --bu)
759 ac_prev=build_alias ;;
760 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
761 build_alias=$ac_optarg ;;
763 -cache-file | --cache-file | --cache-fil | --cache-fi \
764 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
765 ac_prev=cache_file ;;
766 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
767 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
768 cache_file=$ac_optarg ;;
770 --config-cache | -C)
771 cache_file=config.cache ;;
773 -datadir | --datadir | --datadi | --datad)
774 ac_prev=datadir ;;
775 -datadir=* | --datadir=* | --datadi=* | --datad=*)
776 datadir=$ac_optarg ;;
778 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
779 | --dataroo | --dataro | --datar)
780 ac_prev=datarootdir ;;
781 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
782 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
783 datarootdir=$ac_optarg ;;
785 -disable-* | --disable-*)
786 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
790 { (exit 1); exit 1; }; }
791 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
792 eval enable_$ac_feature=no ;;
794 -docdir | --docdir | --docdi | --doc | --do)
795 ac_prev=docdir ;;
796 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
797 docdir=$ac_optarg ;;
799 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
800 ac_prev=dvidir ;;
801 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
802 dvidir=$ac_optarg ;;
804 -enable-* | --enable-*)
805 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
806 # Reject names that are not valid shell variable names.
807 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
809 { (exit 1); exit 1; }; }
810 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
811 eval enable_$ac_feature=\$ac_optarg ;;
813 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
814 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
815 | --exec | --exe | --ex)
816 ac_prev=exec_prefix ;;
817 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
818 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
819 | --exec=* | --exe=* | --ex=*)
820 exec_prefix=$ac_optarg ;;
822 -gas | --gas | --ga | --g)
823 # Obsolete; use --with-gas.
824 with_gas=yes ;;
826 -help | --help | --hel | --he | -h)
827 ac_init_help=long ;;
828 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
829 ac_init_help=recursive ;;
830 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
831 ac_init_help=short ;;
833 -host | --host | --hos | --ho)
834 ac_prev=host_alias ;;
835 -host=* | --host=* | --hos=* | --ho=*)
836 host_alias=$ac_optarg ;;
838 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
839 ac_prev=htmldir ;;
840 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
841 | --ht=*)
842 htmldir=$ac_optarg ;;
844 -includedir | --includedir | --includedi | --included | --include \
845 | --includ | --inclu | --incl | --inc)
846 ac_prev=includedir ;;
847 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
848 | --includ=* | --inclu=* | --incl=* | --inc=*)
849 includedir=$ac_optarg ;;
851 -infodir | --infodir | --infodi | --infod | --info | --inf)
852 ac_prev=infodir ;;
853 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
854 infodir=$ac_optarg ;;
856 -libdir | --libdir | --libdi | --libd)
857 ac_prev=libdir ;;
858 -libdir=* | --libdir=* | --libdi=* | --libd=*)
859 libdir=$ac_optarg ;;
861 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
862 | --libexe | --libex | --libe)
863 ac_prev=libexecdir ;;
864 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
865 | --libexe=* | --libex=* | --libe=*)
866 libexecdir=$ac_optarg ;;
868 -localedir | --localedir | --localedi | --localed | --locale)
869 ac_prev=localedir ;;
870 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
871 localedir=$ac_optarg ;;
873 -localstatedir | --localstatedir | --localstatedi | --localstated \
874 | --localstate | --localstat | --localsta | --localst | --locals)
875 ac_prev=localstatedir ;;
876 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
877 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
878 localstatedir=$ac_optarg ;;
880 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
881 ac_prev=mandir ;;
882 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
883 mandir=$ac_optarg ;;
885 -nfp | --nfp | --nf)
886 # Obsolete; use --without-fp.
887 with_fp=no ;;
889 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
890 | --no-cr | --no-c | -n)
891 no_create=yes ;;
893 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
894 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
895 no_recursion=yes ;;
897 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
898 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
899 | --oldin | --oldi | --old | --ol | --o)
900 ac_prev=oldincludedir ;;
901 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
902 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
903 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
904 oldincludedir=$ac_optarg ;;
906 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
907 ac_prev=prefix ;;
908 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
909 prefix=$ac_optarg ;;
911 -program-prefix | --program-prefix | --program-prefi | --program-pref \
912 | --program-pre | --program-pr | --program-p)
913 ac_prev=program_prefix ;;
914 -program-prefix=* | --program-prefix=* | --program-prefi=* \
915 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
916 program_prefix=$ac_optarg ;;
918 -program-suffix | --program-suffix | --program-suffi | --program-suff \
919 | --program-suf | --program-su | --program-s)
920 ac_prev=program_suffix ;;
921 -program-suffix=* | --program-suffix=* | --program-suffi=* \
922 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
923 program_suffix=$ac_optarg ;;
925 -program-transform-name | --program-transform-name \
926 | --program-transform-nam | --program-transform-na \
927 | --program-transform-n | --program-transform- \
928 | --program-transform | --program-transfor \
929 | --program-transfo | --program-transf \
930 | --program-trans | --program-tran \
931 | --progr-tra | --program-tr | --program-t)
932 ac_prev=program_transform_name ;;
933 -program-transform-name=* | --program-transform-name=* \
934 | --program-transform-nam=* | --program-transform-na=* \
935 | --program-transform-n=* | --program-transform-=* \
936 | --program-transform=* | --program-transfor=* \
937 | --program-transfo=* | --program-transf=* \
938 | --program-trans=* | --program-tran=* \
939 | --progr-tra=* | --program-tr=* | --program-t=*)
940 program_transform_name=$ac_optarg ;;
942 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
943 ac_prev=pdfdir ;;
944 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
945 pdfdir=$ac_optarg ;;
947 -psdir | --psdir | --psdi | --psd | --ps)
948 ac_prev=psdir ;;
949 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
950 psdir=$ac_optarg ;;
952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
953 | -silent | --silent | --silen | --sile | --sil)
954 silent=yes ;;
956 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
957 ac_prev=sbindir ;;
958 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
959 | --sbi=* | --sb=*)
960 sbindir=$ac_optarg ;;
962 -sharedstatedir | --sharedstatedir | --sharedstatedi \
963 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
964 | --sharedst | --shareds | --shared | --share | --shar \
965 | --sha | --sh)
966 ac_prev=sharedstatedir ;;
967 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
968 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
969 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
970 | --sha=* | --sh=*)
971 sharedstatedir=$ac_optarg ;;
973 -site | --site | --sit)
974 ac_prev=site ;;
975 -site=* | --site=* | --sit=*)
976 site=$ac_optarg ;;
978 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
979 ac_prev=srcdir ;;
980 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
981 srcdir=$ac_optarg ;;
983 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
984 | --syscon | --sysco | --sysc | --sys | --sy)
985 ac_prev=sysconfdir ;;
986 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
987 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
988 sysconfdir=$ac_optarg ;;
990 -target | --target | --targe | --targ | --tar | --ta | --t)
991 ac_prev=target_alias ;;
992 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
993 target_alias=$ac_optarg ;;
995 -v | -verbose | --verbose | --verbos | --verbo | --verb)
996 verbose=yes ;;
998 -version | --version | --versio | --versi | --vers | -V)
999 ac_init_version=: ;;
1001 -with-* | --with-*)
1002 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1005 { echo "$as_me: error: invalid package name: $ac_package" >&2
1006 { (exit 1); exit 1; }; }
1007 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1008 eval with_$ac_package=\$ac_optarg ;;
1010 -without-* | --without-*)
1011 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014 { echo "$as_me: error: invalid package name: $ac_package" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1017 eval with_$ac_package=no ;;
1019 --x)
1020 # Obsolete; use --with-x.
1021 with_x=yes ;;
1023 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1024 | --x-incl | --x-inc | --x-in | --x-i)
1025 ac_prev=x_includes ;;
1026 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1027 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1028 x_includes=$ac_optarg ;;
1030 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1031 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1032 ac_prev=x_libraries ;;
1033 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1034 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1035 x_libraries=$ac_optarg ;;
1037 -*) { echo "$as_me: error: unrecognized option: $ac_option
1038 Try \`$0 --help' for more information." >&2
1039 { (exit 1); exit 1; }; }
1042 *=*)
1043 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1047 { (exit 1); exit 1; }; }
1048 eval $ac_envvar=\$ac_optarg
1049 export $ac_envvar ;;
1052 # FIXME: should be removed in autoconf 3.0.
1053 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1054 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1056 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1059 esac
1060 done
1062 if test -n "$ac_prev"; then
1063 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1064 { echo "$as_me: error: missing argument to $ac_option" >&2
1065 { (exit 1); exit 1; }; }
1068 # Be sure to have absolute directory names.
1069 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1070 datadir sysconfdir sharedstatedir localstatedir includedir \
1071 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1072 libdir localedir mandir
1074 eval ac_val=\$$ac_var
1075 case $ac_val in
1076 [\\/$]* | ?:[\\/]* ) continue;;
1077 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1078 esac
1079 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1080 { (exit 1); exit 1; }; }
1081 done
1083 # There might be people who depend on the old broken behavior: `$host'
1084 # used to hold the argument of --host etc.
1085 # FIXME: To remove some day.
1086 build=$build_alias
1087 host=$host_alias
1088 target=$target_alias
1090 # FIXME: To remove some day.
1091 if test "x$host_alias" != x; then
1092 if test "x$build_alias" = x; then
1093 cross_compiling=maybe
1094 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1095 If a cross compiler is detected then cross compile mode will be used." >&2
1096 elif test "x$build_alias" != "x$host_alias"; then
1097 cross_compiling=yes
1101 ac_tool_prefix=
1102 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1104 test "$silent" = yes && exec 6>/dev/null
1107 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1108 ac_ls_di=`ls -di .` &&
1109 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1110 { echo "$as_me: error: Working directory cannot be determined" >&2
1111 { (exit 1); exit 1; }; }
1112 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1113 { echo "$as_me: error: pwd does not report name of working directory" >&2
1114 { (exit 1); exit 1; }; }
1117 # Find the source files, if location was not specified.
1118 if test -z "$srcdir"; then
1119 ac_srcdir_defaulted=yes
1120 # Try the directory containing this script, then the parent directory.
1121 ac_confdir=`$as_dirname -- "$0" ||
1122 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1123 X"$0" : 'X\(//\)[^/]' \| \
1124 X"$0" : 'X\(//\)$' \| \
1125 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1126 echo X"$0" |
1127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1128 s//\1/
1131 /^X\(\/\/\)[^/].*/{
1132 s//\1/
1135 /^X\(\/\/\)$/{
1136 s//\1/
1139 /^X\(\/\).*/{
1140 s//\1/
1143 s/.*/./; q'`
1144 srcdir=$ac_confdir
1145 if test ! -r "$srcdir/$ac_unique_file"; then
1146 srcdir=..
1148 else
1149 ac_srcdir_defaulted=no
1151 if test ! -r "$srcdir/$ac_unique_file"; then
1152 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1153 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1154 { (exit 1); exit 1; }; }
1156 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1157 ac_abs_confdir=`(
1158 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1159 { (exit 1); exit 1; }; }
1160 pwd)`
1161 # When building in place, set srcdir=.
1162 if test "$ac_abs_confdir" = "$ac_pwd"; then
1163 srcdir=.
1165 # Remove unnecessary trailing slashes from srcdir.
1166 # Double slashes in file names in object file debugging info
1167 # mess up M-x gdb in Emacs.
1168 case $srcdir in
1169 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1170 esac
1171 for ac_var in $ac_precious_vars; do
1172 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1173 eval ac_env_${ac_var}_value=\$${ac_var}
1174 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1175 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1176 done
1179 # Report the --help message.
1181 if test "$ac_init_help" = "long"; then
1182 # Omit some internal or obsolete options to make the list less imposing.
1183 # This message is too long to be a string in the A/UX 3.1 sh.
1184 cat <<_ACEOF
1185 \`configure' configures vhostgen 1.0 to adapt to many kinds of systems.
1187 Usage: $0 [OPTION]... [VAR=VALUE]...
1189 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1190 VAR=VALUE. See below for descriptions of some of the useful variables.
1192 Defaults for the options are specified in brackets.
1194 Configuration:
1195 -h, --help display this help and exit
1196 --help=short display options specific to this package
1197 --help=recursive display the short help of all the included packages
1198 -V, --version display version information and exit
1199 -q, --quiet, --silent do not print \`checking...' messages
1200 --cache-file=FILE cache test results in FILE [disabled]
1201 -C, --config-cache alias for \`--cache-file=config.cache'
1202 -n, --no-create do not create output files
1203 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1205 Installation directories:
1206 --prefix=PREFIX install architecture-independent files in PREFIX
1207 [$ac_default_prefix]
1208 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1209 [PREFIX]
1211 By default, \`make install' will install all the files in
1212 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1213 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1214 for instance \`--prefix=\$HOME'.
1216 For better control, use the options below.
1218 Fine tuning of the installation directories:
1219 --bindir=DIR user executables [EPREFIX/bin]
1220 --sbindir=DIR system admin executables [EPREFIX/sbin]
1221 --libexecdir=DIR program executables [EPREFIX/libexec]
1222 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1223 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1224 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1225 --libdir=DIR object code libraries [EPREFIX/lib]
1226 --includedir=DIR C header files [PREFIX/include]
1227 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1228 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1229 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1230 --infodir=DIR info documentation [DATAROOTDIR/info]
1231 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1232 --mandir=DIR man documentation [DATAROOTDIR/man]
1233 --docdir=DIR documentation root [DATAROOTDIR/doc/vhostgen]
1234 --htmldir=DIR html documentation [DOCDIR]
1235 --dvidir=DIR dvi documentation [DOCDIR]
1236 --pdfdir=DIR pdf documentation [DOCDIR]
1237 --psdir=DIR ps documentation [DOCDIR]
1238 _ACEOF
1240 cat <<\_ACEOF
1241 _ACEOF
1244 if test -n "$ac_init_help"; then
1245 case $ac_init_help in
1246 short | recursive ) echo "Configuration of vhostgen 1.0:";;
1247 esac
1248 cat <<\_ACEOF
1250 Some influential environment variables:
1251 CC C compiler command
1252 CFLAGS C compiler flags
1253 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1254 nonstandard directory <lib dir>
1255 LIBS libraries to pass to the linker, e.g. -l<library>
1256 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1257 you have headers in a nonstandard directory <include dir>
1258 CPP C preprocessor
1260 Use these variables to override the choices made by `configure' or to help
1261 it to find libraries and programs with nonstandard names/locations.
1263 Report bugs to <sjk@ankeborg.nu>.
1264 _ACEOF
1265 ac_status=$?
1268 if test "$ac_init_help" = "recursive"; then
1269 # If there are subdirs, report their specific --help.
1270 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1271 test -d "$ac_dir" || continue
1272 ac_builddir=.
1274 case "$ac_dir" in
1275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1277 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1278 # A ".." for each directory in $ac_dir_suffix.
1279 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1280 case $ac_top_builddir_sub in
1281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1283 esac ;;
1284 esac
1285 ac_abs_top_builddir=$ac_pwd
1286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1287 # for backward compatibility:
1288 ac_top_builddir=$ac_top_build_prefix
1290 case $srcdir in
1291 .) # We are building in place.
1292 ac_srcdir=.
1293 ac_top_srcdir=$ac_top_builddir_sub
1294 ac_abs_top_srcdir=$ac_pwd ;;
1295 [\\/]* | ?:[\\/]* ) # Absolute name.
1296 ac_srcdir=$srcdir$ac_dir_suffix;
1297 ac_top_srcdir=$srcdir
1298 ac_abs_top_srcdir=$srcdir ;;
1299 *) # Relative name.
1300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1301 ac_top_srcdir=$ac_top_build_prefix$srcdir
1302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1303 esac
1304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1306 cd "$ac_dir" || { ac_status=$?; continue; }
1307 # Check for guested configure.
1308 if test -f "$ac_srcdir/configure.gnu"; then
1309 echo &&
1310 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1311 elif test -f "$ac_srcdir/configure"; then
1312 echo &&
1313 $SHELL "$ac_srcdir/configure" --help=recursive
1314 else
1315 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1316 fi || ac_status=$?
1317 cd "$ac_pwd" || { ac_status=$?; break; }
1318 done
1321 test -n "$ac_init_help" && exit $ac_status
1322 if $ac_init_version; then
1323 cat <<\_ACEOF
1324 vhostgen configure 1.0
1325 generated by GNU Autoconf 2.61
1327 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1328 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1329 This configure script is free software; the Free Software Foundation
1330 gives unlimited permission to copy, distribute and modify it.
1331 _ACEOF
1332 exit
1334 cat >config.log <<_ACEOF
1335 This file contains any messages produced by compilers while
1336 running configure, to aid debugging if configure makes a mistake.
1338 It was created by vhostgen $as_me 1.0, which was
1339 generated by GNU Autoconf 2.61. Invocation command line was
1341 $ $0 $@
1343 _ACEOF
1344 exec 5>>config.log
1346 cat <<_ASUNAME
1347 ## --------- ##
1348 ## Platform. ##
1349 ## --------- ##
1351 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1352 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1353 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1354 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1355 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1357 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1358 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1360 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1361 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1362 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1363 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1364 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1365 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1366 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1368 _ASUNAME
1370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371 for as_dir in $PATH
1373 IFS=$as_save_IFS
1374 test -z "$as_dir" && as_dir=.
1375 echo "PATH: $as_dir"
1376 done
1377 IFS=$as_save_IFS
1379 } >&5
1381 cat >&5 <<_ACEOF
1384 ## ----------- ##
1385 ## Core tests. ##
1386 ## ----------- ##
1388 _ACEOF
1391 # Keep a trace of the command line.
1392 # Strip out --no-create and --no-recursion so they do not pile up.
1393 # Strip out --silent because we don't want to record it for future runs.
1394 # Also quote any args containing shell meta-characters.
1395 # Make two passes to allow for proper duplicate-argument suppression.
1396 ac_configure_args=
1397 ac_configure_args0=
1398 ac_configure_args1=
1399 ac_must_keep_next=false
1400 for ac_pass in 1 2
1402 for ac_arg
1404 case $ac_arg in
1405 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1407 | -silent | --silent | --silen | --sile | --sil)
1408 continue ;;
1409 *\'*)
1410 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1411 esac
1412 case $ac_pass in
1413 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1415 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1416 if test $ac_must_keep_next = true; then
1417 ac_must_keep_next=false # Got value, back to normal.
1418 else
1419 case $ac_arg in
1420 *=* | --config-cache | -C | -disable-* | --disable-* \
1421 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1422 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1423 | -with-* | --with-* | -without-* | --without-* | --x)
1424 case "$ac_configure_args0 " in
1425 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1426 esac
1428 -* ) ac_must_keep_next=true ;;
1429 esac
1431 ac_configure_args="$ac_configure_args '$ac_arg'"
1433 esac
1434 done
1435 done
1436 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1437 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1439 # When interrupted or exit'd, cleanup temporary files, and complete
1440 # config.log. We remove comments because anyway the quotes in there
1441 # would cause problems or look ugly.
1442 # WARNING: Use '\'' to represent an apostrophe within the trap.
1443 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1444 trap 'exit_status=$?
1445 # Save into config.log some information that might help in debugging.
1447 echo
1449 cat <<\_ASBOX
1450 ## ---------------- ##
1451 ## Cache variables. ##
1452 ## ---------------- ##
1453 _ASBOX
1454 echo
1455 # The following way of writing the cache mishandles newlines in values,
1457 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1458 eval ac_val=\$$ac_var
1459 case $ac_val in #(
1460 *${as_nl}*)
1461 case $ac_var in #(
1462 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1463 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1464 esac
1465 case $ac_var in #(
1466 _ | IFS | as_nl) ;; #(
1467 *) $as_unset $ac_var ;;
1468 esac ;;
1469 esac
1470 done
1471 (set) 2>&1 |
1472 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1473 *${as_nl}ac_space=\ *)
1474 sed -n \
1475 "s/'\''/'\''\\\\'\'''\''/g;
1476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1477 ;; #(
1479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1481 esac |
1482 sort
1484 echo
1486 cat <<\_ASBOX
1487 ## ----------------- ##
1488 ## Output variables. ##
1489 ## ----------------- ##
1490 _ASBOX
1491 echo
1492 for ac_var in $ac_subst_vars
1494 eval ac_val=\$$ac_var
1495 case $ac_val in
1496 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1497 esac
1498 echo "$ac_var='\''$ac_val'\''"
1499 done | sort
1500 echo
1502 if test -n "$ac_subst_files"; then
1503 cat <<\_ASBOX
1504 ## ------------------- ##
1505 ## File substitutions. ##
1506 ## ------------------- ##
1507 _ASBOX
1508 echo
1509 for ac_var in $ac_subst_files
1511 eval ac_val=\$$ac_var
1512 case $ac_val in
1513 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1514 esac
1515 echo "$ac_var='\''$ac_val'\''"
1516 done | sort
1517 echo
1520 if test -s confdefs.h; then
1521 cat <<\_ASBOX
1522 ## ----------- ##
1523 ## confdefs.h. ##
1524 ## ----------- ##
1525 _ASBOX
1526 echo
1527 cat confdefs.h
1528 echo
1530 test "$ac_signal" != 0 &&
1531 echo "$as_me: caught signal $ac_signal"
1532 echo "$as_me: exit $exit_status"
1533 } >&5
1534 rm -f core *.core core.conftest.* &&
1535 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1536 exit $exit_status
1538 for ac_signal in 1 2 13 15; do
1539 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1540 done
1541 ac_signal=0
1543 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1544 rm -f -r conftest* confdefs.h
1546 # Predefined preprocessor variables.
1548 cat >>confdefs.h <<_ACEOF
1549 #define PACKAGE_NAME "$PACKAGE_NAME"
1550 _ACEOF
1553 cat >>confdefs.h <<_ACEOF
1554 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1555 _ACEOF
1558 cat >>confdefs.h <<_ACEOF
1559 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1560 _ACEOF
1563 cat >>confdefs.h <<_ACEOF
1564 #define PACKAGE_STRING "$PACKAGE_STRING"
1565 _ACEOF
1568 cat >>confdefs.h <<_ACEOF
1569 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1570 _ACEOF
1573 # Let the site file select an alternate cache file if it wants to.
1574 # Prefer explicitly selected file to automatically selected ones.
1575 if test -n "$CONFIG_SITE"; then
1576 set x "$CONFIG_SITE"
1577 elif test "x$prefix" != xNONE; then
1578 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1579 else
1580 set x "$ac_default_prefix/share/config.site" \
1581 "$ac_default_prefix/etc/config.site"
1583 shift
1584 for ac_site_file
1586 if test -r "$ac_site_file"; then
1587 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1588 echo "$as_me: loading site script $ac_site_file" >&6;}
1589 sed 's/^/| /' "$ac_site_file" >&5
1590 . "$ac_site_file"
1592 done
1594 if test -r "$cache_file"; then
1595 # Some versions of bash will fail to source /dev/null (special
1596 # files actually), so we avoid doing that.
1597 if test -f "$cache_file"; then
1598 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1599 echo "$as_me: loading cache $cache_file" >&6;}
1600 case $cache_file in
1601 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1602 *) . "./$cache_file";;
1603 esac
1605 else
1606 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1607 echo "$as_me: creating cache $cache_file" >&6;}
1608 >$cache_file
1611 # Check that the precious variables saved in the cache have kept the same
1612 # value.
1613 ac_cache_corrupted=false
1614 for ac_var in $ac_precious_vars; do
1615 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1616 eval ac_new_set=\$ac_env_${ac_var}_set
1617 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1618 eval ac_new_val=\$ac_env_${ac_var}_value
1619 case $ac_old_set,$ac_new_set in
1620 set,)
1621 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1622 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1623 ac_cache_corrupted=: ;;
1624 ,set)
1625 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1626 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1627 ac_cache_corrupted=: ;;
1628 ,);;
1630 if test "x$ac_old_val" != "x$ac_new_val"; then
1631 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1632 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1633 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1634 echo "$as_me: former value: $ac_old_val" >&2;}
1635 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1636 echo "$as_me: current value: $ac_new_val" >&2;}
1637 ac_cache_corrupted=:
1638 fi;;
1639 esac
1640 # Pass precious variables to config.status.
1641 if test "$ac_new_set" = set; then
1642 case $ac_new_val in
1643 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1644 *) ac_arg=$ac_var=$ac_new_val ;;
1645 esac
1646 case " $ac_configure_args " in
1647 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1648 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1649 esac
1651 done
1652 if $ac_cache_corrupted; then
1653 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1654 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1655 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1656 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1657 { (exit 1); exit 1; }; }
1684 ac_ext=c
1685 ac_cpp='$CPP $CPPFLAGS'
1686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1692 ac_config_headers="$ac_config_headers config.h"
1695 # Checks for programs.
1696 ac_ext=c
1697 ac_cpp='$CPP $CPPFLAGS'
1698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1701 if test -n "$ac_tool_prefix"; then
1702 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1703 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1706 if test "${ac_cv_prog_CC+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709 if test -n "$CC"; then
1710 ac_cv_prog_CC="$CC" # Let the user override the test.
1711 else
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1719 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 break 2
1723 done
1724 done
1725 IFS=$as_save_IFS
1729 CC=$ac_cv_prog_CC
1730 if test -n "$CC"; then
1731 { echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6; }
1733 else
1734 { echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6; }
1740 if test -z "$ac_cv_prog_CC"; then
1741 ac_ct_CC=$CC
1742 # Extract the first word of "gcc", so it can be a program name with args.
1743 set dummy gcc; ac_word=$2
1744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1746 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749 if test -n "$ac_ct_CC"; then
1750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1759 ac_cv_prog_ac_ct_CC="gcc"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761 break 2
1763 done
1764 done
1765 IFS=$as_save_IFS
1769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1770 if test -n "$ac_ct_CC"; then
1771 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1772 echo "${ECHO_T}$ac_ct_CC" >&6; }
1773 else
1774 { echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6; }
1778 if test "x$ac_ct_CC" = x; then
1779 CC=""
1780 else
1781 case $cross_compiling:$ac_tool_warned in
1782 yes:)
1783 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1784 whose name does not start with the host triplet. If you think this
1785 configuration is useful to you, please write to autoconf@gnu.org." >&5
1786 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1787 whose name does not start with the host triplet. If you think this
1788 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1789 ac_tool_warned=yes ;;
1790 esac
1791 CC=$ac_ct_CC
1793 else
1794 CC="$ac_cv_prog_CC"
1797 if test -z "$CC"; then
1798 if test -n "$ac_tool_prefix"; then
1799 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1800 set dummy ${ac_tool_prefix}cc; ac_word=$2
1801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1803 if test "${ac_cv_prog_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806 if test -n "$CC"; then
1807 ac_cv_prog_CC="$CC" # Let the user override the test.
1808 else
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 for as_dir in $PATH
1812 IFS=$as_save_IFS
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1816 ac_cv_prog_CC="${ac_tool_prefix}cc"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 break 2
1820 done
1821 done
1822 IFS=$as_save_IFS
1826 CC=$ac_cv_prog_CC
1827 if test -n "$CC"; then
1828 { echo "$as_me:$LINENO: result: $CC" >&5
1829 echo "${ECHO_T}$CC" >&6; }
1830 else
1831 { echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6; }
1838 if test -z "$CC"; then
1839 # Extract the first word of "cc", so it can be a program name with args.
1840 set dummy cc; ac_word=$2
1841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1843 if test "${ac_cv_prog_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846 if test -n "$CC"; then
1847 ac_cv_prog_CC="$CC" # Let the user override the test.
1848 else
1849 ac_prog_rejected=no
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1853 IFS=$as_save_IFS
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1857 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1858 ac_prog_rejected=yes
1859 continue
1861 ac_cv_prog_CC="cc"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 break 2
1865 done
1866 done
1867 IFS=$as_save_IFS
1869 if test $ac_prog_rejected = yes; then
1870 # We found a bogon in the path, so make sure we never use it.
1871 set dummy $ac_cv_prog_CC
1872 shift
1873 if test $# != 0; then
1874 # We chose a different compiler from the bogus one.
1875 # However, it has the same basename, so the bogon will be chosen
1876 # first if we set CC to just the basename; use the full file name.
1877 shift
1878 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1883 CC=$ac_cv_prog_CC
1884 if test -n "$CC"; then
1885 { echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6; }
1887 else
1888 { echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6; }
1894 if test -z "$CC"; then
1895 if test -n "$ac_tool_prefix"; then
1896 for ac_prog in cl.exe
1898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1902 if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC="$CC" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1911 IFS=$as_save_IFS
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1915 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 break 2
1919 done
1920 done
1921 IFS=$as_save_IFS
1925 CC=$ac_cv_prog_CC
1926 if test -n "$CC"; then
1927 { echo "$as_me:$LINENO: result: $CC" >&5
1928 echo "${ECHO_T}$CC" >&6; }
1929 else
1930 { echo "$as_me:$LINENO: result: no" >&5
1931 echo "${ECHO_T}no" >&6; }
1935 test -n "$CC" && break
1936 done
1938 if test -z "$CC"; then
1939 ac_ct_CC=$CC
1940 for ac_prog in cl.exe
1942 # Extract the first word of "$ac_prog", so it can be a program name with args.
1943 set dummy $ac_prog; ac_word=$2
1944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1946 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 if test -n "$ac_ct_CC"; then
1950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1959 ac_cv_prog_ac_ct_CC="$ac_prog"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1963 done
1964 done
1965 IFS=$as_save_IFS
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6; }
1973 else
1974 { echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6; }
1979 test -n "$ac_ct_CC" && break
1980 done
1982 if test "x$ac_ct_CC" = x; then
1983 CC=""
1984 else
1985 case $cross_compiling:$ac_tool_warned in
1986 yes:)
1987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1988 whose name does not start with the host triplet. If you think this
1989 configuration is useful to you, please write to autoconf@gnu.org." >&5
1990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1991 whose name does not start with the host triplet. If you think this
1992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1993 ac_tool_warned=yes ;;
1994 esac
1995 CC=$ac_ct_CC
2002 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2003 See \`config.log' for more details." >&5
2004 echo "$as_me: error: no acceptable C compiler found in \$PATH
2005 See \`config.log' for more details." >&2;}
2006 { (exit 1); exit 1; }; }
2008 # Provide some information about the compiler.
2009 echo "$as_me:$LINENO: checking for C compiler version" >&5
2010 ac_compiler=`set X $ac_compile; echo $2`
2011 { (ac_try="$ac_compiler --version >&5"
2012 case "(($ac_try" in
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2015 esac
2016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2017 (eval "$ac_compiler --version >&5") 2>&5
2018 ac_status=$?
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }
2021 { (ac_try="$ac_compiler -v >&5"
2022 case "(($ac_try" in
2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024 *) ac_try_echo=$ac_try;;
2025 esac
2026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2027 (eval "$ac_compiler -v >&5") 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }
2031 { (ac_try="$ac_compiler -V >&5"
2032 case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035 esac
2036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2037 (eval "$ac_compiler -V >&5") 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }
2042 cat >conftest.$ac_ext <<_ACEOF
2043 /* confdefs.h. */
2044 _ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h. */
2050 main ()
2054 return 0;
2056 _ACEOF
2057 ac_clean_files_save=$ac_clean_files
2058 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2059 # Try to create an executable without -o first, disregard a.out.
2060 # It will help us diagnose broken compilers, and finding out an intuition
2061 # of exeext.
2062 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2063 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2064 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2066 # List of possible output files, starting from the most likely.
2067 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2068 # only as a last resort. b.out is created by i960 compilers.
2069 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2071 # The IRIX 6 linker writes into existing files which may not be
2072 # executable, retaining their permissions. Remove them first so a
2073 # subsequent execution test works.
2074 ac_rmfiles=
2075 for ac_file in $ac_files
2077 case $ac_file in
2078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2079 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2080 esac
2081 done
2082 rm -f $ac_rmfiles
2084 if { (ac_try="$ac_link_default"
2085 case "(($ac_try" in
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2088 esac
2089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2090 (eval "$ac_link_default") 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; then
2094 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2095 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2096 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2097 # so that the user can short-circuit this test for compilers unknown to
2098 # Autoconf.
2099 for ac_file in $ac_files ''
2101 test -f "$ac_file" || continue
2102 case $ac_file in
2103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2105 [ab].out )
2106 # We found the default executable, but exeext='' is most
2107 # certainly right.
2108 break;;
2109 *.* )
2110 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2111 then :; else
2112 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2114 # We set ac_cv_exeext here because the later test for it is not
2115 # safe: cross compilers may not add the suffix if given an `-o'
2116 # argument, so we may need to know it at that point already.
2117 # Even if this section looks crufty: it has the advantage of
2118 # actually working.
2119 break;;
2121 break;;
2122 esac
2123 done
2124 test "$ac_cv_exeext" = no && ac_cv_exeext=
2126 else
2127 ac_file=''
2130 { echo "$as_me:$LINENO: result: $ac_file" >&5
2131 echo "${ECHO_T}$ac_file" >&6; }
2132 if test -z "$ac_file"; then
2133 echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2136 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: C compiler cannot create executables
2139 See \`config.log' for more details." >&2;}
2140 { (exit 77); exit 77; }; }
2143 ac_exeext=$ac_cv_exeext
2145 # Check that the compiler produces executables we can run. If not, either
2146 # the compiler is broken, or we cross compile.
2147 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150 # If not cross compiling, check that we can run a simple program.
2151 if test "$cross_compiling" != yes; then
2152 if { ac_try='./$ac_file'
2153 { (case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156 esac
2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158 (eval "$ac_try") 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2162 cross_compiling=no
2163 else
2164 if test "$cross_compiling" = maybe; then
2165 cross_compiling=yes
2166 else
2167 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2168 If you meant to cross compile, use \`--host'.
2169 See \`config.log' for more details." >&5
2170 echo "$as_me: error: cannot run C compiled programs.
2171 If you meant to cross compile, use \`--host'.
2172 See \`config.log' for more details." >&2;}
2173 { (exit 1); exit 1; }; }
2177 { echo "$as_me:$LINENO: result: yes" >&5
2178 echo "${ECHO_T}yes" >&6; }
2180 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2181 ac_clean_files=$ac_clean_files_save
2182 # Check that the compiler produces executables we can run. If not, either
2183 # the compiler is broken, or we cross compile.
2184 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2185 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2186 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2187 echo "${ECHO_T}$cross_compiling" >&6; }
2189 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2190 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2191 if { (ac_try="$ac_link"
2192 case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195 esac
2196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2197 (eval "$ac_link") 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; then
2201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2202 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2203 # work properly (i.e., refer to `conftest.exe'), while it won't with
2204 # `rm'.
2205 for ac_file in conftest.exe conftest conftest.*; do
2206 test -f "$ac_file" || continue
2207 case $ac_file in
2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2209 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210 break;;
2211 * ) break;;
2212 esac
2213 done
2214 else
2215 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2218 See \`config.log' for more details." >&2;}
2219 { (exit 1); exit 1; }; }
2222 rm -f conftest$ac_cv_exeext
2223 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2224 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2226 rm -f conftest.$ac_ext
2227 EXEEXT=$ac_cv_exeext
2228 ac_exeext=$EXEEXT
2229 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2230 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2231 if test "${ac_cv_objext+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234 cat >conftest.$ac_ext <<_ACEOF
2235 /* confdefs.h. */
2236 _ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>conftest.$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2242 main ()
2246 return 0;
2248 _ACEOF
2249 rm -f conftest.o conftest.obj
2250 if { (ac_try="$ac_compile"
2251 case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2254 esac
2255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2256 (eval "$ac_compile") 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; then
2260 for ac_file in conftest.o conftest.obj conftest.*; do
2261 test -f "$ac_file" || continue;
2262 case $ac_file in
2263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2264 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2265 break;;
2266 esac
2267 done
2268 else
2269 echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2272 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2275 See \`config.log' for more details." >&2;}
2276 { (exit 1); exit 1; }; }
2279 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2281 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2282 echo "${ECHO_T}$ac_cv_objext" >&6; }
2283 OBJEXT=$ac_cv_objext
2284 ac_objext=$OBJEXT
2285 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2286 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2287 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h. */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2298 main ()
2300 #ifndef __GNUC__
2301 choke me
2302 #endif
2305 return 0;
2307 _ACEOF
2308 rm -f conftest.$ac_objext
2309 if { (ac_try="$ac_compile"
2310 case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2313 esac
2314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2315 (eval "$ac_compile") 2>conftest.er1
2316 ac_status=$?
2317 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } && {
2322 test -z "$ac_c_werror_flag" ||
2323 test ! -s conftest.err
2324 } && test -s conftest.$ac_objext; then
2325 ac_compiler_gnu=yes
2326 else
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 ac_compiler_gnu=no
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2337 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2339 GCC=`test $ac_compiler_gnu = yes && echo yes`
2340 ac_test_CFLAGS=${CFLAGS+set}
2341 ac_save_CFLAGS=$CFLAGS
2342 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2343 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2344 if test "${ac_cv_prog_cc_g+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347 ac_save_c_werror_flag=$ac_c_werror_flag
2348 ac_c_werror_flag=yes
2349 ac_cv_prog_cc_g=no
2350 CFLAGS="-g"
2351 cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h. */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2359 main ()
2363 return 0;
2365 _ACEOF
2366 rm -f conftest.$ac_objext
2367 if { (ac_try="$ac_compile"
2368 case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371 esac
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>conftest.er1
2374 ac_status=$?
2375 grep -v '^ *+' conftest.er1 >conftest.err
2376 rm -f conftest.er1
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } && {
2380 test -z "$ac_c_werror_flag" ||
2381 test ! -s conftest.err
2382 } && test -s conftest.$ac_objext; then
2383 ac_cv_prog_cc_g=yes
2384 else
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2388 CFLAGS=""
2389 cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h. */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2397 main ()
2401 return 0;
2403 _ACEOF
2404 rm -f conftest.$ac_objext
2405 if { (ac_try="$ac_compile"
2406 case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_compile") 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } && {
2418 test -z "$ac_c_werror_flag" ||
2419 test ! -s conftest.err
2420 } && test -s conftest.$ac_objext; then
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2426 ac_c_werror_flag=$ac_save_c_werror_flag
2427 CFLAGS="-g"
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2436 main ()
2440 return 0;
2442 _ACEOF
2443 rm -f conftest.$ac_objext
2444 if { (ac_try="$ac_compile"
2445 case "(($ac_try" in
2446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447 *) ac_try_echo=$ac_try;;
2448 esac
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450 (eval "$ac_compile") 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } && {
2457 test -z "$ac_c_werror_flag" ||
2458 test ! -s conftest.err
2459 } && test -s conftest.$ac_objext; then
2460 ac_cv_prog_cc_g=yes
2461 else
2462 echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 ac_c_werror_flag=$ac_save_c_werror_flag
2477 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2478 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2479 if test "$ac_test_CFLAGS" = set; then
2480 CFLAGS=$ac_save_CFLAGS
2481 elif test $ac_cv_prog_cc_g = yes; then
2482 if test "$GCC" = yes; then
2483 CFLAGS="-g -O2"
2484 else
2485 CFLAGS="-g"
2487 else
2488 if test "$GCC" = yes; then
2489 CFLAGS="-O2"
2490 else
2491 CFLAGS=
2494 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2495 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2496 if test "${ac_cv_prog_cc_c89+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499 ac_cv_prog_cc_c89=no
2500 ac_save_CC=$CC
2501 cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h. */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2507 #include <stdarg.h>
2508 #include <stdio.h>
2509 #include <sys/types.h>
2510 #include <sys/stat.h>
2511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2512 struct buf { int x; };
2513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2514 static char *e (p, i)
2515 char **p;
2516 int i;
2518 return p[i];
2520 static char *f (char * (*g) (char **, int), char **p, ...)
2522 char *s;
2523 va_list v;
2524 va_start (v,p);
2525 s = g (p, va_arg (v,int));
2526 va_end (v);
2527 return s;
2530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2531 function prototypes and stuff, but not '\xHH' hex character constants.
2532 These don't provoke an error unfortunately, instead are silently treated
2533 as 'x'. The following induces an error, until -std is added to get
2534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2535 array size at least. It's necessary to write '\x00'==0 to get something
2536 that's true only with -std. */
2537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2539 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2540 inside strings and character constants. */
2541 #define FOO(x) 'x'
2542 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2544 int test (int i, double x);
2545 struct s1 {int (*f) (int a);};
2546 struct s2 {int (*f) (double a);};
2547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2548 int argc;
2549 char **argv;
2551 main ()
2553 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2555 return 0;
2557 _ACEOF
2558 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2559 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2561 CC="$ac_save_CC $ac_arg"
2562 rm -f conftest.$ac_objext
2563 if { (ac_try="$ac_compile"
2564 case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>conftest.er1
2570 ac_status=$?
2571 grep -v '^ *+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } && {
2576 test -z "$ac_c_werror_flag" ||
2577 test ! -s conftest.err
2578 } && test -s conftest.$ac_objext; then
2579 ac_cv_prog_cc_c89=$ac_arg
2580 else
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f core conftest.err conftest.$ac_objext
2588 test "x$ac_cv_prog_cc_c89" != "xno" && break
2589 done
2590 rm -f conftest.$ac_ext
2591 CC=$ac_save_CC
2594 # AC_CACHE_VAL
2595 case "x$ac_cv_prog_cc_c89" in
2597 { echo "$as_me:$LINENO: result: none needed" >&5
2598 echo "${ECHO_T}none needed" >&6; } ;;
2599 xno)
2600 { echo "$as_me:$LINENO: result: unsupported" >&5
2601 echo "${ECHO_T}unsupported" >&6; } ;;
2603 CC="$CC $ac_cv_prog_cc_c89"
2604 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2605 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2606 esac
2609 ac_ext=c
2610 ac_cpp='$CPP $CPPFLAGS'
2611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615 # Check for install.
2616 ac_aux_dir=
2617 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2618 if test -f "$ac_dir/install-sh"; then
2619 ac_aux_dir=$ac_dir
2620 ac_install_sh="$ac_aux_dir/install-sh -c"
2621 break
2622 elif test -f "$ac_dir/install.sh"; then
2623 ac_aux_dir=$ac_dir
2624 ac_install_sh="$ac_aux_dir/install.sh -c"
2625 break
2626 elif test -f "$ac_dir/shtool"; then
2627 ac_aux_dir=$ac_dir
2628 ac_install_sh="$ac_aux_dir/shtool install -c"
2629 break
2631 done
2632 if test -z "$ac_aux_dir"; then
2633 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2634 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2635 { (exit 1); exit 1; }; }
2638 # These three variables are undocumented and unsupported,
2639 # and are intended to be withdrawn in a future Autoconf release.
2640 # They can cause serious problems if a builder's source tree is in a directory
2641 # whose full name contains unusual characters.
2642 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2643 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2644 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2647 # Find a good install program. We prefer a C program (faster),
2648 # so one script is as good as another. But avoid the broken or
2649 # incompatible versions:
2650 # SysV /etc/install, /usr/sbin/install
2651 # SunOS /usr/etc/install
2652 # IRIX /sbin/install
2653 # AIX /bin/install
2654 # AmigaOS /C/install, which installs bootblocks on floppy discs
2655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2658 # OS/2's system install, which has a completely different semantic
2659 # ./install, which can be erroneously created by make from ./install.sh.
2660 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2661 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2662 if test -z "$INSTALL"; then
2663 if test "${ac_cv_path_install+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 # Account for people who put trailing slashes in PATH elements.
2672 case $as_dir/ in
2673 ./ | .// | /cC/* | \
2674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2675 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2676 /usr/ucb/* ) ;;
2678 # OSF1 and SCO ODT 3.0 have their own names for install.
2679 # Don't use installbsd from OSF since it installs stuff as root
2680 # by default.
2681 for ac_prog in ginstall scoinst install; do
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2684 if test $ac_prog = install &&
2685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # AIX install. It has an incompatible calling convention.
2688 elif test $ac_prog = install &&
2689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2690 # program-specific install script used by HP pwplus--don't use.
2692 else
2693 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2694 break 3
2697 done
2698 done
2700 esac
2701 done
2702 IFS=$as_save_IFS
2706 if test "${ac_cv_path_install+set}" = set; then
2707 INSTALL=$ac_cv_path_install
2708 else
2709 # As a last resort, use the slow shell script. Don't cache a
2710 # value for INSTALL within a source directory, because that will
2711 # break other packages using the cache if that directory is
2712 # removed, or if the value is a relative name.
2713 INSTALL=$ac_install_sh
2716 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2717 echo "${ECHO_T}$INSTALL" >&6; }
2719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720 # It thinks the first close brace ends the variable substitution.
2721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2728 # We use the following function to check for mysql libs
2729 # I believe this function was written by Michiel van Baak.
2732 # Checks for libraries.
2736 # Extract the first word of "mysql_config", so it can be a program name with args.
2737 set dummy mysql_config; ac_word=$2
2738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2740 if test "${ac_cv_path_mysqlconfig+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743 case $mysqlconfig in
2744 [\\/]* | ?:[\\/]*)
2745 ac_cv_path_mysqlconfig="$mysqlconfig" # Let the user override the test with a path.
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_path_mysqlconfig="$as_dir/$ac_word$ac_exec_ext"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2759 done
2760 done
2761 IFS=$as_save_IFS
2764 esac
2766 mysqlconfig=$ac_cv_path_mysqlconfig
2767 if test -n "$mysqlconfig"; then
2768 { echo "$as_me:$LINENO: result: $mysqlconfig" >&5
2769 echo "${ECHO_T}$mysqlconfig" >&6; }
2770 else
2771 { echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6; }
2776 if test -z "$mysqlconfig"
2777 then
2778 { { echo "$as_me:$LINENO: error: mysql_config executable not found" >&5
2779 echo "$as_me: error: mysql_config executable not found" >&2;}
2780 { (exit 1); exit 1; }; }
2781 else
2782 { echo "$as_me:$LINENO: checking mysql libraries" >&5
2783 echo $ECHO_N "checking mysql libraries... $ECHO_C" >&6; }
2784 MYSQL_LIBS=`${mysqlconfig} --libs`
2785 { echo "$as_me:$LINENO: result: $MYSQL_LIBS" >&5
2786 echo "${ECHO_T}$MYSQL_LIBS" >&6; }
2787 { echo "$as_me:$LINENO: checking mysql includes" >&5
2788 echo $ECHO_N "checking mysql includes... $ECHO_C" >&6; }
2789 MYSQL_CFLAGS=`${mysqlconfig} --cflags`
2790 { echo "$as_me:$LINENO: result: $MYSQL_CFLAGS" >&5
2791 echo "${ECHO_T}$MYSQL_CFLAGS" >&6; }
2794 # FIXME: Replace `main' with a function in `-lcrypto':
2797 { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
2798 echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
2799 if test "${ac_cv_lib_crypto_main+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 ac_check_lib_save_LIBS=$LIBS
2803 LIBS="-lcrypto $LIBS"
2804 cat >conftest.$ac_ext <<_ACEOF
2805 /* confdefs.h. */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2813 main ()
2815 return main ();
2817 return 0;
2819 _ACEOF
2820 rm -f conftest.$ac_objext conftest$ac_exeext
2821 if { (ac_try="$ac_link"
2822 case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825 esac
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_link") 2>conftest.er1
2828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } && {
2834 test -z "$ac_c_werror_flag" ||
2835 test ! -s conftest.err
2836 } && test -s conftest$ac_exeext &&
2837 $as_test_x conftest$ac_exeext; then
2838 ac_cv_lib_crypto_main=yes
2839 else
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 ac_cv_lib_crypto_main=no
2846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2847 conftest$ac_exeext conftest.$ac_ext
2848 LIBS=$ac_check_lib_save_LIBS
2850 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
2851 echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
2852 if test $ac_cv_lib_crypto_main = yes; then
2853 cat >>confdefs.h <<_ACEOF
2854 #define HAVE_LIBCRYPTO 1
2855 _ACEOF
2857 LIBS="-lcrypto $LIBS"
2861 # FIXME: Replace `main' with a function in `-lm':
2863 { echo "$as_me:$LINENO: checking for main in -lm" >&5
2864 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
2865 if test "${ac_cv_lib_m_main+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 ac_check_lib_save_LIBS=$LIBS
2869 LIBS="-lm $LIBS"
2870 cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h. */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2879 main ()
2881 return main ();
2883 return 0;
2885 _ACEOF
2886 rm -f conftest.$ac_objext conftest$ac_exeext
2887 if { (ac_try="$ac_link"
2888 case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_link") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest$ac_exeext &&
2903 $as_test_x conftest$ac_exeext; then
2904 ac_cv_lib_m_main=yes
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 ac_cv_lib_m_main=no
2912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2913 conftest$ac_exeext conftest.$ac_ext
2914 LIBS=$ac_check_lib_save_LIBS
2916 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
2917 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
2918 if test $ac_cv_lib_m_main = yes; then
2919 cat >>confdefs.h <<_ACEOF
2920 #define HAVE_LIBM 1
2921 _ACEOF
2923 LIBS="-lm $LIBS"
2927 # FIXME: Replace `main' with a function in `-lmysqlclient':
2929 { echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
2930 echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6; }
2931 if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934 ac_check_lib_save_LIBS=$LIBS
2935 LIBS="-lmysqlclient $LIBS"
2936 cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h. */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2945 main ()
2947 return main ();
2949 return 0;
2951 _ACEOF
2952 rm -f conftest.$ac_objext conftest$ac_exeext
2953 if { (ac_try="$ac_link"
2954 case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_link") 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && {
2966 test -z "$ac_c_werror_flag" ||
2967 test ! -s conftest.err
2968 } && test -s conftest$ac_exeext &&
2969 $as_test_x conftest$ac_exeext; then
2970 ac_cv_lib_mysqlclient_main=yes
2971 else
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 ac_cv_lib_mysqlclient_main=no
2978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2979 conftest$ac_exeext conftest.$ac_ext
2980 LIBS=$ac_check_lib_save_LIBS
2982 { echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
2983 echo "${ECHO_T}$ac_cv_lib_mysqlclient_main" >&6; }
2984 if test $ac_cv_lib_mysqlclient_main = yes; then
2985 cat >>confdefs.h <<_ACEOF
2986 #define HAVE_LIBMYSQLCLIENT 1
2987 _ACEOF
2989 LIBS="-lmysqlclient $LIBS"
2993 # FIXME: Replace `main' with a function in `-lssl':
2995 { echo "$as_me:$LINENO: checking for main in -lssl" >&5
2996 echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6; }
2997 if test "${ac_cv_lib_ssl_main+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000 ac_check_lib_save_LIBS=$LIBS
3001 LIBS="-lssl $LIBS"
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3011 main ()
3013 return main ();
3015 return 0;
3017 _ACEOF
3018 rm -f conftest.$ac_objext conftest$ac_exeext
3019 if { (ac_try="$ac_link"
3020 case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_link") 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && {
3032 test -z "$ac_c_werror_flag" ||
3033 test ! -s conftest.err
3034 } && test -s conftest$ac_exeext &&
3035 $as_test_x conftest$ac_exeext; then
3036 ac_cv_lib_ssl_main=yes
3037 else
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 ac_cv_lib_ssl_main=no
3044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3045 conftest$ac_exeext conftest.$ac_ext
3046 LIBS=$ac_check_lib_save_LIBS
3048 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5
3049 echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6; }
3050 if test $ac_cv_lib_ssl_main = yes; then
3051 cat >>confdefs.h <<_ACEOF
3052 #define HAVE_LIBSSL 1
3053 _ACEOF
3055 LIBS="-lssl $LIBS"
3059 # FIXME: Replace `main' with a function in `-lz':
3061 { echo "$as_me:$LINENO: checking for main in -lz" >&5
3062 echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6; }
3063 if test "${ac_cv_lib_z_main+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 ac_check_lib_save_LIBS=$LIBS
3067 LIBS="-lz $LIBS"
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3077 main ()
3079 return main ();
3081 return 0;
3083 _ACEOF
3084 rm -f conftest.$ac_objext conftest$ac_exeext
3085 if { (ac_try="$ac_link"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_link") 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest$ac_exeext &&
3101 $as_test_x conftest$ac_exeext; then
3102 ac_cv_lib_z_main=yes
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 ac_cv_lib_z_main=no
3110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3111 conftest$ac_exeext conftest.$ac_ext
3112 LIBS=$ac_check_lib_save_LIBS
3114 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
3115 echo "${ECHO_T}$ac_cv_lib_z_main" >&6; }
3116 if test $ac_cv_lib_z_main = yes; then
3117 cat >>confdefs.h <<_ACEOF
3118 #define HAVE_LIBZ 1
3119 _ACEOF
3121 LIBS="-lz $LIBS"
3126 # Checks for header files.
3127 ac_ext=c
3128 ac_cpp='$CPP $CPPFLAGS'
3129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3133 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3134 # On Suns, sometimes $CPP names a directory.
3135 if test -n "$CPP" && test -d "$CPP"; then
3136 CPP=
3138 if test -z "$CPP"; then
3139 if test "${ac_cv_prog_CPP+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142 # Double quotes because CPP needs to be expanded
3143 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3145 ac_preproc_ok=false
3146 for ac_c_preproc_warn_flag in '' yes
3148 # Use a header file that comes with gcc, so configuring glibc
3149 # with a fresh cross-compiler works.
3150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3151 # <limits.h> exists even on freestanding compilers.
3152 # On the NeXT, cc -E runs the code through the compiler's parser,
3153 # not just through cpp. "Syntax error" is here to catch this case.
3154 cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h. */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3160 #ifdef __STDC__
3161 # include <limits.h>
3162 #else
3163 # include <assert.h>
3164 #endif
3165 Syntax error
3166 _ACEOF
3167 if { (ac_try="$ac_cpp conftest.$ac_ext"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3174 ac_status=$?
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } >/dev/null && {
3180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3181 test ! -s conftest.err
3182 }; then
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3188 # Broken: fails on valid input.
3189 continue
3192 rm -f conftest.err conftest.$ac_ext
3194 # OK, works on sane cases. Now check whether nonexistent headers
3195 # can be detected and how.
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3202 #include <ac_nonexistent.h>
3203 _ACEOF
3204 if { (ac_try="$ac_cpp conftest.$ac_ext"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3211 ac_status=$?
3212 grep -v '^ *+' conftest.er1 >conftest.err
3213 rm -f conftest.er1
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } >/dev/null && {
3217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3218 test ! -s conftest.err
3219 }; then
3220 # Broken: success on invalid input.
3221 continue
3222 else
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 # Passes both tests.
3227 ac_preproc_ok=:
3228 break
3231 rm -f conftest.err conftest.$ac_ext
3233 done
3234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3235 rm -f conftest.err conftest.$ac_ext
3236 if $ac_preproc_ok; then
3237 break
3240 done
3241 ac_cv_prog_CPP=$CPP
3244 CPP=$ac_cv_prog_CPP
3245 else
3246 ac_cv_prog_CPP=$CPP
3248 { echo "$as_me:$LINENO: result: $CPP" >&5
3249 echo "${ECHO_T}$CPP" >&6; }
3250 ac_preproc_ok=false
3251 for ac_c_preproc_warn_flag in '' yes
3253 # Use a header file that comes with gcc, so configuring glibc
3254 # with a fresh cross-compiler works.
3255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3256 # <limits.h> exists even on freestanding compilers.
3257 # On the NeXT, cc -E runs the code through the compiler's parser,
3258 # not just through cpp. "Syntax error" is here to catch this case.
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265 #ifdef __STDC__
3266 # include <limits.h>
3267 #else
3268 # include <assert.h>
3269 #endif
3270 Syntax error
3271 _ACEOF
3272 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276 esac
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 ac_status=$?
3280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } >/dev/null && {
3285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3286 test ! -s conftest.err
3287 }; then
3289 else
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 # Broken: fails on valid input.
3294 continue
3297 rm -f conftest.err conftest.$ac_ext
3299 # OK, works on sane cases. Now check whether nonexistent headers
3300 # can be detected and how.
3301 cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h. */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3307 #include <ac_nonexistent.h>
3308 _ACEOF
3309 if { (ac_try="$ac_cpp conftest.$ac_ext"
3310 case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313 esac
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3316 ac_status=$?
3317 grep -v '^ *+' conftest.er1 >conftest.err
3318 rm -f conftest.er1
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } >/dev/null && {
3322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3323 test ! -s conftest.err
3324 }; then
3325 # Broken: success on invalid input.
3326 continue
3327 else
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 # Passes both tests.
3332 ac_preproc_ok=:
3333 break
3336 rm -f conftest.err conftest.$ac_ext
3338 done
3339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3340 rm -f conftest.err conftest.$ac_ext
3341 if $ac_preproc_ok; then
3343 else
3344 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3345 See \`config.log' for more details." >&5
3346 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3347 See \`config.log' for more details." >&2;}
3348 { (exit 1); exit 1; }; }
3351 ac_ext=c
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3359 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3360 if test "${ac_cv_path_GREP+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 # Extract the first word of "grep ggrep" to use in msg output
3364 if test -z "$GREP"; then
3365 set dummy grep ggrep; ac_prog_name=$2
3366 if test "${ac_cv_path_GREP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369 ac_path_GREP_found=false
3370 # Loop through the user's path and test for each of PROGNAME-LIST
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_prog in grep ggrep; do
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3379 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3380 # Check for GNU ac_path_GREP and select it if it is found.
3381 # Check for GNU $ac_path_GREP
3382 case `"$ac_path_GREP" --version 2>&1` in
3383 *GNU*)
3384 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3386 ac_count=0
3387 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3388 while :
3390 cat "conftest.in" "conftest.in" >"conftest.tmp"
3391 mv "conftest.tmp" "conftest.in"
3392 cp "conftest.in" "conftest.nl"
3393 echo 'GREP' >> "conftest.nl"
3394 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3396 ac_count=`expr $ac_count + 1`
3397 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3398 # Best one so far, save it but keep looking for a better one
3399 ac_cv_path_GREP="$ac_path_GREP"
3400 ac_path_GREP_max=$ac_count
3402 # 10*(2^10) chars as input seems more than enough
3403 test $ac_count -gt 10 && break
3404 done
3405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3406 esac
3409 $ac_path_GREP_found && break 3
3410 done
3411 done
3413 done
3414 IFS=$as_save_IFS
3419 GREP="$ac_cv_path_GREP"
3420 if test -z "$GREP"; then
3421 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3422 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3423 { (exit 1); exit 1; }; }
3426 else
3427 ac_cv_path_GREP=$GREP
3432 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3433 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3434 GREP="$ac_cv_path_GREP"
3437 { echo "$as_me:$LINENO: checking for egrep" >&5
3438 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3439 if test "${ac_cv_path_EGREP+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3443 then ac_cv_path_EGREP="$GREP -E"
3444 else
3445 # Extract the first word of "egrep" to use in msg output
3446 if test -z "$EGREP"; then
3447 set dummy egrep; ac_prog_name=$2
3448 if test "${ac_cv_path_EGREP+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451 ac_path_EGREP_found=false
3452 # Loop through the user's path and test for each of PROGNAME-LIST
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_prog in egrep; do
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3461 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3462 # Check for GNU ac_path_EGREP and select it if it is found.
3463 # Check for GNU $ac_path_EGREP
3464 case `"$ac_path_EGREP" --version 2>&1` in
3465 *GNU*)
3466 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3468 ac_count=0
3469 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3470 while :
3472 cat "conftest.in" "conftest.in" >"conftest.tmp"
3473 mv "conftest.tmp" "conftest.in"
3474 cp "conftest.in" "conftest.nl"
3475 echo 'EGREP' >> "conftest.nl"
3476 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3478 ac_count=`expr $ac_count + 1`
3479 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3480 # Best one so far, save it but keep looking for a better one
3481 ac_cv_path_EGREP="$ac_path_EGREP"
3482 ac_path_EGREP_max=$ac_count
3484 # 10*(2^10) chars as input seems more than enough
3485 test $ac_count -gt 10 && break
3486 done
3487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3488 esac
3491 $ac_path_EGREP_found && break 3
3492 done
3493 done
3495 done
3496 IFS=$as_save_IFS
3501 EGREP="$ac_cv_path_EGREP"
3502 if test -z "$EGREP"; then
3503 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3504 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3505 { (exit 1); exit 1; }; }
3508 else
3509 ac_cv_path_EGREP=$EGREP
3515 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3516 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3517 EGREP="$ac_cv_path_EGREP"
3520 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3521 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3522 if test "${ac_cv_header_stdc+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h. */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 #include <stdlib.h>
3532 #include <stdarg.h>
3533 #include <string.h>
3534 #include <float.h>
3537 main ()
3541 return 0;
3543 _ACEOF
3544 rm -f conftest.$ac_objext
3545 if { (ac_try="$ac_compile"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_compile") 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } && {
3558 test -z "$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3560 } && test -s conftest.$ac_objext; then
3561 ac_cv_header_stdc=yes
3562 else
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3566 ac_cv_header_stdc=no
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 if test $ac_cv_header_stdc = yes; then
3572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3573 cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h. */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3579 #include <string.h>
3581 _ACEOF
3582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3583 $EGREP "memchr" >/dev/null 2>&1; then
3585 else
3586 ac_cv_header_stdc=no
3588 rm -f conftest*
3592 if test $ac_cv_header_stdc = yes; then
3593 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h. */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 #include <stdlib.h>
3602 _ACEOF
3603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3604 $EGREP "free" >/dev/null 2>&1; then
3606 else
3607 ac_cv_header_stdc=no
3609 rm -f conftest*
3613 if test $ac_cv_header_stdc = yes; then
3614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3615 if test "$cross_compiling" = yes; then
3617 else
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h. */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624 #include <ctype.h>
3625 #include <stdlib.h>
3626 #if ((' ' & 0x0FF) == 0x020)
3627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3629 #else
3630 # define ISLOWER(c) \
3631 (('a' <= (c) && (c) <= 'i') \
3632 || ('j' <= (c) && (c) <= 'r') \
3633 || ('s' <= (c) && (c) <= 'z'))
3634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3635 #endif
3637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3639 main ()
3641 int i;
3642 for (i = 0; i < 256; i++)
3643 if (XOR (islower (i), ISLOWER (i))
3644 || toupper (i) != TOUPPER (i))
3645 return 2;
3646 return 0;
3648 _ACEOF
3649 rm -f conftest$ac_exeext
3650 if { (ac_try="$ac_link"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_link") 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3660 { (case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665 (eval "$ac_try") 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3670 else
3671 echo "$as_me: program exited with status $ac_status" >&5
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 ( exit $ac_status )
3676 ac_cv_header_stdc=no
3678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3684 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3685 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3686 if test $ac_cv_header_stdc = yes; then
3688 cat >>confdefs.h <<\_ACEOF
3689 #define STDC_HEADERS 1
3690 _ACEOF
3694 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3704 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3705 inttypes.h stdint.h unistd.h
3707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713 cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h. */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 $ac_includes_default
3721 #include <$ac_header>
3722 _ACEOF
3723 rm -f conftest.$ac_objext
3724 if { (ac_try="$ac_compile"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_compile") 2>conftest.er1
3731 ac_status=$?
3732 grep -v '^ *+' conftest.er1 >conftest.err
3733 rm -f conftest.er1
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } && {
3737 test -z "$ac_c_werror_flag" ||
3738 test ! -s conftest.err
3739 } && test -s conftest.$ac_objext; then
3740 eval "$as_ac_Header=yes"
3741 else
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3745 eval "$as_ac_Header=no"
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_res=`eval echo '${'$as_ac_Header'}'`
3751 { echo "$as_me:$LINENO: result: $ac_res" >&5
3752 echo "${ECHO_T}$ac_res" >&6; }
3753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3754 cat >>confdefs.h <<_ACEOF
3755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3756 _ACEOF
3760 done
3764 for ac_header in stdlib.h
3766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 ac_res=`eval echo '${'$as_ac_Header'}'`
3774 { echo "$as_me:$LINENO: result: $ac_res" >&5
3775 echo "${ECHO_T}$ac_res" >&6; }
3776 else
3777 # Is the header compilable?
3778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3780 cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h. */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3786 $ac_includes_default
3787 #include <$ac_header>
3788 _ACEOF
3789 rm -f conftest.$ac_objext
3790 if { (ac_try="$ac_compile"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_compile") 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } && {
3803 test -z "$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 } && test -s conftest.$ac_objext; then
3806 ac_header_compiler=yes
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 ac_header_compiler=no
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3816 echo "${ECHO_T}$ac_header_compiler" >&6; }
3818 # Is the header present?
3819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 #include <$ac_header>
3828 _ACEOF
3829 if { (ac_try="$ac_cpp conftest.$ac_ext"
3830 case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3836 ac_status=$?
3837 grep -v '^ *+' conftest.er1 >conftest.err
3838 rm -f conftest.er1
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev/null && {
3842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3843 test ! -s conftest.err
3844 }; then
3845 ac_header_preproc=yes
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_header_preproc=no
3853 rm -f conftest.err conftest.$ac_ext
3854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3855 echo "${ECHO_T}$ac_header_preproc" >&6; }
3857 # So? What about this header?
3858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3859 yes:no: )
3860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3864 ac_header_preproc=yes
3866 no:yes:* )
3867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3879 ( cat <<\_ASBOX
3880 ## ------------------------------ ##
3881 ## Report this to sjk@ankeborg.nu ##
3882 ## ------------------------------ ##
3883 _ASBOX
3884 ) | sed "s/^/$as_me: WARNING: /" >&2
3886 esac
3887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892 eval "$as_ac_Header=\$ac_header_preproc"
3894 ac_res=`eval echo '${'$as_ac_Header'}'`
3895 { echo "$as_me:$LINENO: result: $ac_res" >&5
3896 echo "${ECHO_T}$ac_res" >&6; }
3899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3900 cat >>confdefs.h <<_ACEOF
3901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3902 _ACEOF
3906 done
3909 # Checks for typedefs, structures, and compiler characteristics.
3910 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3911 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3912 if test "${ac_cv_c_const+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h. */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3923 main ()
3925 /* FIXME: Include the comments suggested by Paul. */
3926 #ifndef __cplusplus
3927 /* Ultrix mips cc rejects this. */
3928 typedef int charset[2];
3929 const charset cs;
3930 /* SunOS 4.1.1 cc rejects this. */
3931 char const *const *pcpcc;
3932 char **ppc;
3933 /* NEC SVR4.0.2 mips cc rejects this. */
3934 struct point {int x, y;};
3935 static struct point const zero = {0,0};
3936 /* AIX XL C 1.02.0.0 rejects this.
3937 It does not let you subtract one const X* pointer from another in
3938 an arm of an if-expression whose if-part is not a constant
3939 expression */
3940 const char *g = "string";
3941 pcpcc = &g + (g ? g-g : 0);
3942 /* HPUX 7.0 cc rejects these. */
3943 ++pcpcc;
3944 ppc = (char**) pcpcc;
3945 pcpcc = (char const *const *) ppc;
3946 { /* SCO 3.2v4 cc rejects this. */
3947 char *t;
3948 char const *s = 0 ? (char *) 0 : (char const *) 0;
3950 *t++ = 0;
3951 if (s) return 0;
3953 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3954 int x[] = {25, 17};
3955 const int *foo = &x[0];
3956 ++foo;
3958 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3959 typedef const int *iptr;
3960 iptr p = 0;
3961 ++p;
3963 { /* AIX XL C 1.02.0.0 rejects this saying
3964 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3965 struct s { int j; const int *ap[3]; };
3966 struct s *b; b->j = 5;
3968 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3969 const int foo = 10;
3970 if (!foo) return 0;
3972 return !cs[0] && !zero.x;
3973 #endif
3976 return 0;
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (ac_try="$ac_compile"
3981 case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3984 esac
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_compile") 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } && {
3993 test -z "$ac_c_werror_flag" ||
3994 test ! -s conftest.err
3995 } && test -s conftest.$ac_objext; then
3996 ac_cv_c_const=yes
3997 else
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 ac_cv_c_const=no
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4007 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4008 if test $ac_cv_c_const = no; then
4010 cat >>confdefs.h <<\_ACEOF
4011 #define const
4012 _ACEOF
4016 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4017 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
4018 if test "${ac_cv_struct_tm+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h. */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027 #include <sys/types.h>
4028 #include <time.h>
4031 main ()
4033 struct tm tm;
4034 int *p = &tm.tm_sec;
4035 return !p;
4037 return 0;
4039 _ACEOF
4040 rm -f conftest.$ac_objext
4041 if { (ac_try="$ac_compile"
4042 case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045 esac
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && {
4054 test -z "$ac_c_werror_flag" ||
4055 test ! -s conftest.err
4056 } && test -s conftest.$ac_objext; then
4057 ac_cv_struct_tm=time.h
4058 else
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4062 ac_cv_struct_tm=sys/time.h
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4068 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
4069 if test $ac_cv_struct_tm = sys/time.h; then
4071 cat >>confdefs.h <<\_ACEOF
4072 #define TM_IN_SYS_TIME 1
4073 _ACEOF
4078 # Checks for library functions.
4080 for ac_header in stdlib.h
4082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 ac_res=`eval echo '${'$as_ac_Header'}'`
4090 { echo "$as_me:$LINENO: result: $ac_res" >&5
4091 echo "${ECHO_T}$ac_res" >&6; }
4092 else
4093 # Is the header compilable?
4094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h. */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 $ac_includes_default
4103 #include <$ac_header>
4104 _ACEOF
4105 rm -f conftest.$ac_objext
4106 if { (ac_try="$ac_compile"
4107 case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110 esac
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_compile") 2>conftest.er1
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } && {
4119 test -z "$ac_c_werror_flag" ||
4120 test ! -s conftest.err
4121 } && test -s conftest.$ac_objext; then
4122 ac_header_compiler=yes
4123 else
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4127 ac_header_compiler=no
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4132 echo "${ECHO_T}$ac_header_compiler" >&6; }
4134 # Is the header present?
4135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <$ac_header>
4144 _ACEOF
4145 if { (ac_try="$ac_cpp conftest.$ac_ext"
4146 case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } >/dev/null && {
4158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4159 test ! -s conftest.err
4160 }; then
4161 ac_header_preproc=yes
4162 else
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 ac_header_preproc=no
4169 rm -f conftest.err conftest.$ac_ext
4170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4171 echo "${ECHO_T}$ac_header_preproc" >&6; }
4173 # So? What about this header?
4174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4175 yes:no: )
4176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4180 ac_header_preproc=yes
4182 no:yes:* )
4183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4195 ( cat <<\_ASBOX
4196 ## ------------------------------ ##
4197 ## Report this to sjk@ankeborg.nu ##
4198 ## ------------------------------ ##
4199 _ASBOX
4200 ) | sed "s/^/$as_me: WARNING: /" >&2
4202 esac
4203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 eval "$as_ac_Header=\$ac_header_preproc"
4210 ac_res=`eval echo '${'$as_ac_Header'}'`
4211 { echo "$as_me:$LINENO: result: $ac_res" >&5
4212 echo "${ECHO_T}$ac_res" >&6; }
4215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4216 cat >>confdefs.h <<_ACEOF
4217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4218 _ACEOF
4222 done
4224 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4225 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
4226 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 if test "$cross_compiling" = yes; then
4230 ac_cv_func_malloc_0_nonnull=no
4231 else
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4239 # include <stdlib.h>
4240 #else
4241 char *malloc ();
4242 #endif
4245 main ()
4247 return ! malloc (0);
4249 return 0;
4251 _ACEOF
4252 rm -f conftest$ac_exeext
4253 if { (ac_try="$ac_link"
4254 case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257 esac
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_link") 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 ac_cv_func_malloc_0_nonnull=yes
4273 else
4274 echo "$as_me: program exited with status $ac_status" >&5
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4278 ( exit $ac_status )
4279 ac_cv_func_malloc_0_nonnull=no
4281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4286 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4287 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
4288 if test $ac_cv_func_malloc_0_nonnull = yes; then
4290 cat >>confdefs.h <<\_ACEOF
4291 #define HAVE_MALLOC 1
4292 _ACEOF
4294 else
4295 cat >>confdefs.h <<\_ACEOF
4296 #define HAVE_MALLOC 0
4297 _ACEOF
4299 case " $LIBOBJS " in
4300 *" malloc.$ac_objext "* ) ;;
4301 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4303 esac
4306 cat >>confdefs.h <<\_ACEOF
4307 #define malloc rpl_malloc
4308 _ACEOF
4315 for ac_func in strftime
4317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h. */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4331 #define $ac_func innocuous_$ac_func
4333 /* System header to define __stub macros and hopefully few prototypes,
4334 which can conflict with char $ac_func (); below.
4335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 <limits.h> exists even on freestanding compilers. */
4338 #ifdef __STDC__
4339 # include <limits.h>
4340 #else
4341 # include <assert.h>
4342 #endif
4344 #undef $ac_func
4346 /* Override any GCC internal prototype to avoid an error.
4347 Use char because int might match the return type of a GCC
4348 builtin and then its argument prototype would still apply. */
4349 #ifdef __cplusplus
4350 extern "C"
4351 #endif
4352 char $ac_func ();
4353 /* The GNU C library defines this for functions which it implements
4354 to always fail with ENOSYS. Some functions are actually named
4355 something starting with __ and the normal name is an alias. */
4356 #if defined __stub_$ac_func || defined __stub___$ac_func
4357 choke me
4358 #endif
4361 main ()
4363 return $ac_func ();
4365 return 0;
4367 _ACEOF
4368 rm -f conftest.$ac_objext conftest$ac_exeext
4369 if { (ac_try="$ac_link"
4370 case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373 esac
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_link") 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } && {
4382 test -z "$ac_c_werror_flag" ||
4383 test ! -s conftest.err
4384 } && test -s conftest$ac_exeext &&
4385 $as_test_x conftest$ac_exeext; then
4386 eval "$as_ac_var=yes"
4387 else
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4391 eval "$as_ac_var=no"
4394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4395 conftest$ac_exeext conftest.$ac_ext
4397 ac_res=`eval echo '${'$as_ac_var'}'`
4398 { echo "$as_me:$LINENO: result: $ac_res" >&5
4399 echo "${ECHO_T}$ac_res" >&6; }
4400 if test `eval echo '${'$as_ac_var'}'` = yes; then
4401 cat >>confdefs.h <<_ACEOF
4402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4403 _ACEOF
4405 else
4406 # strftime is in -lintl on SCO UNIX.
4407 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
4408 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
4409 if test "${ac_cv_lib_intl_strftime+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 ac_check_lib_save_LIBS=$LIBS
4413 LIBS="-lintl $LIBS"
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4421 /* Override any GCC internal prototype to avoid an error.
4422 Use char because int might match the return type of a GCC
4423 builtin and then its argument prototype would still apply. */
4424 #ifdef __cplusplus
4425 extern "C"
4426 #endif
4427 char strftime ();
4429 main ()
4431 return strftime ();
4433 return 0;
4435 _ACEOF
4436 rm -f conftest.$ac_objext conftest$ac_exeext
4437 if { (ac_try="$ac_link"
4438 case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4441 esac
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_link") 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } && {
4450 test -z "$ac_c_werror_flag" ||
4451 test ! -s conftest.err
4452 } && test -s conftest$ac_exeext &&
4453 $as_test_x conftest$ac_exeext; then
4454 ac_cv_lib_intl_strftime=yes
4455 else
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 ac_cv_lib_intl_strftime=no
4462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4463 conftest$ac_exeext conftest.$ac_ext
4464 LIBS=$ac_check_lib_save_LIBS
4466 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
4467 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
4468 if test $ac_cv_lib_intl_strftime = yes; then
4469 cat >>confdefs.h <<\_ACEOF
4470 #define HAVE_STRFTIME 1
4471 _ACEOF
4473 LIBS="-lintl $LIBS"
4477 done
4480 for ac_func in strchr
4482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4496 #define $ac_func innocuous_$ac_func
4498 /* System header to define __stub macros and hopefully few prototypes,
4499 which can conflict with char $ac_func (); below.
4500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4501 <limits.h> exists even on freestanding compilers. */
4503 #ifdef __STDC__
4504 # include <limits.h>
4505 #else
4506 # include <assert.h>
4507 #endif
4509 #undef $ac_func
4511 /* Override any GCC internal prototype to avoid an error.
4512 Use char because int might match the return type of a GCC
4513 builtin and then its argument prototype would still apply. */
4514 #ifdef __cplusplus
4515 extern "C"
4516 #endif
4517 char $ac_func ();
4518 /* The GNU C library defines this for functions which it implements
4519 to always fail with ENOSYS. Some functions are actually named
4520 something starting with __ and the normal name is an alias. */
4521 #if defined __stub_$ac_func || defined __stub___$ac_func
4522 choke me
4523 #endif
4526 main ()
4528 return $ac_func ();
4530 return 0;
4532 _ACEOF
4533 rm -f conftest.$ac_objext conftest$ac_exeext
4534 if { (ac_try="$ac_link"
4535 case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_link") 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && {
4547 test -z "$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 } && test -s conftest$ac_exeext &&
4550 $as_test_x conftest$ac_exeext; then
4551 eval "$as_ac_var=yes"
4552 else
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 eval "$as_ac_var=no"
4559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4560 conftest$ac_exeext conftest.$ac_ext
4562 ac_res=`eval echo '${'$as_ac_var'}'`
4563 { echo "$as_me:$LINENO: result: $ac_res" >&5
4564 echo "${ECHO_T}$ac_res" >&6; }
4565 if test `eval echo '${'$as_ac_var'}'` = yes; then
4566 cat >>confdefs.h <<_ACEOF
4567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4568 _ACEOF
4571 done
4574 ac_config_files="$ac_config_files Makefile"
4576 cat >confcache <<\_ACEOF
4577 # This file is a shell script that caches the results of configure
4578 # tests run on this system so they can be shared between configure
4579 # scripts and configure runs, see configure's option --config-cache.
4580 # It is not useful on other systems. If it contains results you don't
4581 # want to keep, you may remove or edit it.
4583 # config.status only pays attention to the cache file if you give it
4584 # the --recheck option to rerun configure.
4586 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4587 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4588 # following values.
4590 _ACEOF
4592 # The following way of writing the cache mishandles newlines in values,
4593 # but we know of no workaround that is simple, portable, and efficient.
4594 # So, we kill variables containing newlines.
4595 # Ultrix sh set writes to stderr and can't be redirected directly,
4596 # and sets the high bit in the cache file unless we assign to the vars.
4598 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4599 eval ac_val=\$$ac_var
4600 case $ac_val in #(
4601 *${as_nl}*)
4602 case $ac_var in #(
4603 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4604 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4605 esac
4606 case $ac_var in #(
4607 _ | IFS | as_nl) ;; #(
4608 *) $as_unset $ac_var ;;
4609 esac ;;
4610 esac
4611 done
4613 (set) 2>&1 |
4614 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4615 *${as_nl}ac_space=\ *)
4616 # `set' does not quote correctly, so add quotes (double-quote
4617 # substitution turns \\\\ into \\, and sed turns \\ into \).
4618 sed -n \
4619 "s/'/'\\\\''/g;
4620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4621 ;; #(
4623 # `set' quotes correctly as required by POSIX, so do not add quotes.
4624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4626 esac |
4627 sort
4629 sed '
4630 /^ac_cv_env_/b end
4631 t clear
4632 :clear
4633 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4634 t end
4635 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4636 :end' >>confcache
4637 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4638 if test -w "$cache_file"; then
4639 test "x$cache_file" != "x/dev/null" &&
4640 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4641 echo "$as_me: updating cache $cache_file" >&6;}
4642 cat confcache >$cache_file
4643 else
4644 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4645 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4648 rm -f confcache
4650 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4651 # Let make expand exec_prefix.
4652 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4654 DEFS=-DHAVE_CONFIG_H
4656 ac_libobjs=
4657 ac_ltlibobjs=
4658 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4659 # 1. Remove the extension, and $U if already installed.
4660 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4661 ac_i=`echo "$ac_i" | sed "$ac_script"`
4662 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4663 # will be set to the directory where LIBOBJS objects are built.
4664 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4665 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4666 done
4667 LIBOBJS=$ac_libobjs
4669 LTLIBOBJS=$ac_ltlibobjs
4673 : ${CONFIG_STATUS=./config.status}
4674 ac_clean_files_save=$ac_clean_files
4675 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4676 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4677 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4678 cat >$CONFIG_STATUS <<_ACEOF
4679 #! $SHELL
4680 # Generated by $as_me.
4681 # Run this file to recreate the current configuration.
4682 # Compiler output produced by configure, useful for debugging
4683 # configure, is in config.log if it exists.
4685 debug=false
4686 ac_cs_recheck=false
4687 ac_cs_silent=false
4688 SHELL=\${CONFIG_SHELL-$SHELL}
4689 _ACEOF
4691 cat >>$CONFIG_STATUS <<\_ACEOF
4692 ## --------------------- ##
4693 ## M4sh Initialization. ##
4694 ## --------------------- ##
4696 # Be more Bourne compatible
4697 DUALCASE=1; export DUALCASE # for MKS sh
4698 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4699 emulate sh
4700 NULLCMD=:
4701 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4702 # is contrary to our usage. Disable this feature.
4703 alias -g '${1+"$@"}'='"$@"'
4704 setopt NO_GLOB_SUBST
4705 else
4706 case `(set -o) 2>/dev/null` in
4707 *posix*) set -o posix ;;
4708 esac
4715 # PATH needs CR
4716 # Avoid depending upon Character Ranges.
4717 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4718 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4719 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4720 as_cr_digits='0123456789'
4721 as_cr_alnum=$as_cr_Letters$as_cr_digits
4723 # The user is always right.
4724 if test "${PATH_SEPARATOR+set}" != set; then
4725 echo "#! /bin/sh" >conf$$.sh
4726 echo "exit 0" >>conf$$.sh
4727 chmod +x conf$$.sh
4728 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4729 PATH_SEPARATOR=';'
4730 else
4731 PATH_SEPARATOR=:
4733 rm -f conf$$.sh
4736 # Support unset when possible.
4737 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4738 as_unset=unset
4739 else
4740 as_unset=false
4744 # IFS
4745 # We need space, tab and new line, in precisely that order. Quoting is
4746 # there to prevent editors from complaining about space-tab.
4747 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4748 # splitting by setting IFS to empty value.)
4749 as_nl='
4751 IFS=" "" $as_nl"
4753 # Find who we are. Look in the path if we contain no directory separator.
4754 case $0 in
4755 *[\\/]* ) as_myself=$0 ;;
4756 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4762 done
4763 IFS=$as_save_IFS
4766 esac
4767 # We did not find ourselves, most probably we were run as `sh COMMAND'
4768 # in which case we are not to be found in the path.
4769 if test "x$as_myself" = x; then
4770 as_myself=$0
4772 if test ! -f "$as_myself"; then
4773 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4774 { (exit 1); exit 1; }
4777 # Work around bugs in pre-3.0 UWIN ksh.
4778 for as_var in ENV MAIL MAILPATH
4779 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4780 done
4781 PS1='$ '
4782 PS2='> '
4783 PS4='+ '
4785 # NLS nuisances.
4786 for as_var in \
4787 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4788 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4789 LC_TELEPHONE LC_TIME
4791 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4792 eval $as_var=C; export $as_var
4793 else
4794 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4796 done
4798 # Required to use basename.
4799 if expr a : '\(a\)' >/dev/null 2>&1 &&
4800 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4801 as_expr=expr
4802 else
4803 as_expr=false
4806 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4807 as_basename=basename
4808 else
4809 as_basename=false
4813 # Name of the executable.
4814 as_me=`$as_basename -- "$0" ||
4815 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4816 X"$0" : 'X\(//\)$' \| \
4817 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4818 echo X/"$0" |
4819 sed '/^.*\/\([^/][^/]*\)\/*$/{
4820 s//\1/
4823 /^X\/\(\/\/\)$/{
4824 s//\1/
4827 /^X\/\(\/\).*/{
4828 s//\1/
4831 s/.*/./; q'`
4833 # CDPATH.
4834 $as_unset CDPATH
4838 as_lineno_1=$LINENO
4839 as_lineno_2=$LINENO
4840 test "x$as_lineno_1" != "x$as_lineno_2" &&
4841 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4843 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4844 # uniformly replaced by the line number. The first 'sed' inserts a
4845 # line-number line after each line using $LINENO; the second 'sed'
4846 # does the real work. The second script uses 'N' to pair each
4847 # line-number line with the line containing $LINENO, and appends
4848 # trailing '-' during substitution so that $LINENO is not a special
4849 # case at line end.
4850 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4851 # scripts with optimization help from Paolo Bonzini. Blame Lee
4852 # E. McMahon (1931-1989) for sed's syntax. :-)
4853 sed -n '
4855 /[$]LINENO/=
4856 ' <$as_myself |
4857 sed '
4858 s/[$]LINENO.*/&-/
4859 t lineno
4861 :lineno
4863 :loop
4864 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4865 t loop
4866 s/-\n.*//
4867 ' >$as_me.lineno &&
4868 chmod +x "$as_me.lineno" ||
4869 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4870 { (exit 1); exit 1; }; }
4872 # Don't try to exec as it changes $[0], causing all sort of problems
4873 # (the dirname of $[0] is not the place where we might find the
4874 # original and so on. Autoconf is especially sensitive to this).
4875 . "./$as_me.lineno"
4876 # Exit status is that of the last command.
4877 exit
4881 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4882 as_dirname=dirname
4883 else
4884 as_dirname=false
4887 ECHO_C= ECHO_N= ECHO_T=
4888 case `echo -n x` in
4889 -n*)
4890 case `echo 'x\c'` in
4891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4892 *) ECHO_C='\c';;
4893 esac;;
4895 ECHO_N='-n';;
4896 esac
4898 if expr a : '\(a\)' >/dev/null 2>&1 &&
4899 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4900 as_expr=expr
4901 else
4902 as_expr=false
4905 rm -f conf$$ conf$$.exe conf$$.file
4906 if test -d conf$$.dir; then
4907 rm -f conf$$.dir/conf$$.file
4908 else
4909 rm -f conf$$.dir
4910 mkdir conf$$.dir
4912 echo >conf$$.file
4913 if ln -s conf$$.file conf$$ 2>/dev/null; then
4914 as_ln_s='ln -s'
4915 # ... but there are two gotchas:
4916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4918 # In both cases, we have to default to `cp -p'.
4919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4920 as_ln_s='cp -p'
4921 elif ln conf$$.file conf$$ 2>/dev/null; then
4922 as_ln_s=ln
4923 else
4924 as_ln_s='cp -p'
4926 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4927 rmdir conf$$.dir 2>/dev/null
4929 if mkdir -p . 2>/dev/null; then
4930 as_mkdir_p=:
4931 else
4932 test -d ./-p && rmdir ./-p
4933 as_mkdir_p=false
4936 if test -x / >/dev/null 2>&1; then
4937 as_test_x='test -x'
4938 else
4939 if ls -dL / >/dev/null 2>&1; then
4940 as_ls_L_option=L
4941 else
4942 as_ls_L_option=
4944 as_test_x='
4945 eval sh -c '\''
4946 if test -d "$1"; then
4947 test -d "$1/.";
4948 else
4949 case $1 in
4950 -*)set "./$1";;
4951 esac;
4952 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4953 ???[sx]*):;;*)false;;esac;fi
4954 '\'' sh
4957 as_executable_p=$as_test_x
4959 # Sed expression to map a string onto a valid CPP name.
4960 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4962 # Sed expression to map a string onto a valid variable name.
4963 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4966 exec 6>&1
4968 # Save the log message, to keep $[0] and so on meaningful, and to
4969 # report actual input values of CONFIG_FILES etc. instead of their
4970 # values after options handling.
4971 ac_log="
4972 This file was extended by vhostgen $as_me 1.0, which was
4973 generated by GNU Autoconf 2.61. Invocation command line was
4975 CONFIG_FILES = $CONFIG_FILES
4976 CONFIG_HEADERS = $CONFIG_HEADERS
4977 CONFIG_LINKS = $CONFIG_LINKS
4978 CONFIG_COMMANDS = $CONFIG_COMMANDS
4979 $ $0 $@
4981 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4984 _ACEOF
4986 cat >>$CONFIG_STATUS <<_ACEOF
4987 # Files that config.status was made for.
4988 config_files="$ac_config_files"
4989 config_headers="$ac_config_headers"
4991 _ACEOF
4993 cat >>$CONFIG_STATUS <<\_ACEOF
4994 ac_cs_usage="\
4995 \`$as_me' instantiates files from templates according to the
4996 current configuration.
4998 Usage: $0 [OPTIONS] [FILE]...
5000 -h, --help print this help, then exit
5001 -V, --version print version number and configuration settings, then exit
5002 -q, --quiet do not print progress messages
5003 -d, --debug don't remove temporary files
5004 --recheck update $as_me by reconfiguring in the same conditions
5005 --file=FILE[:TEMPLATE]
5006 instantiate the configuration file FILE
5007 --header=FILE[:TEMPLATE]
5008 instantiate the configuration header FILE
5010 Configuration files:
5011 $config_files
5013 Configuration headers:
5014 $config_headers
5016 Report bugs to <bug-autoconf@gnu.org>."
5018 _ACEOF
5019 cat >>$CONFIG_STATUS <<_ACEOF
5020 ac_cs_version="\\
5021 vhostgen config.status 1.0
5022 configured by $0, generated by GNU Autoconf 2.61,
5023 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5025 Copyright (C) 2006 Free Software Foundation, Inc.
5026 This config.status script is free software; the Free Software Foundation
5027 gives unlimited permission to copy, distribute and modify it."
5029 ac_pwd='$ac_pwd'
5030 srcdir='$srcdir'
5031 INSTALL='$INSTALL'
5032 _ACEOF
5034 cat >>$CONFIG_STATUS <<\_ACEOF
5035 # If no file are specified by the user, then we need to provide default
5036 # value. By we need to know if files were specified by the user.
5037 ac_need_defaults=:
5038 while test $# != 0
5040 case $1 in
5041 --*=*)
5042 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5043 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5044 ac_shift=:
5047 ac_option=$1
5048 ac_optarg=$2
5049 ac_shift=shift
5051 esac
5053 case $ac_option in
5054 # Handling of the options.
5055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5056 ac_cs_recheck=: ;;
5057 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5058 echo "$ac_cs_version"; exit ;;
5059 --debug | --debu | --deb | --de | --d | -d )
5060 debug=: ;;
5061 --file | --fil | --fi | --f )
5062 $ac_shift
5063 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5064 ac_need_defaults=false;;
5065 --header | --heade | --head | --hea )
5066 $ac_shift
5067 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5068 ac_need_defaults=false;;
5069 --he | --h)
5070 # Conflict between --help and --header
5071 { echo "$as_me: error: ambiguous option: $1
5072 Try \`$0 --help' for more information." >&2
5073 { (exit 1); exit 1; }; };;
5074 --help | --hel | -h )
5075 echo "$ac_cs_usage"; exit ;;
5076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5077 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5078 ac_cs_silent=: ;;
5080 # This is an error.
5081 -*) { echo "$as_me: error: unrecognized option: $1
5082 Try \`$0 --help' for more information." >&2
5083 { (exit 1); exit 1; }; } ;;
5085 *) ac_config_targets="$ac_config_targets $1"
5086 ac_need_defaults=false ;;
5088 esac
5089 shift
5090 done
5092 ac_configure_extra_args=
5094 if $ac_cs_silent; then
5095 exec 6>/dev/null
5096 ac_configure_extra_args="$ac_configure_extra_args --silent"
5099 _ACEOF
5100 cat >>$CONFIG_STATUS <<_ACEOF
5101 if \$ac_cs_recheck; then
5102 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5103 CONFIG_SHELL=$SHELL
5104 export CONFIG_SHELL
5105 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5108 _ACEOF
5109 cat >>$CONFIG_STATUS <<\_ACEOF
5110 exec 5>>config.log
5112 echo
5113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5114 ## Running $as_me. ##
5115 _ASBOX
5116 echo "$ac_log"
5117 } >&5
5119 _ACEOF
5120 cat >>$CONFIG_STATUS <<_ACEOF
5121 _ACEOF
5123 cat >>$CONFIG_STATUS <<\_ACEOF
5125 # Handling of arguments.
5126 for ac_config_target in $ac_config_targets
5128 case $ac_config_target in
5129 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5130 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5132 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5133 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5134 { (exit 1); exit 1; }; };;
5135 esac
5136 done
5139 # If the user did not use the arguments to specify the items to instantiate,
5140 # then the envvar interface is used. Set only those that are not.
5141 # We use the long form for the default assignment because of an extremely
5142 # bizarre bug on SunOS 4.1.3.
5143 if $ac_need_defaults; then
5144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5148 # Have a temporary directory for convenience. Make it in the build tree
5149 # simply because there is no reason against having it here, and in addition,
5150 # creating and moving files from /tmp can sometimes cause problems.
5151 # Hook for its removal unless debugging.
5152 # Note that there is a small window in which the directory will not be cleaned:
5153 # after its creation but before its name has been assigned to `$tmp'.
5154 $debug ||
5156 tmp=
5157 trap 'exit_status=$?
5158 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5160 trap '{ (exit 1); exit 1; }' 1 2 13 15
5162 # Create a (secure) tmp directory for tmp files.
5165 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5166 test -n "$tmp" && test -d "$tmp"
5167 } ||
5169 tmp=./conf$$-$RANDOM
5170 (umask 077 && mkdir "$tmp")
5171 } ||
5173 echo "$me: cannot create a temporary directory in ." >&2
5174 { (exit 1); exit 1; }
5178 # Set up the sed scripts for CONFIG_FILES section.
5181 # No need to generate the scripts if there are no CONFIG_FILES.
5182 # This happens for instance when ./config.status config.h
5183 if test -n "$CONFIG_FILES"; then
5185 _ACEOF
5189 ac_delim='%!_!# '
5190 for ac_last_try in false false false false false :; do
5191 cat >conf$$subs.sed <<_ACEOF
5192 SHELL!$SHELL$ac_delim
5193 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5194 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5195 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5196 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5197 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5198 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5199 exec_prefix!$exec_prefix$ac_delim
5200 prefix!$prefix$ac_delim
5201 program_transform_name!$program_transform_name$ac_delim
5202 bindir!$bindir$ac_delim
5203 sbindir!$sbindir$ac_delim
5204 libexecdir!$libexecdir$ac_delim
5205 datarootdir!$datarootdir$ac_delim
5206 datadir!$datadir$ac_delim
5207 sysconfdir!$sysconfdir$ac_delim
5208 sharedstatedir!$sharedstatedir$ac_delim
5209 localstatedir!$localstatedir$ac_delim
5210 includedir!$includedir$ac_delim
5211 oldincludedir!$oldincludedir$ac_delim
5212 docdir!$docdir$ac_delim
5213 infodir!$infodir$ac_delim
5214 htmldir!$htmldir$ac_delim
5215 dvidir!$dvidir$ac_delim
5216 pdfdir!$pdfdir$ac_delim
5217 psdir!$psdir$ac_delim
5218 libdir!$libdir$ac_delim
5219 localedir!$localedir$ac_delim
5220 mandir!$mandir$ac_delim
5221 DEFS!$DEFS$ac_delim
5222 ECHO_C!$ECHO_C$ac_delim
5223 ECHO_N!$ECHO_N$ac_delim
5224 ECHO_T!$ECHO_T$ac_delim
5225 LIBS!$LIBS$ac_delim
5226 build_alias!$build_alias$ac_delim
5227 host_alias!$host_alias$ac_delim
5228 target_alias!$target_alias$ac_delim
5229 CC!$CC$ac_delim
5230 CFLAGS!$CFLAGS$ac_delim
5231 LDFLAGS!$LDFLAGS$ac_delim
5232 CPPFLAGS!$CPPFLAGS$ac_delim
5233 ac_ct_CC!$ac_ct_CC$ac_delim
5234 EXEEXT!$EXEEXT$ac_delim
5235 OBJEXT!$OBJEXT$ac_delim
5236 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5237 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5238 INSTALL_DATA!$INSTALL_DATA$ac_delim
5239 MYSQL_CFLAGS!$MYSQL_CFLAGS$ac_delim
5240 MYSQL_LIBS!$MYSQL_LIBS$ac_delim
5241 mysqlconfig!$mysqlconfig$ac_delim
5242 CPP!$CPP$ac_delim
5243 GREP!$GREP$ac_delim
5244 EGREP!$EGREP$ac_delim
5245 LIBOBJS!$LIBOBJS$ac_delim
5246 LTLIBOBJS!$LTLIBOBJS$ac_delim
5247 _ACEOF
5249 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
5250 break
5251 elif $ac_last_try; then
5252 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5253 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5254 { (exit 1); exit 1; }; }
5255 else
5256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5258 done
5260 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5261 if test -n "$ac_eof"; then
5262 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5263 ac_eof=`expr $ac_eof + 1`
5266 cat >>$CONFIG_STATUS <<_ACEOF
5267 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5269 _ACEOF
5270 sed '
5271 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5272 s/^/s,@/; s/!/@,|#_!!_#|/
5275 s/'"$ac_delim"'$/,g/; t
5276 s/$/\\/; p
5277 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5278 ' >>$CONFIG_STATUS <conf$$subs.sed
5279 rm -f conf$$subs.sed
5280 cat >>$CONFIG_STATUS <<_ACEOF
5281 :end
5282 s/|#_!!_#|//g
5283 CEOF$ac_eof
5284 _ACEOF
5287 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5288 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5289 # trailing colons and then remove the whole line if VPATH becomes empty
5290 # (actually we leave an empty line to preserve line numbers).
5291 if test "x$srcdir" = x.; then
5292 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5293 s/:*\$(srcdir):*/:/
5294 s/:*\${srcdir}:*/:/
5295 s/:*@srcdir@:*/:/
5296 s/^\([^=]*=[ ]*\):*/\1/
5297 s/:*$//
5298 s/^[^=]*=[ ]*$//
5302 cat >>$CONFIG_STATUS <<\_ACEOF
5303 fi # test -n "$CONFIG_FILES"
5306 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
5308 case $ac_tag in
5309 :[FHLC]) ac_mode=$ac_tag; continue;;
5310 esac
5311 case $ac_mode$ac_tag in
5312 :[FHL]*:*);;
5313 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5314 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5315 { (exit 1); exit 1; }; };;
5316 :[FH]-) ac_tag=-:-;;
5317 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5318 esac
5319 ac_save_IFS=$IFS
5320 IFS=:
5321 set x $ac_tag
5322 IFS=$ac_save_IFS
5323 shift
5324 ac_file=$1
5325 shift
5327 case $ac_mode in
5328 :L) ac_source=$1;;
5329 :[FH])
5330 ac_file_inputs=
5331 for ac_f
5333 case $ac_f in
5334 -) ac_f="$tmp/stdin";;
5335 *) # Look for the file first in the build tree, then in the source tree
5336 # (if the path is not absolute). The absolute path cannot be DOS-style,
5337 # because $ac_f cannot contain `:'.
5338 test -f "$ac_f" ||
5339 case $ac_f in
5340 [\\/$]*) false;;
5341 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5342 esac ||
5343 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5344 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5345 { (exit 1); exit 1; }; };;
5346 esac
5347 ac_file_inputs="$ac_file_inputs $ac_f"
5348 done
5350 # Let's still pretend it is `configure' which instantiates (i.e., don't
5351 # use $as_me), people would be surprised to read:
5352 # /* config.h. Generated by config.status. */
5353 configure_input="Generated from "`IFS=:
5354 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5355 if test x"$ac_file" != x-; then
5356 configure_input="$ac_file. $configure_input"
5357 { echo "$as_me:$LINENO: creating $ac_file" >&5
5358 echo "$as_me: creating $ac_file" >&6;}
5361 case $ac_tag in
5362 *:-:* | *:-) cat >"$tmp/stdin";;
5363 esac
5365 esac
5367 ac_dir=`$as_dirname -- "$ac_file" ||
5368 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5369 X"$ac_file" : 'X\(//\)[^/]' \| \
5370 X"$ac_file" : 'X\(//\)$' \| \
5371 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5372 echo X"$ac_file" |
5373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5374 s//\1/
5377 /^X\(\/\/\)[^/].*/{
5378 s//\1/
5381 /^X\(\/\/\)$/{
5382 s//\1/
5385 /^X\(\/\).*/{
5386 s//\1/
5389 s/.*/./; q'`
5390 { as_dir="$ac_dir"
5391 case $as_dir in #(
5392 -*) as_dir=./$as_dir;;
5393 esac
5394 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5395 as_dirs=
5396 while :; do
5397 case $as_dir in #(
5398 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5399 *) as_qdir=$as_dir;;
5400 esac
5401 as_dirs="'$as_qdir' $as_dirs"
5402 as_dir=`$as_dirname -- "$as_dir" ||
5403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5404 X"$as_dir" : 'X\(//\)[^/]' \| \
5405 X"$as_dir" : 'X\(//\)$' \| \
5406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5407 echo X"$as_dir" |
5408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5409 s//\1/
5412 /^X\(\/\/\)[^/].*/{
5413 s//\1/
5416 /^X\(\/\/\)$/{
5417 s//\1/
5420 /^X\(\/\).*/{
5421 s//\1/
5424 s/.*/./; q'`
5425 test -d "$as_dir" && break
5426 done
5427 test -z "$as_dirs" || eval "mkdir $as_dirs"
5428 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5429 echo "$as_me: error: cannot create directory $as_dir" >&2;}
5430 { (exit 1); exit 1; }; }; }
5431 ac_builddir=.
5433 case "$ac_dir" in
5434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5436 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5437 # A ".." for each directory in $ac_dir_suffix.
5438 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5439 case $ac_top_builddir_sub in
5440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5442 esac ;;
5443 esac
5444 ac_abs_top_builddir=$ac_pwd
5445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5446 # for backward compatibility:
5447 ac_top_builddir=$ac_top_build_prefix
5449 case $srcdir in
5450 .) # We are building in place.
5451 ac_srcdir=.
5452 ac_top_srcdir=$ac_top_builddir_sub
5453 ac_abs_top_srcdir=$ac_pwd ;;
5454 [\\/]* | ?:[\\/]* ) # Absolute name.
5455 ac_srcdir=$srcdir$ac_dir_suffix;
5456 ac_top_srcdir=$srcdir
5457 ac_abs_top_srcdir=$srcdir ;;
5458 *) # Relative name.
5459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5460 ac_top_srcdir=$ac_top_build_prefix$srcdir
5461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5462 esac
5463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5466 case $ac_mode in
5469 # CONFIG_FILE
5472 case $INSTALL in
5473 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5474 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5475 esac
5476 _ACEOF
5478 cat >>$CONFIG_STATUS <<\_ACEOF
5479 # If the template does not know about datarootdir, expand it.
5480 # FIXME: This hack should be removed a few years after 2.60.
5481 ac_datarootdir_hack=; ac_datarootdir_seen=
5483 case `sed -n '/datarootdir/ {
5487 /@datadir@/p
5488 /@docdir@/p
5489 /@infodir@/p
5490 /@localedir@/p
5491 /@mandir@/p
5492 ' $ac_file_inputs` in
5493 *datarootdir*) ac_datarootdir_seen=yes;;
5494 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5495 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5496 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5497 _ACEOF
5498 cat >>$CONFIG_STATUS <<_ACEOF
5499 ac_datarootdir_hack='
5500 s&@datadir@&$datadir&g
5501 s&@docdir@&$docdir&g
5502 s&@infodir@&$infodir&g
5503 s&@localedir@&$localedir&g
5504 s&@mandir@&$mandir&g
5505 s&\\\${datarootdir}&$datarootdir&g' ;;
5506 esac
5507 _ACEOF
5509 # Neutralize VPATH when `$srcdir' = `.'.
5510 # Shell code in configure.ac might set extrasub.
5511 # FIXME: do we really want to maintain this feature?
5512 cat >>$CONFIG_STATUS <<_ACEOF
5513 sed "$ac_vpsub
5514 $extrasub
5515 _ACEOF
5516 cat >>$CONFIG_STATUS <<\_ACEOF
5518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5519 s&@configure_input@&$configure_input&;t t
5520 s&@top_builddir@&$ac_top_builddir_sub&;t t
5521 s&@srcdir@&$ac_srcdir&;t t
5522 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5523 s&@top_srcdir@&$ac_top_srcdir&;t t
5524 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5525 s&@builddir@&$ac_builddir&;t t
5526 s&@abs_builddir@&$ac_abs_builddir&;t t
5527 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5528 s&@INSTALL@&$ac_INSTALL&;t t
5529 $ac_datarootdir_hack
5530 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5532 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5533 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5534 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5535 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5536 which seems to be undefined. Please make sure it is defined." >&5
5537 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5538 which seems to be undefined. Please make sure it is defined." >&2;}
5540 rm -f "$tmp/stdin"
5541 case $ac_file in
5542 -) cat "$tmp/out"; rm -f "$tmp/out";;
5543 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5544 esac
5548 # CONFIG_HEADER
5550 _ACEOF
5552 # Transform confdefs.h into a sed script `conftest.defines', that
5553 # substitutes the proper values into config.h.in to produce config.h.
5554 rm -f conftest.defines conftest.tail
5555 # First, append a space to every undef/define line, to ease matching.
5556 echo 's/$/ /' >conftest.defines
5557 # Then, protect against being on the right side of a sed subst, or in
5558 # an unquoted here document, in config.status. If some macros were
5559 # called several times there might be several #defines for the same
5560 # symbol, which is useless. But do not sort them, since the last
5561 # AC_DEFINE must be honored.
5562 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5563 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
5564 # NAME is the cpp macro being defined, VALUE is the value it is being given.
5565 # PARAMS is the parameter list in the macro definition--in most cases, it's
5566 # just an empty string.
5567 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
5568 ac_dB='\\)[ (].*,\\1define\\2'
5569 ac_dC=' '
5570 ac_dD=' ,'
5572 uniq confdefs.h |
5573 sed -n '
5574 t rset
5575 :rset
5576 s/^[ ]*#[ ]*define[ ][ ]*//
5577 t ok
5580 s/[\\&,]/\\&/g
5581 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
5582 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
5583 ' >>conftest.defines
5585 # Remove the space that was appended to ease matching.
5586 # Then replace #undef with comments. This is necessary, for
5587 # example, in the case of _POSIX_SOURCE, which is predefined and required
5588 # on some systems where configure will not decide to define it.
5589 # (The regexp can be short, since the line contains either #define or #undef.)
5590 echo 's/ $//
5591 s,^[ #]*u.*,/* & */,' >>conftest.defines
5593 # Break up conftest.defines:
5594 ac_max_sed_lines=50
5596 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
5597 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
5598 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
5599 # et cetera.
5600 ac_in='$ac_file_inputs'
5601 ac_out='"$tmp/out1"'
5602 ac_nxt='"$tmp/out2"'
5604 while :
5606 # Write a here document:
5607 cat >>$CONFIG_STATUS <<_ACEOF
5608 # First, check the format of the line:
5609 cat >"\$tmp/defines.sed" <<\\CEOF
5610 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
5611 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
5613 :def
5614 _ACEOF
5615 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
5616 echo 'CEOF
5617 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
5618 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
5619 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
5620 grep . conftest.tail >/dev/null || break
5621 rm -f conftest.defines
5622 mv conftest.tail conftest.defines
5623 done
5624 rm -f conftest.defines conftest.tail
5626 echo "ac_result=$ac_in" >>$CONFIG_STATUS
5627 cat >>$CONFIG_STATUS <<\_ACEOF
5628 if test x"$ac_file" != x-; then
5629 echo "/* $configure_input */" >"$tmp/config.h"
5630 cat "$ac_result" >>"$tmp/config.h"
5631 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
5632 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5633 echo "$as_me: $ac_file is unchanged" >&6;}
5634 else
5635 rm -f $ac_file
5636 mv "$tmp/config.h" $ac_file
5638 else
5639 echo "/* $configure_input */"
5640 cat "$ac_result"
5642 rm -f "$tmp/out12"
5646 esac
5648 done # for ac_tag
5651 { (exit 0); exit 0; }
5652 _ACEOF
5653 chmod +x $CONFIG_STATUS
5654 ac_clean_files=$ac_clean_files_save
5657 # configure is writing to config.log, and then calls config.status.
5658 # config.status does its own redirection, appending to config.log.
5659 # Unfortunately, on DOS this fails, as config.log is still kept open
5660 # by configure, so config.status won't be able to write to it; its
5661 # output is simply discarded. So we exec the FD to /dev/null,
5662 # effectively closing config.log, so it can be properly (re)opened and
5663 # appended to by config.status. When coming back to configure, we
5664 # need to make the FD available again.
5665 if test "$no_create" != yes; then
5666 ac_cs_success=:
5667 ac_config_status_args=
5668 test "$silent" = yes &&
5669 ac_config_status_args="$ac_config_status_args --quiet"
5670 exec 5>/dev/null
5671 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5672 exec 5>>config.log
5673 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5674 # would make configure fail if this is the last instruction.
5675 $ac_cs_success || { (exit 1); exit 1; }