- fix include
[m6w6/mod-domaintree] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for mod_domaintree 1.5.
4 #
5 # Report bugs to <mike@iworks.at>.
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 Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" "" $as_nl"
67
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80 ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85 as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105 do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110 fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
157 fi
158
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
162 }
163 as_func_success () {
164 as_func_return 0
165 }
166 as_func_failure () {
167 as_func_return 1
168 }
169 as_func_ret_success () {
170 return 0
171 }
172 as_func_ret_failure () {
173 return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178 :
179 else
180 exitcode=1
181 echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190 :
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203 else
204 exitcode=1
205 echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216 :
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
225 /*)
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230 done
231 IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274 (exit $1)
275 }
276 as_func_success () {
277 as_func_return 0
278 }
279 as_func_failure () {
280 as_func_return 1
281 }
282 as_func_ret_success () {
283 return 0
284 }
285 as_func_ret_failure () {
286 return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291 :
292 else
293 exitcode=1
294 echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303 :
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316 else
317 exitcode=1
318 echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331 break
332 fi
333
334 fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363 (exit \$1)
364 }
365 as_func_success () {
366 as_func_return 0
367 }
368 as_func_failure () {
369 as_func_return 1
370 }
371 as_func_ret_success () {
372 return 0
373 }
374 as_func_ret_failure () {
375 return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380 :
381 else
382 exitcode=1
383 echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392 :
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405 else
406 exitcode=1
407 echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415 }
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475 *)
476 ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='mod_domaintree'
561 PACKAGE_TARNAME='mod_domaintree'
562 PACKAGE_VERSION='1.5'
563 PACKAGE_STRING='mod_domaintree 1.5'
564 PACKAGE_BUGREPORT='mike@iworks.at'
565
566 ac_unique_file="mod_domaintree.c"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 CC
641 CFLAGS
642 LDFLAGS
643 CPPFLAGS
644 ac_ct_CC
645 EXEEXT
646 OBJEXT
647 CPP
648 GREP
649 EGREP
650 APXS2
651 LIBOBJS
652 LTLIBOBJS'
653 ac_subst_files=''
654 ac_precious_vars='build_alias
655 host_alias
656 target_alias
657 CC
658 CFLAGS
659 LDFLAGS
660 CPPFLAGS
661 CPP'
662
663
664 # Initialize some variables set by options.
665 ac_init_help=
666 ac_init_version=false
667 # The variables have the same names as the options, with
668 # dashes changed to underlines.
669 cache_file=/dev/null
670 exec_prefix=NONE
671 no_create=
672 no_recursion=
673 prefix=NONE
674 program_prefix=NONE
675 program_suffix=NONE
676 program_transform_name=s,x,x,
677 silent=
678 site=
679 srcdir=
680 verbose=
681 x_includes=NONE
682 x_libraries=NONE
683
684 # Installation directory options.
685 # These are left unexpanded so users can "make install exec_prefix=/foo"
686 # and all the variables that are supposed to be based on exec_prefix
687 # by default will actually change.
688 # Use braces instead of parens because sh, perl, etc. also accept them.
689 # (The list follows the same order as the GNU Coding Standards.)
690 bindir='${exec_prefix}/bin'
691 sbindir='${exec_prefix}/sbin'
692 libexecdir='${exec_prefix}/libexec'
693 datarootdir='${prefix}/share'
694 datadir='${datarootdir}'
695 sysconfdir='${prefix}/etc'
696 sharedstatedir='${prefix}/com'
697 localstatedir='${prefix}/var'
698 includedir='${prefix}/include'
699 oldincludedir='/usr/include'
700 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
701 infodir='${datarootdir}/info'
702 htmldir='${docdir}'
703 dvidir='${docdir}'
704 pdfdir='${docdir}'
705 psdir='${docdir}'
706 libdir='${exec_prefix}/lib'
707 localedir='${datarootdir}/locale'
708 mandir='${datarootdir}/man'
709
710 ac_prev=
711 ac_dashdash=
712 for ac_option
713 do
714 # If the previous option needs an argument, assign it.
715 if test -n "$ac_prev"; then
716 eval $ac_prev=\$ac_option
717 ac_prev=
718 continue
719 fi
720
721 case $ac_option in
722 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
723 *) ac_optarg=yes ;;
724 esac
725
726 # Accept the important Cygnus configure options, so we can diagnose typos.
727
728 case $ac_dashdash$ac_option in
729 --)
730 ac_dashdash=yes ;;
731
732 -bindir | --bindir | --bindi | --bind | --bin | --bi)
733 ac_prev=bindir ;;
734 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
735 bindir=$ac_optarg ;;
736
737 -build | --build | --buil | --bui | --bu)
738 ac_prev=build_alias ;;
739 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
740 build_alias=$ac_optarg ;;
741
742 -cache-file | --cache-file | --cache-fil | --cache-fi \
743 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
744 ac_prev=cache_file ;;
745 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
746 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
747 cache_file=$ac_optarg ;;
748
749 --config-cache | -C)
750 cache_file=config.cache ;;
751
752 -datadir | --datadir | --datadi | --datad)
753 ac_prev=datadir ;;
754 -datadir=* | --datadir=* | --datadi=* | --datad=*)
755 datadir=$ac_optarg ;;
756
757 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
758 | --dataroo | --dataro | --datar)
759 ac_prev=datarootdir ;;
760 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
761 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
762 datarootdir=$ac_optarg ;;
763
764 -disable-* | --disable-*)
765 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
769 { (exit 1); exit 1; }; }
770 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
771 eval enable_$ac_feature=no ;;
772
773 -docdir | --docdir | --docdi | --doc | --do)
774 ac_prev=docdir ;;
775 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
776 docdir=$ac_optarg ;;
777
778 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
779 ac_prev=dvidir ;;
780 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
781 dvidir=$ac_optarg ;;
782
783 -enable-* | --enable-*)
784 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
785 # Reject names that are not valid shell variable names.
786 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
787 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
788 { (exit 1); exit 1; }; }
789 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
790 eval enable_$ac_feature=\$ac_optarg ;;
791
792 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
793 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
794 | --exec | --exe | --ex)
795 ac_prev=exec_prefix ;;
796 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
797 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
798 | --exec=* | --exe=* | --ex=*)
799 exec_prefix=$ac_optarg ;;
800
801 -gas | --gas | --ga | --g)
802 # Obsolete; use --with-gas.
803 with_gas=yes ;;
804
805 -help | --help | --hel | --he | -h)
806 ac_init_help=long ;;
807 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
808 ac_init_help=recursive ;;
809 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
810 ac_init_help=short ;;
811
812 -host | --host | --hos | --ho)
813 ac_prev=host_alias ;;
814 -host=* | --host=* | --hos=* | --ho=*)
815 host_alias=$ac_optarg ;;
816
817 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
818 ac_prev=htmldir ;;
819 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
820 | --ht=*)
821 htmldir=$ac_optarg ;;
822
823 -includedir | --includedir | --includedi | --included | --include \
824 | --includ | --inclu | --incl | --inc)
825 ac_prev=includedir ;;
826 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
827 | --includ=* | --inclu=* | --incl=* | --inc=*)
828 includedir=$ac_optarg ;;
829
830 -infodir | --infodir | --infodi | --infod | --info | --inf)
831 ac_prev=infodir ;;
832 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
833 infodir=$ac_optarg ;;
834
835 -libdir | --libdir | --libdi | --libd)
836 ac_prev=libdir ;;
837 -libdir=* | --libdir=* | --libdi=* | --libd=*)
838 libdir=$ac_optarg ;;
839
840 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
841 | --libexe | --libex | --libe)
842 ac_prev=libexecdir ;;
843 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
844 | --libexe=* | --libex=* | --libe=*)
845 libexecdir=$ac_optarg ;;
846
847 -localedir | --localedir | --localedi | --localed | --locale)
848 ac_prev=localedir ;;
849 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
850 localedir=$ac_optarg ;;
851
852 -localstatedir | --localstatedir | --localstatedi | --localstated \
853 | --localstate | --localstat | --localsta | --localst | --locals)
854 ac_prev=localstatedir ;;
855 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
856 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
857 localstatedir=$ac_optarg ;;
858
859 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
860 ac_prev=mandir ;;
861 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
862 mandir=$ac_optarg ;;
863
864 -nfp | --nfp | --nf)
865 # Obsolete; use --without-fp.
866 with_fp=no ;;
867
868 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
869 | --no-cr | --no-c | -n)
870 no_create=yes ;;
871
872 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
873 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
874 no_recursion=yes ;;
875
876 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
877 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
878 | --oldin | --oldi | --old | --ol | --o)
879 ac_prev=oldincludedir ;;
880 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
881 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
882 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
883 oldincludedir=$ac_optarg ;;
884
885 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
886 ac_prev=prefix ;;
887 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
888 prefix=$ac_optarg ;;
889
890 -program-prefix | --program-prefix | --program-prefi | --program-pref \
891 | --program-pre | --program-pr | --program-p)
892 ac_prev=program_prefix ;;
893 -program-prefix=* | --program-prefix=* | --program-prefi=* \
894 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
895 program_prefix=$ac_optarg ;;
896
897 -program-suffix | --program-suffix | --program-suffi | --program-suff \
898 | --program-suf | --program-su | --program-s)
899 ac_prev=program_suffix ;;
900 -program-suffix=* | --program-suffix=* | --program-suffi=* \
901 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
902 program_suffix=$ac_optarg ;;
903
904 -program-transform-name | --program-transform-name \
905 | --program-transform-nam | --program-transform-na \
906 | --program-transform-n | --program-transform- \
907 | --program-transform | --program-transfor \
908 | --program-transfo | --program-transf \
909 | --program-trans | --program-tran \
910 | --progr-tra | --program-tr | --program-t)
911 ac_prev=program_transform_name ;;
912 -program-transform-name=* | --program-transform-name=* \
913 | --program-transform-nam=* | --program-transform-na=* \
914 | --program-transform-n=* | --program-transform-=* \
915 | --program-transform=* | --program-transfor=* \
916 | --program-transfo=* | --program-transf=* \
917 | --program-trans=* | --program-tran=* \
918 | --progr-tra=* | --program-tr=* | --program-t=*)
919 program_transform_name=$ac_optarg ;;
920
921 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
922 ac_prev=pdfdir ;;
923 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
924 pdfdir=$ac_optarg ;;
925
926 -psdir | --psdir | --psdi | --psd | --ps)
927 ac_prev=psdir ;;
928 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
929 psdir=$ac_optarg ;;
930
931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
932 | -silent | --silent | --silen | --sile | --sil)
933 silent=yes ;;
934
935 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
936 ac_prev=sbindir ;;
937 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
938 | --sbi=* | --sb=*)
939 sbindir=$ac_optarg ;;
940
941 -sharedstatedir | --sharedstatedir | --sharedstatedi \
942 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
943 | --sharedst | --shareds | --shared | --share | --shar \
944 | --sha | --sh)
945 ac_prev=sharedstatedir ;;
946 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
947 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
948 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
949 | --sha=* | --sh=*)
950 sharedstatedir=$ac_optarg ;;
951
952 -site | --site | --sit)
953 ac_prev=site ;;
954 -site=* | --site=* | --sit=*)
955 site=$ac_optarg ;;
956
957 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
958 ac_prev=srcdir ;;
959 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
960 srcdir=$ac_optarg ;;
961
962 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
963 | --syscon | --sysco | --sysc | --sys | --sy)
964 ac_prev=sysconfdir ;;
965 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
966 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
967 sysconfdir=$ac_optarg ;;
968
969 -target | --target | --targe | --targ | --tar | --ta | --t)
970 ac_prev=target_alias ;;
971 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
972 target_alias=$ac_optarg ;;
973
974 -v | -verbose | --verbose | --verbos | --verbo | --verb)
975 verbose=yes ;;
976
977 -version | --version | --versio | --versi | --vers | -V)
978 ac_init_version=: ;;
979
980 -with-* | --with-*)
981 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
984 { echo "$as_me: error: invalid package name: $ac_package" >&2
985 { (exit 1); exit 1; }; }
986 ac_package=`echo $ac_package| sed 's/-/_/g'`
987 eval with_$ac_package=\$ac_optarg ;;
988
989 -without-* | --without-*)
990 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
993 { echo "$as_me: error: invalid package name: $ac_package" >&2
994 { (exit 1); exit 1; }; }
995 ac_package=`echo $ac_package | sed 's/-/_/g'`
996 eval with_$ac_package=no ;;
997
998 --x)
999 # Obsolete; use --with-x.
1000 with_x=yes ;;
1001
1002 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1003 | --x-incl | --x-inc | --x-in | --x-i)
1004 ac_prev=x_includes ;;
1005 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1006 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1007 x_includes=$ac_optarg ;;
1008
1009 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1010 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1011 ac_prev=x_libraries ;;
1012 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1013 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1014 x_libraries=$ac_optarg ;;
1015
1016 -*) { echo "$as_me: error: unrecognized option: $ac_option
1017 Try \`$0 --help' for more information." >&2
1018 { (exit 1); exit 1; }; }
1019 ;;
1020
1021 *=*)
1022 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1026 { (exit 1); exit 1; }; }
1027 eval $ac_envvar=\$ac_optarg
1028 export $ac_envvar ;;
1029
1030 *)
1031 # FIXME: should be removed in autoconf 3.0.
1032 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1033 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1035 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1036 ;;
1037
1038 esac
1039 done
1040
1041 if test -n "$ac_prev"; then
1042 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1043 { echo "$as_me: error: missing argument to $ac_option" >&2
1044 { (exit 1); exit 1; }; }
1045 fi
1046
1047 # Be sure to have absolute directory names.
1048 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1049 datadir sysconfdir sharedstatedir localstatedir includedir \
1050 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1051 libdir localedir mandir
1052 do
1053 eval ac_val=\$$ac_var
1054 case $ac_val in
1055 [\\/$]* | ?:[\\/]* ) continue;;
1056 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1057 esac
1058 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1059 { (exit 1); exit 1; }; }
1060 done
1061
1062 # There might be people who depend on the old broken behavior: `$host'
1063 # used to hold the argument of --host etc.
1064 # FIXME: To remove some day.
1065 build=$build_alias
1066 host=$host_alias
1067 target=$target_alias
1068
1069 # FIXME: To remove some day.
1070 if test "x$host_alias" != x; then
1071 if test "x$build_alias" = x; then
1072 cross_compiling=maybe
1073 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1074 If a cross compiler is detected then cross compile mode will be used." >&2
1075 elif test "x$build_alias" != "x$host_alias"; then
1076 cross_compiling=yes
1077 fi
1078 fi
1079
1080 ac_tool_prefix=
1081 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1082
1083 test "$silent" = yes && exec 6>/dev/null
1084
1085
1086 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1087 ac_ls_di=`ls -di .` &&
1088 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1089 { echo "$as_me: error: Working directory cannot be determined" >&2
1090 { (exit 1); exit 1; }; }
1091 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1092 { echo "$as_me: error: pwd does not report name of working directory" >&2
1093 { (exit 1); exit 1; }; }
1094
1095
1096 # Find the source files, if location was not specified.
1097 if test -z "$srcdir"; then
1098 ac_srcdir_defaulted=yes
1099 # Try the directory containing this script, then the parent directory.
1100 ac_confdir=`$as_dirname -- "$0" ||
1101 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1102 X"$0" : 'X\(//\)[^/]' \| \
1103 X"$0" : 'X\(//\)$' \| \
1104 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1105 echo X"$0" |
1106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1107 s//\1/
1108 q
1109 }
1110 /^X\(\/\/\)[^/].*/{
1111 s//\1/
1112 q
1113 }
1114 /^X\(\/\/\)$/{
1115 s//\1/
1116 q
1117 }
1118 /^X\(\/\).*/{
1119 s//\1/
1120 q
1121 }
1122 s/.*/./; q'`
1123 srcdir=$ac_confdir
1124 if test ! -r "$srcdir/$ac_unique_file"; then
1125 srcdir=..
1126 fi
1127 else
1128 ac_srcdir_defaulted=no
1129 fi
1130 if test ! -r "$srcdir/$ac_unique_file"; then
1131 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1132 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1133 { (exit 1); exit 1; }; }
1134 fi
1135 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1136 ac_abs_confdir=`(
1137 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1138 { (exit 1); exit 1; }; }
1139 pwd)`
1140 # When building in place, set srcdir=.
1141 if test "$ac_abs_confdir" = "$ac_pwd"; then
1142 srcdir=.
1143 fi
1144 # Remove unnecessary trailing slashes from srcdir.
1145 # Double slashes in file names in object file debugging info
1146 # mess up M-x gdb in Emacs.
1147 case $srcdir in
1148 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1149 esac
1150 for ac_var in $ac_precious_vars; do
1151 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1152 eval ac_env_${ac_var}_value=\$${ac_var}
1153 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1154 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1155 done
1156
1157 #
1158 # Report the --help message.
1159 #
1160 if test "$ac_init_help" = "long"; then
1161 # Omit some internal or obsolete options to make the list less imposing.
1162 # This message is too long to be a string in the A/UX 3.1 sh.
1163 cat <<_ACEOF
1164 \`configure' configures mod_domaintree 1.5 to adapt to many kinds of systems.
1165
1166 Usage: $0 [OPTION]... [VAR=VALUE]...
1167
1168 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1169 VAR=VALUE. See below for descriptions of some of the useful variables.
1170
1171 Defaults for the options are specified in brackets.
1172
1173 Configuration:
1174 -h, --help display this help and exit
1175 --help=short display options specific to this package
1176 --help=recursive display the short help of all the included packages
1177 -V, --version display version information and exit
1178 -q, --quiet, --silent do not print \`checking...' messages
1179 --cache-file=FILE cache test results in FILE [disabled]
1180 -C, --config-cache alias for \`--cache-file=config.cache'
1181 -n, --no-create do not create output files
1182 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1183
1184 Installation directories:
1185 --prefix=PREFIX install architecture-independent files in PREFIX
1186 [$ac_default_prefix]
1187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1188 [PREFIX]
1189
1190 By default, \`make install' will install all the files in
1191 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1192 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1193 for instance \`--prefix=\$HOME'.
1194
1195 For better control, use the options below.
1196
1197 Fine tuning of the installation directories:
1198 --bindir=DIR user executables [EPREFIX/bin]
1199 --sbindir=DIR system admin executables [EPREFIX/sbin]
1200 --libexecdir=DIR program executables [EPREFIX/libexec]
1201 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1202 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1203 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1204 --libdir=DIR object code libraries [EPREFIX/lib]
1205 --includedir=DIR C header files [PREFIX/include]
1206 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1207 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1208 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1209 --infodir=DIR info documentation [DATAROOTDIR/info]
1210 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1211 --mandir=DIR man documentation [DATAROOTDIR/man]
1212 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_domaintree]
1213 --htmldir=DIR html documentation [DOCDIR]
1214 --dvidir=DIR dvi documentation [DOCDIR]
1215 --pdfdir=DIR pdf documentation [DOCDIR]
1216 --psdir=DIR ps documentation [DOCDIR]
1217 _ACEOF
1218
1219 cat <<\_ACEOF
1220 _ACEOF
1221 fi
1222
1223 if test -n "$ac_init_help"; then
1224 case $ac_init_help in
1225 short | recursive ) echo "Configuration of mod_domaintree 1.5:";;
1226 esac
1227 cat <<\_ACEOF
1228
1229 Optional Packages:
1230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1232 --with-apxs2 where the apxs2 tool is located
1233
1234 Some influential environment variables:
1235 CC C compiler command
1236 CFLAGS C compiler flags
1237 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1238 nonstandard directory <lib dir>
1239 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1240 you have headers in a nonstandard directory <include dir>
1241 CPP C preprocessor
1242
1243 Use these variables to override the choices made by `configure' or to help
1244 it to find libraries and programs with nonstandard names/locations.
1245
1246 Report bugs to <mike@iworks.at>.
1247 _ACEOF
1248 ac_status=$?
1249 fi
1250
1251 if test "$ac_init_help" = "recursive"; then
1252 # If there are subdirs, report their specific --help.
1253 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1254 test -d "$ac_dir" || continue
1255 ac_builddir=.
1256
1257 case "$ac_dir" in
1258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1259 *)
1260 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1261 # A ".." for each directory in $ac_dir_suffix.
1262 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1263 case $ac_top_builddir_sub in
1264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1266 esac ;;
1267 esac
1268 ac_abs_top_builddir=$ac_pwd
1269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1270 # for backward compatibility:
1271 ac_top_builddir=$ac_top_build_prefix
1272
1273 case $srcdir in
1274 .) # We are building in place.
1275 ac_srcdir=.
1276 ac_top_srcdir=$ac_top_builddir_sub
1277 ac_abs_top_srcdir=$ac_pwd ;;
1278 [\\/]* | ?:[\\/]* ) # Absolute name.
1279 ac_srcdir=$srcdir$ac_dir_suffix;
1280 ac_top_srcdir=$srcdir
1281 ac_abs_top_srcdir=$srcdir ;;
1282 *) # Relative name.
1283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1284 ac_top_srcdir=$ac_top_build_prefix$srcdir
1285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1286 esac
1287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1288
1289 cd "$ac_dir" || { ac_status=$?; continue; }
1290 # Check for guested configure.
1291 if test -f "$ac_srcdir/configure.gnu"; then
1292 echo &&
1293 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1294 elif test -f "$ac_srcdir/configure"; then
1295 echo &&
1296 $SHELL "$ac_srcdir/configure" --help=recursive
1297 else
1298 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1299 fi || ac_status=$?
1300 cd "$ac_pwd" || { ac_status=$?; break; }
1301 done
1302 fi
1303
1304 test -n "$ac_init_help" && exit $ac_status
1305 if $ac_init_version; then
1306 cat <<\_ACEOF
1307 mod_domaintree configure 1.5
1308 generated by GNU Autoconf 2.60
1309
1310 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1311 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1312 This configure script is free software; the Free Software Foundation
1313 gives unlimited permission to copy, distribute and modify it.
1314 _ACEOF
1315 exit
1316 fi
1317 cat >config.log <<_ACEOF
1318 This file contains any messages produced by compilers while
1319 running configure, to aid debugging if configure makes a mistake.
1320
1321 It was created by mod_domaintree $as_me 1.5, which was
1322 generated by GNU Autoconf 2.60. Invocation command line was
1323
1324 $ $0 $@
1325
1326 _ACEOF
1327 exec 5>>config.log
1328 {
1329 cat <<_ASUNAME
1330 ## --------- ##
1331 ## Platform. ##
1332 ## --------- ##
1333
1334 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1335 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1336 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1337 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1338 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1339
1340 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1341 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1342
1343 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1344 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1345 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1346 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1347 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1348 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1349 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1350
1351 _ASUNAME
1352
1353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1354 for as_dir in $PATH
1355 do
1356 IFS=$as_save_IFS
1357 test -z "$as_dir" && as_dir=.
1358 echo "PATH: $as_dir"
1359 done
1360 IFS=$as_save_IFS
1361
1362 } >&5
1363
1364 cat >&5 <<_ACEOF
1365
1366
1367 ## ----------- ##
1368 ## Core tests. ##
1369 ## ----------- ##
1370
1371 _ACEOF
1372
1373
1374 # Keep a trace of the command line.
1375 # Strip out --no-create and --no-recursion so they do not pile up.
1376 # Strip out --silent because we don't want to record it for future runs.
1377 # Also quote any args containing shell meta-characters.
1378 # Make two passes to allow for proper duplicate-argument suppression.
1379 ac_configure_args=
1380 ac_configure_args0=
1381 ac_configure_args1=
1382 ac_must_keep_next=false
1383 for ac_pass in 1 2
1384 do
1385 for ac_arg
1386 do
1387 case $ac_arg in
1388 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1390 | -silent | --silent | --silen | --sile | --sil)
1391 continue ;;
1392 *\'*)
1393 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1394 esac
1395 case $ac_pass in
1396 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1397 2)
1398 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1399 if test $ac_must_keep_next = true; then
1400 ac_must_keep_next=false # Got value, back to normal.
1401 else
1402 case $ac_arg in
1403 *=* | --config-cache | -C | -disable-* | --disable-* \
1404 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1405 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1406 | -with-* | --with-* | -without-* | --without-* | --x)
1407 case "$ac_configure_args0 " in
1408 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1409 esac
1410 ;;
1411 -* ) ac_must_keep_next=true ;;
1412 esac
1413 fi
1414 ac_configure_args="$ac_configure_args '$ac_arg'"
1415 ;;
1416 esac
1417 done
1418 done
1419 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1420 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1421
1422 # When interrupted or exit'd, cleanup temporary files, and complete
1423 # config.log. We remove comments because anyway the quotes in there
1424 # would cause problems or look ugly.
1425 # WARNING: Use '\'' to represent an apostrophe within the trap.
1426 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1427 trap 'exit_status=$?
1428 # Save into config.log some information that might help in debugging.
1429 {
1430 echo
1431
1432 cat <<\_ASBOX
1433 ## ---------------- ##
1434 ## Cache variables. ##
1435 ## ---------------- ##
1436 _ASBOX
1437 echo
1438 # The following way of writing the cache mishandles newlines in values,
1439 (
1440 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1441 eval ac_val=\$$ac_var
1442 case $ac_val in #(
1443 *${as_nl}*)
1444 case $ac_var in #(
1445 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1446 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1447 esac
1448 case $ac_var in #(
1449 _ | IFS | as_nl) ;; #(
1450 *) $as_unset $ac_var ;;
1451 esac ;;
1452 esac
1453 done
1454 (set) 2>&1 |
1455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1456 *${as_nl}ac_space=\ *)
1457 sed -n \
1458 "s/'\''/'\''\\\\'\'''\''/g;
1459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1460 ;; #(
1461 *)
1462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1463 ;;
1464 esac |
1465 sort
1466 )
1467 echo
1468
1469 cat <<\_ASBOX
1470 ## ----------------- ##
1471 ## Output variables. ##
1472 ## ----------------- ##
1473 _ASBOX
1474 echo
1475 for ac_var in $ac_subst_vars
1476 do
1477 eval ac_val=\$$ac_var
1478 case $ac_val in
1479 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1480 esac
1481 echo "$ac_var='\''$ac_val'\''"
1482 done | sort
1483 echo
1484
1485 if test -n "$ac_subst_files"; then
1486 cat <<\_ASBOX
1487 ## ------------------- ##
1488 ## File substitutions. ##
1489 ## ------------------- ##
1490 _ASBOX
1491 echo
1492 for ac_var in $ac_subst_files
1493 do
1494 eval ac_val=\$$ac_var
1495 case $ac_val in
1496 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1497 esac
1498 echo "$ac_var='\''$ac_val'\''"
1499 done | sort
1500 echo
1501 fi
1502
1503 if test -s confdefs.h; then
1504 cat <<\_ASBOX
1505 ## ----------- ##
1506 ## confdefs.h. ##
1507 ## ----------- ##
1508 _ASBOX
1509 echo
1510 cat confdefs.h
1511 echo
1512 fi
1513 test "$ac_signal" != 0 &&
1514 echo "$as_me: caught signal $ac_signal"
1515 echo "$as_me: exit $exit_status"
1516 } >&5
1517 rm -f core *.core core.conftest.* &&
1518 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1519 exit $exit_status
1520 ' 0
1521 for ac_signal in 1 2 13 15; do
1522 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1523 done
1524 ac_signal=0
1525
1526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1527 rm -f -r conftest* confdefs.h
1528
1529 # Predefined preprocessor variables.
1530
1531 cat >>confdefs.h <<_ACEOF
1532 #define PACKAGE_NAME "$PACKAGE_NAME"
1533 _ACEOF
1534
1535
1536 cat >>confdefs.h <<_ACEOF
1537 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1538 _ACEOF
1539
1540
1541 cat >>confdefs.h <<_ACEOF
1542 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1543 _ACEOF
1544
1545
1546 cat >>confdefs.h <<_ACEOF
1547 #define PACKAGE_STRING "$PACKAGE_STRING"
1548 _ACEOF
1549
1550
1551 cat >>confdefs.h <<_ACEOF
1552 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1553 _ACEOF
1554
1555
1556 # Let the site file select an alternate cache file if it wants to.
1557 # Prefer explicitly selected file to automatically selected ones.
1558 if test -n "$CONFIG_SITE"; then
1559 set x "$CONFIG_SITE"
1560 elif test "x$prefix" != xNONE; then
1561 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1562 else
1563 set x "$ac_default_prefix/share/config.site" \
1564 "$ac_default_prefix/etc/config.site"
1565 fi
1566 shift
1567 for ac_site_file
1568 do
1569 if test -r "$ac_site_file"; then
1570 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1571 echo "$as_me: loading site script $ac_site_file" >&6;}
1572 sed 's/^/| /' "$ac_site_file" >&5
1573 . "$ac_site_file"
1574 fi
1575 done
1576
1577 if test -r "$cache_file"; then
1578 # Some versions of bash will fail to source /dev/null (special
1579 # files actually), so we avoid doing that.
1580 if test -f "$cache_file"; then
1581 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1582 echo "$as_me: loading cache $cache_file" >&6;}
1583 case $cache_file in
1584 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1585 *) . "./$cache_file";;
1586 esac
1587 fi
1588 else
1589 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1590 echo "$as_me: creating cache $cache_file" >&6;}
1591 >$cache_file
1592 fi
1593
1594 # Check that the precious variables saved in the cache have kept the same
1595 # value.
1596 ac_cache_corrupted=false
1597 for ac_var in $ac_precious_vars; do
1598 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1599 eval ac_new_set=\$ac_env_${ac_var}_set
1600 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1601 eval ac_new_val=\$ac_env_${ac_var}_value
1602 case $ac_old_set,$ac_new_set in
1603 set,)
1604 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1605 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1606 ac_cache_corrupted=: ;;
1607 ,set)
1608 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1609 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1610 ac_cache_corrupted=: ;;
1611 ,);;
1612 *)
1613 if test "x$ac_old_val" != "x$ac_new_val"; then
1614 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1615 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1616 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1617 echo "$as_me: former value: $ac_old_val" >&2;}
1618 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1619 echo "$as_me: current value: $ac_new_val" >&2;}
1620 ac_cache_corrupted=:
1621 fi;;
1622 esac
1623 # Pass precious variables to config.status.
1624 if test "$ac_new_set" = set; then
1625 case $ac_new_val in
1626 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 *) ac_arg=$ac_var=$ac_new_val ;;
1628 esac
1629 case " $ac_configure_args " in
1630 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1631 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1632 esac
1633 fi
1634 done
1635 if $ac_cache_corrupted; then
1636 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1637 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1638 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1639 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1640 { (exit 1); exit 1; }; }
1641 fi
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667 ac_ext=c
1668 ac_cpp='$CPP $CPPFLAGS'
1669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1672
1673
1674
1675
1676 ac_config_headers="$ac_config_headers config.h"
1677
1678
1679 ac_ext=c
1680 ac_cpp='$CPP $CPPFLAGS'
1681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1684 if test -n "$ac_tool_prefix"; then
1685 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1686 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698 IFS=$as_save_IFS
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1702 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 break 2
1705 fi
1706 done
1707 done
1708 IFS=$as_save_IFS
1709
1710 fi
1711 fi
1712 CC=$ac_cv_prog_CC
1713 if test -n "$CC"; then
1714 { echo "$as_me:$LINENO: result: $CC" >&5
1715 echo "${ECHO_T}$CC" >&6; }
1716 else
1717 { echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6; }
1719 fi
1720
1721
1722 fi
1723 if test -z "$ac_cv_prog_CC"; then
1724 ac_ct_CC=$CC
1725 # Extract the first word of "gcc", so it can be a program name with args.
1726 set dummy gcc; ac_word=$2
1727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1729 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732 if test -n "$ac_ct_CC"; then
1733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1737 do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1742 ac_cv_prog_ac_ct_CC="gcc"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746 done
1747 done
1748 IFS=$as_save_IFS
1749
1750 fi
1751 fi
1752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1753 if test -n "$ac_ct_CC"; then
1754 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1755 echo "${ECHO_T}$ac_ct_CC" >&6; }
1756 else
1757 { echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6; }
1759 fi
1760
1761 if test "x$ac_ct_CC" = x; then
1762 CC=""
1763 else
1764 case $cross_compiling:$ac_tool_warned in
1765 yes:)
1766 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1767 whose name does not start with the host triplet. If you think this
1768 configuration is useful to you, please write to autoconf@gnu.org." >&5
1769 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1770 whose name does not start with the host triplet. If you think this
1771 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1772 ac_tool_warned=yes ;;
1773 esac
1774 CC=$ac_ct_CC
1775 fi
1776 else
1777 CC="$ac_cv_prog_CC"
1778 fi
1779
1780 if test -z "$CC"; then
1781 if test -n "$ac_tool_prefix"; then
1782 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1783 set dummy ${ac_tool_prefix}cc; ac_word=$2
1784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1786 if test "${ac_cv_prog_CC+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789 if test -n "$CC"; then
1790 ac_cv_prog_CC="$CC" # Let the user override the test.
1791 else
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1794 do
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
1797 for ac_exec_ext in '' $ac_executable_extensions; do
1798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1799 ac_cv_prog_CC="${ac_tool_prefix}cc"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 break 2
1802 fi
1803 done
1804 done
1805 IFS=$as_save_IFS
1806
1807 fi
1808 fi
1809 CC=$ac_cv_prog_CC
1810 if test -n "$CC"; then
1811 { echo "$as_me:$LINENO: result: $CC" >&5
1812 echo "${ECHO_T}$CC" >&6; }
1813 else
1814 { echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6; }
1816 fi
1817
1818
1819 fi
1820 fi
1821 if test -z "$CC"; then
1822 # Extract the first word of "cc", so it can be a program name with args.
1823 set dummy cc; ac_word=$2
1824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1831 else
1832 ac_prog_rejected=no
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1835 do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1840 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1841 ac_prog_rejected=yes
1842 continue
1843 fi
1844 ac_cv_prog_CC="cc"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 break 2
1847 fi
1848 done
1849 done
1850 IFS=$as_save_IFS
1851
1852 if test $ac_prog_rejected = yes; then
1853 # We found a bogon in the path, so make sure we never use it.
1854 set dummy $ac_cv_prog_CC
1855 shift
1856 if test $# != 0; then
1857 # We chose a different compiler from the bogus one.
1858 # However, it has the same basename, so the bogon will be chosen
1859 # first if we set CC to just the basename; use the full file name.
1860 shift
1861 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1862 fi
1863 fi
1864 fi
1865 fi
1866 CC=$ac_cv_prog_CC
1867 if test -n "$CC"; then
1868 { echo "$as_me:$LINENO: result: $CC" >&5
1869 echo "${ECHO_T}$CC" >&6; }
1870 else
1871 { echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6; }
1873 fi
1874
1875
1876 fi
1877 if test -z "$CC"; then
1878 if test -n "$ac_tool_prefix"; then
1879 for ac_prog in cl.exe
1880 do
1881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC="$CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1898 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 break 2
1901 fi
1902 done
1903 done
1904 IFS=$as_save_IFS
1905
1906 fi
1907 fi
1908 CC=$ac_cv_prog_CC
1909 if test -n "$CC"; then
1910 { echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6; }
1912 else
1913 { echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6; }
1915 fi
1916
1917
1918 test -n "$CC" && break
1919 done
1920 fi
1921 if test -z "$CC"; then
1922 ac_ct_CC=$CC
1923 for ac_prog in cl.exe
1924 do
1925 # Extract the first word of "$ac_prog", so it can be a program name with args.
1926 set dummy $ac_prog; ac_word=$2
1927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 if test -n "$ac_ct_CC"; then
1933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1942 ac_cv_prog_ac_ct_CC="$ac_prog"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 break 2
1945 fi
1946 done
1947 done
1948 IFS=$as_save_IFS
1949
1950 fi
1951 fi
1952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1953 if test -n "$ac_ct_CC"; then
1954 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1955 echo "${ECHO_T}$ac_ct_CC" >&6; }
1956 else
1957 { echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6; }
1959 fi
1960
1961
1962 test -n "$ac_ct_CC" && break
1963 done
1964
1965 if test "x$ac_ct_CC" = x; then
1966 CC=""
1967 else
1968 case $cross_compiling:$ac_tool_warned in
1969 yes:)
1970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1971 whose name does not start with the host triplet. If you think this
1972 configuration is useful to you, please write to autoconf@gnu.org." >&5
1973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1974 whose name does not start with the host triplet. If you think this
1975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1976 ac_tool_warned=yes ;;
1977 esac
1978 CC=$ac_ct_CC
1979 fi
1980 fi
1981
1982 fi
1983
1984
1985 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1986 See \`config.log' for more details." >&5
1987 echo "$as_me: error: no acceptable C compiler found in \$PATH
1988 See \`config.log' for more details." >&2;}
1989 { (exit 1); exit 1; }; }
1990
1991 # Provide some information about the compiler.
1992 echo "$as_me:$LINENO: checking for C compiler version" >&5
1993 ac_compiler=`set X $ac_compile; echo $2`
1994 { (ac_try="$ac_compiler --version >&5"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2000 (eval "$ac_compiler --version >&5") 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }
2004 { (ac_try="$ac_compiler -v >&5"
2005 case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008 esac
2009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2010 (eval "$ac_compiler -v >&5") 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }
2014 { (ac_try="$ac_compiler -V >&5"
2015 case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018 esac
2019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2020 (eval "$ac_compiler -V >&5") 2>&5
2021 ac_status=$?
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }
2024
2025 cat >conftest.$ac_ext <<_ACEOF
2026 /* confdefs.h. */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h. */
2031
2032 int
2033 main ()
2034 {
2035
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 ac_clean_files_save=$ac_clean_files
2041 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2042 # Try to create an executable without -o first, disregard a.out.
2043 # It will help us diagnose broken compilers, and finding out an intuition
2044 # of exeext.
2045 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2046 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2047 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2048 #
2049 # List of possible output files, starting from the most likely.
2050 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2051 # only as a last resort. b.out is created by i960 compilers.
2052 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2053 #
2054 # The IRIX 6 linker writes into existing files which may not be
2055 # executable, retaining their permissions. Remove them first so a
2056 # subsequent execution test works.
2057 ac_rmfiles=
2058 for ac_file in $ac_files
2059 do
2060 case $ac_file in
2061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2062 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2063 esac
2064 done
2065 rm -f $ac_rmfiles
2066
2067 if { (ac_try="$ac_link_default"
2068 case "(($ac_try" in
2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2071 esac
2072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2073 (eval "$ac_link_default") 2>&5
2074 ac_status=$?
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }; then
2077 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2078 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2079 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2080 # so that the user can short-circuit this test for compilers unknown to
2081 # Autoconf.
2082 for ac_file in $ac_files
2083 do
2084 test -f "$ac_file" || continue
2085 case $ac_file in
2086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2087 ;;
2088 [ab].out )
2089 # We found the default executable, but exeext='' is most
2090 # certainly right.
2091 break;;
2092 *.* )
2093 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2094 then :; else
2095 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096 fi
2097 # We set ac_cv_exeext here because the later test for it is not
2098 # safe: cross compilers may not add the suffix if given an `-o'
2099 # argument, so we may need to know it at that point already.
2100 # Even if this section looks crufty: it has the advantage of
2101 # actually working.
2102 break;;
2103 * )
2104 break;;
2105 esac
2106 done
2107 test "$ac_cv_exeext" = no && ac_cv_exeext=
2108
2109 else
2110 echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2112
2113 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: C compiler cannot create executables
2116 See \`config.log' for more details." >&2;}
2117 { (exit 77); exit 77; }; }
2118 fi
2119
2120 ac_exeext=$ac_cv_exeext
2121 { echo "$as_me:$LINENO: result: $ac_file" >&5
2122 echo "${ECHO_T}$ac_file" >&6; }
2123
2124 # Check that the compiler produces executables we can run. If not, either
2125 # the compiler is broken, or we cross compile.
2126 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2127 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2128 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2129 # If not cross compiling, check that we can run a simple program.
2130 if test "$cross_compiling" != yes; then
2131 if { ac_try='./$ac_file'
2132 { (case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135 esac
2136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2137 (eval "$ac_try") 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; }; then
2141 cross_compiling=no
2142 else
2143 if test "$cross_compiling" = maybe; then
2144 cross_compiling=yes
2145 else
2146 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2147 If you meant to cross compile, use \`--host'.
2148 See \`config.log' for more details." >&5
2149 echo "$as_me: error: cannot run C compiled programs.
2150 If you meant to cross compile, use \`--host'.
2151 See \`config.log' for more details." >&2;}
2152 { (exit 1); exit 1; }; }
2153 fi
2154 fi
2155 fi
2156 { echo "$as_me:$LINENO: result: yes" >&5
2157 echo "${ECHO_T}yes" >&6; }
2158
2159 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2160 ac_clean_files=$ac_clean_files_save
2161 # Check that the compiler produces executables we can run. If not, either
2162 # the compiler is broken, or we cross compile.
2163 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2164 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2165 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2166 echo "${ECHO_T}$cross_compiling" >&6; }
2167
2168 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2169 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2170 if { (ac_try="$ac_link"
2171 case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2174 esac
2175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2176 (eval "$ac_link") 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; then
2180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2181 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2182 # work properly (i.e., refer to `conftest.exe'), while it won't with
2183 # `rm'.
2184 for ac_file in conftest.exe conftest conftest.*; do
2185 test -f "$ac_file" || continue
2186 case $ac_file in
2187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189 break;;
2190 * ) break;;
2191 esac
2192 done
2193 else
2194 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2199 fi
2200
2201 rm -f conftest$ac_cv_exeext
2202 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2203 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2204
2205 rm -f conftest.$ac_ext
2206 EXEEXT=$ac_cv_exeext
2207 ac_exeext=$EXEEXT
2208 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2209 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2210 if test "${ac_cv_objext+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h. */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2219
2220 int
2221 main ()
2222 {
2223
2224 ;
2225 return 0;
2226 }
2227 _ACEOF
2228 rm -f conftest.o conftest.obj
2229 if { (ac_try="$ac_compile"
2230 case "(($ac_try" in
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2233 esac
2234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2235 (eval "$ac_compile") 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; then
2239 for ac_file in conftest.o conftest.obj conftest.*; do
2240 test -f "$ac_file" || continue;
2241 case $ac_file in
2242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2243 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2244 break;;
2245 esac
2246 done
2247 else
2248 echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250
2251 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }
2256 fi
2257
2258 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2259 fi
2260 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2261 echo "${ECHO_T}$ac_cv_objext" >&6; }
2262 OBJEXT=$ac_cv_objext
2263 ac_objext=$OBJEXT
2264 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2265 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2266 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269 cat >conftest.$ac_ext <<_ACEOF
2270 /* confdefs.h. */
2271 _ACEOF
2272 cat confdefs.h >>conftest.$ac_ext
2273 cat >>conftest.$ac_ext <<_ACEOF
2274 /* end confdefs.h. */
2275
2276 int
2277 main ()
2278 {
2279 #ifndef __GNUC__
2280 choke me
2281 #endif
2282
2283 ;
2284 return 0;
2285 }
2286 _ACEOF
2287 rm -f conftest.$ac_objext
2288 if { (ac_try="$ac_compile"
2289 case "(($ac_try" in
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2292 esac
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294 (eval "$ac_compile") 2>conftest.er1
2295 ac_status=$?
2296 grep -v '^ *+' conftest.er1 >conftest.err
2297 rm -f conftest.er1
2298 cat conftest.err >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); } &&
2301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2302 { (case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2305 esac
2306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2307 (eval "$ac_try") 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; } &&
2311 { ac_try='test -s conftest.$ac_objext'
2312 { (case "(($ac_try" in
2313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2314 *) ac_try_echo=$ac_try;;
2315 esac
2316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2317 (eval "$ac_try") 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; }; then
2321 ac_compiler_gnu=yes
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 ac_compiler_gnu=no
2327 fi
2328
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2331
2332 fi
2333 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2334 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2335 GCC=`test $ac_compiler_gnu = yes && echo yes`
2336 ac_test_CFLAGS=${CFLAGS+set}
2337 ac_save_CFLAGS=$CFLAGS
2338 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2339 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_cc_g+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 ac_save_c_werror_flag=$ac_c_werror_flag
2344 ac_c_werror_flag=yes
2345 ac_cv_prog_cc_g=no
2346 CFLAGS="-g"
2347 cat >conftest.$ac_ext <<_ACEOF
2348 /* confdefs.h. */
2349 _ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h. */
2353
2354 int
2355 main ()
2356 {
2357
2358 ;
2359 return 0;
2360 }
2361 _ACEOF
2362 rm -f conftest.$ac_objext
2363 if { (ac_try="$ac_compile"
2364 case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compile") 2>conftest.er1
2370 ac_status=$?
2371 grep -v '^ *+' conftest.er1 >conftest.err
2372 rm -f conftest.er1
2373 cat conftest.err >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } &&
2376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2377 { (case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380 esac
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382 (eval "$ac_try") 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390 esac
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_try") 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 ac_cv_prog_cc_g=yes
2397 else
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2400
2401 CFLAGS=""
2402 cat >conftest.$ac_ext <<_ACEOF
2403 /* confdefs.h. */
2404 _ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h. */
2408
2409 int
2410 main ()
2411 {
2412
2413 ;
2414 return 0;
2415 }
2416 _ACEOF
2417 rm -f conftest.$ac_objext
2418 if { (ac_try="$ac_compile"
2419 case "(($ac_try" in
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_compile") 2>conftest.er1
2425 ac_status=$?
2426 grep -v '^ *+' conftest.er1 >conftest.err
2427 rm -f conftest.er1
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432 { (case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435 esac
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_try") 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_try") 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 :
2452 else
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 ac_c_werror_flag=$ac_save_c_werror_flag
2457 CFLAGS="-g"
2458 cat >conftest.$ac_ext <<_ACEOF
2459 /* confdefs.h. */
2460 _ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2464
2465 int
2466 main ()
2467 {
2468
2469 ;
2470 return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (ac_try="$ac_compile"
2475 case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478 esac
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_compile") 2>conftest.er1
2481 ac_status=$?
2482 grep -v '^ *+' conftest.er1 >conftest.err
2483 rm -f conftest.er1
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } &&
2487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2488 { (case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_try") 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try='test -s conftest.$ac_objext'
2498 { (case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2501 esac
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_try") 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 ac_cv_prog_cc_g=yes
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512
2513 fi
2514
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 fi
2517
2518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 fi
2520
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 ac_c_werror_flag=$ac_save_c_werror_flag
2523 fi
2524 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2525 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2526 if test "$ac_test_CFLAGS" = set; then
2527 CFLAGS=$ac_save_CFLAGS
2528 elif test $ac_cv_prog_cc_g = yes; then
2529 if test "$GCC" = yes; then
2530 CFLAGS="-g -O2"
2531 else
2532 CFLAGS="-g"
2533 fi
2534 else
2535 if test "$GCC" = yes; then
2536 CFLAGS="-O2"
2537 else
2538 CFLAGS=
2539 fi
2540 fi
2541 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2542 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_cc_c89+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 ac_cv_prog_cc_c89=no
2547 ac_save_CC=$CC
2548 cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h. */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2554 #include <stdarg.h>
2555 #include <stdio.h>
2556 #include <sys/types.h>
2557 #include <sys/stat.h>
2558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2559 struct buf { int x; };
2560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2561 static char *e (p, i)
2562 char **p;
2563 int i;
2564 {
2565 return p[i];
2566 }
2567 static char *f (char * (*g) (char **, int), char **p, ...)
2568 {
2569 char *s;
2570 va_list v;
2571 va_start (v,p);
2572 s = g (p, va_arg (v,int));
2573 va_end (v);
2574 return s;
2575 }
2576
2577 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2578 function prototypes and stuff, but not '\xHH' hex character constants.
2579 These don't provoke an error unfortunately, instead are silently treated
2580 as 'x'. The following induces an error, until -std is added to get
2581 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2582 array size at least. It's necessary to write '\x00'==0 to get something
2583 that's true only with -std. */
2584 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2585
2586 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2587 inside strings and character constants. */
2588 #define FOO(x) 'x'
2589 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2590
2591 int test (int i, double x);
2592 struct s1 {int (*f) (int a);};
2593 struct s2 {int (*f) (double a);};
2594 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2595 int argc;
2596 char **argv;
2597 int
2598 main ()
2599 {
2600 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2601 ;
2602 return 0;
2603 }
2604 _ACEOF
2605 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2606 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2607 do
2608 CC="$ac_save_CC $ac_arg"
2609 rm -f conftest.$ac_objext
2610 if { (ac_try="$ac_compile"
2611 case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2614 esac
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616 (eval "$ac_compile") 2>conftest.er1
2617 ac_status=$?
2618 grep -v '^ *+' conftest.er1 >conftest.err
2619 rm -f conftest.er1
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2624 { (case "(($ac_try" in
2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2627 esac
2628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2629 (eval "$ac_try") 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (case "(($ac_try" in
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2637 esac
2638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2639 (eval "$ac_try") 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2643 ac_cv_prog_cc_c89=$ac_arg
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648
2649 fi
2650
2651 rm -f core conftest.err conftest.$ac_objext
2652 test "x$ac_cv_prog_cc_c89" != "xno" && break
2653 done
2654 rm -f conftest.$ac_ext
2655 CC=$ac_save_CC
2656
2657 fi
2658 # AC_CACHE_VAL
2659 case "x$ac_cv_prog_cc_c89" in
2660 x)
2661 { echo "$as_me:$LINENO: result: none needed" >&5
2662 echo "${ECHO_T}none needed" >&6; } ;;
2663 xno)
2664 { echo "$as_me:$LINENO: result: unsupported" >&5
2665 echo "${ECHO_T}unsupported" >&6; } ;;
2666 *)
2667 CC="$CC $ac_cv_prog_cc_c89"
2668 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2669 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2670 esac
2671
2672
2673 ac_ext=c
2674 ac_cpp='$CPP $CPPFLAGS'
2675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678
2679
2680 ac_ext=c
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2686 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2687 # On Suns, sometimes $CPP names a directory.
2688 if test -n "$CPP" && test -d "$CPP"; then
2689 CPP=
2690 fi
2691 if test -z "$CPP"; then
2692 if test "${ac_cv_prog_CPP+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695 # Double quotes because CPP needs to be expanded
2696 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2697 do
2698 ac_preproc_ok=false
2699 for ac_c_preproc_warn_flag in '' yes
2700 do
2701 # Use a header file that comes with gcc, so configuring glibc
2702 # with a fresh cross-compiler works.
2703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2704 # <limits.h> exists even on freestanding compilers.
2705 # On the NeXT, cc -E runs the code through the compiler's parser,
2706 # not just through cpp. "Syntax error" is here to catch this case.
2707 cat >conftest.$ac_ext <<_ACEOF
2708 /* confdefs.h. */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2713 #ifdef __STDC__
2714 # include <limits.h>
2715 #else
2716 # include <assert.h>
2717 #endif
2718 Syntax error
2719 _ACEOF
2720 if { (ac_try="$ac_cpp conftest.$ac_ext"
2721 case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2727 ac_status=$?
2728 grep -v '^ *+' conftest.er1 >conftest.err
2729 rm -f conftest.er1
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } >/dev/null; then
2733 if test -s conftest.err; then
2734 ac_cpp_err=$ac_c_preproc_warn_flag
2735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2736 else
2737 ac_cpp_err=
2738 fi
2739 else
2740 ac_cpp_err=yes
2741 fi
2742 if test -z "$ac_cpp_err"; then
2743 :
2744 else
2745 echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2747
2748 # Broken: fails on valid input.
2749 continue
2750 fi
2751
2752 rm -f conftest.err conftest.$ac_ext
2753
2754 # OK, works on sane cases. Now check whether nonexistent headers
2755 # can be detected and how.
2756 cat >conftest.$ac_ext <<_ACEOF
2757 /* confdefs.h. */
2758 _ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2762 #include <ac_nonexistent.h>
2763 _ACEOF
2764 if { (ac_try="$ac_cpp conftest.$ac_ext"
2765 case "(($ac_try" in
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2768 esac
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } >/dev/null; then
2777 if test -s conftest.err; then
2778 ac_cpp_err=$ac_c_preproc_warn_flag
2779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2780 else
2781 ac_cpp_err=
2782 fi
2783 else
2784 ac_cpp_err=yes
2785 fi
2786 if test -z "$ac_cpp_err"; then
2787 # Broken: success on invalid input.
2788 continue
2789 else
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793 # Passes both tests.
2794 ac_preproc_ok=:
2795 break
2796 fi
2797
2798 rm -f conftest.err conftest.$ac_ext
2799
2800 done
2801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2802 rm -f conftest.err conftest.$ac_ext
2803 if $ac_preproc_ok; then
2804 break
2805 fi
2806
2807 done
2808 ac_cv_prog_CPP=$CPP
2809
2810 fi
2811 CPP=$ac_cv_prog_CPP
2812 else
2813 ac_cv_prog_CPP=$CPP
2814 fi
2815 { echo "$as_me:$LINENO: result: $CPP" >&5
2816 echo "${ECHO_T}$CPP" >&6; }
2817 ac_preproc_ok=false
2818 for ac_c_preproc_warn_flag in '' yes
2819 do
2820 # Use a header file that comes with gcc, so configuring glibc
2821 # with a fresh cross-compiler works.
2822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2823 # <limits.h> exists even on freestanding compilers.
2824 # On the NeXT, cc -E runs the code through the compiler's parser,
2825 # not just through cpp. "Syntax error" is here to catch this case.
2826 cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h. */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2832 #ifdef __STDC__
2833 # include <limits.h>
2834 #else
2835 # include <assert.h>
2836 #endif
2837 Syntax error
2838 _ACEOF
2839 if { (ac_try="$ac_cpp conftest.$ac_ext"
2840 case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2846 ac_status=$?
2847 grep -v '^ *+' conftest.er1 >conftest.err
2848 rm -f conftest.er1
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } >/dev/null; then
2852 if test -s conftest.err; then
2853 ac_cpp_err=$ac_c_preproc_warn_flag
2854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2855 else
2856 ac_cpp_err=
2857 fi
2858 else
2859 ac_cpp_err=yes
2860 fi
2861 if test -z "$ac_cpp_err"; then
2862 :
2863 else
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867 # Broken: fails on valid input.
2868 continue
2869 fi
2870
2871 rm -f conftest.err conftest.$ac_ext
2872
2873 # OK, works on sane cases. Now check whether nonexistent headers
2874 # can be detected and how.
2875 cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h. */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2881 #include <ac_nonexistent.h>
2882 _ACEOF
2883 if { (ac_try="$ac_cpp conftest.$ac_ext"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2890 ac_status=$?
2891 grep -v '^ *+' conftest.er1 >conftest.err
2892 rm -f conftest.er1
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } >/dev/null; then
2896 if test -s conftest.err; then
2897 ac_cpp_err=$ac_c_preproc_warn_flag
2898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2899 else
2900 ac_cpp_err=
2901 fi
2902 else
2903 ac_cpp_err=yes
2904 fi
2905 if test -z "$ac_cpp_err"; then
2906 # Broken: success on invalid input.
2907 continue
2908 else
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 # Passes both tests.
2913 ac_preproc_ok=:
2914 break
2915 fi
2916
2917 rm -f conftest.err conftest.$ac_ext
2918
2919 done
2920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2921 rm -f conftest.err conftest.$ac_ext
2922 if $ac_preproc_ok; then
2923 :
2924 else
2925 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2926 See \`config.log' for more details." >&5
2927 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2928 See \`config.log' for more details." >&2;}
2929 { (exit 1); exit 1; }; }
2930 fi
2931
2932 ac_ext=c
2933 ac_cpp='$CPP $CPPFLAGS'
2934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2937
2938
2939 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2940 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2941 if test "${ac_cv_path_GREP+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 # Extract the first word of "grep ggrep" to use in msg output
2945 if test -z "$GREP"; then
2946 set dummy grep ggrep; ac_prog_name=$2
2947 if test "${ac_cv_path_GREP+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950 ac_path_GREP_found=false
2951 # Loop through the user's path and test for each of PROGNAME-LIST
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_prog in grep ggrep; do
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2960 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
2961 # Check for GNU ac_path_GREP and select it if it is found.
2962 # Check for GNU $ac_path_GREP
2963 case `"$ac_path_GREP" --version 2>&1` in
2964 *GNU*)
2965 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2966 *)
2967 ac_count=0
2968 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2969 while :
2970 do
2971 cat "conftest.in" "conftest.in" >"conftest.tmp"
2972 mv "conftest.tmp" "conftest.in"
2973 cp "conftest.in" "conftest.nl"
2974 echo 'GREP' >> "conftest.nl"
2975 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2977 ac_count=`expr $ac_count + 1`
2978 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2979 # Best one so far, save it but keep looking for a better one
2980 ac_cv_path_GREP="$ac_path_GREP"
2981 ac_path_GREP_max=$ac_count
2982 fi
2983 # 10*(2^10) chars as input seems more than enough
2984 test $ac_count -gt 10 && break
2985 done
2986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2987 esac
2988
2989
2990 $ac_path_GREP_found && break 3
2991 done
2992 done
2993
2994 done
2995 IFS=$as_save_IFS
2996
2997
2998 fi
2999
3000 GREP="$ac_cv_path_GREP"
3001 if test -z "$GREP"; then
3002 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3003 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3004 { (exit 1); exit 1; }; }
3005 fi
3006
3007 else
3008 ac_cv_path_GREP=$GREP
3009 fi
3010
3011
3012 fi
3013 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3014 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3015 GREP="$ac_cv_path_GREP"
3016
3017
3018 { echo "$as_me:$LINENO: checking for egrep" >&5
3019 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3020 if test "${ac_cv_path_EGREP+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3024 then ac_cv_path_EGREP="$GREP -E"
3025 else
3026 # Extract the first word of "egrep" to use in msg output
3027 if test -z "$EGREP"; then
3028 set dummy egrep; ac_prog_name=$2
3029 if test "${ac_cv_path_EGREP+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 ac_path_EGREP_found=false
3033 # Loop through the user's path and test for each of PROGNAME-LIST
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3036 do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_prog in egrep; do
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3042 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3043 # Check for GNU ac_path_EGREP and select it if it is found.
3044 # Check for GNU $ac_path_EGREP
3045 case `"$ac_path_EGREP" --version 2>&1` in
3046 *GNU*)
3047 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3048 *)
3049 ac_count=0
3050 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3051 while :
3052 do
3053 cat "conftest.in" "conftest.in" >"conftest.tmp"
3054 mv "conftest.tmp" "conftest.in"
3055 cp "conftest.in" "conftest.nl"
3056 echo 'EGREP' >> "conftest.nl"
3057 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3059 ac_count=`expr $ac_count + 1`
3060 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3061 # Best one so far, save it but keep looking for a better one
3062 ac_cv_path_EGREP="$ac_path_EGREP"
3063 ac_path_EGREP_max=$ac_count
3064 fi
3065 # 10*(2^10) chars as input seems more than enough
3066 test $ac_count -gt 10 && break
3067 done
3068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3069 esac
3070
3071
3072 $ac_path_EGREP_found && break 3
3073 done
3074 done
3075
3076 done
3077 IFS=$as_save_IFS
3078
3079
3080 fi
3081
3082 EGREP="$ac_cv_path_EGREP"
3083 if test -z "$EGREP"; then
3084 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3085 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3086 { (exit 1); exit 1; }; }
3087 fi
3088
3089 else
3090 ac_cv_path_EGREP=$EGREP
3091 fi
3092
3093
3094 fi
3095 fi
3096 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3097 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3098 EGREP="$ac_cv_path_EGREP"
3099
3100
3101 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3102 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3103 if test "${ac_cv_header_stdc+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3112 #include <stdlib.h>
3113 #include <stdarg.h>
3114 #include <string.h>
3115 #include <float.h>
3116
3117 int
3118 main ()
3119 {
3120
3121 ;
3122 return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_header_stdc=yes
3160 else
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 ac_cv_header_stdc=no
3165 fi
3166
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168
3169 if test $ac_cv_header_stdc = yes; then
3170 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3171 cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h. */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3177 #include <string.h>
3178
3179 _ACEOF
3180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3181 $EGREP "memchr" >/dev/null 2>&1; then
3182 :
3183 else
3184 ac_cv_header_stdc=no
3185 fi
3186 rm -f conftest*
3187
3188 fi
3189
3190 if test $ac_cv_header_stdc = yes; then
3191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3192 cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h. */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3198 #include <stdlib.h>
3199
3200 _ACEOF
3201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3202 $EGREP "free" >/dev/null 2>&1; then
3203 :
3204 else
3205 ac_cv_header_stdc=no
3206 fi
3207 rm -f conftest*
3208
3209 fi
3210
3211 if test $ac_cv_header_stdc = yes; then
3212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3213 if test "$cross_compiling" = yes; then
3214 :
3215 else
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3222 #include <ctype.h>
3223 #include <stdlib.h>
3224 #if ((' ' & 0x0FF) == 0x020)
3225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3227 #else
3228 # define ISLOWER(c) \
3229 (('a' <= (c) && (c) <= 'i') \
3230 || ('j' <= (c) && (c) <= 'r') \
3231 || ('s' <= (c) && (c) <= 'z'))
3232 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3233 #endif
3234
3235 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3236 int
3237 main ()
3238 {
3239 int i;
3240 for (i = 0; i < 256; i++)
3241 if (XOR (islower (i), ISLOWER (i))
3242 || toupper (i) != TOUPPER (i))
3243 return 2;
3244 return 0;
3245 }
3246 _ACEOF
3247 rm -f conftest$ac_exeext
3248 if { (ac_try="$ac_link"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_link") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3258 { (case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_try") 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; }; then
3267 :
3268 else
3269 echo "$as_me: program exited with status $ac_status" >&5
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 ( exit $ac_status )
3274 ac_cv_header_stdc=no
3275 fi
3276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3277 fi
3278
3279
3280 fi
3281 fi
3282 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3283 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3284 if test $ac_cv_header_stdc = yes; then
3285
3286 cat >>confdefs.h <<\_ACEOF
3287 #define STDC_HEADERS 1
3288 _ACEOF
3289
3290 fi
3291
3292 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3303 inttypes.h stdint.h unistd.h
3304 do
3305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3307 echo $ECHO_N "checking for $ac_