Release
[hcoop/zz_old/debian/suphp.git] / configure
CommitLineData
623e7ab4 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for suPHP 0.7.1.
4#
5# Report bugs to <sebastian.marsching@suphp.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='suPHP'
730PACKAGE_TARNAME='suphp'
731PACKAGE_VERSION='0.7.1'
732PACKAGE_STRING='suPHP 0.7.1'
733PACKAGE_BUGREPORT='sebastian.marsching@suphp.org'
734
735ac_unique_file="src/Application.cpp"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750# include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755# include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847CXX
848CXXFLAGS
849ac_ct_CXX
850CXXDEPMODE
851am__fastdepCXX_TRUE
852am__fastdepCXX_FALSE
853build
854build_cpu
855build_vendor
856build_os
857host
858host_cpu
859host_vendor
860host_os
861SED
862GREP
863EGREP
864LN_S
865ECHO
866AR
867RANLIB
868DSYMUTIL
869NMEDIT
870CPP
871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
876APXS
877APACHE_VERSION_1_3
878APACHE_VERSION_2
879APXS_INCLUDEDIR
880APXS_LIBEXECDIR
881APXS_EXTRA_CFLAGS
882APR_INCLUDEDIR
883APR_CPPFLAGS
884OPT_APACHEMOD_USERGROUP_DEF
885COND_AP13_TRUE
886COND_AP13_FALSE
887COND_AP20_TRUE
888COND_AP20_FALSE
889COND_APUSERGROUP_TRUE
890COND_APUSERGROUP_FALSE
891LIBOBJS
892LTLIBOBJS'
893ac_subst_files=''
894 ac_precious_vars='build_alias
895host_alias
896target_alias
897CC
898CFLAGS
899LDFLAGS
900LIBS
901CPPFLAGS
902CXX
903CXXFLAGS
904CCC
905CPP
906CXXCPP
907F77
908FFLAGS'
909
910
911# Initialize some variables set by options.
912ac_init_help=
913ac_init_version=false
914# The variables have the same names as the options, with
915# dashes changed to underlines.
916cache_file=/dev/null
917exec_prefix=NONE
918no_create=
919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
927verbose=
928x_includes=NONE
929x_libraries=NONE
930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
936# (The list follows the same order as the GNU Coding Standards.)
937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
945includedir='${prefix}/include'
946oldincludedir='/usr/include'
947docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948infodir='${datarootdir}/info'
949htmldir='${docdir}'
950dvidir='${docdir}'
951pdfdir='${docdir}'
952psdir='${docdir}'
953libdir='${exec_prefix}/lib'
954localedir='${datarootdir}/locale'
955mandir='${datarootdir}/man'
956
957ac_prev=
958ac_dashdash=
959for ac_option
960do
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
964 ac_prev=
965 continue
966 fi
967
968 case $ac_option in
969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *) ac_optarg=yes ;;
971 esac
972
973 # Accept the important Cygnus configure options, so we can diagnose typos.
974
975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
978
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
983
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
998
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1003
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
1011 -disable-* | --disable-*)
1012 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018 eval enable_$ac_feature=no ;;
1019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1029
1030 -enable-* | --enable-*)
1031 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037 eval enable_$ac_feature=\$ac_optarg ;;
1038
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1047
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1051
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1058
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1063
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1069
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1076
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1081
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1086
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1093
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1098
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1105
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1110
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1114
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1118
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1122
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1131
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1136
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1143
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1150
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1167
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1172
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1177
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1226
1227 -with-* | --with-*)
1228 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=\$ac_optarg ;;
1235
1236 -without-* | --without-*)
1237 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid package name: $ac_package" >&2
1241 { (exit 1); exit 1; }; }
1242 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243 eval with_$ac_package=no ;;
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1262
1263 -*) { echo "$as_me: error: unrecognized option: $ac_option
1264Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273 { (exit 1); exit 1; }; }
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1276
1277 *)
1278 # FIXME: should be removed in autoconf 3.0.
1279 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283 ;;
1284
1285 esac
1286done
1287
1288if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 { echo "$as_me: error: missing argument to $ac_option" >&2
1291 { (exit 1); exit 1; }; }
1292fi
1293
1294# Be sure to have absolute directory names.
1295for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1299do
1300 eval ac_val=\$$ac_var
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306 { (exit 1); exit 1; }; }
1307done
1308
1309# There might be people who depend on the old broken behavior: `$host'
1310# used to hold the argument of --host etc.
1311# FIXME: To remove some day.
1312build=$build_alias
1313host=$host_alias
1314target=$target_alias
1315
1316# FIXME: To remove some day.
1317if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325fi
1326
1327ac_tool_prefix=
1328test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330test "$silent" = yes && exec 6>/dev/null
1331
1332
1333ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334ac_ls_di=`ls -di .` &&
1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 { echo "$as_me: error: Working directory cannot be determined" >&2
1337 { (exit 1); exit 1; }; }
1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 { echo "$as_me: error: pwd does not report name of working directory" >&2
1340 { (exit 1); exit 1; }; }
1341
1342
1343# Find the source files, if location was not specified.
1344if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$0" ||
1348$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$0" : 'X\(//\)[^/]' \| \
1350 X"$0" : 'X\(//\)$' \| \
1351 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352echo X"$0" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)[^/].*/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\).*/{
1366 s//\1/
1367 q
1368 }
1369 s/.*/./; q'`
1370 srcdir=$ac_confdir
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 srcdir=..
1373 fi
1374else
1375 ac_srcdir_defaulted=no
1376fi
1377if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380 { (exit 1); exit 1; }; }
1381fi
1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1385 { (exit 1); exit 1; }; }
1386 pwd)`
1387# When building in place, set srcdir=.
1388if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390fi
1391# Remove unnecessary trailing slashes from srcdir.
1392# Double slashes in file names in object file debugging info
1393# mess up M-x gdb in Emacs.
1394case $srcdir in
1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396esac
1397for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402done
1403
1404#
1405# Report the --help message.
1406#
1407if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411\`configure' configures suPHP 0.7.1 to adapt to many kinds of systems.
1412
1413Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418Defaults for the options are specified in brackets.
1419
1420Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
1431Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437By default, \`make install' will install all the files in
1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440for instance \`--prefix=\$HOME'.
1441
1442For better control, use the options below.
1443
1444Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/suphp]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1464_ACEOF
1465
1466 cat <<\_ACEOF
1467
1468Program names:
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472
1473System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476_ACEOF
1477fi
1478
1479if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of suPHP 0.7.1:";;
1482 esac
1483 cat <<\_ACEOF
1484
1485Optional Features:
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-dependency-tracking speeds up one-time build
1489 --enable-dependency-tracking do not reject slow dependency extractors
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495 --enable-checkpath Check if script resides in DOCUMENT_ROOT (default is
1496 ENABLED)
1497
1498Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1502 --with-pic try to use only PIC/non-PIC objects [default=use
1503 both]
1504 --with-tags[=TAGS] include additional configurations [automatic]
1505 --with-apr=DIR|FILE prefix for installed APR, path to APR build tree,
1506 or the full path to apr-config
1507 --with-apxs=FILE Build shared Apache module. FILE is the optional
1508 pathname to the Apache apxs tool; defaults to
1509 "apxs".
1510 --with-setid-mode=MODE Mode to use for setting UID/GID. MODE can be on of
1511 "owner", "config" or "paranoid"; defaults to
1512 "paranoid".
1513 --with-min-uid=UID Minimum UID, which is allowed to run scripts
1514 (default=100)
1515 --with-min-gid=GID Minimum GID, which is allowed to run scripts
1516 (default=100)
1517 --with-apache-user=USERNAME
1518 Name of the user Apache is running as (default is
1519 "wwwrun"
1520 --with-logfile=FILE Path to suPHP logfile (default is
1521 "/var/log/httpd/suphp_log"
1522
1523Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1533 CPP C preprocessor
1534 CXXCPP C++ preprocessor
1535 F77 Fortran 77 compiler command
1536 FFLAGS Fortran 77 compiler flags
1537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
1541Report bugs to <sebastian.marsching@suphp.org>.
1542_ACEOF
1543ac_status=$?
1544fi
1545
1546if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" || continue
1550 ac_builddir=.
1551
1552case "$ac_dir" in
1553.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554*)
1555 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 esac ;;
1562esac
1563ac_abs_top_builddir=$ac_pwd
1564ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565# for backward compatibility:
1566ac_top_builddir=$ac_top_build_prefix
1567
1568case $srcdir in
1569 .) # We are building in place.
1570 ac_srcdir=.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1577 *) # Relative name.
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581esac
1582ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1592 else
1593 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1596 done
1597fi
1598
1599test -n "$ac_init_help" && exit $ac_status
1600if $ac_init_version; then
1601 cat <<\_ACEOF
1602suPHP configure 0.7.1
1603generated by GNU Autoconf 2.61
1604
1605Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16062002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1607This configure script is free software; the Free Software Foundation
1608gives unlimited permission to copy, distribute and modify it.
1609_ACEOF
1610 exit
1611fi
1612cat >config.log <<_ACEOF
1613This file contains any messages produced by compilers while
1614running configure, to aid debugging if configure makes a mistake.
1615
1616It was created by suPHP $as_me 0.7.1, which was
1617generated by GNU Autoconf 2.61. Invocation command line was
1618
1619 $ $0 $@
1620
1621_ACEOF
1622exec 5>>config.log
1623{
1624cat <<_ASUNAME
1625## --------- ##
1626## Platform. ##
1627## --------- ##
1628
1629hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633uname -v = `(uname -v) 2>/dev/null || echo unknown`
1634
1635/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1637
1638/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1639/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1640/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1642/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1643/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1644/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1645
1646_ASUNAME
1647
1648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651 IFS=$as_save_IFS
1652 test -z "$as_dir" && as_dir=.
1653 echo "PATH: $as_dir"
1654done
1655IFS=$as_save_IFS
1656
1657} >&5
1658
1659cat >&5 <<_ACEOF
1660
1661
1662## ----------- ##
1663## Core tests. ##
1664## ----------- ##
1665
1666_ACEOF
1667
1668
1669# Keep a trace of the command line.
1670# Strip out --no-create and --no-recursion so they do not pile up.
1671# Strip out --silent because we don't want to record it for future runs.
1672# Also quote any args containing shell meta-characters.
1673# Make two passes to allow for proper duplicate-argument suppression.
1674ac_configure_args=
1675ac_configure_args0=
1676ac_configure_args1=
1677ac_must_keep_next=false
1678for ac_pass in 1 2
1679do
1680 for ac_arg
1681 do
1682 case $ac_arg in
1683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685 | -silent | --silent | --silen | --sile | --sil)
1686 continue ;;
1687 *\'*)
1688 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689 esac
1690 case $ac_pass in
1691 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1692 2)
1693 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694 if test $ac_must_keep_next = true; then
1695 ac_must_keep_next=false # Got value, back to normal.
1696 else
1697 case $ac_arg in
1698 *=* | --config-cache | -C | -disable-* | --disable-* \
1699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701 | -with-* | --with-* | -without-* | --without-* | --x)
1702 case "$ac_configure_args0 " in
1703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704 esac
1705 ;;
1706 -* ) ac_must_keep_next=true ;;
1707 esac
1708 fi
1709 ac_configure_args="$ac_configure_args '$ac_arg'"
1710 ;;
1711 esac
1712 done
1713done
1714$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1716
1717# When interrupted or exit'd, cleanup temporary files, and complete
1718# config.log. We remove comments because anyway the quotes in there
1719# would cause problems or look ugly.
1720# WARNING: Use '\'' to represent an apostrophe within the trap.
1721# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722trap 'exit_status=$?
1723 # Save into config.log some information that might help in debugging.
1724 {
1725 echo
1726
1727 cat <<\_ASBOX
1728## ---------------- ##
1729## Cache variables. ##
1730## ---------------- ##
1731_ASBOX
1732 echo
1733 # The following way of writing the cache mishandles newlines in values,
1734(
1735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736 eval ac_val=\$$ac_var
1737 case $ac_val in #(
1738 *${as_nl}*)
1739 case $ac_var in #(
1740 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1741echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1742 esac
1743 case $ac_var in #(
1744 _ | IFS | as_nl) ;; #(
1745 *) $as_unset $ac_var ;;
1746 esac ;;
1747 esac
1748 done
1749 (set) 2>&1 |
1750 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751 *${as_nl}ac_space=\ *)
1752 sed -n \
1753 "s/'\''/'\''\\\\'\'''\''/g;
1754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755 ;; #(
1756 *)
1757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758 ;;
1759 esac |
1760 sort
1761)
1762 echo
1763
1764 cat <<\_ASBOX
1765## ----------------- ##
1766## Output variables. ##
1767## ----------------- ##
1768_ASBOX
1769 echo
1770 for ac_var in $ac_subst_vars
1771 do
1772 eval ac_val=\$$ac_var
1773 case $ac_val in
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775 esac
1776 echo "$ac_var='\''$ac_val'\''"
1777 done | sort
1778 echo
1779
1780 if test -n "$ac_subst_files"; then
1781 cat <<\_ASBOX
1782## ------------------- ##
1783## File substitutions. ##
1784## ------------------- ##
1785_ASBOX
1786 echo
1787 for ac_var in $ac_subst_files
1788 do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in
1791 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792 esac
1793 echo "$ac_var='\''$ac_val'\''"
1794 done | sort
1795 echo
1796 fi
1797
1798 if test -s confdefs.h; then
1799 cat <<\_ASBOX
1800## ----------- ##
1801## confdefs.h. ##
1802## ----------- ##
1803_ASBOX
1804 echo
1805 cat confdefs.h
1806 echo
1807 fi
1808 test "$ac_signal" != 0 &&
1809 echo "$as_me: caught signal $ac_signal"
1810 echo "$as_me: exit $exit_status"
1811 } >&5
1812 rm -f core *.core core.conftest.* &&
1813 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1814 exit $exit_status
1815' 0
1816for ac_signal in 1 2 13 15; do
1817 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818done
1819ac_signal=0
1820
1821# confdefs.h avoids OS command line length limits that DEFS can exceed.
1822rm -f -r conftest* confdefs.h
1823
1824# Predefined preprocessor variables.
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_NAME "$PACKAGE_NAME"
1828_ACEOF
1829
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833_ACEOF
1834
1835
1836cat >>confdefs.h <<_ACEOF
1837#define PACKAGE_VERSION "$PACKAGE_VERSION"
1838_ACEOF
1839
1840
1841cat >>confdefs.h <<_ACEOF
1842#define PACKAGE_STRING "$PACKAGE_STRING"
1843_ACEOF
1844
1845
1846cat >>confdefs.h <<_ACEOF
1847#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848_ACEOF
1849
1850
1851# Let the site file select an alternate cache file if it wants to.
1852# Prefer explicitly selected file to automatically selected ones.
1853if test -n "$CONFIG_SITE"; then
1854 set x "$CONFIG_SITE"
1855elif test "x$prefix" != xNONE; then
1856 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1857else
1858 set x "$ac_default_prefix/share/config.site" \
1859 "$ac_default_prefix/etc/config.site"
1860fi
1861shift
1862for ac_site_file
1863do
1864 if test -r "$ac_site_file"; then
1865 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866echo "$as_me: loading site script $ac_site_file" >&6;}
1867 sed 's/^/| /' "$ac_site_file" >&5
1868 . "$ac_site_file"
1869 fi
1870done
1871
1872if test -r "$cache_file"; then
1873 # Some versions of bash will fail to source /dev/null (special
1874 # files actually), so we avoid doing that.
1875 if test -f "$cache_file"; then
1876 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877echo "$as_me: loading cache $cache_file" >&6;}
1878 case $cache_file in
1879 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880 *) . "./$cache_file";;
1881 esac
1882 fi
1883else
1884 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885echo "$as_me: creating cache $cache_file" >&6;}
1886 >$cache_file
1887fi
1888
1889# Check that the precious variables saved in the cache have kept the same
1890# value.
1891ac_cache_corrupted=false
1892for ac_var in $ac_precious_vars; do
1893 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894 eval ac_new_set=\$ac_env_${ac_var}_set
1895 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896 eval ac_new_val=\$ac_env_${ac_var}_value
1897 case $ac_old_set,$ac_new_set in
1898 set,)
1899 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1902 ,set)
1903 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1906 ,);;
1907 *)
1908 if test "x$ac_old_val" != "x$ac_new_val"; then
1909 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1912echo "$as_me: former value: $ac_old_val" >&2;}
1913 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1914echo "$as_me: current value: $ac_new_val" >&2;}
1915 ac_cache_corrupted=:
1916 fi;;
1917 esac
1918 # Pass precious variables to config.status.
1919 if test "$ac_new_set" = set; then
1920 case $ac_new_val in
1921 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 *) ac_arg=$ac_var=$ac_new_val ;;
1923 esac
1924 case " $ac_configure_args " in
1925 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1926 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927 esac
1928 fi
1929done
1930if $ac_cache_corrupted; then
1931 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935 { (exit 1); exit 1; }; }
1936fi
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962ac_ext=c
1963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967
1968
1969
1970# Auxiliary tools
1971ac_aux_dir=
1972for ac_dir in config "$srcdir"/config; do
1973 if test -f "$ac_dir/install-sh"; then
1974 ac_aux_dir=$ac_dir
1975 ac_install_sh="$ac_aux_dir/install-sh -c"
1976 break
1977 elif test -f "$ac_dir/install.sh"; then
1978 ac_aux_dir=$ac_dir
1979 ac_install_sh="$ac_aux_dir/install.sh -c"
1980 break
1981 elif test -f "$ac_dir/shtool"; then
1982 ac_aux_dir=$ac_dir
1983 ac_install_sh="$ac_aux_dir/shtool install -c"
1984 break
1985 fi
1986done
1987if test -z "$ac_aux_dir"; then
1988 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1989echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1990 { (exit 1); exit 1; }; }
1991fi
1992
1993# These three variables are undocumented and unsupported,
1994# and are intended to be withdrawn in a future Autoconf release.
1995# They can cause serious problems if a builder's source tree is in a directory
1996# whose full name contains unusual characters.
1997ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1998ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1999ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2000
2001
2002
2003am__api_version='1.10'
2004
2005# Find a good install program. We prefer a C program (faster),
2006# so one script is as good as another. But avoid the broken or
2007# incompatible versions:
2008# SysV /etc/install, /usr/sbin/install
2009# SunOS /usr/etc/install
2010# IRIX /sbin/install
2011# AIX /bin/install
2012# AmigaOS /C/install, which installs bootblocks on floppy discs
2013# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2014# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2015# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2016# OS/2's system install, which has a completely different semantic
2017# ./install, which can be erroneously created by make from ./install.sh.
2018{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2020if test -z "$INSTALL"; then
2021if test "${ac_cv_path_install+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 # Account for people who put trailing slashes in PATH elements.
2030case $as_dir/ in
2031 ./ | .// | /cC/* | \
2032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2034 /usr/ucb/* ) ;;
2035 *)
2036 # OSF1 and SCO ODT 3.0 have their own names for install.
2037 # Don't use installbsd from OSF since it installs stuff as root
2038 # by default.
2039 for ac_prog in ginstall scoinst install; do
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042 if test $ac_prog = install &&
2043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # AIX install. It has an incompatible calling convention.
2045 :
2046 elif test $ac_prog = install &&
2047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048 # program-specific install script used by HP pwplus--don't use.
2049 :
2050 else
2051 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2052 break 3
2053 fi
2054 fi
2055 done
2056 done
2057 ;;
2058esac
2059done
2060IFS=$as_save_IFS
2061
2062
2063fi
2064 if test "${ac_cv_path_install+set}" = set; then
2065 INSTALL=$ac_cv_path_install
2066 else
2067 # As a last resort, use the slow shell script. Don't cache a
2068 # value for INSTALL within a source directory, because that will
2069 # break other packages using the cache if that directory is
2070 # removed, or if the value is a relative name.
2071 INSTALL=$ac_install_sh
2072 fi
2073fi
2074{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2075echo "${ECHO_T}$INSTALL" >&6; }
2076
2077# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2078# It thinks the first close brace ends the variable substitution.
2079test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2080
2081test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2082
2083test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2084
2085{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2086echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2087# Just in case
2088sleep 1
2089echo timestamp > conftest.file
2090# Do `set' in a subshell so we don't clobber the current shell's
2091# arguments. Must try -L first in case configure is actually a
2092# symlink; some systems play weird games with the mod time of symlinks
2093# (eg FreeBSD returns the mod time of the symlink's containing
2094# directory).
2095if (
2096 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2097 if test "$*" = "X"; then
2098 # -L didn't work.
2099 set X `ls -t $srcdir/configure conftest.file`
2100 fi
2101 rm -f conftest.file
2102 if test "$*" != "X $srcdir/configure conftest.file" \
2103 && test "$*" != "X conftest.file $srcdir/configure"; then
2104
2105 # If neither matched, then we have a broken ls. This can happen
2106 # if, for instance, CONFIG_SHELL is bash and it inherits a
2107 # broken ls alias from the environment. This has actually
2108 # happened. Such a system could not be considered "sane".
2109 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2110alias in your environment" >&5
2111echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2112alias in your environment" >&2;}
2113 { (exit 1); exit 1; }; }
2114 fi
2115
2116 test "$2" = conftest.file
2117 )
2118then
2119 # Ok.
2120 :
2121else
2122 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2123Check your system clock" >&5
2124echo "$as_me: error: newly created file is older than distributed files!
2125Check your system clock" >&2;}
2126 { (exit 1); exit 1; }; }
2127fi
2128{ echo "$as_me:$LINENO: result: yes" >&5
2129echo "${ECHO_T}yes" >&6; }
2130test "$program_prefix" != NONE &&
2131 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2132# Use a double $ so make ignores it.
2133test "$program_suffix" != NONE &&
2134 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2135# Double any \ or $. echo might interpret backslashes.
2136# By default was `s,x,x', remove it if useless.
2137cat <<\_ACEOF >conftest.sed
2138s/[\\$]/&&/g;s/;s,x,x,$//
2139_ACEOF
2140program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2141rm -f conftest.sed
2142
2143# expand $ac_aux_dir to an absolute path
2144am_aux_dir=`cd $ac_aux_dir && pwd`
2145
2146test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2147# Use eval to expand $SHELL
2148if eval "$MISSING --run true"; then
2149 am_missing_run="$MISSING --run "
2150else
2151 am_missing_run=
2152 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2153echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2154fi
2155
2156{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2157echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2158if test -z "$MKDIR_P"; then
2159 if test "${ac_cv_path_mkdir+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2164do
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 for ac_prog in mkdir gmkdir; do
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2170 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2171 'mkdir (GNU coreutils) '* | \
2172 'mkdir (coreutils) '* | \
2173 'mkdir (fileutils) '4.1*)
2174 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2175 break 3;;
2176 esac
2177 done
2178 done
2179done
2180IFS=$as_save_IFS
2181
2182fi
2183
2184 if test "${ac_cv_path_mkdir+set}" = set; then
2185 MKDIR_P="$ac_cv_path_mkdir -p"
2186 else
2187 # As a last resort, use the slow shell script. Don't cache a
2188 # value for MKDIR_P within a source directory, because that will
2189 # break other packages using the cache if that directory is
2190 # removed, or if the value is a relative name.
2191 test -d ./--version && rmdir ./--version
2192 MKDIR_P="$ac_install_sh -d"
2193 fi
2194fi
2195{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2196echo "${ECHO_T}$MKDIR_P" >&6; }
2197
2198mkdir_p="$MKDIR_P"
2199case $mkdir_p in
2200 [\\/$]* | ?:[\\/]*) ;;
2201 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2202esac
2203
2204for ac_prog in gawk mawk nawk awk
2205do
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207set dummy $ac_prog; ac_word=$2
2208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2210if test "${ac_cv_prog_AWK+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213 if test -n "$AWK"; then
2214 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2215else
2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217for as_dir in $PATH
2218do
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 ac_cv_prog_AWK="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2226 fi
2227done
2228done
2229IFS=$as_save_IFS
2230
2231fi
2232fi
2233AWK=$ac_cv_prog_AWK
2234if test -n "$AWK"; then
2235 { echo "$as_me:$LINENO: result: $AWK" >&5
2236echo "${ECHO_T}$AWK" >&6; }
2237else
2238 { echo "$as_me:$LINENO: result: no" >&5
2239echo "${ECHO_T}no" >&6; }
2240fi
2241
2242
2243 test -n "$AWK" && break
2244done
2245
2246{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2247echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2248set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2249if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252 cat >conftest.make <<\_ACEOF
2253SHELL = /bin/sh
2254all:
2255 @echo '@@@%%%=$(MAKE)=@@@%%%'
2256_ACEOF
2257# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2258case `${MAKE-make} -f conftest.make 2>/dev/null` in
2259 *@@@%%%=?*=@@@%%%*)
2260 eval ac_cv_prog_make_${ac_make}_set=yes;;
2261 *)
2262 eval ac_cv_prog_make_${ac_make}_set=no;;
2263esac
2264rm -f conftest.make
2265fi
2266if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2267 { echo "$as_me:$LINENO: result: yes" >&5
2268echo "${ECHO_T}yes" >&6; }
2269 SET_MAKE=
2270else
2271 { echo "$as_me:$LINENO: result: no" >&5
2272echo "${ECHO_T}no" >&6; }
2273 SET_MAKE="MAKE=${MAKE-make}"
2274fi
2275
2276rm -rf .tst 2>/dev/null
2277mkdir .tst 2>/dev/null
2278if test -d .tst; then
2279 am__leading_dot=.
2280else
2281 am__leading_dot=_
2282fi
2283rmdir .tst 2>/dev/null
2284
2285if test "`cd $srcdir && pwd`" != "`pwd`"; then
2286 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2287 # is not polluted with repeated "-I."
2288 am__isrc=' -I$(srcdir)'
2289 # test to see if srcdir already configured
2290 if test -f $srcdir/config.status; then
2291 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2292echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2293 { (exit 1); exit 1; }; }
2294 fi
2295fi
2296
2297# test whether we have cygpath
2298if test -z "$CYGPATH_W"; then
2299 if (cygpath --version) >/dev/null 2>/dev/null; then
2300 CYGPATH_W='cygpath -w'
2301 else
2302 CYGPATH_W=echo
2303 fi
2304fi
2305
2306
2307# Define the identity of the package.
2308 PACKAGE=suPHP
2309 VERSION=0.7.1
2310
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE "$PACKAGE"
2314_ACEOF
2315
2316
2317cat >>confdefs.h <<_ACEOF
2318#define VERSION "$VERSION"
2319_ACEOF
2320
2321# Some tools Automake needs.
2322
2323ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2324
2325
2326AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2327
2328
2329AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2330
2331
2332AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2333
2334
2335MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2336
2337install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2338
2339# Installed binaries are usually stripped using `strip' when the user
2340# run `make install-strip'. However `strip' might not be the right
2341# tool to use in cross-compilation environments, therefore Automake
2342# will honor the `STRIP' environment variable to overrule this program.
2343if test "$cross_compiling" != no; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2346set dummy ${ac_tool_prefix}strip; ac_word=$2
2347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349if test "${ac_cv_prog_STRIP+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352 if test -n "$STRIP"; then
2353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2354else
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366done
2367done
2368IFS=$as_save_IFS
2369
2370fi
2371fi
2372STRIP=$ac_cv_prog_STRIP
2373if test -n "$STRIP"; then
2374 { echo "$as_me:$LINENO: result: $STRIP" >&5
2375echo "${ECHO_T}$STRIP" >&6; }
2376else
2377 { echo "$as_me:$LINENO: result: no" >&5
2378echo "${ECHO_T}no" >&6; }
2379fi
2380
2381
2382fi
2383if test -z "$ac_cv_prog_STRIP"; then
2384 ac_ct_STRIP=$STRIP
2385 # Extract the first word of "strip", so it can be a program name with args.
2386set dummy strip; ac_word=$2
2387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2391else
2392 if test -n "$ac_ct_STRIP"; then
2393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2394else
2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_ac_ct_STRIP="strip"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2405 fi
2406done
2407done
2408IFS=$as_save_IFS
2409
2410fi
2411fi
2412ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2413if test -n "$ac_ct_STRIP"; then
2414 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2415echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2416else
2417 { echo "$as_me:$LINENO: result: no" >&5
2418echo "${ECHO_T}no" >&6; }
2419fi
2420
2421 if test "x$ac_ct_STRIP" = x; then
2422 STRIP=":"
2423 else
2424 case $cross_compiling:$ac_tool_warned in
2425yes:)
2426{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427whose name does not start with the host triplet. If you think this
2428configuration is useful to you, please write to autoconf@gnu.org." >&5
2429echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430whose name does not start with the host triplet. If you think this
2431configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432ac_tool_warned=yes ;;
2433esac
2434 STRIP=$ac_ct_STRIP
2435 fi
2436else
2437 STRIP="$ac_cv_prog_STRIP"
2438fi
2439
2440fi
2441INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2442
2443# We need awk for the "check" target. The system "awk" is bad on
2444# some platforms.
2445# Always define AMTAR for backward compatibility.
2446
2447AMTAR=${AMTAR-"${am_missing_run}tar"}
2448
2449am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2450
2451
2452
2453
2454
2455# Check for right directory
2456
2457# Config headers for automake
2458ac_config_headers="$ac_config_headers src/config.h"
2459
2460
2461# Build time sanity check
2462{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2463echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2464# Just in case
2465sleep 1
2466echo timestamp > conftest.file
2467# Do `set' in a subshell so we don't clobber the current shell's
2468# arguments. Must try -L first in case configure is actually a
2469# symlink; some systems play weird games with the mod time of symlinks
2470# (eg FreeBSD returns the mod time of the symlink's containing
2471# directory).
2472if (
2473 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2474 if test "$*" = "X"; then
2475 # -L didn't work.
2476 set X `ls -t $srcdir/configure conftest.file`
2477 fi
2478 rm -f conftest.file
2479 if test "$*" != "X $srcdir/configure conftest.file" \
2480 && test "$*" != "X conftest.file $srcdir/configure"; then
2481
2482 # If neither matched, then we have a broken ls. This can happen
2483 # if, for instance, CONFIG_SHELL is bash and it inherits a
2484 # broken ls alias from the environment. This has actually
2485 # happened. Such a system could not be considered "sane".
2486 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2487alias in your environment" >&5
2488echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2489alias in your environment" >&2;}
2490 { (exit 1); exit 1; }; }
2491 fi
2492
2493 test "$2" = conftest.file
2494 )
2495then
2496 # Ok.
2497 :
2498else
2499 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2500Check your system clock" >&5
2501echo "$as_me: error: newly created file is older than distributed files!
2502Check your system clock" >&2;}
2503 { (exit 1); exit 1; }; }
2504fi
2505{ echo "$as_me:$LINENO: result: yes" >&5
2506echo "${ECHO_T}yes" >&6; }
2507
2508# Look for install program
2509# Find a good install program. We prefer a C program (faster),
2510# so one script is as good as another. But avoid the broken or
2511# incompatible versions:
2512# SysV /etc/install, /usr/sbin/install
2513# SunOS /usr/etc/install
2514# IRIX /sbin/install
2515# AIX /bin/install
2516# AmigaOS /C/install, which installs bootblocks on floppy discs
2517# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2518# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2519# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2520# OS/2's system install, which has a completely different semantic
2521# ./install, which can be erroneously created by make from ./install.sh.
2522{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2523echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2524if test -z "$INSTALL"; then
2525if test "${ac_cv_path_install+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 # Account for people who put trailing slashes in PATH elements.
2534case $as_dir/ in
2535 ./ | .// | /cC/* | \
2536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2537 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2538 /usr/ucb/* ) ;;
2539 *)
2540 # OSF1 and SCO ODT 3.0 have their own names for install.
2541 # Don't use installbsd from OSF since it installs stuff as root
2542 # by default.
2543 for ac_prog in ginstall scoinst install; do
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2546 if test $ac_prog = install &&
2547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # AIX install. It has an incompatible calling convention.
2549 :
2550 elif test $ac_prog = install &&
2551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552 # program-specific install script used by HP pwplus--don't use.
2553 :
2554 else
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556 break 3
2557 fi
2558 fi
2559 done
2560 done
2561 ;;
2562esac
2563done
2564IFS=$as_save_IFS
2565
2566
2567fi
2568 if test "${ac_cv_path_install+set}" = set; then
2569 INSTALL=$ac_cv_path_install
2570 else
2571 # As a last resort, use the slow shell script. Don't cache a
2572 # value for INSTALL within a source directory, because that will
2573 # break other packages using the cache if that directory is
2574 # removed, or if the value is a relative name.
2575 INSTALL=$ac_install_sh
2576 fi
2577fi
2578{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2579echo "${ECHO_T}$INSTALL" >&6; }
2580
2581# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2582# It thinks the first close brace ends the variable substitution.
2583test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2584
2585test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2586
2587test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2588
2589
2590# Look for compiler
2591ac_ext=c
2592ac_cpp='$CPP $CPPFLAGS'
2593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596if test -n "$ac_tool_prefix"; then
2597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2598set dummy ${ac_tool_prefix}gcc; ac_word=$2
2599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601if test "${ac_cv_prog_CC+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603else
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618done
2619done
2620IFS=$as_save_IFS
2621
2622fi
2623fi
2624CC=$ac_cv_prog_CC
2625if test -n "$CC"; then
2626 { echo "$as_me:$LINENO: result: $CC" >&5
2627echo "${ECHO_T}$CC" >&6; }
2628else
2629 { echo "$as_me:$LINENO: result: no" >&5
2630echo "${ECHO_T}no" >&6; }
2631fi
2632
2633
2634fi
2635if test -z "$ac_cv_prog_CC"; then
2636 ac_ct_CC=$CC
2637 # Extract the first word of "gcc", so it can be a program name with args.
2638set dummy gcc; ac_word=$2
2639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_ac_ct_CC="gcc"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658done
2659done
2660IFS=$as_save_IFS
2661
2662fi
2663fi
2664ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665if test -n "$ac_ct_CC"; then
2666 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667echo "${ECHO_T}$ac_ct_CC" >&6; }
2668else
2669 { echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6; }
2671fi
2672
2673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677yes:)
2678{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679whose name does not start with the host triplet. If you think this
2680configuration is useful to you, please write to autoconf@gnu.org." >&5
2681echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682whose name does not start with the host triplet. If you think this
2683configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684ac_tool_warned=yes ;;
2685esac
2686 CC=$ac_ct_CC
2687 fi
2688else
2689 CC="$ac_cv_prog_CC"
2690fi
2691
2692if test -z "$CC"; then
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2695set dummy ${ac_tool_prefix}cc; ac_word=$2
2696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2698if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700else
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2703else
2704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705for as_dir in $PATH
2706do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_CC="${ac_tool_prefix}cc"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715done
2716done
2717IFS=$as_save_IFS
2718
2719fi
2720fi
2721CC=$ac_cv_prog_CC
2722if test -n "$CC"; then
2723 { echo "$as_me:$LINENO: result: $CC" >&5
2724echo "${ECHO_T}$CC" >&6; }
2725else
2726 { echo "$as_me:$LINENO: result: no" >&5
2727echo "${ECHO_T}no" >&6; }
2728fi
2729
2730
2731 fi
2732fi
2733if test -z "$CC"; then
2734 # Extract the first word of "cc", so it can be a program name with args.
2735set dummy cc; ac_word=$2
2736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2738if test "${ac_cv_prog_CC+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741 if test -n "$CC"; then
2742 ac_cv_prog_CC="$CC" # Let the user override the test.
2743else
2744 ac_prog_rejected=no
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2753 ac_prog_rejected=yes
2754 continue
2755 fi
2756 ac_cv_prog_CC="cc"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760done
2761done
2762IFS=$as_save_IFS
2763
2764if test $ac_prog_rejected = yes; then
2765 # We found a bogon in the path, so make sure we never use it.
2766 set dummy $ac_cv_prog_CC
2767 shift
2768 if test $# != 0; then
2769 # We chose a different compiler from the bogus one.
2770 # However, it has the same basename, so the bogon will be chosen
2771 # first if we set CC to just the basename; use the full file name.
2772 shift
2773 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2774 fi
2775fi
2776fi
2777fi
2778CC=$ac_cv_prog_CC
2779if test -n "$CC"; then
2780 { echo "$as_me:$LINENO: result: $CC" >&5
2781echo "${ECHO_T}$CC" >&6; }
2782else
2783 { echo "$as_me:$LINENO: result: no" >&5
2784echo "${ECHO_T}no" >&6; }
2785fi
2786
2787
2788fi
2789if test -z "$CC"; then
2790 if test -n "$ac_tool_prefix"; then
2791 for ac_prog in cl.exe
2792 do
2793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2794set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2797if test "${ac_cv_prog_CC+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799else
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814done
2815done
2816IFS=$as_save_IFS
2817
2818fi
2819fi
2820CC=$ac_cv_prog_CC
2821if test -n "$CC"; then
2822 { echo "$as_me:$LINENO: result: $CC" >&5
2823echo "${ECHO_T}$CC" >&6; }
2824else
2825 { echo "$as_me:$LINENO: result: no" >&5
2826echo "${ECHO_T}no" >&6; }
2827fi
2828
2829
2830 test -n "$CC" && break
2831 done
2832fi
2833if test -z "$CC"; then
2834 ac_ct_CC=$CC
2835 for ac_prog in cl.exe
2836do
2837 # Extract the first word of "$ac_prog", so it can be a program name with args.
2838set dummy $ac_prog; ac_word=$2
2839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2841if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843else
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_ac_ct_CC="$ac_prog"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858done
2859done
2860IFS=$as_save_IFS
2861
2862fi
2863fi
2864ac_ct_CC=$ac_cv_prog_ac_ct_CC
2865if test -n "$ac_ct_CC"; then
2866 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2867echo "${ECHO_T}$ac_ct_CC" >&6; }
2868else
2869 { echo "$as_me:$LINENO: result: no" >&5
2870echo "${ECHO_T}no" >&6; }
2871fi
2872
2873
2874 test -n "$ac_ct_CC" && break
2875done
2876
2877 if test "x$ac_ct_CC" = x; then
2878 CC=""
2879 else
2880 case $cross_compiling:$ac_tool_warned in
2881yes:)
2882{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2883whose name does not start with the host triplet. If you think this
2884configuration is useful to you, please write to autoconf@gnu.org." >&5
2885echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2886whose name does not start with the host triplet. If you think this
2887configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2888ac_tool_warned=yes ;;
2889esac
2890 CC=$ac_ct_CC
2891 fi
2892fi
2893
2894fi
2895
2896
2897test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2898See \`config.log' for more details." >&5
2899echo "$as_me: error: no acceptable C compiler found in \$PATH
2900See \`config.log' for more details." >&2;}
2901 { (exit 1); exit 1; }; }
2902
2903# Provide some information about the compiler.
2904echo "$as_me:$LINENO: checking for C compiler version" >&5
2905ac_compiler=`set X $ac_compile; echo $2`
2906{ (ac_try="$ac_compiler --version >&5"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler --version >&5") 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916{ (ac_try="$ac_compiler -v >&5"
2917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -v >&5") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926{ (ac_try="$ac_compiler -V >&5"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compiler -V >&5") 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936
2937cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952ac_clean_files_save=$ac_clean_files
2953ac_clean_files="$ac_clean_files a.out a.exe b.out"
2954# Try to create an executable without -o first, disregard a.out.
2955# It will help us diagnose broken compilers, and finding out an intuition
2956# of exeext.
2957{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2958echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2959ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2960#
2961# List of possible output files, starting from the most likely.
2962# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2963# only as a last resort. b.out is created by i960 compilers.
2964ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2965#
2966# The IRIX 6 linker writes into existing files which may not be
2967# executable, retaining their permissions. Remove them first so a
2968# subsequent execution test works.
2969ac_rmfiles=
2970for ac_file in $ac_files
2971do
2972 case $ac_file in
2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2974 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2975 esac
2976done
2977rm -f $ac_rmfiles
2978
2979if { (ac_try="$ac_link_default"
2980case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983esac
2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_link_default") 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; then
2989 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2990# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2991# in a Makefile. We should not override ac_cv_exeext if it was cached,
2992# so that the user can short-circuit this test for compilers unknown to
2993# Autoconf.
2994for ac_file in $ac_files ''
2995do
2996 test -f "$ac_file" || continue
2997 case $ac_file in
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2999 ;;
3000 [ab].out )
3001 # We found the default executable, but exeext='' is most
3002 # certainly right.
3003 break;;
3004 *.* )
3005 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3006 then :; else
3007 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008 fi
3009 # We set ac_cv_exeext here because the later test for it is not
3010 # safe: cross compilers may not add the suffix if given an `-o'
3011 # argument, so we may need to know it at that point already.
3012 # Even if this section looks crufty: it has the advantage of
3013 # actually working.
3014 break;;
3015 * )
3016 break;;
3017 esac
3018done
3019test "$ac_cv_exeext" = no && ac_cv_exeext=
3020
3021else
3022 ac_file=''
3023fi
3024
3025{ echo "$as_me:$LINENO: result: $ac_file" >&5
3026echo "${ECHO_T}$ac_file" >&6; }
3027if test -z "$ac_file"; then
3028 echo "$as_me: failed program was:" >&5
3029sed 's/^/| /' conftest.$ac_ext >&5
3030
3031{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3032See \`config.log' for more details." >&5
3033echo "$as_me: error: C compiler cannot create executables
3034See \`config.log' for more details." >&2;}
3035 { (exit 77); exit 77; }; }
3036fi
3037
3038ac_exeext=$ac_cv_exeext
3039
3040# Check that the compiler produces executables we can run. If not, either
3041# the compiler is broken, or we cross compile.
3042{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3043echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3044# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3045# If not cross compiling, check that we can run a simple program.
3046if test "$cross_compiling" != yes; then
3047 if { ac_try='./$ac_file'
3048 { (case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051esac
3052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_try") 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 cross_compiling=no
3058 else
3059 if test "$cross_compiling" = maybe; then
3060 cross_compiling=yes
3061 else
3062 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3063If you meant to cross compile, use \`--host'.
3064See \`config.log' for more details." >&5
3065echo "$as_me: error: cannot run C compiled programs.
3066If you meant to cross compile, use \`--host'.
3067See \`config.log' for more details." >&2;}
3068 { (exit 1); exit 1; }; }
3069 fi
3070 fi
3071fi
3072{ echo "$as_me:$LINENO: result: yes" >&5
3073echo "${ECHO_T}yes" >&6; }
3074
3075rm -f a.out a.exe conftest$ac_cv_exeext b.out
3076ac_clean_files=$ac_clean_files_save
3077# Check that the compiler produces executables we can run. If not, either
3078# the compiler is broken, or we cross compile.
3079{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3080echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3081{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3082echo "${ECHO_T}$cross_compiling" >&6; }
3083
3084{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3085echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3086if { (ac_try="$ac_link"
3087case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_link") 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; then
3096 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3097# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3098# work properly (i.e., refer to `conftest.exe'), while it won't with
3099# `rm'.
3100for ac_file in conftest.exe conftest conftest.*; do
3101 test -f "$ac_file" || continue
3102 case $ac_file in
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3104 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3105 break;;
3106 * ) break;;
3107 esac
3108done
3109else
3110 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3111See \`config.log' for more details." >&5
3112echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3113See \`config.log' for more details." >&2;}
3114 { (exit 1); exit 1; }; }
3115fi
3116
3117rm -f conftest$ac_cv_exeext
3118{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3119echo "${ECHO_T}$ac_cv_exeext" >&6; }
3120
3121rm -f conftest.$ac_ext
3122EXEEXT=$ac_cv_exeext
3123ac_exeext=$EXEEXT
3124{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3125echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3126if test "${ac_cv_objext+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3128else
3129 cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h. */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h. */
3135
3136int
3137main ()
3138{
3139
3140 ;
3141 return 0;
3142}
3143_ACEOF
3144rm -f conftest.o conftest.obj
3145if { (ac_try="$ac_compile"
3146case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_compile") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; then
3155 for ac_file in conftest.o conftest.obj conftest.*; do
3156 test -f "$ac_file" || continue;
3157 case $ac_file in
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3160 break;;
3161 esac
3162done
3163else
3164 echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3168See \`config.log' for more details." >&5
3169echo "$as_me: error: cannot compute suffix of object files: cannot compile
3170See \`config.log' for more details." >&2;}
3171 { (exit 1); exit 1; }; }
3172fi
3173
3174rm -f conftest.$ac_cv_objext conftest.$ac_ext
3175fi
3176{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3177echo "${ECHO_T}$ac_cv_objext" >&6; }
3178OBJEXT=$ac_cv_objext
3179ac_objext=$OBJEXT
3180{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3181echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3182if test "${ac_cv_c_compiler_gnu+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184else
3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191
3192int
3193main ()
3194{
3195#ifndef __GNUC__
3196 choke me
3197#endif
3198
3199 ;
3200 return 0;
3201}
3202_ACEOF
3203rm -f conftest.$ac_objext
3204if { (ac_try="$ac_compile"
3205case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3211 ac_status=$?
3212 grep -v '^ *+' conftest.er1 >conftest.err
3213 rm -f conftest.er1
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } && {
3217 test -z "$ac_c_werror_flag" ||
3218 test ! -s conftest.err
3219 } && test -s conftest.$ac_objext; then
3220 ac_compiler_gnu=yes
3221else
3222 echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 ac_compiler_gnu=no
3226fi
3227
3228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229ac_cv_c_compiler_gnu=$ac_compiler_gnu
3230
3231fi
3232{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3233echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3234GCC=`test $ac_compiler_gnu = yes && echo yes`
3235ac_test_CFLAGS=${CFLAGS+set}
3236ac_save_CFLAGS=$CFLAGS
3237{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3238echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3239if test "${ac_cv_prog_cc_g+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241else
3242 ac_save_c_werror_flag=$ac_c_werror_flag
3243 ac_c_werror_flag=yes
3244 ac_cv_prog_cc_g=no
3245 CFLAGS="-g"
3246 cat >conftest.$ac_ext <<_ACEOF
3247/* confdefs.h. */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h. */
3252
3253int
3254main ()
3255{
3256
3257 ;
3258 return 0;
3259}
3260_ACEOF
3261rm -f conftest.$ac_objext
3262if { (ac_try="$ac_compile"
3263case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266esac
3267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } && {
3275 test -z "$ac_c_werror_flag" ||
3276 test ! -s conftest.err
3277 } && test -s conftest.$ac_objext; then
3278 ac_cv_prog_cc_g=yes
3279else
3280 echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 CFLAGS=""
3284 cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h. */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h. */
3290
3291int
3292main ()
3293{
3294
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299rm -f conftest.$ac_objext
3300if { (ac_try="$ac_compile"
3301case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304esac
3305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3316 :
3317else
3318 echo "$as_me: failed program was:" >&5
3319sed 's/^/| /' conftest.$ac_ext >&5
3320
3321 ac_c_werror_flag=$ac_save_c_werror_flag
3322 CFLAGS="-g"
3323 cat >conftest.$ac_ext <<_ACEOF
3324/* confdefs.h. */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h. */
3329
3330int
3331main ()
3332{
3333
3334 ;
3335 return 0;
3336}
3337_ACEOF
3338rm -f conftest.$ac_objext
3339if { (ac_try="$ac_compile"
3340case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343esac
3344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_compile") 2>conftest.er1
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } && {
3352 test -z "$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 } && test -s conftest.$ac_objext; then
3355 ac_cv_prog_cc_g=yes
3356else
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360
3361fi
3362
3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364fi
3365
3366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367fi
3368
3369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 ac_c_werror_flag=$ac_save_c_werror_flag
3371fi
3372{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3373echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3374if test "$ac_test_CFLAGS" = set; then
3375 CFLAGS=$ac_save_CFLAGS
3376elif test $ac_cv_prog_cc_g = yes; then
3377 if test "$GCC" = yes; then
3378 CFLAGS="-g -O2"
3379 else
3380 CFLAGS="-g"
3381 fi
3382else
3383 if test "$GCC" = yes; then
3384 CFLAGS="-O2"
3385 else
3386 CFLAGS=
3387 fi
3388fi
3389{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3390echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3391if test "${ac_cv_prog_cc_c89+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394 ac_cv_prog_cc_c89=no
3395ac_save_CC=$CC
3396cat >conftest.$ac_ext <<_ACEOF
3397/* confdefs.h. */
3398_ACEOF
3399cat confdefs.h >>conftest.$ac_ext
3400cat >>conftest.$ac_ext <<_ACEOF
3401/* end confdefs.h. */
3402#include <stdarg.h>
3403#include <stdio.h>
3404#include <sys/types.h>
3405#include <sys/stat.h>
3406/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3407struct buf { int x; };
3408FILE * (*rcsopen) (struct buf *, struct stat *, int);
3409static char *e (p, i)
3410 char **p;
3411 int i;
3412{
3413 return p[i];
3414}
3415static char *f (char * (*g) (char **, int), char **p, ...)
3416{
3417 char *s;
3418 va_list v;
3419 va_start (v,p);
3420 s = g (p, va_arg (v,int));
3421 va_end (v);
3422 return s;
3423}
3424
3425/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3426 function prototypes and stuff, but not '\xHH' hex character constants.
3427 These don't provoke an error unfortunately, instead are silently treated
3428 as 'x'. The following induces an error, until -std is added to get
3429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3430 array size at least. It's necessary to write '\x00'==0 to get something
3431 that's true only with -std. */
3432int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3433
3434/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3435 inside strings and character constants. */
3436#define FOO(x) 'x'
3437int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3438
3439int test (int i, double x);
3440struct s1 {int (*f) (int a);};
3441struct s2 {int (*f) (double a);};
3442int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3443int argc;
3444char **argv;
3445int
3446main ()
3447{
3448return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3449 ;
3450 return 0;
3451}
3452_ACEOF
3453for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3454 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3455do
3456 CC="$ac_save_CC $ac_arg"
3457 rm -f conftest.$ac_objext
3458if { (ac_try="$ac_compile"
3459case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462esac
3463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464 (eval "$ac_compile") 2>conftest.er1
3465 ac_status=$?
3466 grep -v '^ *+' conftest.er1 >conftest.err
3467 rm -f conftest.er1
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } && {
3471 test -z "$ac_c_werror_flag" ||
3472 test ! -s conftest.err
3473 } && test -s conftest.$ac_objext; then
3474 ac_cv_prog_cc_c89=$ac_arg
3475else
3476 echo "$as_me: failed program was:" >&5
3477sed 's/^/| /' conftest.$ac_ext >&5
3478
3479
3480fi
3481
3482rm -f core conftest.err conftest.$ac_objext
3483 test "x$ac_cv_prog_cc_c89" != "xno" && break
3484done
3485rm -f conftest.$ac_ext
3486CC=$ac_save_CC
3487
3488fi
3489# AC_CACHE_VAL
3490case "x$ac_cv_prog_cc_c89" in
3491 x)
3492 { echo "$as_me:$LINENO: result: none needed" >&5
3493echo "${ECHO_T}none needed" >&6; } ;;
3494 xno)
3495 { echo "$as_me:$LINENO: result: unsupported" >&5
3496echo "${ECHO_T}unsupported" >&6; } ;;
3497 *)
3498 CC="$CC $ac_cv_prog_cc_c89"
3499 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3500echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3501esac
3502
3503
3504ac_ext=c
3505ac_cpp='$CPP $CPPFLAGS'
3506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509DEPDIR="${am__leading_dot}deps"
3510
3511ac_config_commands="$ac_config_commands depfiles"
3512
3513
3514am_make=${MAKE-make}
3515cat > confinc << 'END'
3516am__doit:
3517 @echo done
3518.PHONY: am__doit
3519END
3520# If we don't find an include directive, just comment out the code.
3521{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3522echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3523am__include="#"
3524am__quote=
3525_am_result=none
3526# First try GNU make style include.
3527echo "include confinc" > confmf
3528# We grep out `Entering directory' and `Leaving directory'
3529# messages which can occur if `w' ends up in MAKEFLAGS.
3530# In particular we don't look at `^make:' because GNU make might
3531# be invoked under some other name (usually "gmake"), in which
3532# case it prints its new name instead of `make'.
3533if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3534 am__include=include
3535 am__quote=
3536 _am_result=GNU
3537fi
3538# Now try BSD make style include.
3539if test "$am__include" = "#"; then
3540 echo '.include "confinc"' > confmf
3541 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3542 am__include=.include
3543 am__quote="\""
3544 _am_result=BSD
3545 fi
3546fi
3547
3548
3549{ echo "$as_me:$LINENO: result: $_am_result" >&5
3550echo "${ECHO_T}$_am_result" >&6; }
3551rm -f confinc confmf
3552
3553# Check whether --enable-dependency-tracking was given.
3554if test "${enable_dependency_tracking+set}" = set; then
3555 enableval=$enable_dependency_tracking;
3556fi
3557
3558if test "x$enable_dependency_tracking" != xno; then
3559 am_depcomp="$ac_aux_dir/depcomp"
3560 AMDEPBACKSLASH='\'
3561fi
3562 if test "x$enable_dependency_tracking" != xno; then
3563 AMDEP_TRUE=
3564 AMDEP_FALSE='#'
3565else
3566 AMDEP_TRUE='#'
3567 AMDEP_FALSE=
3568fi
3569
3570
3571
3572depcc="$CC" am_compiler_list=
3573
3574{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3575echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3576if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3580 # We make a subdir and do the tests there. Otherwise we can end up
3581 # making bogus files that we don't know about and never remove. For
3582 # instance it was reported that on HP-UX the gcc test will end up
3583 # making a dummy file named `D' -- because `-MD' means `put the output
3584 # in D'.
3585 mkdir conftest.dir
3586 # Copy depcomp to subdir because otherwise we won't find it if we're
3587 # using a relative directory.
3588 cp "$am_depcomp" conftest.dir
3589 cd conftest.dir
3590 # We will build objects and dependencies in a subdirectory because
3591 # it helps to detect inapplicable dependency modes. For instance
3592 # both Tru64's cc and ICC support -MD to output dependencies as a
3593 # side effect of compilation, but ICC will put the dependencies in
3594 # the current directory while Tru64 will put them in the object
3595 # directory.
3596 mkdir sub
3597
3598 am_cv_CC_dependencies_compiler_type=none
3599 if test "$am_compiler_list" = ""; then
3600 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3601 fi
3602 for depmode in $am_compiler_list; do
3603 # Setup a source with many dependencies, because some compilers
3604 # like to wrap large dependency lists on column 80 (with \), and
3605 # we should not choose a depcomp mode which is confused by this.
3606 #
3607 # We need to recreate these files for each test, as the compiler may
3608 # overwrite some of them when testing with obscure command lines.
3609 # This happens at least with the AIX C compiler.
3610 : > sub/conftest.c
3611 for i in 1 2 3 4 5 6; do
3612 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3613 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3614 # Solaris 8's {/usr,}/bin/sh.
3615 touch sub/conftst$i.h
3616 done
3617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3618
3619 case $depmode in
3620 nosideeffect)
3621 # after this tag, mechanisms are not by side-effect, so they'll
3622 # only be used when explicitly requested
3623 if test "x$enable_dependency_tracking" = xyes; then
3624 continue
3625 else
3626 break
3627 fi
3628 ;;
3629 none) break ;;
3630 esac
3631 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3632 # mode. It turns out that the SunPro C++ compiler does not properly
3633 # handle `-M -o', and we need to detect this.
3634 if depmode=$depmode \
3635 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3636 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3637 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3638 >/dev/null 2>conftest.err &&
3639 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3641 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3643 # icc doesn't choke on unknown options, it will just issue warnings
3644 # or remarks (even with -Werror). So we grep stderr for any message
3645 # that says an option was ignored or not supported.
3646 # When given -MP, icc 7.0 and 7.1 complain thusly:
3647 # icc: Command line warning: ignoring option '-M'; no argument required
3648 # The diagnosis changed in icc 8.0:
3649 # icc: Command line remark: option '-MP' not supported
3650 if (grep 'ignoring option' conftest.err ||
3651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3652 am_cv_CC_dependencies_compiler_type=$depmode
3653 break
3654 fi
3655 fi
3656 done
3657
3658 cd ..
3659 rm -rf conftest.dir
3660else
3661 am_cv_CC_dependencies_compiler_type=none
3662fi
3663
3664fi
3665{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3666echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3667CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3668
3669 if
3670 test "x$enable_dependency_tracking" != xno \
3671 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3672 am__fastdepCC_TRUE=
3673 am__fastdepCC_FALSE='#'
3674else
3675 am__fastdepCC_TRUE='#'
3676 am__fastdepCC_FALSE=
3677fi
3678
3679
3680ac_ext=cpp
3681ac_cpp='$CXXCPP $CPPFLAGS'
3682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3685if test -z "$CXX"; then
3686 if test -n "$CCC"; then
3687 CXX=$CCC
3688 else
3689 if test -n "$ac_tool_prefix"; then
3690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3691 do
3692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3696if test "${ac_cv_prog_CXX+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699 if test -n "$CXX"; then
3700 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3701else
3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH
3704do
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 break 2
3712 fi
3713done
3714done
3715IFS=$as_save_IFS
3716
3717fi
3718fi
3719CXX=$ac_cv_prog_CXX
3720if test -n "$CXX"; then
3721 { echo "$as_me:$LINENO: result: $CXX" >&5
3722echo "${ECHO_T}$CXX" >&6; }
3723else
3724 { echo "$as_me:$LINENO: result: no" >&5
3725echo "${ECHO_T}no" >&6; }
3726fi
3727
3728
3729 test -n "$CXX" && break
3730 done
3731fi
3732if test -z "$CXX"; then
3733 ac_ct_CXX=$CXX
3734 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3735do
3736 # Extract the first word of "$ac_prog", so it can be a program name with args.
3737set dummy $ac_prog; ac_word=$2
3738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3740if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 if test -n "$ac_ct_CXX"; then
3744 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3745else
3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753 ac_cv_prog_ac_ct_CXX="$ac_prog"
3754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3756 fi
3757done
3758done
3759IFS=$as_save_IFS
3760
3761fi
3762fi
3763ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3764if test -n "$ac_ct_CXX"; then
3765 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3766echo "${ECHO_T}$ac_ct_CXX" >&6; }
3767else
3768 { echo "$as_me:$LINENO: result: no" >&5
3769echo "${ECHO_T}no" >&6; }
3770fi
3771
3772
3773 test -n "$ac_ct_CXX" && break
3774done
3775
3776 if test "x$ac_ct_CXX" = x; then
3777 CXX="g++"
3778 else
3779 case $cross_compiling:$ac_tool_warned in
3780yes:)
3781{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3782whose name does not start with the host triplet. If you think this
3783configuration is useful to you, please write to autoconf@gnu.org." >&5
3784echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3785whose name does not start with the host triplet. If you think this
3786configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3787ac_tool_warned=yes ;;
3788esac
3789 CXX=$ac_ct_CXX
3790 fi
3791fi
3792
3793 fi
3794fi
3795# Provide some information about the compiler.
3796echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3797ac_compiler=`set X $ac_compile; echo $2`
3798{ (ac_try="$ac_compiler --version >&5"
3799case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802esac
3803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_compiler --version >&5") 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }
3808{ (ac_try="$ac_compiler -v >&5"
3809case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812esac
3813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_compiler -v >&5") 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }
3818{ (ac_try="$ac_compiler -V >&5"
3819case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822esac
3823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_compiler -V >&5") 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }
3828
3829{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3830echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3831if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834 cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h. */
3840
3841int
3842main ()
3843{
3844#ifndef __GNUC__
3845 choke me
3846#endif
3847
3848 ;
3849 return 0;
3850}
3851_ACEOF
3852rm -f conftest.$ac_objext
3853if { (ac_try="$ac_compile"
3854case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857esac
3858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859 (eval "$ac_compile") 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && {
3866 test -z "$ac_cxx_werror_flag" ||
3867 test ! -s conftest.err
3868 } && test -s conftest.$ac_objext; then
3869 ac_compiler_gnu=yes
3870else
3871 echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 ac_compiler_gnu=no
3875fi
3876
3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3879
3880fi
3881{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3882echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3883GXX=`test $ac_compiler_gnu = yes && echo yes`
3884ac_test_CXXFLAGS=${CXXFLAGS+set}
3885ac_save_CXXFLAGS=$CXXFLAGS
3886{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3887echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3888if test "${ac_cv_prog_cxx_g+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3892 ac_cxx_werror_flag=yes
3893 ac_cv_prog_cxx_g=no
3894 CXXFLAGS="-g"
3895 cat >conftest.$ac_ext <<_ACEOF
3896/* confdefs.h. */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h. */
3901
3902int
3903main ()
3904{
3905
3906 ;
3907 return 0;
3908}
3909_ACEOF
3910rm -f conftest.$ac_objext
3911if { (ac_try="$ac_compile"
3912case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915esac
3916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_compile") 2>conftest.er1
3918 ac_status=$?
3919 grep -v '^ *+' conftest.er1 >conftest.err
3920 rm -f conftest.er1
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } && {
3924 test -z "$ac_cxx_werror_flag" ||
3925 test ! -s conftest.err
3926 } && test -s conftest.$ac_objext; then
3927 ac_cv_prog_cxx_g=yes
3928else
3929 echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 CXXFLAGS=""
3933 cat >conftest.$ac_ext <<_ACEOF
3934/* confdefs.h. */
3935_ACEOF
3936cat confdefs.h >>conftest.$ac_ext
3937cat >>conftest.$ac_ext <<_ACEOF
3938/* end confdefs.h. */
3939
3940int
3941main ()
3942{
3943
3944 ;
3945 return 0;
3946}
3947_ACEOF
3948rm -f conftest.$ac_objext
3949if { (ac_try="$ac_compile"
3950case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953esac
3954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_compile") 2>conftest.er1
3956 ac_status=$?
3957 grep -v '^ *+' conftest.er1 >conftest.err
3958 rm -f conftest.er1
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } && {
3962 test -z "$ac_cxx_werror_flag" ||
3963 test ! -s conftest.err
3964 } && test -s conftest.$ac_objext; then
3965 :
3966else
3967 echo "$as_me: failed program was:" >&5
3968sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3971 CXXFLAGS="-g"
3972 cat >conftest.$ac_ext <<_ACEOF
3973/* confdefs.h. */
3974_ACEOF
3975cat confdefs.h >>conftest.$ac_ext
3976cat >>conftest.$ac_ext <<_ACEOF
3977/* end confdefs.h. */
3978
3979int
3980main ()
3981{
3982
3983 ;
3984 return 0;
3985}
3986_ACEOF
3987rm -f conftest.$ac_objext
3988if { (ac_try="$ac_compile"
3989case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992esac
3993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 (eval "$ac_compile") 2>conftest.er1
3995 ac_status=$?