Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / spawn-fcgi / configure
blobe89338b9a72e9665ee152fe78b7cce7074f78444
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for spawn-fcgi 1.6.3.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # 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 # Pre-4.2 versions of Zsh do 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*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME='spawn-fcgi'
548 PACKAGE_TARNAME='spawn-fcgi'
549 PACKAGE_VERSION='1.6.3'
550 PACKAGE_STRING='spawn-fcgi 1.6.3'
551 PACKAGE_BUGREPORT=''
552 PACKAGE_URL=''
554 ac_unique_file="src/spawn-fcgi.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
591 ac_subst_vars='am__EXEEXT_FALSE
592 am__EXEEXT_TRUE
593 LTLIBOBJS
594 LIBOBJS
595 EGREP
596 GREP
598 am__fastdepCC_FALSE
599 am__fastdepCC_TRUE
600 CCDEPMODE
601 AMDEPBACKSLASH
602 AMDEP_FALSE
603 AMDEP_TRUE
604 am__quote
605 am__include
606 DEPDIR
607 OBJEXT
608 EXEEXT
609 ac_ct_CC
610 CPPFLAGS
611 LDFLAGS
612 CFLAGS
614 am__untar
615 am__tar
616 AMTAR
617 am__leading_dot
618 SET_MAKE
620 mkdir_p
621 MKDIR_P
622 INSTALL_STRIP_PROGRAM
623 STRIP
624 install_sh
625 MAKEINFO
626 AUTOHEADER
627 AUTOMAKE
628 AUTOCONF
629 ACLOCAL
630 VERSION
631 PACKAGE
632 CYGPATH_W
633 am__isrc
634 INSTALL_DATA
635 INSTALL_SCRIPT
636 INSTALL_PROGRAM
637 target_alias
638 host_alias
639 build_alias
640 LIBS
641 ECHO_T
642 ECHO_N
643 ECHO_C
644 DEFS
645 mandir
646 localedir
647 libdir
648 psdir
649 pdfdir
650 dvidir
651 htmldir
652 infodir
653 docdir
654 oldincludedir
655 includedir
656 localstatedir
657 sharedstatedir
658 sysconfdir
659 datadir
660 datarootdir
661 libexecdir
662 sbindir
663 bindir
664 program_transform_name
665 prefix
666 exec_prefix
667 PACKAGE_URL
668 PACKAGE_BUGREPORT
669 PACKAGE_STRING
670 PACKAGE_VERSION
671 PACKAGE_TARNAME
672 PACKAGE_NAME
673 PATH_SEPARATOR
674 SHELL'
675 ac_subst_files=''
676 ac_user_opts='
677 enable_option_checking
678 enable_dependency_tracking
679 enable_ipv6
680 enable_extra_warnings
682 ac_precious_vars='build_alias
683 host_alias
684 target_alias
686 CFLAGS
687 LDFLAGS
688 LIBS
689 CPPFLAGS
690 CPP'
693 # Initialize some variables set by options.
694 ac_init_help=
695 ac_init_version=false
696 ac_unrecognized_opts=
697 ac_unrecognized_sep=
698 # The variables have the same names as the options, with
699 # dashes changed to underlines.
700 cache_file=/dev/null
701 exec_prefix=NONE
702 no_create=
703 no_recursion=
704 prefix=NONE
705 program_prefix=NONE
706 program_suffix=NONE
707 program_transform_name=s,x,x,
708 silent=
709 site=
710 srcdir=
711 verbose=
712 x_includes=NONE
713 x_libraries=NONE
715 # Installation directory options.
716 # These are left unexpanded so users can "make install exec_prefix=/foo"
717 # and all the variables that are supposed to be based on exec_prefix
718 # by default will actually change.
719 # Use braces instead of parens because sh, perl, etc. also accept them.
720 # (The list follows the same order as the GNU Coding Standards.)
721 bindir='${exec_prefix}/bin'
722 sbindir='${exec_prefix}/sbin'
723 libexecdir='${exec_prefix}/libexec'
724 datarootdir='${prefix}/share'
725 datadir='${datarootdir}'
726 sysconfdir='${prefix}/etc'
727 sharedstatedir='${prefix}/com'
728 localstatedir='${prefix}/var'
729 includedir='${prefix}/include'
730 oldincludedir='/usr/include'
731 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
732 infodir='${datarootdir}/info'
733 htmldir='${docdir}'
734 dvidir='${docdir}'
735 pdfdir='${docdir}'
736 psdir='${docdir}'
737 libdir='${exec_prefix}/lib'
738 localedir='${datarootdir}/locale'
739 mandir='${datarootdir}/man'
741 ac_prev=
742 ac_dashdash=
743 for ac_option
745 # If the previous option needs an argument, assign it.
746 if test -n "$ac_prev"; then
747 eval $ac_prev=\$ac_option
748 ac_prev=
749 continue
752 case $ac_option in
753 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
754 *) ac_optarg=yes ;;
755 esac
757 # Accept the important Cygnus configure options, so we can diagnose typos.
759 case $ac_dashdash$ac_option in
761 ac_dashdash=yes ;;
763 -bindir | --bindir | --bindi | --bind | --bin | --bi)
764 ac_prev=bindir ;;
765 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
766 bindir=$ac_optarg ;;
768 -build | --build | --buil | --bui | --bu)
769 ac_prev=build_alias ;;
770 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
771 build_alias=$ac_optarg ;;
773 -cache-file | --cache-file | --cache-fil | --cache-fi \
774 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
775 ac_prev=cache_file ;;
776 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
777 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
778 cache_file=$ac_optarg ;;
780 --config-cache | -C)
781 cache_file=config.cache ;;
783 -datadir | --datadir | --datadi | --datad)
784 ac_prev=datadir ;;
785 -datadir=* | --datadir=* | --datadi=* | --datad=*)
786 datadir=$ac_optarg ;;
788 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
789 | --dataroo | --dataro | --datar)
790 ac_prev=datarootdir ;;
791 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
792 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
793 datarootdir=$ac_optarg ;;
795 -disable-* | --disable-*)
796 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
799 as_fn_error "invalid feature name: $ac_useropt"
800 ac_useropt_orig=$ac_useropt
801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
802 case $ac_user_opts in
804 "enable_$ac_useropt"
805 "*) ;;
806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
807 ac_unrecognized_sep=', ';;
808 esac
809 eval enable_$ac_useropt=no ;;
811 -docdir | --docdir | --docdi | --doc | --do)
812 ac_prev=docdir ;;
813 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
814 docdir=$ac_optarg ;;
816 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
817 ac_prev=dvidir ;;
818 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
819 dvidir=$ac_optarg ;;
821 -enable-* | --enable-*)
822 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
830 "enable_$ac_useropt"
831 "*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
834 esac
835 eval enable_$ac_useropt=\$ac_optarg ;;
837 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
838 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
839 | --exec | --exe | --ex)
840 ac_prev=exec_prefix ;;
841 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
842 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
843 | --exec=* | --exe=* | --ex=*)
844 exec_prefix=$ac_optarg ;;
846 -gas | --gas | --ga | --g)
847 # Obsolete; use --with-gas.
848 with_gas=yes ;;
850 -help | --help | --hel | --he | -h)
851 ac_init_help=long ;;
852 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
853 ac_init_help=recursive ;;
854 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
855 ac_init_help=short ;;
857 -host | --host | --hos | --ho)
858 ac_prev=host_alias ;;
859 -host=* | --host=* | --hos=* | --ho=*)
860 host_alias=$ac_optarg ;;
862 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
863 ac_prev=htmldir ;;
864 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
865 | --ht=*)
866 htmldir=$ac_optarg ;;
868 -includedir | --includedir | --includedi | --included | --include \
869 | --includ | --inclu | --incl | --inc)
870 ac_prev=includedir ;;
871 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
872 | --includ=* | --inclu=* | --incl=* | --inc=*)
873 includedir=$ac_optarg ;;
875 -infodir | --infodir | --infodi | --infod | --info | --inf)
876 ac_prev=infodir ;;
877 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
878 infodir=$ac_optarg ;;
880 -libdir | --libdir | --libdi | --libd)
881 ac_prev=libdir ;;
882 -libdir=* | --libdir=* | --libdi=* | --libd=*)
883 libdir=$ac_optarg ;;
885 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
886 | --libexe | --libex | --libe)
887 ac_prev=libexecdir ;;
888 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
889 | --libexe=* | --libex=* | --libe=*)
890 libexecdir=$ac_optarg ;;
892 -localedir | --localedir | --localedi | --localed | --locale)
893 ac_prev=localedir ;;
894 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
895 localedir=$ac_optarg ;;
897 -localstatedir | --localstatedir | --localstatedi | --localstated \
898 | --localstate | --localstat | --localsta | --localst | --locals)
899 ac_prev=localstatedir ;;
900 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
901 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
902 localstatedir=$ac_optarg ;;
904 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
905 ac_prev=mandir ;;
906 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
907 mandir=$ac_optarg ;;
909 -nfp | --nfp | --nf)
910 # Obsolete; use --without-fp.
911 with_fp=no ;;
913 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
914 | --no-cr | --no-c | -n)
915 no_create=yes ;;
917 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
918 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
919 no_recursion=yes ;;
921 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
922 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
923 | --oldin | --oldi | --old | --ol | --o)
924 ac_prev=oldincludedir ;;
925 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
926 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
927 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
928 oldincludedir=$ac_optarg ;;
930 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
931 ac_prev=prefix ;;
932 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
933 prefix=$ac_optarg ;;
935 -program-prefix | --program-prefix | --program-prefi | --program-pref \
936 | --program-pre | --program-pr | --program-p)
937 ac_prev=program_prefix ;;
938 -program-prefix=* | --program-prefix=* | --program-prefi=* \
939 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
940 program_prefix=$ac_optarg ;;
942 -program-suffix | --program-suffix | --program-suffi | --program-suff \
943 | --program-suf | --program-su | --program-s)
944 ac_prev=program_suffix ;;
945 -program-suffix=* | --program-suffix=* | --program-suffi=* \
946 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
947 program_suffix=$ac_optarg ;;
949 -program-transform-name | --program-transform-name \
950 | --program-transform-nam | --program-transform-na \
951 | --program-transform-n | --program-transform- \
952 | --program-transform | --program-transfor \
953 | --program-transfo | --program-transf \
954 | --program-trans | --program-tran \
955 | --progr-tra | --program-tr | --program-t)
956 ac_prev=program_transform_name ;;
957 -program-transform-name=* | --program-transform-name=* \
958 | --program-transform-nam=* | --program-transform-na=* \
959 | --program-transform-n=* | --program-transform-=* \
960 | --program-transform=* | --program-transfor=* \
961 | --program-transfo=* | --program-transf=* \
962 | --program-trans=* | --program-tran=* \
963 | --progr-tra=* | --program-tr=* | --program-t=*)
964 program_transform_name=$ac_optarg ;;
966 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
967 ac_prev=pdfdir ;;
968 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
969 pdfdir=$ac_optarg ;;
971 -psdir | --psdir | --psdi | --psd | --ps)
972 ac_prev=psdir ;;
973 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
974 psdir=$ac_optarg ;;
976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
977 | -silent | --silent | --silen | --sile | --sil)
978 silent=yes ;;
980 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
981 ac_prev=sbindir ;;
982 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
983 | --sbi=* | --sb=*)
984 sbindir=$ac_optarg ;;
986 -sharedstatedir | --sharedstatedir | --sharedstatedi \
987 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
988 | --sharedst | --shareds | --shared | --share | --shar \
989 | --sha | --sh)
990 ac_prev=sharedstatedir ;;
991 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
992 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
993 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
994 | --sha=* | --sh=*)
995 sharedstatedir=$ac_optarg ;;
997 -site | --site | --sit)
998 ac_prev=site ;;
999 -site=* | --site=* | --sit=*)
1000 site=$ac_optarg ;;
1002 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1003 ac_prev=srcdir ;;
1004 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1005 srcdir=$ac_optarg ;;
1007 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1008 | --syscon | --sysco | --sysc | --sys | --sy)
1009 ac_prev=sysconfdir ;;
1010 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1011 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1012 sysconfdir=$ac_optarg ;;
1014 -target | --target | --targe | --targ | --tar | --ta | --t)
1015 ac_prev=target_alias ;;
1016 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1017 target_alias=$ac_optarg ;;
1019 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1020 verbose=yes ;;
1022 -version | --version | --versio | --versi | --vers | -V)
1023 ac_init_version=: ;;
1025 -with-* | --with-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error "invalid package name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1034 "with_$ac_useropt"
1035 "*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval with_$ac_useropt=\$ac_optarg ;;
1041 -without-* | --without-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error "invalid package name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "with_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval with_$ac_useropt=no ;;
1057 --x)
1058 # Obsolete; use --with-x.
1059 with_x=yes ;;
1061 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1062 | --x-incl | --x-inc | --x-in | --x-i)
1063 ac_prev=x_includes ;;
1064 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1065 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1066 x_includes=$ac_optarg ;;
1068 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1069 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1070 ac_prev=x_libraries ;;
1071 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1072 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1073 x_libraries=$ac_optarg ;;
1075 -*) as_fn_error "unrecognized option: \`$ac_option'
1076 Try \`$0 --help' for more information."
1079 *=*)
1080 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1081 # Reject names that are not valid shell variable names.
1082 case $ac_envvar in #(
1083 '' | [0-9]* | *[!_$as_cr_alnum]* )
1084 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1085 esac
1086 eval $ac_envvar=\$ac_optarg
1087 export $ac_envvar ;;
1090 # FIXME: should be removed in autoconf 3.0.
1091 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1092 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1093 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1094 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1097 esac
1098 done
1100 if test -n "$ac_prev"; then
1101 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1102 as_fn_error "missing argument to $ac_option"
1105 if test -n "$ac_unrecognized_opts"; then
1106 case $enable_option_checking in
1107 no) ;;
1108 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1109 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1110 esac
1113 # Check all directory arguments for consistency.
1114 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1115 datadir sysconfdir sharedstatedir localstatedir includedir \
1116 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1117 libdir localedir mandir
1119 eval ac_val=\$$ac_var
1120 # Remove trailing slashes.
1121 case $ac_val in
1122 */ )
1123 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1124 eval $ac_var=\$ac_val;;
1125 esac
1126 # Be sure to have absolute directory names.
1127 case $ac_val in
1128 [\\/$]* | ?:[\\/]* ) continue;;
1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130 esac
1131 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1132 done
1134 # There might be people who depend on the old broken behavior: `$host'
1135 # used to hold the argument of --host etc.
1136 # FIXME: To remove some day.
1137 build=$build_alias
1138 host=$host_alias
1139 target=$target_alias
1141 # FIXME: To remove some day.
1142 if test "x$host_alias" != x; then
1143 if test "x$build_alias" = x; then
1144 cross_compiling=maybe
1145 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1146 If a cross compiler is detected then cross compile mode will be used." >&2
1147 elif test "x$build_alias" != "x$host_alias"; then
1148 cross_compiling=yes
1152 ac_tool_prefix=
1153 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155 test "$silent" = yes && exec 6>/dev/null
1158 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1159 ac_ls_di=`ls -di .` &&
1160 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1161 as_fn_error "working directory cannot be determined"
1162 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163 as_fn_error "pwd does not report name of working directory"
1166 # Find the source files, if location was not specified.
1167 if test -z "$srcdir"; then
1168 ac_srcdir_defaulted=yes
1169 # Try the directory containing this script, then the parent directory.
1170 ac_confdir=`$as_dirname -- "$as_myself" ||
1171 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1172 X"$as_myself" : 'X\(//\)[^/]' \| \
1173 X"$as_myself" : 'X\(//\)$' \| \
1174 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1175 $as_echo X"$as_myself" |
1176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177 s//\1/
1180 /^X\(\/\/\)[^/].*/{
1181 s//\1/
1184 /^X\(\/\/\)$/{
1185 s//\1/
1188 /^X\(\/\).*/{
1189 s//\1/
1192 s/.*/./; q'`
1193 srcdir=$ac_confdir
1194 if test ! -r "$srcdir/$ac_unique_file"; then
1195 srcdir=..
1197 else
1198 ac_srcdir_defaulted=no
1200 if test ! -r "$srcdir/$ac_unique_file"; then
1201 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1202 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1204 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1205 ac_abs_confdir=`(
1206 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1207 pwd)`
1208 # When building in place, set srcdir=.
1209 if test "$ac_abs_confdir" = "$ac_pwd"; then
1210 srcdir=.
1212 # Remove unnecessary trailing slashes from srcdir.
1213 # Double slashes in file names in object file debugging info
1214 # mess up M-x gdb in Emacs.
1215 case $srcdir in
1216 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217 esac
1218 for ac_var in $ac_precious_vars; do
1219 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1220 eval ac_env_${ac_var}_value=\$${ac_var}
1221 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1222 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1223 done
1226 # Report the --help message.
1228 if test "$ac_init_help" = "long"; then
1229 # Omit some internal or obsolete options to make the list less imposing.
1230 # This message is too long to be a string in the A/UX 3.1 sh.
1231 cat <<_ACEOF
1232 \`configure' configures spawn-fcgi 1.6.3 to adapt to many kinds of systems.
1234 Usage: $0 [OPTION]... [VAR=VALUE]...
1236 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1237 VAR=VALUE. See below for descriptions of some of the useful variables.
1239 Defaults for the options are specified in brackets.
1241 Configuration:
1242 -h, --help display this help and exit
1243 --help=short display options specific to this package
1244 --help=recursive display the short help of all the included packages
1245 -V, --version display version information and exit
1246 -q, --quiet, --silent do not print \`checking...' messages
1247 --cache-file=FILE cache test results in FILE [disabled]
1248 -C, --config-cache alias for \`--cache-file=config.cache'
1249 -n, --no-create do not create output files
1250 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1252 Installation directories:
1253 --prefix=PREFIX install architecture-independent files in PREFIX
1254 [$ac_default_prefix]
1255 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1256 [PREFIX]
1258 By default, \`make install' will install all the files in
1259 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1260 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1261 for instance \`--prefix=\$HOME'.
1263 For better control, use the options below.
1265 Fine tuning of the installation directories:
1266 --bindir=DIR user executables [EPREFIX/bin]
1267 --sbindir=DIR system admin executables [EPREFIX/sbin]
1268 --libexecdir=DIR program executables [EPREFIX/libexec]
1269 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1270 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1271 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1272 --libdir=DIR object code libraries [EPREFIX/lib]
1273 --includedir=DIR C header files [PREFIX/include]
1274 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1275 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1276 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1277 --infodir=DIR info documentation [DATAROOTDIR/info]
1278 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1279 --mandir=DIR man documentation [DATAROOTDIR/man]
1280 --docdir=DIR documentation root [DATAROOTDIR/doc/spawn-fcgi]
1281 --htmldir=DIR html documentation [DOCDIR]
1282 --dvidir=DIR dvi documentation [DOCDIR]
1283 --pdfdir=DIR pdf documentation [DOCDIR]
1284 --psdir=DIR ps documentation [DOCDIR]
1285 _ACEOF
1287 cat <<\_ACEOF
1289 Program names:
1290 --program-prefix=PREFIX prepend PREFIX to installed program names
1291 --program-suffix=SUFFIX append SUFFIX to installed program names
1292 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1293 _ACEOF
1296 if test -n "$ac_init_help"; then
1297 case $ac_init_help in
1298 short | recursive ) echo "Configuration of spawn-fcgi 1.6.3:";;
1299 esac
1300 cat <<\_ACEOF
1302 Optional Features:
1303 --disable-option-checking ignore unrecognized --enable/--with options
1304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1306 --disable-dependency-tracking speeds up one-time build
1307 --enable-dependency-tracking do not reject slow dependency extractors
1308 --disable-ipv6 disable IPv6 support
1309 --enable-extra-warnings enable extra warnings (gcc specific)
1311 Some influential environment variables:
1312 CC C compiler command
1313 CFLAGS C compiler flags
1314 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1315 nonstandard directory <lib dir>
1316 LIBS libraries to pass to the linker, e.g. -l<library>
1317 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1318 you have headers in a nonstandard directory <include dir>
1319 CPP C preprocessor
1321 Use these variables to override the choices made by `configure' or to help
1322 it to find libraries and programs with nonstandard names/locations.
1324 Report bugs to the package provider.
1325 _ACEOF
1326 ac_status=$?
1329 if test "$ac_init_help" = "recursive"; then
1330 # If there are subdirs, report their specific --help.
1331 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1332 test -d "$ac_dir" ||
1333 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1334 continue
1335 ac_builddir=.
1337 case "$ac_dir" in
1338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1341 # A ".." for each directory in $ac_dir_suffix.
1342 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1343 case $ac_top_builddir_sub in
1344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1346 esac ;;
1347 esac
1348 ac_abs_top_builddir=$ac_pwd
1349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1350 # for backward compatibility:
1351 ac_top_builddir=$ac_top_build_prefix
1353 case $srcdir in
1354 .) # We are building in place.
1355 ac_srcdir=.
1356 ac_top_srcdir=$ac_top_builddir_sub
1357 ac_abs_top_srcdir=$ac_pwd ;;
1358 [\\/]* | ?:[\\/]* ) # Absolute name.
1359 ac_srcdir=$srcdir$ac_dir_suffix;
1360 ac_top_srcdir=$srcdir
1361 ac_abs_top_srcdir=$srcdir ;;
1362 *) # Relative name.
1363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364 ac_top_srcdir=$ac_top_build_prefix$srcdir
1365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1366 esac
1367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1369 cd "$ac_dir" || { ac_status=$?; continue; }
1370 # Check for guested configure.
1371 if test -f "$ac_srcdir/configure.gnu"; then
1372 echo &&
1373 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374 elif test -f "$ac_srcdir/configure"; then
1375 echo &&
1376 $SHELL "$ac_srcdir/configure" --help=recursive
1377 else
1378 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1379 fi || ac_status=$?
1380 cd "$ac_pwd" || { ac_status=$?; break; }
1381 done
1384 test -n "$ac_init_help" && exit $ac_status
1385 if $ac_init_version; then
1386 cat <<\_ACEOF
1387 spawn-fcgi configure 1.6.3
1388 generated by GNU Autoconf 2.64
1390 Copyright (C) 2009 Free Software Foundation, Inc.
1391 This configure script is free software; the Free Software Foundation
1392 gives unlimited permission to copy, distribute and modify it.
1393 _ACEOF
1394 exit
1397 ## ------------------------ ##
1398 ## Autoconf initialization. ##
1399 ## ------------------------ ##
1401 # ac_fn_c_try_compile LINENO
1402 # --------------------------
1403 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1404 ac_fn_c_try_compile ()
1406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1407 rm -f conftest.$ac_objext
1408 if { { ac_try="$ac_compile"
1409 case "(($ac_try" in
1410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1411 *) ac_try_echo=$ac_try;;
1412 esac
1413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1414 $as_echo "$ac_try_echo"; } >&5
1415 (eval "$ac_compile") 2>conftest.err
1416 ac_status=$?
1417 if test -s conftest.err; then
1418 grep -v '^ *+' conftest.err >conftest.er1
1419 cat conftest.er1 >&5
1420 mv -f conftest.er1 conftest.err
1422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1423 test $ac_status = 0; } && {
1424 test -z "$ac_c_werror_flag" ||
1425 test ! -s conftest.err
1426 } && test -s conftest.$ac_objext; then :
1427 ac_retval=0
1428 else
1429 $as_echo "$as_me: failed program was:" >&5
1430 sed 's/^/| /' conftest.$ac_ext >&5
1432 ac_retval=1
1434 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1435 return $ac_retval
1437 } # ac_fn_c_try_compile
1439 # ac_fn_c_try_cpp LINENO
1440 # ----------------------
1441 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1442 ac_fn_c_try_cpp ()
1444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445 if { { ac_try="$ac_cpp conftest.$ac_ext"
1446 case "(($ac_try" in
1447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1448 *) ac_try_echo=$ac_try;;
1449 esac
1450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1451 $as_echo "$ac_try_echo"; } >&5
1452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1453 ac_status=$?
1454 if test -s conftest.err; then
1455 grep -v '^ *+' conftest.err >conftest.er1
1456 cat conftest.er1 >&5
1457 mv -f conftest.er1 conftest.err
1459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1460 test $ac_status = 0; } >/dev/null && {
1461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1462 test ! -s conftest.err
1463 }; then :
1464 ac_retval=0
1465 else
1466 $as_echo "$as_me: failed program was:" >&5
1467 sed 's/^/| /' conftest.$ac_ext >&5
1469 ac_retval=1
1471 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1472 return $ac_retval
1474 } # ac_fn_c_try_cpp
1476 # ac_fn_c_try_run LINENO
1477 # ----------------------
1478 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1479 # that executables *can* be run.
1480 ac_fn_c_try_run ()
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 if { { ac_try="$ac_link"
1484 case "(($ac_try" in
1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486 *) ac_try_echo=$ac_try;;
1487 esac
1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489 $as_echo "$ac_try_echo"; } >&5
1490 (eval "$ac_link") 2>&5
1491 ac_status=$?
1492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1493 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1494 { { case "(($ac_try" in
1495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1496 *) ac_try_echo=$ac_try;;
1497 esac
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_try") 2>&5
1501 ac_status=$?
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; }; }; then :
1504 ac_retval=0
1505 else
1506 $as_echo "$as_me: program exited with status $ac_status" >&5
1507 $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1510 ac_retval=$ac_status
1512 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1514 return $ac_retval
1516 } # ac_fn_c_try_run
1518 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1519 # -------------------------------------------------------
1520 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1521 # the include files in INCLUDES and setting the cache variable VAR
1522 # accordingly.
1523 ac_fn_c_check_header_mongrel ()
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1528 $as_echo_n "checking for $2... " >&6; }
1529 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1530 $as_echo_n "(cached) " >&6
1532 eval ac_res=\$$3
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1534 $as_echo "$ac_res" >&6; }
1535 else
1536 # Is the header compilable?
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1538 $as_echo_n "checking $2 usability... " >&6; }
1539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1540 /* end confdefs.h. */
1542 #include <$2>
1543 _ACEOF
1544 if ac_fn_c_try_compile "$LINENO"; then :
1545 ac_header_compiler=yes
1546 else
1547 ac_header_compiler=no
1549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1551 $as_echo "$ac_header_compiler" >&6; }
1553 # Is the header present?
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1555 $as_echo_n "checking $2 presence... " >&6; }
1556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1557 /* end confdefs.h. */
1558 #include <$2>
1559 _ACEOF
1560 if ac_fn_c_try_cpp "$LINENO"; then :
1561 ac_header_preproc=yes
1562 else
1563 ac_header_preproc=no
1565 rm -f conftest.err conftest.$ac_ext
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1567 $as_echo "$ac_header_preproc" >&6; }
1569 # So? What about this header?
1570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1571 yes:no: )
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1573 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1575 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1577 no:yes:* )
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1579 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1581 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1583 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1585 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1587 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1589 esac
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1591 $as_echo_n "checking for $2... " >&6; }
1592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1593 $as_echo_n "(cached) " >&6
1594 else
1595 eval "$3=\$ac_header_compiler"
1597 eval ac_res=\$$3
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599 $as_echo "$ac_res" >&6; }
1601 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 } # ac_fn_c_check_header_mongrel
1605 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606 # -------------------------------------------------------
1607 # Tests whether HEADER exists and can be compiled using the include files in
1608 # INCLUDES, setting the cache variable VAR accordingly.
1609 ac_fn_c_check_header_compile ()
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615 $as_echo_n "(cached) " >&6
1616 else
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 eval "$3=yes"
1624 else
1625 eval "$3=no"
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634 } # ac_fn_c_check_header_compile
1636 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1637 # -------------------------------------------
1638 # Tests whether TYPE exists after having included INCLUDES, setting cache
1639 # variable VAR accordingly.
1640 ac_fn_c_check_type ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1646 $as_echo_n "(cached) " >&6
1647 else
1648 eval "$3=no"
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1653 main ()
1655 if (sizeof ($2))
1656 return 0;
1658 return 0;
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"; then :
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h. */
1666 main ()
1668 if (sizeof (($2)))
1669 return 0;
1671 return 0;
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1676 else
1677 eval "$3=yes"
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 eval ac_res=\$$3
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 } # ac_fn_c_check_type
1690 # ac_fn_c_try_link LINENO
1691 # -----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_link ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest$ac_exeext
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest$ac_exeext && {
1716 test "$cross_compiling" = yes ||
1717 $as_test_x conftest$ac_exeext
1718 }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=1
1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728 # interfere with the next link command; also delete a directory that is
1729 # left behind by Apple's compiler. We do this before executing the actions.
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1734 } # ac_fn_c_try_link
1736 # ac_fn_c_check_func LINENO FUNC VAR
1737 # ----------------------------------
1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1751 #define $2 innocuous_$2
1753 /* System header to define __stub macros and hopefully few prototypes,
1754 which can conflict with char $2 (); below.
1755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1756 <limits.h> exists even on freestanding compilers. */
1758 #ifdef __STDC__
1759 # include <limits.h>
1760 #else
1761 # include <assert.h>
1762 #endif
1764 #undef $2
1766 /* Override any GCC internal prototype to avoid an error.
1767 Use char because int might match the return type of a GCC
1768 builtin and then its argument prototype would still apply. */
1769 #ifdef __cplusplus
1770 extern "C"
1771 #endif
1772 char $2 ();
1773 /* The GNU C library defines this for functions which it implements
1774 to always fail with ENOSYS. Some functions are actually named
1775 something starting with __ and the normal name is an alias. */
1776 #if defined __stub_$2 || defined __stub___$2
1777 choke me
1778 #endif
1781 main ()
1783 return $2 ();
1785 return 0;
1787 _ACEOF
1788 if ac_fn_c_try_link "$LINENO"; then :
1789 eval "$3=yes"
1790 else
1791 eval "$3=no"
1793 rm -f core conftest.err conftest.$ac_objext \
1794 conftest$ac_exeext conftest.$ac_ext
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 } # ac_fn_c_check_func
1802 cat >config.log <<_ACEOF
1803 This file contains any messages produced by compilers while
1804 running configure, to aid debugging if configure makes a mistake.
1806 It was created by spawn-fcgi $as_me 1.6.3, which was
1807 generated by GNU Autoconf 2.64. Invocation command line was
1809 $ $0 $@
1811 _ACEOF
1812 exec 5>>config.log
1814 cat <<_ASUNAME
1815 ## --------- ##
1816 ## Platform. ##
1817 ## --------- ##
1819 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1820 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1821 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1822 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1823 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1825 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1826 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1828 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1829 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1830 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1831 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1832 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1833 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1834 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1836 _ASUNAME
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 $as_echo "PATH: $as_dir"
1844 done
1845 IFS=$as_save_IFS
1847 } >&5
1849 cat >&5 <<_ACEOF
1852 ## ----------- ##
1853 ## Core tests. ##
1854 ## ----------- ##
1856 _ACEOF
1859 # Keep a trace of the command line.
1860 # Strip out --no-create and --no-recursion so they do not pile up.
1861 # Strip out --silent because we don't want to record it for future runs.
1862 # Also quote any args containing shell meta-characters.
1863 # Make two passes to allow for proper duplicate-argument suppression.
1864 ac_configure_args=
1865 ac_configure_args0=
1866 ac_configure_args1=
1867 ac_must_keep_next=false
1868 for ac_pass in 1 2
1870 for ac_arg
1872 case $ac_arg in
1873 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1875 | -silent | --silent | --silen | --sile | --sil)
1876 continue ;;
1877 *\'*)
1878 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1879 esac
1880 case $ac_pass in
1881 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1883 as_fn_append ac_configure_args1 " '$ac_arg'"
1884 if test $ac_must_keep_next = true; then
1885 ac_must_keep_next=false # Got value, back to normal.
1886 else
1887 case $ac_arg in
1888 *=* | --config-cache | -C | -disable-* | --disable-* \
1889 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1890 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1891 | -with-* | --with-* | -without-* | --without-* | --x)
1892 case "$ac_configure_args0 " in
1893 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1894 esac
1896 -* ) ac_must_keep_next=true ;;
1897 esac
1899 as_fn_append ac_configure_args " '$ac_arg'"
1901 esac
1902 done
1903 done
1904 { ac_configure_args0=; unset ac_configure_args0;}
1905 { ac_configure_args1=; unset ac_configure_args1;}
1907 # When interrupted or exit'd, cleanup temporary files, and complete
1908 # config.log. We remove comments because anyway the quotes in there
1909 # would cause problems or look ugly.
1910 # WARNING: Use '\'' to represent an apostrophe within the trap.
1911 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1912 trap 'exit_status=$?
1913 # Save into config.log some information that might help in debugging.
1915 echo
1917 cat <<\_ASBOX
1918 ## ---------------- ##
1919 ## Cache variables. ##
1920 ## ---------------- ##
1921 _ASBOX
1922 echo
1923 # The following way of writing the cache mishandles newlines in values,
1925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1926 eval ac_val=\$$ac_var
1927 case $ac_val in #(
1928 *${as_nl}*)
1929 case $ac_var in #(
1930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1932 esac
1933 case $ac_var in #(
1934 _ | IFS | as_nl) ;; #(
1935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1936 *) { eval $ac_var=; unset $ac_var;} ;;
1937 esac ;;
1938 esac
1939 done
1940 (set) 2>&1 |
1941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1942 *${as_nl}ac_space=\ *)
1943 sed -n \
1944 "s/'\''/'\''\\\\'\'''\''/g;
1945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1946 ;; #(
1948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1950 esac |
1951 sort
1953 echo
1955 cat <<\_ASBOX
1956 ## ----------------- ##
1957 ## Output variables. ##
1958 ## ----------------- ##
1959 _ASBOX
1960 echo
1961 for ac_var in $ac_subst_vars
1963 eval ac_val=\$$ac_var
1964 case $ac_val in
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966 esac
1967 $as_echo "$ac_var='\''$ac_val'\''"
1968 done | sort
1969 echo
1971 if test -n "$ac_subst_files"; then
1972 cat <<\_ASBOX
1973 ## ------------------- ##
1974 ## File substitutions. ##
1975 ## ------------------- ##
1976 _ASBOX
1977 echo
1978 for ac_var in $ac_subst_files
1980 eval ac_val=\$$ac_var
1981 case $ac_val in
1982 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1983 esac
1984 $as_echo "$ac_var='\''$ac_val'\''"
1985 done | sort
1986 echo
1989 if test -s confdefs.h; then
1990 cat <<\_ASBOX
1991 ## ----------- ##
1992 ## confdefs.h. ##
1993 ## ----------- ##
1994 _ASBOX
1995 echo
1996 cat confdefs.h
1997 echo
1999 test "$ac_signal" != 0 &&
2000 $as_echo "$as_me: caught signal $ac_signal"
2001 $as_echo "$as_me: exit $exit_status"
2002 } >&5
2003 rm -f core *.core core.conftest.* &&
2004 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2005 exit $exit_status
2007 for ac_signal in 1 2 13 15; do
2008 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2009 done
2010 ac_signal=0
2012 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2013 rm -f -r conftest* confdefs.h
2015 $as_echo "/* confdefs.h */" > confdefs.h
2017 # Predefined preprocessor variables.
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_NAME "$PACKAGE_NAME"
2021 _ACEOF
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2025 _ACEOF
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2029 _ACEOF
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_STRING "$PACKAGE_STRING"
2033 _ACEOF
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2037 _ACEOF
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_URL "$PACKAGE_URL"
2041 _ACEOF
2044 # Let the site file select an alternate cache file if it wants to.
2045 # Prefer an explicitly selected file to automatically selected ones.
2046 ac_site_file1=NONE
2047 ac_site_file2=NONE
2048 if test -n "$CONFIG_SITE"; then
2049 ac_site_file1=$CONFIG_SITE
2050 elif test "x$prefix" != xNONE; then
2051 ac_site_file1=$prefix/share/config.site
2052 ac_site_file2=$prefix/etc/config.site
2053 else
2054 ac_site_file1=$ac_default_prefix/share/config.site
2055 ac_site_file2=$ac_default_prefix/etc/config.site
2057 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2059 test "x$ac_site_file" = xNONE && continue
2060 if test -r "$ac_site_file"; then
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2062 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2063 sed 's/^/| /' "$ac_site_file" >&5
2064 . "$ac_site_file"
2066 done
2068 if test -r "$cache_file"; then
2069 # Some versions of bash will fail to source /dev/null (special
2070 # files actually), so we avoid doing that.
2071 if test -f "$cache_file"; then
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2073 $as_echo "$as_me: loading cache $cache_file" >&6;}
2074 case $cache_file in
2075 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2076 *) . "./$cache_file";;
2077 esac
2079 else
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2081 $as_echo "$as_me: creating cache $cache_file" >&6;}
2082 >$cache_file
2085 # Check that the precious variables saved in the cache have kept the same
2086 # value.
2087 ac_cache_corrupted=false
2088 for ac_var in $ac_precious_vars; do
2089 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2090 eval ac_new_set=\$ac_env_${ac_var}_set
2091 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2092 eval ac_new_val=\$ac_env_${ac_var}_value
2093 case $ac_old_set,$ac_new_set in
2094 set,)
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2096 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2097 ac_cache_corrupted=: ;;
2098 ,set)
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2100 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2101 ac_cache_corrupted=: ;;
2102 ,);;
2104 if test "x$ac_old_val" != "x$ac_new_val"; then
2105 # differences in whitespace do not lead to failure.
2106 ac_old_val_w=`echo x $ac_old_val`
2107 ac_new_val_w=`echo x $ac_new_val`
2108 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2110 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2111 ac_cache_corrupted=:
2112 else
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2114 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2115 eval $ac_var=\$ac_old_val
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2118 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2120 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2121 fi;;
2122 esac
2123 # Pass precious variables to config.status.
2124 if test "$ac_new_set" = set; then
2125 case $ac_new_val in
2126 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2127 *) ac_arg=$ac_var=$ac_new_val ;;
2128 esac
2129 case " $ac_configure_args " in
2130 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2131 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2132 esac
2134 done
2135 if $ac_cache_corrupted; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2139 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2140 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2142 ## -------------------- ##
2143 ## Main body of script. ##
2144 ## -------------------- ##
2146 ac_ext=c
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2154 ac_config_headers="$ac_config_headers config.h"
2157 am__api_version='1.11'
2159 ac_aux_dir=
2160 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2161 for ac_t in install-sh install.sh shtool; do
2162 if test -f "$ac_dir/$ac_t"; then
2163 ac_aux_dir=$ac_dir
2164 ac_install_sh="$ac_aux_dir/$ac_t -c"
2165 break 2
2167 done
2168 done
2169 if test -z "$ac_aux_dir"; then
2170 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2173 # These three variables are undocumented and unsupported,
2174 # and are intended to be withdrawn in a future Autoconf release.
2175 # They can cause serious problems if a builder's source tree is in a directory
2176 # whose full name contains unusual characters.
2177 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2178 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2179 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2182 # Find a good install program. We prefer a C program (faster),
2183 # so one script is as good as another. But avoid the broken or
2184 # incompatible versions:
2185 # SysV /etc/install, /usr/sbin/install
2186 # SunOS /usr/etc/install
2187 # IRIX /sbin/install
2188 # AIX /bin/install
2189 # AmigaOS /C/install, which installs bootblocks on floppy discs
2190 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2191 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2192 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2193 # OS/2's system install, which has a completely different semantic
2194 # ./install, which can be erroneously created by make from ./install.sh.
2195 # Reject install programs that cannot install multiple files.
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2197 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2198 if test -z "$INSTALL"; then
2199 if test "${ac_cv_path_install+set}" = set; then :
2200 $as_echo_n "(cached) " >&6
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 # Account for people who put trailing slashes in PATH elements.
2208 case $as_dir/ in #((
2209 ./ | .// | /[cC]/* | \
2210 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2211 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2212 /usr/ucb/* ) ;;
2214 # OSF1 and SCO ODT 3.0 have their own names for install.
2215 # Don't use installbsd from OSF since it installs stuff as root
2216 # by default.
2217 for ac_prog in ginstall scoinst install; do
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2220 if test $ac_prog = install &&
2221 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2222 # AIX install. It has an incompatible calling convention.
2224 elif test $ac_prog = install &&
2225 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2226 # program-specific install script used by HP pwplus--don't use.
2228 else
2229 rm -rf conftest.one conftest.two conftest.dir
2230 echo one > conftest.one
2231 echo two > conftest.two
2232 mkdir conftest.dir
2233 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2234 test -s conftest.one && test -s conftest.two &&
2235 test -s conftest.dir/conftest.one &&
2236 test -s conftest.dir/conftest.two
2237 then
2238 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2239 break 3
2243 done
2244 done
2246 esac
2248 done
2249 IFS=$as_save_IFS
2251 rm -rf conftest.one conftest.two conftest.dir
2254 if test "${ac_cv_path_install+set}" = set; then
2255 INSTALL=$ac_cv_path_install
2256 else
2257 # As a last resort, use the slow shell script. Don't cache a
2258 # value for INSTALL within a source directory, because that will
2259 # break other packages using the cache if that directory is
2260 # removed, or if the value is a relative name.
2261 INSTALL=$ac_install_sh
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2265 $as_echo "$INSTALL" >&6; }
2267 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2268 # It thinks the first close brace ends the variable substitution.
2269 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2271 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2273 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2276 $as_echo_n "checking whether build environment is sane... " >&6; }
2277 # Just in case
2278 sleep 1
2279 echo timestamp > conftest.file
2280 # Reject unsafe characters in $srcdir or the absolute working directory
2281 # name. Accept space and tab only in the latter.
2282 am_lf='
2284 case `pwd` in
2285 *[\\\"\#\$\&\'\`$am_lf]*)
2286 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2287 esac
2288 case $srcdir in
2289 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2290 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2291 esac
2293 # Do `set' in a subshell so we don't clobber the current shell's
2294 # arguments. Must try -L first in case configure is actually a
2295 # symlink; some systems play weird games with the mod time of symlinks
2296 # (eg FreeBSD returns the mod time of the symlink's containing
2297 # directory).
2298 if (
2299 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2300 if test "$*" = "X"; then
2301 # -L didn't work.
2302 set X `ls -t "$srcdir/configure" conftest.file`
2304 rm -f conftest.file
2305 if test "$*" != "X $srcdir/configure conftest.file" \
2306 && test "$*" != "X conftest.file $srcdir/configure"; then
2308 # If neither matched, then we have a broken ls. This can happen
2309 # if, for instance, CONFIG_SHELL is bash and it inherits a
2310 # broken ls alias from the environment. This has actually
2311 # happened. Such a system could not be considered "sane".
2312 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2313 alias in your environment" "$LINENO" 5
2316 test "$2" = conftest.file
2318 then
2319 # Ok.
2321 else
2322 as_fn_error "newly created file is older than distributed files!
2323 Check your system clock" "$LINENO" 5
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2326 $as_echo "yes" >&6; }
2327 test "$program_prefix" != NONE &&
2328 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2329 # Use a double $ so make ignores it.
2330 test "$program_suffix" != NONE &&
2331 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2332 # Double any \ or $.
2333 # By default was `s,x,x', remove it if useless.
2334 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2335 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2337 # expand $ac_aux_dir to an absolute path
2338 am_aux_dir=`cd $ac_aux_dir && pwd`
2340 if test x"${MISSING+set}" != xset; then
2341 case $am_aux_dir in
2342 *\ * | *\ *)
2343 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2345 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2346 esac
2348 # Use eval to expand $SHELL
2349 if eval "$MISSING --run true"; then
2350 am_missing_run="$MISSING --run "
2351 else
2352 am_missing_run=
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2354 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2357 if test x"${install_sh}" != xset; then
2358 case $am_aux_dir in
2359 *\ * | *\ *)
2360 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2362 install_sh="\${SHELL} $am_aux_dir/install-sh"
2363 esac
2366 # Installed binaries are usually stripped using `strip' when the user
2367 # run `make install-strip'. However `strip' might not be the right
2368 # tool to use in cross-compilation environments, therefore Automake
2369 # will honor the `STRIP' environment variable to overrule this program.
2370 if test "$cross_compiling" != no; then
2371 if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2373 set dummy ${ac_tool_prefix}strip; ac_word=$2
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375 $as_echo_n "checking for $ac_word... " >&6; }
2376 if test "${ac_cv_prog_STRIP+set}" = set; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 if test -n "$STRIP"; then
2380 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2393 done
2394 done
2395 IFS=$as_save_IFS
2399 STRIP=$ac_cv_prog_STRIP
2400 if test -n "$STRIP"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2402 $as_echo "$STRIP" >&6; }
2403 else
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405 $as_echo "no" >&6; }
2410 if test -z "$ac_cv_prog_STRIP"; then
2411 ac_ct_STRIP=$STRIP
2412 # Extract the first word of "strip", so it can be a program name with args.
2413 set dummy strip; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test -n "$ac_ct_STRIP"; then
2420 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_ac_ct_STRIP="strip"
2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 break 2
2433 done
2434 done
2435 IFS=$as_save_IFS
2439 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2440 if test -n "$ac_ct_STRIP"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2442 $as_echo "$ac_ct_STRIP" >&6; }
2443 else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445 $as_echo "no" >&6; }
2448 if test "x$ac_ct_STRIP" = x; then
2449 STRIP=":"
2450 else
2451 case $cross_compiling:$ac_tool_warned in
2452 yes:)
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2455 ac_tool_warned=yes ;;
2456 esac
2457 STRIP=$ac_ct_STRIP
2459 else
2460 STRIP="$ac_cv_prog_STRIP"
2464 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2467 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2468 if test -z "$MKDIR_P"; then
2469 if test "${ac_cv_path_mkdir+set}" = set; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_prog in mkdir gmkdir; do
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2480 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2481 'mkdir (GNU coreutils) '* | \
2482 'mkdir (coreutils) '* | \
2483 'mkdir (fileutils) '4.1*)
2484 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2485 break 3;;
2486 esac
2487 done
2488 done
2489 done
2490 IFS=$as_save_IFS
2494 if test "${ac_cv_path_mkdir+set}" = set; then
2495 MKDIR_P="$ac_cv_path_mkdir -p"
2496 else
2497 # As a last resort, use the slow shell script. Don't cache a
2498 # value for MKDIR_P within a source directory, because that will
2499 # break other packages using the cache if that directory is
2500 # removed, or if the value is a relative name.
2501 test -d ./--version && rmdir ./--version
2502 MKDIR_P="$ac_install_sh -d"
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2506 $as_echo "$MKDIR_P" >&6; }
2508 mkdir_p="$MKDIR_P"
2509 case $mkdir_p in
2510 [\\/$]* | ?:[\\/]*) ;;
2511 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2512 esac
2514 for ac_prog in gawk mawk nawk awk
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if test "${ac_cv_prog_AWK+set}" = set; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 if test -n "$AWK"; then
2524 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_AWK="$ac_prog"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2537 done
2538 done
2539 IFS=$as_save_IFS
2543 AWK=$ac_cv_prog_AWK
2544 if test -n "$AWK"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2546 $as_echo "$AWK" >&6; }
2547 else
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2553 test -n "$AWK" && break
2554 done
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2557 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2558 set x ${MAKE-make}
2559 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2560 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 cat >conftest.make <<\_ACEOF
2564 SHELL = /bin/sh
2565 all:
2566 @echo '@@@%%%=$(MAKE)=@@@%%%'
2567 _ACEOF
2568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2569 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2570 *@@@%%%=?*=@@@%%%*)
2571 eval ac_cv_prog_make_${ac_make}_set=yes;;
2573 eval ac_cv_prog_make_${ac_make}_set=no;;
2574 esac
2575 rm -f conftest.make
2577 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2579 $as_echo "yes" >&6; }
2580 SET_MAKE=
2581 else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2584 SET_MAKE="MAKE=${MAKE-make}"
2587 rm -rf .tst 2>/dev/null
2588 mkdir .tst 2>/dev/null
2589 if test -d .tst; then
2590 am__leading_dot=.
2591 else
2592 am__leading_dot=_
2594 rmdir .tst 2>/dev/null
2596 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2597 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2598 # is not polluted with repeated "-I."
2599 am__isrc=' -I$(srcdir)'
2600 # test to see if srcdir already configured
2601 if test -f $srcdir/config.status; then
2602 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2606 # test whether we have cygpath
2607 if test -z "$CYGPATH_W"; then
2608 if (cygpath --version) >/dev/null 2>/dev/null; then
2609 CYGPATH_W='cygpath -w'
2610 else
2611 CYGPATH_W=echo
2616 # Define the identity of the package.
2617 PACKAGE='spawn-fcgi'
2618 VERSION='1.6.3'
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE "$PACKAGE"
2623 _ACEOF
2626 cat >>confdefs.h <<_ACEOF
2627 #define VERSION "$VERSION"
2628 _ACEOF
2630 # Some tools Automake needs.
2632 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2635 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2638 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2641 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2644 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2646 # We need awk for the "check" target. The system "awk" is bad on
2647 # some platforms.
2648 # Always define AMTAR for backward compatibility.
2650 AMTAR=${AMTAR-"${am_missing_run}tar"}
2652 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2659 # Checks for programs.
2660 ac_ext=c
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665 if test -n "$ac_tool_prefix"; then
2666 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2667 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669 $as_echo_n "checking for $ac_word... " >&6; }
2670 if test "${ac_cv_prog_CC+set}" = set; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2687 done
2688 done
2689 IFS=$as_save_IFS
2693 CC=$ac_cv_prog_CC
2694 if test -n "$CC"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2696 $as_echo "$CC" >&6; }
2697 else
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699 $as_echo "no" >&6; }
2704 if test -z "$ac_cv_prog_CC"; then
2705 ac_ct_CC=$CC
2706 # Extract the first word of "gcc", so it can be a program name with args.
2707 set dummy gcc; ac_word=$2
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 if test -n "$ac_ct_CC"; then
2714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_prog_ac_ct_CC="gcc"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2727 done
2728 done
2729 IFS=$as_save_IFS
2733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2734 if test -n "$ac_ct_CC"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2736 $as_echo "$ac_ct_CC" >&6; }
2737 else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2742 if test "x$ac_ct_CC" = x; then
2743 CC=""
2744 else
2745 case $cross_compiling:$ac_tool_warned in
2746 yes:)
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2749 ac_tool_warned=yes ;;
2750 esac
2751 CC=$ac_ct_CC
2753 else
2754 CC="$ac_cv_prog_CC"
2757 if test -z "$CC"; then
2758 if test -n "$ac_tool_prefix"; then
2759 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2760 set dummy ${ac_tool_prefix}cc; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if test "${ac_cv_prog_CC+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test -n "$CC"; then
2767 ac_cv_prog_CC="$CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_CC="${ac_tool_prefix}cc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2780 done
2781 done
2782 IFS=$as_save_IFS
2786 CC=$ac_cv_prog_CC
2787 if test -n "$CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789 $as_echo "$CC" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2798 if test -z "$CC"; then
2799 # Extract the first word of "cc", so it can be a program name with args.
2800 set dummy cc; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if test "${ac_cv_prog_CC+set}" = set; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 else
2809 ac_prog_rejected=no
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2818 ac_prog_rejected=yes
2819 continue
2821 ac_cv_prog_CC="cc"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2827 IFS=$as_save_IFS
2829 if test $ac_prog_rejected = yes; then
2830 # We found a bogon in the path, so make sure we never use it.
2831 set dummy $ac_cv_prog_CC
2832 shift
2833 if test $# != 0; then
2834 # We chose a different compiler from the bogus one.
2835 # However, it has the same basename, so the bogon will be chosen
2836 # first if we set CC to just the basename; use the full file name.
2837 shift
2838 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2843 CC=$ac_cv_prog_CC
2844 if test -n "$CC"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2846 $as_echo "$CC" >&6; }
2847 else
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2854 if test -z "$CC"; then
2855 if test -n "$ac_tool_prefix"; then
2856 for ac_prog in cl.exe
2858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_CC+set}" = set; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if test -n "$CC"; then
2866 ac_cv_prog_CC="$CC" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2879 done
2880 done
2881 IFS=$as_save_IFS
2885 CC=$ac_cv_prog_CC
2886 if test -n "$CC"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2888 $as_echo "$CC" >&6; }
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2895 test -n "$CC" && break
2896 done
2898 if test -z "$CC"; then
2899 ac_ct_CC=$CC
2900 for ac_prog in cl.exe
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903 set dummy $ac_prog; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$ac_ct_CC"; then
2910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_ac_ct_CC="$ac_prog"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2923 done
2924 done
2925 IFS=$as_save_IFS
2929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2930 if test -n "$ac_ct_CC"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2932 $as_echo "$ac_ct_CC" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2939 test -n "$ac_ct_CC" && break
2940 done
2942 if test "x$ac_ct_CC" = x; then
2943 CC=""
2944 else
2945 case $cross_compiling:$ac_tool_warned in
2946 yes:)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2949 ac_tool_warned=yes ;;
2950 esac
2951 CC=$ac_ct_CC
2958 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2960 as_fn_error "no acceptable C compiler found in \$PATH
2961 See \`config.log' for more details." "$LINENO" 5; }
2963 # Provide some information about the compiler.
2964 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2965 set X $ac_compile
2966 ac_compiler=$2
2967 for ac_option in --version -v -V -qversion; do
2968 { { ac_try="$ac_compiler $ac_option >&5"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2974 $as_echo "$ac_try_echo"; } >&5
2975 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2976 ac_status=$?
2977 if test -s conftest.err; then
2978 sed '10a\
2979 ... rest of stderr output deleted ...
2980 10q' conftest.err >conftest.er1
2981 cat conftest.er1 >&5
2982 rm -f conftest.er1 conftest.err
2984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985 test $ac_status = 0; }
2986 done
2988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2989 /* end confdefs.h. */
2990 #include <stdio.h>
2992 main ()
2994 FILE *f = fopen ("conftest.out", "w");
2995 return ferror (f) || fclose (f) != 0;
2998 return 0;
3000 _ACEOF
3001 ac_clean_files_save=$ac_clean_files
3002 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3003 # Try to create an executable without -o first, disregard a.out.
3004 # It will help us diagnose broken compilers, and finding out an intuition
3005 # of exeext.
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3007 $as_echo_n "checking for C compiler default output file name... " >&6; }
3008 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3010 # The possible output files:
3011 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3013 ac_rmfiles=
3014 for ac_file in $ac_files
3016 case $ac_file in
3017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3018 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3019 esac
3020 done
3021 rm -f $ac_rmfiles
3023 if { { ac_try="$ac_link_default"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_link_default") 2>&5
3031 ac_status=$?
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }; then :
3034 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3035 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3036 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3037 # so that the user can short-circuit this test for compilers unknown to
3038 # Autoconf.
3039 for ac_file in $ac_files ''
3041 test -f "$ac_file" || continue
3042 case $ac_file in
3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3045 [ab].out )
3046 # We found the default executable, but exeext='' is most
3047 # certainly right.
3048 break;;
3049 *.* )
3050 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3051 then :; else
3052 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3054 # We set ac_cv_exeext here because the later test for it is not
3055 # safe: cross compilers may not add the suffix if given an `-o'
3056 # argument, so we may need to know it at that point already.
3057 # Even if this section looks crufty: it has the advantage of
3058 # actually working.
3059 break;;
3061 break;;
3062 esac
3063 done
3064 test "$ac_cv_exeext" = no && ac_cv_exeext=
3066 else
3067 ac_file=''
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3070 $as_echo "$ac_file" >&6; }
3071 if test -z "$ac_file"; then :
3072 $as_echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 { as_fn_set_status 77
3078 as_fn_error "C compiler cannot create executables
3079 See \`config.log' for more details." "$LINENO" 5; }; }
3081 ac_exeext=$ac_cv_exeext
3083 # Check that the compiler produces executables we can run. If not, either
3084 # the compiler is broken, or we cross compile.
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3086 $as_echo_n "checking whether the C compiler works... " >&6; }
3087 # If not cross compiling, check that we can run a simple program.
3088 if test "$cross_compiling" != yes; then
3089 if { ac_try='./$ac_file'
3090 { { case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_try") 2>&5
3097 ac_status=$?
3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3099 test $ac_status = 0; }; }; then
3100 cross_compiling=no
3101 else
3102 if test "$cross_compiling" = maybe; then
3103 cross_compiling=yes
3104 else
3105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107 as_fn_error "cannot run C compiled programs.
3108 If you meant to cross compile, use \`--host'.
3109 See \`config.log' for more details." "$LINENO" 5; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3114 $as_echo "yes" >&6; }
3116 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3117 ac_clean_files=$ac_clean_files_save
3118 # Check that the compiler produces executables we can run. If not, either
3119 # the compiler is broken, or we cross compile.
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3121 $as_echo_n "checking whether we are cross compiling... " >&6; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3123 $as_echo "$cross_compiling" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3126 $as_echo_n "checking for suffix of executables... " >&6; }
3127 if { { ac_try="$ac_link"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133 $as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_link") 2>&5
3135 ac_status=$?
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }; then :
3138 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3139 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3140 # work properly (i.e., refer to `conftest.exe'), while it won't with
3141 # `rm'.
3142 for ac_file in conftest.exe conftest conftest.*; do
3143 test -f "$ac_file" || continue
3144 case $ac_file in
3145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3146 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3147 break;;
3148 * ) break;;
3149 esac
3150 done
3151 else
3152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 as_fn_error "cannot compute suffix of executables: cannot compile and link
3155 See \`config.log' for more details." "$LINENO" 5; }
3157 rm -f conftest$ac_cv_exeext
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3159 $as_echo "$ac_cv_exeext" >&6; }
3161 rm -f conftest.$ac_ext
3162 EXEEXT=$ac_cv_exeext
3163 ac_exeext=$EXEEXT
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3165 $as_echo_n "checking for suffix of object files... " >&6; }
3166 if test "${ac_cv_objext+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3173 main ()
3177 return 0;
3179 _ACEOF
3180 rm -f conftest.o conftest.obj
3181 if { { ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_compile") 2>&5
3189 ac_status=$?
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }; then :
3192 for ac_file in conftest.o conftest.obj conftest.*; do
3193 test -f "$ac_file" || continue;
3194 case $ac_file in
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3196 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3197 break;;
3198 esac
3199 done
3200 else
3201 $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error "cannot compute suffix of object files: cannot compile
3207 See \`config.log' for more details." "$LINENO" 5; }
3209 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3212 $as_echo "$ac_cv_objext" >&6; }
3213 OBJEXT=$ac_cv_objext
3214 ac_objext=$OBJEXT
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3216 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3217 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3224 main ()
3226 #ifndef __GNUC__
3227 choke me
3228 #endif
3231 return 0;
3233 _ACEOF
3234 if ac_fn_c_try_compile "$LINENO"; then :
3235 ac_compiler_gnu=yes
3236 else
3237 ac_compiler_gnu=no
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3244 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3245 if test $ac_compiler_gnu = yes; then
3246 GCC=yes
3247 else
3248 GCC=
3250 ac_test_CFLAGS=${CFLAGS+set}
3251 ac_save_CFLAGS=$CFLAGS
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3253 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3254 if test "${ac_cv_prog_cc_g+set}" = set; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 ac_save_c_werror_flag=$ac_c_werror_flag
3258 ac_c_werror_flag=yes
3259 ac_cv_prog_cc_g=no
3260 CFLAGS="-g"
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3265 main ()
3269 return 0;
3271 _ACEOF
3272 if ac_fn_c_try_compile "$LINENO"; then :
3273 ac_cv_prog_cc_g=yes
3274 else
3275 CFLAGS=""
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3280 main ()
3284 return 0;
3286 _ACEOF
3287 if ac_fn_c_try_compile "$LINENO"; then :
3289 else
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3291 CFLAGS="-g"
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3296 main ()
3300 return 0;
3302 _ACEOF
3303 if ac_fn_c_try_compile "$LINENO"; then :
3304 ac_cv_prog_cc_g=yes
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_c_werror_flag=$ac_save_c_werror_flag
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3314 $as_echo "$ac_cv_prog_cc_g" >&6; }
3315 if test "$ac_test_CFLAGS" = set; then
3316 CFLAGS=$ac_save_CFLAGS
3317 elif test $ac_cv_prog_cc_g = yes; then
3318 if test "$GCC" = yes; then
3319 CFLAGS="-g -O2"
3320 else
3321 CFLAGS="-g"
3323 else
3324 if test "$GCC" = yes; then
3325 CFLAGS="-O2"
3326 else
3327 CFLAGS=
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3331 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3332 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 ac_cv_prog_cc_c89=no
3336 ac_save_CC=$CC
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3339 #include <stdarg.h>
3340 #include <stdio.h>
3341 #include <sys/types.h>
3342 #include <sys/stat.h>
3343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344 struct buf { int x; };
3345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346 static char *e (p, i)
3347 char **p;
3348 int i;
3350 return p[i];
3352 static char *f (char * (*g) (char **, int), char **p, ...)
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3362 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3363 function prototypes and stuff, but not '\xHH' hex character constants.
3364 These don't provoke an error unfortunately, instead are silently treated
3365 as 'x'. The following induces an error, until -std is added to get
3366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3367 array size at least. It's necessary to write '\x00'==0 to get something
3368 that's true only with -std. */
3369 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3371 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3372 inside strings and character constants. */
3373 #define FOO(x) 'x'
3374 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3376 int test (int i, double x);
3377 struct s1 {int (*f) (int a);};
3378 struct s2 {int (*f) (double a);};
3379 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3380 int argc;
3381 char **argv;
3383 main ()
3385 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3387 return 0;
3389 _ACEOF
3390 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3393 CC="$ac_save_CC $ac_arg"
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395 ac_cv_prog_cc_c89=$ac_arg
3397 rm -f core conftest.err conftest.$ac_objext
3398 test "x$ac_cv_prog_cc_c89" != "xno" && break
3399 done
3400 rm -f conftest.$ac_ext
3401 CC=$ac_save_CC
3404 # AC_CACHE_VAL
3405 case "x$ac_cv_prog_cc_c89" in
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3408 $as_echo "none needed" >&6; } ;;
3409 xno)
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3411 $as_echo "unsupported" >&6; } ;;
3413 CC="$CC $ac_cv_prog_cc_c89"
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3415 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3416 esac
3417 if test "x$ac_cv_prog_cc_c89" != xno; then :
3421 ac_ext=c
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 DEPDIR="${am__leading_dot}deps"
3428 ac_config_commands="$ac_config_commands depfiles"
3431 am_make=${MAKE-make}
3432 cat > confinc << 'END'
3433 am__doit:
3434 @echo this is the am__doit target
3435 .PHONY: am__doit
3437 # If we don't find an include directive, just comment out the code.
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3439 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3440 am__include="#"
3441 am__quote=
3442 _am_result=none
3443 # First try GNU make style include.
3444 echo "include confinc" > confmf
3445 # Ignore all kinds of additional output from `make'.
3446 case `$am_make -s -f confmf 2> /dev/null` in #(
3447 *the\ am__doit\ target*)
3448 am__include=include
3449 am__quote=
3450 _am_result=GNU
3452 esac
3453 # Now try BSD make style include.
3454 if test "$am__include" = "#"; then
3455 echo '.include "confinc"' > confmf
3456 case `$am_make -s -f confmf 2> /dev/null` in #(
3457 *the\ am__doit\ target*)
3458 am__include=.include
3459 am__quote="\""
3460 _am_result=BSD
3462 esac
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3467 $as_echo "$_am_result" >&6; }
3468 rm -f confinc confmf
3470 # Check whether --enable-dependency-tracking was given.
3471 if test "${enable_dependency_tracking+set}" = set; then :
3472 enableval=$enable_dependency_tracking;
3475 if test "x$enable_dependency_tracking" != xno; then
3476 am_depcomp="$ac_aux_dir/depcomp"
3477 AMDEPBACKSLASH='\'
3479 if test "x$enable_dependency_tracking" != xno; then
3480 AMDEP_TRUE=
3481 AMDEP_FALSE='#'
3482 else
3483 AMDEP_TRUE='#'
3484 AMDEP_FALSE=
3489 depcc="$CC" am_compiler_list=
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3492 $as_echo_n "checking dependency style of $depcc... " >&6; }
3493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3497 # We make a subdir and do the tests there. Otherwise we can end up
3498 # making bogus files that we don't know about and never remove. For
3499 # instance it was reported that on HP-UX the gcc test will end up
3500 # making a dummy file named `D' -- because `-MD' means `put the output
3501 # in D'.
3502 mkdir conftest.dir
3503 # Copy depcomp to subdir because otherwise we won't find it if we're
3504 # using a relative directory.
3505 cp "$am_depcomp" conftest.dir
3506 cd conftest.dir
3507 # We will build objects and dependencies in a subdirectory because
3508 # it helps to detect inapplicable dependency modes. For instance
3509 # both Tru64's cc and ICC support -MD to output dependencies as a
3510 # side effect of compilation, but ICC will put the dependencies in
3511 # the current directory while Tru64 will put them in the object
3512 # directory.
3513 mkdir sub
3515 am_cv_CC_dependencies_compiler_type=none
3516 if test "$am_compiler_list" = ""; then
3517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3519 am__universal=false
3520 case " $depcc " in #(
3521 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3522 esac
3524 for depmode in $am_compiler_list; do
3525 # Setup a source with many dependencies, because some compilers
3526 # like to wrap large dependency lists on column 80 (with \), and
3527 # we should not choose a depcomp mode which is confused by this.
3529 # We need to recreate these files for each test, as the compiler may
3530 # overwrite some of them when testing with obscure command lines.
3531 # This happens at least with the AIX C compiler.
3532 : > sub/conftest.c
3533 for i in 1 2 3 4 5 6; do
3534 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3535 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3536 # Solaris 8's {/usr,}/bin/sh.
3537 touch sub/conftst$i.h
3538 done
3539 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3541 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3542 # mode. It turns out that the SunPro C++ compiler does not properly
3543 # handle `-M -o', and we need to detect this. Also, some Intel
3544 # versions had trouble with output in subdirs
3545 am__obj=sub/conftest.${OBJEXT-o}
3546 am__minus_obj="-o $am__obj"
3547 case $depmode in
3548 gcc)
3549 # This depmode causes a compiler race in universal mode.
3550 test "$am__universal" = false || continue
3552 nosideeffect)
3553 # after this tag, mechanisms are not by side-effect, so they'll
3554 # only be used when explicitly requested
3555 if test "x$enable_dependency_tracking" = xyes; then
3556 continue
3557 else
3558 break
3561 msvisualcpp | msvcmsys)
3562 # This compiler won't grok `-c -o', but also, the minuso test has
3563 # not run yet. These depmodes are late enough in the game, and
3564 # so weak that their functioning should not be impacted.
3565 am__obj=conftest.${OBJEXT-o}
3566 am__minus_obj=
3568 none) break ;;
3569 esac
3570 if depmode=$depmode \
3571 source=sub/conftest.c object=$am__obj \
3572 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3573 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3574 >/dev/null 2>conftest.err &&
3575 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3576 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3577 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3578 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3579 # icc doesn't choke on unknown options, it will just issue warnings
3580 # or remarks (even with -Werror). So we grep stderr for any message
3581 # that says an option was ignored or not supported.
3582 # When given -MP, icc 7.0 and 7.1 complain thusly:
3583 # icc: Command line warning: ignoring option '-M'; no argument required
3584 # The diagnosis changed in icc 8.0:
3585 # icc: Command line remark: option '-MP' not supported
3586 if (grep 'ignoring option' conftest.err ||
3587 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3588 am_cv_CC_dependencies_compiler_type=$depmode
3589 break
3592 done
3594 cd ..
3595 rm -rf conftest.dir
3596 else
3597 am_cv_CC_dependencies_compiler_type=none
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3602 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3603 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3606 test "x$enable_dependency_tracking" != xno \
3607 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3608 am__fastdepCC_TRUE=
3609 am__fastdepCC_FALSE='#'
3610 else
3611 am__fastdepCC_TRUE='#'
3612 am__fastdepCC_FALSE=
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3617 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3618 set x ${MAKE-make}
3619 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3620 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 cat >conftest.make <<\_ACEOF
3624 SHELL = /bin/sh
3625 all:
3626 @echo '@@@%%%=$(MAKE)=@@@%%%'
3627 _ACEOF
3628 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3629 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3630 *@@@%%%=?*=@@@%%%*)
3631 eval ac_cv_prog_make_${ac_make}_set=yes;;
3633 eval ac_cv_prog_make_${ac_make}_set=no;;
3634 esac
3635 rm -f conftest.make
3637 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3639 $as_echo "yes" >&6; }
3640 SET_MAKE=
3641 else
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3644 SET_MAKE="MAKE=${MAKE-make}"
3648 # Checks for libraries.
3650 # Checks for header files.
3652 ac_ext=c
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3658 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3659 # On Suns, sometimes $CPP names a directory.
3660 if test -n "$CPP" && test -d "$CPP"; then
3661 CPP=
3663 if test -z "$CPP"; then
3664 if test "${ac_cv_prog_CPP+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 # Double quotes because CPP needs to be expanded
3668 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3670 ac_preproc_ok=false
3671 for ac_c_preproc_warn_flag in '' yes
3673 # Use a header file that comes with gcc, so configuring glibc
3674 # with a fresh cross-compiler works.
3675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676 # <limits.h> exists even on freestanding compilers.
3677 # On the NeXT, cc -E runs the code through the compiler's parser,
3678 # not just through cpp. "Syntax error" is here to catch this case.
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681 #ifdef __STDC__
3682 # include <limits.h>
3683 #else
3684 # include <assert.h>
3685 #endif
3686 Syntax error
3687 _ACEOF
3688 if ac_fn_c_try_cpp "$LINENO"; then :
3690 else
3691 # Broken: fails on valid input.
3692 continue
3694 rm -f conftest.err conftest.$ac_ext
3696 # OK, works on sane cases. Now check whether nonexistent headers
3697 # can be detected and how.
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700 #include <ac_nonexistent.h>
3701 _ACEOF
3702 if ac_fn_c_try_cpp "$LINENO"; then :
3703 # Broken: success on invalid input.
3704 continue
3705 else
3706 # Passes both tests.
3707 ac_preproc_ok=:
3708 break
3710 rm -f conftest.err conftest.$ac_ext
3712 done
3713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3714 rm -f conftest.err conftest.$ac_ext
3715 if $ac_preproc_ok; then :
3716 break
3719 done
3720 ac_cv_prog_CPP=$CPP
3723 CPP=$ac_cv_prog_CPP
3724 else
3725 ac_cv_prog_CPP=$CPP
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3728 $as_echo "$CPP" >&6; }
3729 ac_preproc_ok=false
3730 for ac_c_preproc_warn_flag in '' yes
3732 # Use a header file that comes with gcc, so configuring glibc
3733 # with a fresh cross-compiler works.
3734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3735 # <limits.h> exists even on freestanding compilers.
3736 # On the NeXT, cc -E runs the code through the compiler's parser,
3737 # not just through cpp. "Syntax error" is here to catch this case.
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #ifdef __STDC__
3741 # include <limits.h>
3742 #else
3743 # include <assert.h>
3744 #endif
3745 Syntax error
3746 _ACEOF
3747 if ac_fn_c_try_cpp "$LINENO"; then :
3749 else
3750 # Broken: fails on valid input.
3751 continue
3753 rm -f conftest.err conftest.$ac_ext
3755 # OK, works on sane cases. Now check whether nonexistent headers
3756 # can be detected and how.
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759 #include <ac_nonexistent.h>
3760 _ACEOF
3761 if ac_fn_c_try_cpp "$LINENO"; then :
3762 # Broken: success on invalid input.
3763 continue
3764 else
3765 # Passes both tests.
3766 ac_preproc_ok=:
3767 break
3769 rm -f conftest.err conftest.$ac_ext
3771 done
3772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3773 rm -f conftest.err conftest.$ac_ext
3774 if $ac_preproc_ok; then :
3776 else
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3780 See \`config.log' for more details." "$LINENO" 5; }
3783 ac_ext=c
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3791 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3792 if test "${ac_cv_path_GREP+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 if test -z "$GREP"; then
3796 ac_path_GREP_found=false
3797 # Loop through the user's path and test for each of PROGNAME-LIST
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_prog in grep ggrep; do
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3806 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3807 # Check for GNU ac_path_GREP and select it if it is found.
3808 # Check for GNU $ac_path_GREP
3809 case `"$ac_path_GREP" --version 2>&1` in
3810 *GNU*)
3811 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3813 ac_count=0
3814 $as_echo_n 0123456789 >"conftest.in"
3815 while :
3817 cat "conftest.in" "conftest.in" >"conftest.tmp"
3818 mv "conftest.tmp" "conftest.in"
3819 cp "conftest.in" "conftest.nl"
3820 $as_echo 'GREP' >> "conftest.nl"
3821 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3823 as_fn_arith $ac_count + 1 && ac_count=$as_val
3824 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3825 # Best one so far, save it but keep looking for a better one
3826 ac_cv_path_GREP="$ac_path_GREP"
3827 ac_path_GREP_max=$ac_count
3829 # 10*(2^10) chars as input seems more than enough
3830 test $ac_count -gt 10 && break
3831 done
3832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3833 esac
3835 $ac_path_GREP_found && break 3
3836 done
3837 done
3838 done
3839 IFS=$as_save_IFS
3840 if test -z "$ac_cv_path_GREP"; then
3841 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3843 else
3844 ac_cv_path_GREP=$GREP
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3849 $as_echo "$ac_cv_path_GREP" >&6; }
3850 GREP="$ac_cv_path_GREP"
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3854 $as_echo_n "checking for egrep... " >&6; }
3855 if test "${ac_cv_path_EGREP+set}" = set; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3859 then ac_cv_path_EGREP="$GREP -E"
3860 else
3861 if test -z "$EGREP"; then
3862 ac_path_EGREP_found=false
3863 # Loop through the user's path and test for each of PROGNAME-LIST
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_prog in egrep; do
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3872 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3873 # Check for GNU ac_path_EGREP and select it if it is found.
3874 # Check for GNU $ac_path_EGREP
3875 case `"$ac_path_EGREP" --version 2>&1` in
3876 *GNU*)
3877 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3879 ac_count=0
3880 $as_echo_n 0123456789 >"conftest.in"
3881 while :
3883 cat "conftest.in" "conftest.in" >"conftest.tmp"
3884 mv "conftest.tmp" "conftest.in"
3885 cp "conftest.in" "conftest.nl"
3886 $as_echo 'EGREP' >> "conftest.nl"
3887 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3889 as_fn_arith $ac_count + 1 && ac_count=$as_val
3890 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3891 # Best one so far, save it but keep looking for a better one
3892 ac_cv_path_EGREP="$ac_path_EGREP"
3893 ac_path_EGREP_max=$ac_count
3895 # 10*(2^10) chars as input seems more than enough
3896 test $ac_count -gt 10 && break
3897 done
3898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3899 esac
3901 $ac_path_EGREP_found && break 3
3902 done
3903 done
3904 done
3905 IFS=$as_save_IFS
3906 if test -z "$ac_cv_path_EGREP"; then
3907 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3909 else
3910 ac_cv_path_EGREP=$EGREP
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3916 $as_echo "$ac_cv_path_EGREP" >&6; }
3917 EGREP="$ac_cv_path_EGREP"
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3921 $as_echo_n "checking for ANSI C header files... " >&6; }
3922 if test "${ac_cv_header_stdc+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927 #include <stdlib.h>
3928 #include <stdarg.h>
3929 #include <string.h>
3930 #include <float.h>
3933 main ()
3937 return 0;
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941 ac_cv_header_stdc=yes
3942 else
3943 ac_cv_header_stdc=no
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 if test $ac_cv_header_stdc = yes; then
3948 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3951 #include <string.h>
3953 _ACEOF
3954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955 $EGREP "memchr" >/dev/null 2>&1; then :
3957 else
3958 ac_cv_header_stdc=no
3960 rm -f conftest*
3964 if test $ac_cv_header_stdc = yes; then
3965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3968 #include <stdlib.h>
3970 _ACEOF
3971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3972 $EGREP "free" >/dev/null 2>&1; then :
3974 else
3975 ac_cv_header_stdc=no
3977 rm -f conftest*
3981 if test $ac_cv_header_stdc = yes; then
3982 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3983 if test "$cross_compiling" = yes; then :
3985 else
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 #include <ctype.h>
3989 #include <stdlib.h>
3990 #if ((' ' & 0x0FF) == 0x020)
3991 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3992 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3993 #else
3994 # define ISLOWER(c) \
3995 (('a' <= (c) && (c) <= 'i') \
3996 || ('j' <= (c) && (c) <= 'r') \
3997 || ('s' <= (c) && (c) <= 'z'))
3998 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3999 #endif
4001 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4003 main ()
4005 int i;
4006 for (i = 0; i < 256; i++)
4007 if (XOR (islower (i), ISLOWER (i))
4008 || toupper (i) != TOUPPER (i))
4009 return 2;
4010 return 0;
4012 _ACEOF
4013 if ac_fn_c_try_run "$LINENO"; then :
4015 else
4016 ac_cv_header_stdc=no
4018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4019 conftest.$ac_objext conftest.beam conftest.$ac_ext
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4025 $as_echo "$ac_cv_header_stdc" >&6; }
4026 if test $ac_cv_header_stdc = yes; then
4028 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4033 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4034 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4039 #include <sys/types.h>
4040 #include <sys/wait.h>
4041 #ifndef WEXITSTATUS
4042 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4043 #endif
4044 #ifndef WIFEXITED
4045 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4046 #endif
4049 main ()
4051 int s;
4052 wait (&s);
4053 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4055 return 0;
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_header_sys_wait_h=yes
4060 else
4061 ac_cv_header_sys_wait_h=no
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4066 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4067 if test $ac_cv_header_sys_wait_h = yes; then
4069 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4073 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4074 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4075 inttypes.h stdint.h unistd.h
4076 do :
4077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4078 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4080 eval as_val=\$$as_ac_Header
4081 if test "x$as_val" = x""yes; then :
4082 cat >>confdefs.h <<_ACEOF
4083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 _ACEOF
4088 done
4091 for ac_header in arpa/inet.h errno.h fcntl.h getopt.h grp.h netdb.h \
4092 netinet/in.h netinet/tcp.h pwd.h stdio.h stdlib.h \
4093 string.h sys/ioctl.h sys/socket.h sys/stat.h sys/time.h \
4094 sys/types.h sys/un.h sys/wait.h unistd.h
4095 do :
4096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4097 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4098 eval as_val=\$$as_ac_Header
4099 if test "x$as_val" = x""yes; then :
4100 cat >>confdefs.h <<_ACEOF
4101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4102 _ACEOF
4106 done
4110 # Checks for typedefs, structures, and compiler characteristics.
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4112 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4113 if test "${ac_cv_c_const+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4120 main ()
4122 /* FIXME: Include the comments suggested by Paul. */
4123 #ifndef __cplusplus
4124 /* Ultrix mips cc rejects this. */
4125 typedef int charset[2];
4126 const charset cs;
4127 /* SunOS 4.1.1 cc rejects this. */
4128 char const *const *pcpcc;
4129 char **ppc;
4130 /* NEC SVR4.0.2 mips cc rejects this. */
4131 struct point {int x, y;};
4132 static struct point const zero = {0,0};
4133 /* AIX XL C 1.02.0.0 rejects this.
4134 It does not let you subtract one const X* pointer from another in
4135 an arm of an if-expression whose if-part is not a constant
4136 expression */
4137 const char *g = "string";
4138 pcpcc = &g + (g ? g-g : 0);
4139 /* HPUX 7.0 cc rejects these. */
4140 ++pcpcc;
4141 ppc = (char**) pcpcc;
4142 pcpcc = (char const *const *) ppc;
4143 { /* SCO 3.2v4 cc rejects this. */
4144 char *t;
4145 char const *s = 0 ? (char *) 0 : (char const *) 0;
4147 *t++ = 0;
4148 if (s) return 0;
4150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4151 int x[] = {25, 17};
4152 const int *foo = &x[0];
4153 ++foo;
4155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4156 typedef const int *iptr;
4157 iptr p = 0;
4158 ++p;
4160 { /* AIX XL C 1.02.0.0 rejects this saying
4161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4162 struct s { int j; const int *ap[3]; };
4163 struct s *b; b->j = 5;
4165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4166 const int foo = 10;
4167 if (!foo) return 0;
4169 return !cs[0] && !zero.x;
4170 #endif
4173 return 0;
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_c_const=yes
4178 else
4179 ac_cv_c_const=no
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4184 $as_echo "$ac_cv_c_const" >&6; }
4185 if test $ac_cv_c_const = no; then
4187 $as_echo "#define const /**/" >>confdefs.h
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4192 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4193 if test "${ac_cv_type_uid_t+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #include <sys/types.h>
4200 _ACEOF
4201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4202 $EGREP "uid_t" >/dev/null 2>&1; then :
4203 ac_cv_type_uid_t=yes
4204 else
4205 ac_cv_type_uid_t=no
4207 rm -f conftest*
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4211 $as_echo "$ac_cv_type_uid_t" >&6; }
4212 if test $ac_cv_type_uid_t = no; then
4214 $as_echo "#define uid_t int" >>confdefs.h
4217 $as_echo "#define gid_t int" >>confdefs.h
4221 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4222 if test "x$ac_cv_type_pid_t" = x""yes; then :
4224 else
4226 cat >>confdefs.h <<_ACEOF
4227 #define pid_t int
4228 _ACEOF
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4233 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4234 if test "${ac_cv_header_time+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #include <sys/types.h>
4240 #include <sys/time.h>
4241 #include <time.h>
4244 main ()
4246 if ((struct tm *) 0)
4247 return 0;
4249 return 0;
4251 _ACEOF
4252 if ac_fn_c_try_compile "$LINENO"; then :
4253 ac_cv_header_time=yes
4254 else
4255 ac_cv_header_time=no
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4260 $as_echo "$ac_cv_header_time" >&6; }
4261 if test $ac_cv_header_time = yes; then
4263 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4267 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
4268 #include <sys/socket.h>
4270 if test "x$ac_cv_type_socklen_t" = x""yes; then :
4272 cat >>confdefs.h <<_ACEOF
4273 #define HAVE_SOCKLEN_T 1
4274 _ACEOF
4280 ## solaris needs -lsocket -lnsl
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4282 $as_echo_n "checking for library containing socket... " >&6; }
4283 if test "${ac_cv_search_socket+set}" = set; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 ac_func_search_save_LIBS=$LIBS
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4290 /* Override any GCC internal prototype to avoid an error.
4291 Use char because int might match the return type of a GCC
4292 builtin and then its argument prototype would still apply. */
4293 #ifdef __cplusplus
4294 extern "C"
4295 #endif
4296 char socket ();
4298 main ()
4300 return socket ();
4302 return 0;
4304 _ACEOF
4305 for ac_lib in '' socket; do
4306 if test -z "$ac_lib"; then
4307 ac_res="none required"
4308 else
4309 ac_res=-l$ac_lib
4310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4312 if ac_fn_c_try_link "$LINENO"; then :
4313 ac_cv_search_socket=$ac_res
4315 rm -f core conftest.err conftest.$ac_objext \
4316 conftest$ac_exeext
4317 if test "${ac_cv_search_socket+set}" = set; then :
4318 break
4320 done
4321 if test "${ac_cv_search_socket+set}" = set; then :
4323 else
4324 ac_cv_search_socket=no
4326 rm conftest.$ac_ext
4327 LIBS=$ac_func_search_save_LIBS
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4330 $as_echo "$ac_cv_search_socket" >&6; }
4331 ac_res=$ac_cv_search_socket
4332 if test "$ac_res" != no; then :
4333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
4338 $as_echo_n "checking for library containing inet_addr... " >&6; }
4339 if test "${ac_cv_search_inet_addr+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 ac_func_search_save_LIBS=$LIBS
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
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 inet_addr ();
4354 main ()
4356 return inet_addr ();
4358 return 0;
4360 _ACEOF
4361 for ac_lib in '' nsl socket; do
4362 if test -z "$ac_lib"; then
4363 ac_res="none required"
4364 else
4365 ac_res=-l$ac_lib
4366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4368 if ac_fn_c_try_link "$LINENO"; then :
4369 ac_cv_search_inet_addr=$ac_res
4371 rm -f core conftest.err conftest.$ac_objext \
4372 conftest$ac_exeext
4373 if test "${ac_cv_search_inet_addr+set}" = set; then :
4374 break
4376 done
4377 if test "${ac_cv_search_inet_addr+set}" = set; then :
4379 else
4380 ac_cv_search_inet_addr=no
4382 rm conftest.$ac_ext
4383 LIBS=$ac_func_search_save_LIBS
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
4386 $as_echo "$ac_cv_search_inet_addr" >&6; }
4387 ac_res=$ac_cv_search_inet_addr
4388 if test "$ac_res" != no; then :
4389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4394 # Checks for library functions.
4395 for ac_header in unistd.h
4396 do :
4397 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4398 if test "x$ac_cv_header_unistd_h" = x""yes; then :
4399 cat >>confdefs.h <<_ACEOF
4400 #define HAVE_UNISTD_H 1
4401 _ACEOF
4405 done
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
4408 $as_echo_n "checking for working chown... " >&6; }
4409 if test "${ac_cv_func_chown_works+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test "$cross_compiling" = yes; then :
4413 ac_cv_func_chown_works=no
4414 else
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 $ac_includes_default
4418 #include <fcntl.h>
4421 main ()
4423 char *f = "conftest.chown";
4424 struct stat before, after;
4426 if (creat (f, 0600) < 0)
4427 return 1;
4428 if (stat (f, &before) < 0)
4429 return 1;
4430 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
4431 return 1;
4432 if (stat (f, &after) < 0)
4433 return 1;
4434 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
4437 return 0;
4439 _ACEOF
4440 if ac_fn_c_try_run "$LINENO"; then :
4441 ac_cv_func_chown_works=yes
4442 else
4443 ac_cv_func_chown_works=no
4445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4446 conftest.$ac_objext conftest.beam conftest.$ac_ext
4449 rm -f conftest.chown
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
4453 $as_echo "$ac_cv_func_chown_works" >&6; }
4454 if test $ac_cv_func_chown_works = yes; then
4456 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
4460 for ac_header in vfork.h
4461 do :
4462 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4463 if test "x$ac_cv_header_vfork_h" = x""yes; then :
4464 cat >>confdefs.h <<_ACEOF
4465 #define HAVE_VFORK_H 1
4466 _ACEOF
4470 done
4472 for ac_func in fork vfork
4473 do :
4474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4475 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4476 eval as_val=\$$as_ac_var
4477 if test "x$as_val" = x""yes; then :
4478 cat >>confdefs.h <<_ACEOF
4479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4480 _ACEOF
4483 done
4485 if test "x$ac_cv_func_fork" = xyes; then
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4487 $as_echo_n "checking for working fork... " >&6; }
4488 if test "${ac_cv_func_fork_works+set}" = set; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test "$cross_compiling" = yes; then :
4492 ac_cv_func_fork_works=cross
4493 else
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 $ac_includes_default
4498 main ()
4501 /* By Ruediger Kuhlmann. */
4502 return fork () < 0;
4505 return 0;
4507 _ACEOF
4508 if ac_fn_c_try_run "$LINENO"; then :
4509 ac_cv_func_fork_works=yes
4510 else
4511 ac_cv_func_fork_works=no
4513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4514 conftest.$ac_objext conftest.beam conftest.$ac_ext
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4519 $as_echo "$ac_cv_func_fork_works" >&6; }
4521 else
4522 ac_cv_func_fork_works=$ac_cv_func_fork
4524 if test "x$ac_cv_func_fork_works" = xcross; then
4525 case $host in
4526 *-*-amigaos* | *-*-msdosdjgpp*)
4527 # Override, as these systems have only a dummy fork() stub
4528 ac_cv_func_fork_works=no
4531 ac_cv_func_fork_works=yes
4533 esac
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4535 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4537 ac_cv_func_vfork_works=$ac_cv_func_vfork
4538 if test "x$ac_cv_func_vfork" = xyes; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4540 $as_echo_n "checking for working vfork... " >&6; }
4541 if test "${ac_cv_func_vfork_works+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 if test "$cross_compiling" = yes; then :
4545 ac_cv_func_vfork_works=cross
4546 else
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4549 /* Thanks to Paul Eggert for this test. */
4550 $ac_includes_default
4551 #include <sys/wait.h>
4552 #ifdef HAVE_VFORK_H
4553 # include <vfork.h>
4554 #endif
4555 /* On some sparc systems, changes by the child to local and incoming
4556 argument registers are propagated back to the parent. The compiler
4557 is told about this with #include <vfork.h>, but some compilers
4558 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4559 static variable whose address is put into a register that is
4560 clobbered by the vfork. */
4561 static void
4562 #ifdef __cplusplus
4563 sparc_address_test (int arg)
4564 # else
4565 sparc_address_test (arg) int arg;
4566 #endif
4568 static pid_t child;
4569 if (!child) {
4570 child = vfork ();
4571 if (child < 0) {
4572 perror ("vfork");
4573 _exit(2);
4575 if (!child) {
4576 arg = getpid();
4577 write(-1, "", 0);
4578 _exit (arg);
4584 main ()
4586 pid_t parent = getpid ();
4587 pid_t child;
4589 sparc_address_test (0);
4591 child = vfork ();
4593 if (child == 0) {
4594 /* Here is another test for sparc vfork register problems. This
4595 test uses lots of local variables, at least as many local
4596 variables as main has allocated so far including compiler
4597 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4598 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4599 reuse the register of parent for one of the local variables,
4600 since it will think that parent can't possibly be used any more
4601 in this routine. Assigning to the local variable will thus
4602 munge parent in the parent process. */
4603 pid_t
4604 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4605 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4606 /* Convince the compiler that p..p7 are live; otherwise, it might
4607 use the same hardware register for all 8 local variables. */
4608 if (p != p1 || p != p2 || p != p3 || p != p4
4609 || p != p5 || p != p6 || p != p7)
4610 _exit(1);
4612 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4613 from child file descriptors. If the child closes a descriptor
4614 before it execs or exits, this munges the parent's descriptor
4615 as well. Test for this by closing stdout in the child. */
4616 _exit(close(fileno(stdout)) != 0);
4617 } else {
4618 int status;
4619 struct stat st;
4621 while (wait(&status) != child)
4623 return (
4624 /* Was there some problem with vforking? */
4625 child < 0
4627 /* Did the child fail? (This shouldn't happen.) */
4628 || status
4630 /* Did the vfork/compiler bug occur? */
4631 || parent != getpid()
4633 /* Did the file descriptor bug occur? */
4634 || fstat(fileno(stdout), &st) != 0
4638 _ACEOF
4639 if ac_fn_c_try_run "$LINENO"; then :
4640 ac_cv_func_vfork_works=yes
4641 else
4642 ac_cv_func_vfork_works=no
4644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4645 conftest.$ac_objext conftest.beam conftest.$ac_ext
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
4650 $as_echo "$ac_cv_func_vfork_works" >&6; }
4653 if test "x$ac_cv_func_fork_works" = xcross; then
4654 ac_cv_func_vfork_works=$ac_cv_func_vfork
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4656 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4659 if test "x$ac_cv_func_vfork_works" = xyes; then
4661 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
4663 else
4665 $as_echo "#define vfork fork" >>confdefs.h
4668 if test "x$ac_cv_func_fork_works" = xyes; then
4670 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
4674 for ac_header in stdlib.h
4675 do :
4676 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4677 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4678 cat >>confdefs.h <<_ACEOF
4679 #define HAVE_STDLIB_H 1
4680 _ACEOF
4684 done
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4687 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4688 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test "$cross_compiling" = yes; then :
4692 ac_cv_func_malloc_0_nonnull=no
4693 else
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4697 # include <stdlib.h>
4698 #else
4699 char *malloc ();
4700 #endif
4703 main ()
4705 return ! malloc (0);
4707 return 0;
4709 _ACEOF
4710 if ac_fn_c_try_run "$LINENO"; then :
4711 ac_cv_func_malloc_0_nonnull=yes
4712 else
4713 ac_cv_func_malloc_0_nonnull=no
4715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4716 conftest.$ac_objext conftest.beam conftest.$ac_ext
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4721 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4722 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4724 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4726 else
4727 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4729 case " $LIBOBJS " in
4730 *" malloc.$ac_objext "* ) ;;
4731 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4733 esac
4736 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4741 for ac_header in sys/select.h sys/socket.h
4742 do :
4743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4744 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4745 eval as_val=\$$as_ac_Header
4746 if test "x$as_val" = x""yes; then :
4747 cat >>confdefs.h <<_ACEOF
4748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749 _ACEOF
4753 done
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
4756 $as_echo_n "checking types of arguments for select... " >&6; }
4757 if test "${ac_cv_func_select_args+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
4761 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
4762 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 $ac_includes_default
4766 #ifdef HAVE_SYS_SELECT_H
4767 # include <sys/select.h>
4768 #endif
4769 #ifdef HAVE_SYS_SOCKET_H
4770 # include <sys/socket.h>
4771 #endif
4774 main ()
4776 extern int select ($ac_arg1,
4777 $ac_arg234, $ac_arg234, $ac_arg234,
4778 $ac_arg5);
4780 return 0;
4782 _ACEOF
4783 if ac_fn_c_try_compile "$LINENO"; then :
4784 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 done
4788 done
4789 done
4790 # Provide a safe default value.
4791 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
4795 $as_echo "$ac_cv_func_select_args" >&6; }
4796 ac_save_IFS=$IFS; IFS=','
4797 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
4798 IFS=$ac_save_IFS
4799 shift
4801 cat >>confdefs.h <<_ACEOF
4802 #define SELECT_TYPE_ARG1 $1
4803 _ACEOF
4806 cat >>confdefs.h <<_ACEOF
4807 #define SELECT_TYPE_ARG234 ($2)
4808 _ACEOF
4811 cat >>confdefs.h <<_ACEOF
4812 #define SELECT_TYPE_ARG5 ($3)
4813 _ACEOF
4815 rm -f conftest*
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
4818 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
4819 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 rm -f conftest.sym conftest.file
4823 echo >conftest.file
4824 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
4825 if test "$cross_compiling" = yes; then :
4826 ac_cv_func_lstat_dereferences_slashed_symlink=no
4827 else
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830 $ac_includes_default
4832 main ()
4834 struct stat sbuf;
4835 /* Linux will dereference the symlink and fail.
4836 That is better in the sense that it means we will not
4837 have to compile and use the lstat wrapper. */
4838 return lstat ("conftest.sym/", &sbuf) == 0;
4840 return 0;
4842 _ACEOF
4843 if ac_fn_c_try_run "$LINENO"; then :
4844 ac_cv_func_lstat_dereferences_slashed_symlink=yes
4845 else
4846 ac_cv_func_lstat_dereferences_slashed_symlink=no
4848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4849 conftest.$ac_objext conftest.beam conftest.$ac_ext
4852 else
4853 # If the `ln -s' command failed, then we probably don't even
4854 # have an lstat function.
4855 ac_cv_func_lstat_dereferences_slashed_symlink=no
4857 rm -f conftest.sym conftest.file
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
4861 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
4863 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
4865 cat >>confdefs.h <<_ACEOF
4866 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
4867 _ACEOF
4870 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
4871 case " $LIBOBJS " in
4872 *" lstat.$ac_objext "* ) ;;
4873 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
4875 esac
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
4880 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
4881 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 if test "$cross_compiling" = yes; then :
4885 ac_cv_func_stat_empty_string_bug=yes
4886 else
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 $ac_includes_default
4891 main ()
4893 struct stat sbuf;
4894 return stat ("", &sbuf) == 0;
4896 return 0;
4898 _ACEOF
4899 if ac_fn_c_try_run "$LINENO"; then :
4900 ac_cv_func_stat_empty_string_bug=no
4901 else
4902 ac_cv_func_stat_empty_string_bug=yes
4904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4905 conftest.$ac_objext conftest.beam conftest.$ac_ext
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
4910 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
4911 if test $ac_cv_func_stat_empty_string_bug = yes; then
4912 case " $LIBOBJS " in
4913 *" stat.$ac_objext "* ) ;;
4914 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
4916 esac
4919 cat >>confdefs.h <<_ACEOF
4920 #define HAVE_STAT_EMPTY_STRING_BUG 1
4921 _ACEOF
4925 for ac_func in dup2 memset putenv select socket strerror strtol issetugid inet_pton
4926 do :
4927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4928 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4929 eval as_val=\$$as_ac_var
4930 if test "x$as_val" = x""yes; then :
4931 cat >>confdefs.h <<_ACEOF
4932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4933 _ACEOF
4936 done
4940 # Check for IPv6 support
4942 # Check whether --enable-ipv6 was given.
4943 if test "${enable_ipv6+set}" = set; then :
4944 enableval=$enable_ipv6; case "${enableval}" in
4945 yes) ipv6=true ;;
4946 no) ipv6=false ;;
4947 *) as_fn_error "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;;
4948 esac
4949 else
4950 ipv6=true
4954 if test x$ipv6 = xtrue; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
4956 $as_echo_n "checking for IPv6 support... " >&6; }
4957 if test "${ac_cv_ipv6_support+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962 #include <sys/types.h>
4963 #include <sys/socket.h>
4964 #include <netinet/in.h>
4966 main ()
4968 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
4970 return 0;
4972 _ACEOF
4973 if ac_fn_c_try_link "$LINENO"; then :
4974 ac_cv_ipv6_support=yes
4975 else
4976 ac_cv_ipv6_support=no
4978 rm -f core conftest.err conftest.$ac_objext \
4979 conftest$ac_exeext conftest.$ac_ext
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
4982 $as_echo "$ac_cv_ipv6_support" >&6; }
4984 if test "$ac_cv_ipv6_support" = yes; then
4986 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
4992 # check for extra compiler options (warning options)
4993 if test "${GCC}" = "yes"; then
4994 CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99"
4997 # Check whether --enable-extra-warnings was given.
4998 if test "${enable_extra_warnings+set}" = set; then :
4999 enableval=$enable_extra_warnings; case "${enableval}" in
5000 yes) extrawarnings=true ;;
5001 no) extrawarnings=false ;;
5002 *) as_fn_error "bad value ${enableval} for --enable-extra-warnings" "$LINENO" 5 ;;
5003 esac
5004 else
5005 extrawarnings=false
5009 if test x$extrawarnings = xtrue; then
5010 CFLAGS="${CFLAGS} -g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed -Wformat-security"
5013 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile"
5015 cat >confcache <<\_ACEOF
5016 # This file is a shell script that caches the results of configure
5017 # tests run on this system so they can be shared between configure
5018 # scripts and configure runs, see configure's option --config-cache.
5019 # It is not useful on other systems. If it contains results you don't
5020 # want to keep, you may remove or edit it.
5022 # config.status only pays attention to the cache file if you give it
5023 # the --recheck option to rerun configure.
5025 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5026 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5027 # following values.
5029 _ACEOF
5031 # The following way of writing the cache mishandles newlines in values,
5032 # but we know of no workaround that is simple, portable, and efficient.
5033 # So, we kill variables containing newlines.
5034 # Ultrix sh set writes to stderr and can't be redirected directly,
5035 # and sets the high bit in the cache file unless we assign to the vars.
5037 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5038 eval ac_val=\$$ac_var
5039 case $ac_val in #(
5040 *${as_nl}*)
5041 case $ac_var in #(
5042 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5043 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5044 esac
5045 case $ac_var in #(
5046 _ | IFS | as_nl) ;; #(
5047 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5048 *) { eval $ac_var=; unset $ac_var;} ;;
5049 esac ;;
5050 esac
5051 done
5053 (set) 2>&1 |
5054 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5055 *${as_nl}ac_space=\ *)
5056 # `set' does not quote correctly, so add quotes: double-quote
5057 # substitution turns \\\\ into \\, and sed turns \\ into \.
5058 sed -n \
5059 "s/'/'\\\\''/g;
5060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5061 ;; #(
5063 # `set' quotes correctly as required by POSIX, so do not add quotes.
5064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5066 esac |
5067 sort
5069 sed '
5070 /^ac_cv_env_/b end
5071 t clear
5072 :clear
5073 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5074 t end
5075 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5076 :end' >>confcache
5077 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5078 if test -w "$cache_file"; then
5079 test "x$cache_file" != "x/dev/null" &&
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5081 $as_echo "$as_me: updating cache $cache_file" >&6;}
5082 cat confcache >$cache_file
5083 else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5085 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5088 rm -f confcache
5090 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5091 # Let make expand exec_prefix.
5092 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5094 DEFS=-DHAVE_CONFIG_H
5096 ac_libobjs=
5097 ac_ltlibobjs=
5098 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5099 # 1. Remove the extension, and $U if already installed.
5100 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5101 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5102 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5103 # will be set to the directory where LIBOBJS objects are built.
5104 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5105 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5106 done
5107 LIBOBJS=$ac_libobjs
5109 LTLIBOBJS=$ac_ltlibobjs
5112 if test -n "$EXEEXT"; then
5113 am__EXEEXT_TRUE=
5114 am__EXEEXT_FALSE='#'
5115 else
5116 am__EXEEXT_TRUE='#'
5117 am__EXEEXT_FALSE=
5120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5121 as_fn_error "conditional \"AMDEP\" was never defined.
5122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5125 as_fn_error "conditional \"am__fastdepCC\" was never defined.
5126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5129 : ${CONFIG_STATUS=./config.status}
5130 ac_write_fail=0
5131 ac_clean_files_save=$ac_clean_files
5132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5134 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5135 as_write_fail=0
5136 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5137 #! $SHELL
5138 # Generated by $as_me.
5139 # Run this file to recreate the current configuration.
5140 # Compiler output produced by configure, useful for debugging
5141 # configure, is in config.log if it exists.
5143 debug=false
5144 ac_cs_recheck=false
5145 ac_cs_silent=false
5147 SHELL=\${CONFIG_SHELL-$SHELL}
5148 export SHELL
5149 _ASEOF
5150 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5151 ## -------------------- ##
5152 ## M4sh Initialization. ##
5153 ## -------------------- ##
5155 # Be more Bourne compatible
5156 DUALCASE=1; export DUALCASE # for MKS sh
5157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5158 emulate sh
5159 NULLCMD=:
5160 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5161 # is contrary to our usage. Disable this feature.
5162 alias -g '${1+"$@"}'='"$@"'
5163 setopt NO_GLOB_SUBST
5164 else
5165 case `(set -o) 2>/dev/null` in #(
5166 *posix*) :
5167 set -o posix ;; #(
5168 *) :
5170 esac
5174 as_nl='
5176 export as_nl
5177 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5178 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5179 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5180 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5181 # Prefer a ksh shell builtin over an external printf program on Solaris,
5182 # but without wasting forks for bash or zsh.
5183 if test -z "$BASH_VERSION$ZSH_VERSION" \
5184 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5185 as_echo='print -r --'
5186 as_echo_n='print -rn --'
5187 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5188 as_echo='printf %s\n'
5189 as_echo_n='printf %s'
5190 else
5191 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5192 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5193 as_echo_n='/usr/ucb/echo -n'
5194 else
5195 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5196 as_echo_n_body='eval
5197 arg=$1;
5198 case $arg in #(
5199 *"$as_nl"*)
5200 expr "X$arg" : "X\\(.*\\)$as_nl";
5201 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5202 esac;
5203 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5205 export as_echo_n_body
5206 as_echo_n='sh -c $as_echo_n_body as_echo'
5208 export as_echo_body
5209 as_echo='sh -c $as_echo_body as_echo'
5212 # The user is always right.
5213 if test "${PATH_SEPARATOR+set}" != set; then
5214 PATH_SEPARATOR=:
5215 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5216 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5217 PATH_SEPARATOR=';'
5222 # IFS
5223 # We need space, tab and new line, in precisely that order. Quoting is
5224 # there to prevent editors from complaining about space-tab.
5225 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5226 # splitting by setting IFS to empty value.)
5227 IFS=" "" $as_nl"
5229 # Find who we are. Look in the path if we contain no directory separator.
5230 case $0 in #((
5231 *[\\/]* ) as_myself=$0 ;;
5232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5238 done
5239 IFS=$as_save_IFS
5242 esac
5243 # We did not find ourselves, most probably we were run as `sh COMMAND'
5244 # in which case we are not to be found in the path.
5245 if test "x$as_myself" = x; then
5246 as_myself=$0
5248 if test ! -f "$as_myself"; then
5249 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5250 exit 1
5253 # Unset variables that we do not need and which cause bugs (e.g. in
5254 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5255 # suppresses any "Segmentation fault" message there. '((' could
5256 # trigger a bug in pdksh 5.2.14.
5257 for as_var in BASH_ENV ENV MAIL MAILPATH
5258 do eval test x\${$as_var+set} = xset \
5259 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5260 done
5261 PS1='$ '
5262 PS2='> '
5263 PS4='+ '
5265 # NLS nuisances.
5266 LC_ALL=C
5267 export LC_ALL
5268 LANGUAGE=C
5269 export LANGUAGE
5271 # CDPATH.
5272 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5275 # as_fn_error ERROR [LINENO LOG_FD]
5276 # ---------------------------------
5277 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5278 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5279 # script with status $?, using 1 if that was 0.
5280 as_fn_error ()
5282 as_status=$?; test $as_status -eq 0 && as_status=1
5283 if test "$3"; then
5284 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5285 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5287 $as_echo "$as_me: error: $1" >&2
5288 as_fn_exit $as_status
5289 } # as_fn_error
5292 # as_fn_set_status STATUS
5293 # -----------------------
5294 # Set $? to STATUS, without forking.
5295 as_fn_set_status ()
5297 return $1
5298 } # as_fn_set_status
5300 # as_fn_exit STATUS
5301 # -----------------
5302 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5303 as_fn_exit ()
5305 set +e
5306 as_fn_set_status $1
5307 exit $1
5308 } # as_fn_exit
5310 # as_fn_unset VAR
5311 # ---------------
5312 # Portably unset VAR.
5313 as_fn_unset ()
5315 { eval $1=; unset $1;}
5317 as_unset=as_fn_unset
5318 # as_fn_append VAR VALUE
5319 # ----------------------
5320 # Append the text in VALUE to the end of the definition contained in VAR. Take
5321 # advantage of any shell optimizations that allow amortized linear growth over
5322 # repeated appends, instead of the typical quadratic growth present in naive
5323 # implementations.
5324 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5325 eval 'as_fn_append ()
5327 eval $1+=\$2
5329 else
5330 as_fn_append ()
5332 eval $1=\$$1\$2
5334 fi # as_fn_append
5336 # as_fn_arith ARG...
5337 # ------------------
5338 # Perform arithmetic evaluation on the ARGs, and store the result in the
5339 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5340 # must be portable across $(()) and expr.
5341 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5342 eval 'as_fn_arith ()
5344 as_val=$(( $* ))
5346 else
5347 as_fn_arith ()
5349 as_val=`expr "$@" || test $? -eq 1`
5351 fi # as_fn_arith
5354 if expr a : '\(a\)' >/dev/null 2>&1 &&
5355 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5356 as_expr=expr
5357 else
5358 as_expr=false
5361 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5362 as_basename=basename
5363 else
5364 as_basename=false
5367 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5368 as_dirname=dirname
5369 else
5370 as_dirname=false
5373 as_me=`$as_basename -- "$0" ||
5374 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5375 X"$0" : 'X\(//\)$' \| \
5376 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5377 $as_echo X/"$0" |
5378 sed '/^.*\/\([^/][^/]*\)\/*$/{
5379 s//\1/
5382 /^X\/\(\/\/\)$/{
5383 s//\1/
5386 /^X\/\(\/\).*/{
5387 s//\1/
5390 s/.*/./; q'`
5392 # Avoid depending upon Character Ranges.
5393 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5394 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5395 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5396 as_cr_digits='0123456789'
5397 as_cr_alnum=$as_cr_Letters$as_cr_digits
5399 ECHO_C= ECHO_N= ECHO_T=
5400 case `echo -n x` in #(((((
5401 -n*)
5402 case `echo 'xy\c'` in
5403 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5404 xy) ECHO_C='\c';;
5405 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5406 ECHO_T=' ';;
5407 esac;;
5409 ECHO_N='-n';;
5410 esac
5412 rm -f conf$$ conf$$.exe conf$$.file
5413 if test -d conf$$.dir; then
5414 rm -f conf$$.dir/conf$$.file
5415 else
5416 rm -f conf$$.dir
5417 mkdir conf$$.dir 2>/dev/null
5419 if (echo >conf$$.file) 2>/dev/null; then
5420 if ln -s conf$$.file conf$$ 2>/dev/null; then
5421 as_ln_s='ln -s'
5422 # ... but there are two gotchas:
5423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5425 # In both cases, we have to default to `cp -p'.
5426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5427 as_ln_s='cp -p'
5428 elif ln conf$$.file conf$$ 2>/dev/null; then
5429 as_ln_s=ln
5430 else
5431 as_ln_s='cp -p'
5433 else
5434 as_ln_s='cp -p'
5436 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5437 rmdir conf$$.dir 2>/dev/null
5440 # as_fn_mkdir_p
5441 # -------------
5442 # Create "$as_dir" as a directory, including parents if necessary.
5443 as_fn_mkdir_p ()
5446 case $as_dir in #(
5447 -*) as_dir=./$as_dir;;
5448 esac
5449 test -d "$as_dir" || eval $as_mkdir_p || {
5450 as_dirs=
5451 while :; do
5452 case $as_dir in #(
5453 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5454 *) as_qdir=$as_dir;;
5455 esac
5456 as_dirs="'$as_qdir' $as_dirs"
5457 as_dir=`$as_dirname -- "$as_dir" ||
5458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5459 X"$as_dir" : 'X\(//\)[^/]' \| \
5460 X"$as_dir" : 'X\(//\)$' \| \
5461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5462 $as_echo X"$as_dir" |
5463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5464 s//\1/
5467 /^X\(\/\/\)[^/].*/{
5468 s//\1/
5471 /^X\(\/\/\)$/{
5472 s//\1/
5475 /^X\(\/\).*/{
5476 s//\1/
5479 s/.*/./; q'`
5480 test -d "$as_dir" && break
5481 done
5482 test -z "$as_dirs" || eval "mkdir $as_dirs"
5483 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5486 } # as_fn_mkdir_p
5487 if mkdir -p . 2>/dev/null; then
5488 as_mkdir_p='mkdir -p "$as_dir"'
5489 else
5490 test -d ./-p && rmdir ./-p
5491 as_mkdir_p=false
5494 if test -x / >/dev/null 2>&1; then
5495 as_test_x='test -x'
5496 else
5497 if ls -dL / >/dev/null 2>&1; then
5498 as_ls_L_option=L
5499 else
5500 as_ls_L_option=
5502 as_test_x='
5503 eval sh -c '\''
5504 if test -d "$1"; then
5505 test -d "$1/.";
5506 else
5507 case $1 in #(
5508 -*)set "./$1";;
5509 esac;
5510 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5511 ???[sx]*):;;*)false;;esac;fi
5512 '\'' sh
5515 as_executable_p=$as_test_x
5517 # Sed expression to map a string onto a valid CPP name.
5518 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5520 # Sed expression to map a string onto a valid variable name.
5521 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5524 exec 6>&1
5525 ## ----------------------------------- ##
5526 ## Main body of $CONFIG_STATUS script. ##
5527 ## ----------------------------------- ##
5528 _ASEOF
5529 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5532 # Save the log message, to keep $0 and so on meaningful, and to
5533 # report actual input values of CONFIG_FILES etc. instead of their
5534 # values after options handling.
5535 ac_log="
5536 This file was extended by spawn-fcgi $as_me 1.6.3, which was
5537 generated by GNU Autoconf 2.64. Invocation command line was
5539 CONFIG_FILES = $CONFIG_FILES
5540 CONFIG_HEADERS = $CONFIG_HEADERS
5541 CONFIG_LINKS = $CONFIG_LINKS
5542 CONFIG_COMMANDS = $CONFIG_COMMANDS
5543 $ $0 $@
5545 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5548 _ACEOF
5550 case $ac_config_files in *"
5551 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5552 esac
5554 case $ac_config_headers in *"
5555 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5556 esac
5559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5560 # Files that config.status was made for.
5561 config_files="$ac_config_files"
5562 config_headers="$ac_config_headers"
5563 config_commands="$ac_config_commands"
5565 _ACEOF
5567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5568 ac_cs_usage="\
5569 \`$as_me' instantiates files and other configuration actions
5570 from templates according to the current configuration. Unless the files
5571 and actions are specified as TAGs, all are instantiated by default.
5573 Usage: $0 [OPTION]... [TAG]...
5575 -h, --help print this help, then exit
5576 -V, --version print version number and configuration settings, then exit
5577 -q, --quiet, --silent
5578 do not print progress messages
5579 -d, --debug don't remove temporary files
5580 --recheck update $as_me by reconfiguring in the same conditions
5581 --file=FILE[:TEMPLATE]
5582 instantiate the configuration file FILE
5583 --header=FILE[:TEMPLATE]
5584 instantiate the configuration header FILE
5586 Configuration files:
5587 $config_files
5589 Configuration headers:
5590 $config_headers
5592 Configuration commands:
5593 $config_commands
5595 Report bugs to the package provider."
5597 _ACEOF
5598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5599 ac_cs_version="\\
5600 spawn-fcgi config.status 1.6.3
5601 configured by $0, generated by GNU Autoconf 2.64,
5602 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5604 Copyright (C) 2009 Free Software Foundation, Inc.
5605 This config.status script is free software; the Free Software Foundation
5606 gives unlimited permission to copy, distribute and modify it."
5608 ac_pwd='$ac_pwd'
5609 srcdir='$srcdir'
5610 INSTALL='$INSTALL'
5611 MKDIR_P='$MKDIR_P'
5612 AWK='$AWK'
5613 test -n "\$AWK" || AWK=awk
5614 _ACEOF
5616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5617 # The default lists apply if the user does not specify any file.
5618 ac_need_defaults=:
5619 while test $# != 0
5621 case $1 in
5622 --*=*)
5623 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5624 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5625 ac_shift=:
5628 ac_option=$1
5629 ac_optarg=$2
5630 ac_shift=shift
5632 esac
5634 case $ac_option in
5635 # Handling of the options.
5636 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5637 ac_cs_recheck=: ;;
5638 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5639 $as_echo "$ac_cs_version"; exit ;;
5640 --debug | --debu | --deb | --de | --d | -d )
5641 debug=: ;;
5642 --file | --fil | --fi | --f )
5643 $ac_shift
5644 case $ac_optarg in
5645 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5646 esac
5647 as_fn_append CONFIG_FILES " '$ac_optarg'"
5648 ac_need_defaults=false;;
5649 --header | --heade | --head | --hea )
5650 $ac_shift
5651 case $ac_optarg in
5652 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5653 esac
5654 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5655 ac_need_defaults=false;;
5656 --he | --h)
5657 # Conflict between --help and --header
5658 as_fn_error "ambiguous option: \`$1'
5659 Try \`$0 --help' for more information.";;
5660 --help | --hel | -h )
5661 $as_echo "$ac_cs_usage"; exit ;;
5662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5663 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5664 ac_cs_silent=: ;;
5666 # This is an error.
5667 -*) as_fn_error "unrecognized option: \`$1'
5668 Try \`$0 --help' for more information." ;;
5670 *) as_fn_append ac_config_targets " $1"
5671 ac_need_defaults=false ;;
5673 esac
5674 shift
5675 done
5677 ac_configure_extra_args=
5679 if $ac_cs_silent; then
5680 exec 6>/dev/null
5681 ac_configure_extra_args="$ac_configure_extra_args --silent"
5684 _ACEOF
5685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5686 if \$ac_cs_recheck; then
5687 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5688 shift
5689 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5690 CONFIG_SHELL='$SHELL'
5691 export CONFIG_SHELL
5692 exec "\$@"
5695 _ACEOF
5696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5697 exec 5>>config.log
5699 echo
5700 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5701 ## Running $as_me. ##
5702 _ASBOX
5703 $as_echo "$ac_log"
5704 } >&5
5706 _ACEOF
5707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5709 # INIT-COMMANDS
5711 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5713 _ACEOF
5715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5717 # Handling of arguments.
5718 for ac_config_target in $ac_config_targets
5720 case $ac_config_target in
5721 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5722 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5723 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5724 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5725 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5727 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5728 esac
5729 done
5732 # If the user did not use the arguments to specify the items to instantiate,
5733 # then the envvar interface is used. Set only those that are not.
5734 # We use the long form for the default assignment because of an extremely
5735 # bizarre bug on SunOS 4.1.3.
5736 if $ac_need_defaults; then
5737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5742 # Have a temporary directory for convenience. Make it in the build tree
5743 # simply because there is no reason against having it here, and in addition,
5744 # creating and moving files from /tmp can sometimes cause problems.
5745 # Hook for its removal unless debugging.
5746 # Note that there is a small window in which the directory will not be cleaned:
5747 # after its creation but before its name has been assigned to `$tmp'.
5748 $debug ||
5750 tmp=
5751 trap 'exit_status=$?
5752 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5754 trap 'as_fn_exit 1' 1 2 13 15
5756 # Create a (secure) tmp directory for tmp files.
5759 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5760 test -n "$tmp" && test -d "$tmp"
5761 } ||
5763 tmp=./conf$$-$RANDOM
5764 (umask 077 && mkdir "$tmp")
5765 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5767 # Set up the scripts for CONFIG_FILES section.
5768 # No need to generate them if there are no CONFIG_FILES.
5769 # This happens for instance with `./config.status config.h'.
5770 if test -n "$CONFIG_FILES"; then
5773 ac_cr=`echo X | tr X '\015'`
5774 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5775 # But we know of no other shell where ac_cr would be empty at this
5776 # point, so we can use a bashism as a fallback.
5777 if test "x$ac_cr" = x; then
5778 eval ac_cr=\$\'\\r\'
5780 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5781 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5782 ac_cs_awk_cr='\r'
5783 else
5784 ac_cs_awk_cr=$ac_cr
5787 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5788 _ACEOF
5792 echo "cat >conf$$subs.awk <<_ACEOF" &&
5793 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5794 echo "_ACEOF"
5795 } >conf$$subs.sh ||
5796 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5797 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5798 ac_delim='%!_!# '
5799 for ac_last_try in false false false false false :; do
5800 . ./conf$$subs.sh ||
5801 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5803 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5804 if test $ac_delim_n = $ac_delim_num; then
5805 break
5806 elif $ac_last_try; then
5807 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5808 else
5809 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5811 done
5812 rm -f conf$$subs.sh
5814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5815 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5816 _ACEOF
5817 sed -n '
5819 s/^/S["/; s/!.*/"]=/
5822 s/^[^!]*!//
5823 :repl
5824 t repl
5825 s/'"$ac_delim"'$//
5826 t delim
5829 s/\(.\{148\}\).*/\1/
5830 t more1
5831 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5834 b repl
5835 :more1
5836 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5839 s/.\{148\}//
5840 t nl
5841 :delim
5843 s/\(.\{148\}\).*/\1/
5844 t more2
5845 s/["\\]/\\&/g; s/^/"/; s/$/"/
5848 :more2
5849 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5852 s/.\{148\}//
5853 t delim
5854 ' <conf$$subs.awk | sed '
5855 /^[^""]/{
5857 s/\n//
5859 ' >>$CONFIG_STATUS || ac_write_fail=1
5860 rm -f conf$$subs.awk
5861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5862 _ACAWK
5863 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5864 for (key in S) S_is_set[key] = 1
5865 FS = "\a"
5869 line = $ 0
5870 nfields = split(line, field, "@")
5871 substed = 0
5872 len = length(field[1])
5873 for (i = 2; i < nfields; i++) {
5874 key = field[i]
5875 keylen = length(key)
5876 if (S_is_set[key]) {
5877 value = S[key]
5878 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5879 len += length(value) + length(field[++i])
5880 substed = 1
5881 } else
5882 len += 1 + keylen
5885 print line
5888 _ACAWK
5889 _ACEOF
5890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5891 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5892 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5893 else
5895 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5896 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5897 _ACEOF
5899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5901 # trailing colons and then remove the whole line if VPATH becomes empty
5902 # (actually we leave an empty line to preserve line numbers).
5903 if test "x$srcdir" = x.; then
5904 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5905 s/:*\$(srcdir):*/:/
5906 s/:*\${srcdir}:*/:/
5907 s/:*@srcdir@:*/:/
5908 s/^\([^=]*=[ ]*\):*/\1/
5909 s/:*$//
5910 s/^[^=]*=[ ]*$//
5914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5915 fi # test -n "$CONFIG_FILES"
5917 # Set up the scripts for CONFIG_HEADERS section.
5918 # No need to generate them if there are no CONFIG_HEADERS.
5919 # This happens for instance with `./config.status Makefile'.
5920 if test -n "$CONFIG_HEADERS"; then
5921 cat >"$tmp/defines.awk" <<\_ACAWK ||
5922 BEGIN {
5923 _ACEOF
5925 # Transform confdefs.h into an awk script `defines.awk', embedded as
5926 # here-document in config.status, that substitutes the proper values into
5927 # config.h.in to produce config.h.
5929 # Create a delimiter string that does not exist in confdefs.h, to ease
5930 # handling of long lines.
5931 ac_delim='%!_!# '
5932 for ac_last_try in false false :; do
5933 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5934 if test -z "$ac_t"; then
5935 break
5936 elif $ac_last_try; then
5937 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5938 else
5939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5941 done
5943 # For the awk script, D is an array of macro values keyed by name,
5944 # likewise P contains macro parameters if any. Preserve backslash
5945 # newline sequences.
5947 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5948 sed -n '
5949 s/.\{148\}/&'"$ac_delim"'/g
5950 t rset
5951 :rset
5952 s/^[ ]*#[ ]*define[ ][ ]*/ /
5953 t def
5955 :def
5956 s/\\$//
5957 t bsnl
5958 s/["\\]/\\&/g
5959 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5960 D["\1"]=" \3"/p
5961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5963 :bsnl
5964 s/["\\]/\\&/g
5965 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5966 D["\1"]=" \3\\\\\\n"\\/p
5967 t cont
5968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5969 t cont
5971 :cont
5973 s/.\{148\}/&'"$ac_delim"'/g
5974 t clear
5975 :clear
5976 s/\\$//
5977 t bsnlc
5978 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5980 :bsnlc
5981 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5982 b cont
5983 ' <confdefs.h | sed '
5984 s/'"$ac_delim"'/"\\\
5985 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5988 for (key in D) D_is_set[key] = 1
5989 FS = "\a"
5991 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5992 line = \$ 0
5993 split(line, arg, " ")
5994 if (arg[1] == "#") {
5995 defundef = arg[2]
5996 mac1 = arg[3]
5997 } else {
5998 defundef = substr(arg[1], 2)
5999 mac1 = arg[2]
6001 split(mac1, mac2, "(") #)
6002 macro = mac2[1]
6003 prefix = substr(line, 1, index(line, defundef) - 1)
6004 if (D_is_set[macro]) {
6005 # Preserve the white space surrounding the "#".
6006 print prefix "define", macro P[macro] D[macro]
6007 next
6008 } else {
6009 # Replace #undef with comments. This is necessary, for example,
6010 # in the case of _POSIX_SOURCE, which is predefined and required
6011 # on some systems where configure will not decide to define it.
6012 if (defundef == "undef") {
6013 print "/*", prefix defundef, macro, "*/"
6014 next
6018 { print }
6019 _ACAWK
6020 _ACEOF
6021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6022 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6023 fi # test -n "$CONFIG_HEADERS"
6026 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6027 shift
6028 for ac_tag
6030 case $ac_tag in
6031 :[FHLC]) ac_mode=$ac_tag; continue;;
6032 esac
6033 case $ac_mode$ac_tag in
6034 :[FHL]*:*);;
6035 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6036 :[FH]-) ac_tag=-:-;;
6037 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6038 esac
6039 ac_save_IFS=$IFS
6040 IFS=:
6041 set x $ac_tag
6042 IFS=$ac_save_IFS
6043 shift
6044 ac_file=$1
6045 shift
6047 case $ac_mode in
6048 :L) ac_source=$1;;
6049 :[FH])
6050 ac_file_inputs=
6051 for ac_f
6053 case $ac_f in
6054 -) ac_f="$tmp/stdin";;
6055 *) # Look for the file first in the build tree, then in the source tree
6056 # (if the path is not absolute). The absolute path cannot be DOS-style,
6057 # because $ac_f cannot contain `:'.
6058 test -f "$ac_f" ||
6059 case $ac_f in
6060 [\\/$]*) false;;
6061 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6062 esac ||
6063 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6064 esac
6065 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6066 as_fn_append ac_file_inputs " '$ac_f'"
6067 done
6069 # Let's still pretend it is `configure' which instantiates (i.e., don't
6070 # use $as_me), people would be surprised to read:
6071 # /* config.h. Generated by config.status. */
6072 configure_input='Generated from '`
6073 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6074 `' by configure.'
6075 if test x"$ac_file" != x-; then
6076 configure_input="$ac_file. $configure_input"
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6078 $as_echo "$as_me: creating $ac_file" >&6;}
6080 # Neutralize special characters interpreted by sed in replacement strings.
6081 case $configure_input in #(
6082 *\&* | *\|* | *\\* )
6083 ac_sed_conf_input=`$as_echo "$configure_input" |
6084 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6085 *) ac_sed_conf_input=$configure_input;;
6086 esac
6088 case $ac_tag in
6089 *:-:* | *:-) cat >"$tmp/stdin" \
6090 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6091 esac
6093 esac
6095 ac_dir=`$as_dirname -- "$ac_file" ||
6096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6097 X"$ac_file" : 'X\(//\)[^/]' \| \
6098 X"$ac_file" : 'X\(//\)$' \| \
6099 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6100 $as_echo X"$ac_file" |
6101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6102 s//\1/
6105 /^X\(\/\/\)[^/].*/{
6106 s//\1/
6109 /^X\(\/\/\)$/{
6110 s//\1/
6113 /^X\(\/\).*/{
6114 s//\1/
6117 s/.*/./; q'`
6118 as_dir="$ac_dir"; as_fn_mkdir_p
6119 ac_builddir=.
6121 case "$ac_dir" in
6122 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6124 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6125 # A ".." for each directory in $ac_dir_suffix.
6126 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6127 case $ac_top_builddir_sub in
6128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6130 esac ;;
6131 esac
6132 ac_abs_top_builddir=$ac_pwd
6133 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6134 # for backward compatibility:
6135 ac_top_builddir=$ac_top_build_prefix
6137 case $srcdir in
6138 .) # We are building in place.
6139 ac_srcdir=.
6140 ac_top_srcdir=$ac_top_builddir_sub
6141 ac_abs_top_srcdir=$ac_pwd ;;
6142 [\\/]* | ?:[\\/]* ) # Absolute name.
6143 ac_srcdir=$srcdir$ac_dir_suffix;
6144 ac_top_srcdir=$srcdir
6145 ac_abs_top_srcdir=$srcdir ;;
6146 *) # Relative name.
6147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6148 ac_top_srcdir=$ac_top_build_prefix$srcdir
6149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6150 esac
6151 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6154 case $ac_mode in
6157 # CONFIG_FILE
6160 case $INSTALL in
6161 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6162 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6163 esac
6164 ac_MKDIR_P=$MKDIR_P
6165 case $MKDIR_P in
6166 [\\/$]* | ?:[\\/]* ) ;;
6167 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6168 esac
6169 _ACEOF
6171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6172 # If the template does not know about datarootdir, expand it.
6173 # FIXME: This hack should be removed a few years after 2.60.
6174 ac_datarootdir_hack=; ac_datarootdir_seen=
6175 ac_sed_dataroot='
6176 /datarootdir/ {
6180 /@datadir@/p
6181 /@docdir@/p
6182 /@infodir@/p
6183 /@localedir@/p
6184 /@mandir@/p'
6185 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6186 *datarootdir*) ac_datarootdir_seen=yes;;
6187 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6189 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6190 _ACEOF
6191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6192 ac_datarootdir_hack='
6193 s&@datadir@&$datadir&g
6194 s&@docdir@&$docdir&g
6195 s&@infodir@&$infodir&g
6196 s&@localedir@&$localedir&g
6197 s&@mandir@&$mandir&g
6198 s&\\\${datarootdir}&$datarootdir&g' ;;
6199 esac
6200 _ACEOF
6202 # Neutralize VPATH when `$srcdir' = `.'.
6203 # Shell code in configure.ac might set extrasub.
6204 # FIXME: do we really want to maintain this feature?
6205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6206 ac_sed_extra="$ac_vpsub
6207 $extrasub
6208 _ACEOF
6209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6212 s|@configure_input@|$ac_sed_conf_input|;t t
6213 s&@top_builddir@&$ac_top_builddir_sub&;t t
6214 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6215 s&@srcdir@&$ac_srcdir&;t t
6216 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6217 s&@top_srcdir@&$ac_top_srcdir&;t t
6218 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6219 s&@builddir@&$ac_builddir&;t t
6220 s&@abs_builddir@&$ac_abs_builddir&;t t
6221 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6222 s&@INSTALL@&$ac_INSTALL&;t t
6223 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6224 $ac_datarootdir_hack
6226 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6227 || as_fn_error "could not create $ac_file" "$LINENO" 5
6229 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6230 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6231 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6233 which seems to be undefined. Please make sure it is defined." >&5
6234 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6235 which seems to be undefined. Please make sure it is defined." >&2;}
6237 rm -f "$tmp/stdin"
6238 case $ac_file in
6239 -) cat "$tmp/out" && rm -f "$tmp/out";;
6240 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6241 esac \
6242 || as_fn_error "could not create $ac_file" "$LINENO" 5
6246 # CONFIG_HEADER
6248 if test x"$ac_file" != x-; then
6250 $as_echo "/* $configure_input */" \
6251 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6252 } >"$tmp/config.h" \
6253 || as_fn_error "could not create $ac_file" "$LINENO" 5
6254 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6256 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6257 else
6258 rm -f "$ac_file"
6259 mv "$tmp/config.h" "$ac_file" \
6260 || as_fn_error "could not create $ac_file" "$LINENO" 5
6262 else
6263 $as_echo "/* $configure_input */" \
6264 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6265 || as_fn_error "could not create -" "$LINENO" 5
6267 # Compute "$ac_file"'s index in $config_headers.
6268 _am_arg="$ac_file"
6269 _am_stamp_count=1
6270 for _am_header in $config_headers :; do
6271 case $_am_header in
6272 $_am_arg | $_am_arg:* )
6273 break ;;
6275 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6276 esac
6277 done
6278 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6279 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6280 X"$_am_arg" : 'X\(//\)[^/]' \| \
6281 X"$_am_arg" : 'X\(//\)$' \| \
6282 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6283 $as_echo X"$_am_arg" |
6284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6285 s//\1/
6288 /^X\(\/\/\)[^/].*/{
6289 s//\1/
6292 /^X\(\/\/\)$/{
6293 s//\1/
6296 /^X\(\/\).*/{
6297 s//\1/
6300 s/.*/./; q'`/stamp-h$_am_stamp_count
6303 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6304 $as_echo "$as_me: executing $ac_file commands" >&6;}
6306 esac
6309 case $ac_file$ac_mode in
6310 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6311 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6312 # are listed without --file. Let's play safe and only enable the eval
6313 # if we detect the quoting.
6314 case $CONFIG_FILES in
6315 *\'*) eval set x "$CONFIG_FILES" ;;
6316 *) set x $CONFIG_FILES ;;
6317 esac
6318 shift
6319 for mf
6321 # Strip MF so we end up with the name of the file.
6322 mf=`echo "$mf" | sed -e 's/:.*$//'`
6323 # Check whether this is an Automake generated Makefile or not.
6324 # We used to match only the files named `Makefile.in', but
6325 # some people rename them; so instead we look at the file content.
6326 # Grep'ing the first line is not enough: some people post-process
6327 # each Makefile.in and add a new line on top of each file to say so.
6328 # Grep'ing the whole file is not good either: AIX grep has a line
6329 # limit of 2048, but all sed's we know have understand at least 4000.
6330 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6331 dirpart=`$as_dirname -- "$mf" ||
6332 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6333 X"$mf" : 'X\(//\)[^/]' \| \
6334 X"$mf" : 'X\(//\)$' \| \
6335 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6336 $as_echo X"$mf" |
6337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6338 s//\1/
6341 /^X\(\/\/\)[^/].*/{
6342 s//\1/
6345 /^X\(\/\/\)$/{
6346 s//\1/
6349 /^X\(\/\).*/{
6350 s//\1/
6353 s/.*/./; q'`
6354 else
6355 continue
6357 # Extract the definition of DEPDIR, am__include, and am__quote
6358 # from the Makefile without running `make'.
6359 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6360 test -z "$DEPDIR" && continue
6361 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6362 test -z "am__include" && continue
6363 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6364 # When using ansi2knr, U may be empty or an underscore; expand it
6365 U=`sed -n 's/^U = //p' < "$mf"`
6366 # Find all dependency output files, they are included files with
6367 # $(DEPDIR) in their names. We invoke sed twice because it is the
6368 # simplest approach to changing $(DEPDIR) to its actual value in the
6369 # expansion.
6370 for file in `sed -n "
6371 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6372 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6373 # Make sure the directory exists.
6374 test -f "$dirpart/$file" && continue
6375 fdir=`$as_dirname -- "$file" ||
6376 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6377 X"$file" : 'X\(//\)[^/]' \| \
6378 X"$file" : 'X\(//\)$' \| \
6379 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6380 $as_echo X"$file" |
6381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6382 s//\1/
6385 /^X\(\/\/\)[^/].*/{
6386 s//\1/
6389 /^X\(\/\/\)$/{
6390 s//\1/
6393 /^X\(\/\).*/{
6394 s//\1/
6397 s/.*/./; q'`
6398 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6399 # echo "creating $dirpart/$file"
6400 echo '# dummy' > "$dirpart/$file"
6401 done
6402 done
6406 esac
6407 done # for ac_tag
6410 as_fn_exit 0
6411 _ACEOF
6412 ac_clean_files=$ac_clean_files_save
6414 test $ac_write_fail = 0 ||
6415 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6418 # configure is writing to config.log, and then calls config.status.
6419 # config.status does its own redirection, appending to config.log.
6420 # Unfortunately, on DOS this fails, as config.log is still kept open
6421 # by configure, so config.status won't be able to write to it; its
6422 # output is simply discarded. So we exec the FD to /dev/null,
6423 # effectively closing config.log, so it can be properly (re)opened and
6424 # appended to by config.status. When coming back to configure, we
6425 # need to make the FD available again.
6426 if test "$no_create" != yes; then
6427 ac_cs_success=:
6428 ac_config_status_args=
6429 test "$silent" = yes &&
6430 ac_config_status_args="$ac_config_status_args --quiet"
6431 exec 5>/dev/null
6432 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6433 exec 5>>config.log
6434 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6435 # would make configure fail if this is the last instruction.
6436 $ac_cs_success || as_fn_exit $?
6438 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6440 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}