- release 1.6
[m6w6/mod-domaintree] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_domaintree 1.6.
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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='mod_domaintree'
576 PACKAGE_TARNAME='mod_domaintree'
577 PACKAGE_VERSION='1.6'
578 PACKAGE_STRING='mod_domaintree 1.6'
579 PACKAGE_BUGREPORT='mike@iworks.at'
580
581 ac_unique_file="mod_domaintree.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 CC
656 CFLAGS
657 LDFLAGS
658 CPPFLAGS
659 ac_ct_CC
660 EXEEXT
661 OBJEXT
662 CPP
663 GREP
664 EGREP
665 APXS2
666 LIBOBJS
667 LTLIBOBJS'
668 ac_subst_files=''
669 ac_precious_vars='build_alias
670 host_alias
671 target_alias
672 CC
673 CFLAGS
674 LDFLAGS
675 LIBS
676 CPPFLAGS
677 CPP'
678
679
680 # Initialize some variables set by options.
681 ac_init_help=
682 ac_init_version=false
683 # The variables have the same names as the options, with
684 # dashes changed to underlines.
685 cache_file=/dev/null
686 exec_prefix=NONE
687 no_create=
688 no_recursion=
689 prefix=NONE
690 program_prefix=NONE
691 program_suffix=NONE
692 program_transform_name=s,x,x,
693 silent=
694 site=
695 srcdir=
696 verbose=
697 x_includes=NONE
698 x_libraries=NONE
699
700 # Installation directory options.
701 # These are left unexpanded so users can "make install exec_prefix=/foo"
702 # and all the variables that are supposed to be based on exec_prefix
703 # by default will actually change.
704 # Use braces instead of parens because sh, perl, etc. also accept them.
705 # (The list follows the same order as the GNU Coding Standards.)
706 bindir='${exec_prefix}/bin'
707 sbindir='${exec_prefix}/sbin'
708 libexecdir='${exec_prefix}/libexec'
709 datarootdir='${prefix}/share'
710 datadir='${datarootdir}'
711 sysconfdir='${prefix}/etc'
712 sharedstatedir='${prefix}/com'
713 localstatedir='${prefix}/var'
714 includedir='${prefix}/include'
715 oldincludedir='/usr/include'
716 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
717 infodir='${datarootdir}/info'
718 htmldir='${docdir}'
719 dvidir='${docdir}'
720 pdfdir='${docdir}'
721 psdir='${docdir}'
722 libdir='${exec_prefix}/lib'
723 localedir='${datarootdir}/locale'
724 mandir='${datarootdir}/man'
725
726 ac_prev=
727 ac_dashdash=
728 for ac_option
729 do
730 # If the previous option needs an argument, assign it.
731 if test -n "$ac_prev"; then
732 eval $ac_prev=\$ac_option
733 ac_prev=
734 continue
735 fi
736
737 case $ac_option in
738 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
739 *) ac_optarg=yes ;;
740 esac
741
742 # Accept the important Cygnus configure options, so we can diagnose typos.
743
744 case $ac_dashdash$ac_option in
745 --)
746 ac_dashdash=yes ;;
747
748 -bindir | --bindir | --bindi | --bind | --bin | --bi)
749 ac_prev=bindir ;;
750 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
751 bindir=$ac_optarg ;;
752
753 -build | --build | --buil | --bui | --bu)
754 ac_prev=build_alias ;;
755 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
756 build_alias=$ac_optarg ;;
757
758 -cache-file | --cache-file | --cache-fil | --cache-fi \
759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
760 ac_prev=cache_file ;;
761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
763 cache_file=$ac_optarg ;;
764
765 --config-cache | -C)
766 cache_file=config.cache ;;
767
768 -datadir | --datadir | --datadi | --datad)
769 ac_prev=datadir ;;
770 -datadir=* | --datadir=* | --datadi=* | --datad=*)
771 datadir=$ac_optarg ;;
772
773 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
774 | --dataroo | --dataro | --datar)
775 ac_prev=datarootdir ;;
776 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
777 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
778 datarootdir=$ac_optarg ;;
779
780 -disable-* | --disable-*)
781 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
785 { (exit 1); exit 1; }; }
786 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
787 eval enable_$ac_feature=no ;;
788
789 -docdir | --docdir | --docdi | --doc | --do)
790 ac_prev=docdir ;;
791 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
792 docdir=$ac_optarg ;;
793
794 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
795 ac_prev=dvidir ;;
796 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
797 dvidir=$ac_optarg ;;
798
799 -enable-* | --enable-*)
800 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
804 { (exit 1); exit 1; }; }
805 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
806 eval enable_$ac_feature=\$ac_optarg ;;
807
808 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
809 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
810 | --exec | --exe | --ex)
811 ac_prev=exec_prefix ;;
812 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
813 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
814 | --exec=* | --exe=* | --ex=*)
815 exec_prefix=$ac_optarg ;;
816
817 -gas | --gas | --ga | --g)
818 # Obsolete; use --with-gas.
819 with_gas=yes ;;
820
821 -help | --help | --hel | --he | -h)
822 ac_init_help=long ;;
823 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
824 ac_init_help=recursive ;;
825 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
826 ac_init_help=short ;;
827
828 -host | --host | --hos | --ho)
829 ac_prev=host_alias ;;
830 -host=* | --host=* | --hos=* | --ho=*)
831 host_alias=$ac_optarg ;;
832
833 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
834 ac_prev=htmldir ;;
835 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
836 | --ht=*)
837 htmldir=$ac_optarg ;;
838
839 -includedir | --includedir | --includedi | --included | --include \
840 | --includ | --inclu | --incl | --inc)
841 ac_prev=includedir ;;
842 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
843 | --includ=* | --inclu=* | --incl=* | --inc=*)
844 includedir=$ac_optarg ;;
845
846 -infodir | --infodir | --infodi | --infod | --info | --inf)
847 ac_prev=infodir ;;
848 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
849 infodir=$ac_optarg ;;
850
851 -libdir | --libdir | --libdi | --libd)
852 ac_prev=libdir ;;
853 -libdir=* | --libdir=* | --libdi=* | --libd=*)
854 libdir=$ac_optarg ;;
855
856 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
857 | --libexe | --libex | --libe)
858 ac_prev=libexecdir ;;
859 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
860 | --libexe=* | --libex=* | --libe=*)
861 libexecdir=$ac_optarg ;;
862
863 -localedir | --localedir | --localedi | --localed | --locale)
864 ac_prev=localedir ;;
865 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
866 localedir=$ac_optarg ;;
867
868 -localstatedir | --localstatedir | --localstatedi | --localstated \
869 | --localstate | --localstat | --localsta | --localst | --locals)
870 ac_prev=localstatedir ;;
871 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
872 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
873 localstatedir=$ac_optarg ;;
874
875 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
876 ac_prev=mandir ;;
877 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
878 mandir=$ac_optarg ;;
879
880 -nfp | --nfp | --nf)
881 # Obsolete; use --without-fp.
882 with_fp=no ;;
883
884 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
885 | --no-cr | --no-c | -n)
886 no_create=yes ;;
887
888 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
889 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
890 no_recursion=yes ;;
891
892 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
893 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
894 | --oldin | --oldi | --old | --ol | --o)
895 ac_prev=oldincludedir ;;
896 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
897 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
898 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
899 oldincludedir=$ac_optarg ;;
900
901 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
902 ac_prev=prefix ;;
903 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
904 prefix=$ac_optarg ;;
905
906 -program-prefix | --program-prefix | --program-prefi | --program-pref \
907 | --program-pre | --program-pr | --program-p)
908 ac_prev=program_prefix ;;
909 -program-prefix=* | --program-prefix=* | --program-prefi=* \
910 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
911 program_prefix=$ac_optarg ;;
912
913 -program-suffix | --program-suffix | --program-suffi | --program-suff \
914 | --program-suf | --program-su | --program-s)
915 ac_prev=program_suffix ;;
916 -program-suffix=* | --program-suffix=* | --program-suffi=* \
917 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
918 program_suffix=$ac_optarg ;;
919
920 -program-transform-name | --program-transform-name \
921 | --program-transform-nam | --program-transform-na \
922 | --program-transform-n | --program-transform- \
923 | --program-transform | --program-transfor \
924 | --program-transfo | --program-transf \
925 | --program-trans | --program-tran \
926 | --progr-tra | --program-tr | --program-t)
927 ac_prev=program_transform_name ;;
928 -program-transform-name=* | --program-transform-name=* \
929 | --program-transform-nam=* | --program-transform-na=* \
930 | --program-transform-n=* | --program-transform-=* \
931 | --program-transform=* | --program-transfor=* \
932 | --program-transfo=* | --program-transf=* \
933 | --program-trans=* | --program-tran=* \
934 | --progr-tra=* | --program-tr=* | --program-t=*)
935 program_transform_name=$ac_optarg ;;
936
937 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
938 ac_prev=pdfdir ;;
939 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
940 pdfdir=$ac_optarg ;;
941
942 -psdir | --psdir | --psdi | --psd | --ps)
943 ac_prev=psdir ;;
944 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
945 psdir=$ac_optarg ;;
946
947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
948 | -silent | --silent | --silen | --sile | --sil)
949 silent=yes ;;
950
951 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
952 ac_prev=sbindir ;;
953 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
954 | --sbi=* | --sb=*)
955 sbindir=$ac_optarg ;;
956
957 -sharedstatedir | --sharedstatedir | --sharedstatedi \
958 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
959 | --sharedst | --shareds | --shared | --share | --shar \
960 | --sha | --sh)
961 ac_prev=sharedstatedir ;;
962 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
963 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
964 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
965 | --sha=* | --sh=*)
966 sharedstatedir=$ac_optarg ;;
967
968 -site | --site | --sit)
969 ac_prev=site ;;
970 -site=* | --site=* | --sit=*)
971 site=$ac_optarg ;;
972
973 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
974 ac_prev=srcdir ;;
975 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
976 srcdir=$ac_optarg ;;
977
978 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
979 | --syscon | --sysco | --sysc | --sys | --sy)
980 ac_prev=sysconfdir ;;
981 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
982 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
983 sysconfdir=$ac_optarg ;;
984
985 -target | --target | --targe | --targ | --tar | --ta | --t)
986 ac_prev=target_alias ;;
987 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
988 target_alias=$ac_optarg ;;
989
990 -v | -verbose | --verbose | --verbos | --verbo | --verb)
991 verbose=yes ;;
992
993 -version | --version | --versio | --versi | --vers | -V)
994 ac_init_version=: ;;
995
996 -with-* | --with-*)
997 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid package name: $ac_package" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1003 eval with_$ac_package=\$ac_optarg ;;
1004
1005 -without-* | --without-*)
1006 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid package name: $ac_package" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1012 eval with_$ac_package=no ;;
1013
1014 --x)
1015 # Obsolete; use --with-x.
1016 with_x=yes ;;
1017
1018 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1019 | --x-incl | --x-inc | --x-in | --x-i)
1020 ac_prev=x_includes ;;
1021 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1022 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1023 x_includes=$ac_optarg ;;
1024
1025 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1026 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1027 ac_prev=x_libraries ;;
1028 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1029 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1030 x_libraries=$ac_optarg ;;
1031
1032 -*) { echo "$as_me: error: unrecognized option: $ac_option
1033 Try \`$0 --help' for more information." >&2
1034 { (exit 1); exit 1; }; }
1035 ;;
1036
1037 *=*)
1038 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1042 { (exit 1); exit 1; }; }
1043 eval $ac_envvar=\$ac_optarg
1044 export $ac_envvar ;;
1045
1046 *)
1047 # FIXME: should be removed in autoconf 3.0.
1048 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1049 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1051 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1052 ;;
1053
1054 esac
1055 done
1056
1057 if test -n "$ac_prev"; then
1058 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1059 { echo "$as_me: error: missing argument to $ac_option" >&2
1060 { (exit 1); exit 1; }; }
1061 fi
1062
1063 # Be sure to have absolute directory names.
1064 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1065 datadir sysconfdir sharedstatedir localstatedir includedir \
1066 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1067 libdir localedir mandir
1068 do
1069 eval ac_val=\$$ac_var
1070 case $ac_val in
1071 [\\/$]* | ?:[\\/]* ) continue;;
1072 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1073 esac
1074 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1075 { (exit 1); exit 1; }; }
1076 done
1077
1078 # There might be people who depend on the old broken behavior: `$host'
1079 # used to hold the argument of --host etc.
1080 # FIXME: To remove some day.
1081 build=$build_alias
1082 host=$host_alias
1083 target=$target_alias
1084
1085 # FIXME: To remove some day.
1086 if test "x$host_alias" != x; then
1087 if test "x$build_alias" = x; then
1088 cross_compiling=maybe
1089 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1090 If a cross compiler is detected then cross compile mode will be used." >&2
1091 elif test "x$build_alias" != "x$host_alias"; then
1092 cross_compiling=yes
1093 fi
1094 fi
1095
1096 ac_tool_prefix=
1097 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1098
1099 test "$silent" = yes && exec 6>/dev/null
1100
1101
1102 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1103 ac_ls_di=`ls -di .` &&
1104 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1105 { echo "$as_me: error: Working directory cannot be determined" >&2
1106 { (exit 1); exit 1; }; }
1107 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1108 { echo "$as_me: error: pwd does not report name of working directory" >&2
1109 { (exit 1); exit 1; }; }
1110
1111
1112 # Find the source files, if location was not specified.
1113 if test -z "$srcdir"; then
1114 ac_srcdir_defaulted=yes
1115 # Try the directory containing this script, then the parent directory.
1116 ac_confdir=`$as_dirname -- "$0" ||
1117 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1118 X"$0" : 'X\(//\)[^/]' \| \
1119 X"$0" : 'X\(//\)$' \| \
1120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1121 echo X"$0" |
1122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1123 s//\1/
1124 q
1125 }
1126 /^X\(\/\/\)[^/].*/{
1127 s//\1/
1128 q
1129 }
1130 /^X\(\/\/\)$/{
1131 s//\1/
1132 q
1133 }
1134 /^X\(\/\).*/{
1135 s//\1/
1136 q
1137 }
1138 s/.*/./; q'`
1139 srcdir=$ac_confdir
1140 if test ! -r "$srcdir/$ac_unique_file"; then
1141 srcdir=..
1142 fi
1143 else
1144 ac_srcdir_defaulted=no
1145 fi
1146 if test ! -r "$srcdir/$ac_unique_file"; then
1147 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1148 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1149 { (exit 1); exit 1; }; }
1150 fi
1151 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1152 ac_abs_confdir=`(
1153 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1154 { (exit 1); exit 1; }; }
1155 pwd)`
1156 # When building in place, set srcdir=.
1157 if test "$ac_abs_confdir" = "$ac_pwd"; then
1158 srcdir=.
1159 fi
1160 # Remove unnecessary trailing slashes from srcdir.
1161 # Double slashes in file names in object file debugging info
1162 # mess up M-x gdb in Emacs.
1163 case $srcdir in
1164 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1165 esac
1166 for ac_var in $ac_precious_vars; do
1167 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1168 eval ac_env_${ac_var}_value=\$${ac_var}
1169 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1170 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1171 done
1172
1173 #
1174 # Report the --help message.
1175 #
1176 if test "$ac_init_help" = "long"; then
1177 # Omit some internal or obsolete options to make the list less imposing.
1178 # This message is too long to be a string in the A/UX 3.1 sh.
1179 cat <<_ACEOF
1180 \`configure' configures mod_domaintree 1.6 to adapt to many kinds of systems.
1181
1182 Usage: $0 [OPTION]... [VAR=VALUE]...
1183
1184 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1185 VAR=VALUE. See below for descriptions of some of the useful variables.
1186
1187 Defaults for the options are specified in brackets.
1188
1189 Configuration:
1190 -h, --help display this help and exit
1191 --help=short display options specific to this package
1192 --help=recursive display the short help of all the included packages
1193 -V, --version display version information and exit
1194 -q, --quiet, --silent do not print \`checking...' messages
1195 --cache-file=FILE cache test results in FILE [disabled]
1196 -C, --config-cache alias for \`--cache-file=config.cache'
1197 -n, --no-create do not create output files
1198 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1199
1200 Installation directories:
1201 --prefix=PREFIX install architecture-independent files in PREFIX
1202 [$ac_default_prefix]
1203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1204 [PREFIX]
1205
1206 By default, \`make install' will install all the files in
1207 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1208 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1209 for instance \`--prefix=\$HOME'.
1210
1211 For better control, use the options below.
1212
1213 Fine tuning of the installation directories:
1214 --bindir=DIR user executables [EPREFIX/bin]
1215 --sbindir=DIR system admin executables [EPREFIX/sbin]
1216 --libexecdir=DIR program executables [EPREFIX/libexec]
1217 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1218 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1219 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1220 --libdir=DIR object code libraries [EPREFIX/lib]
1221 --includedir=DIR C header files [PREFIX/include]
1222 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1223 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1224 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1225 --infodir=DIR info documentation [DATAROOTDIR/info]
1226 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1227 --mandir=DIR man documentation [DATAROOTDIR/man]
1228 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_domaintree]
1229 --htmldir=DIR html documentation [DOCDIR]
1230 --dvidir=DIR dvi documentation [DOCDIR]
1231 --pdfdir=DIR pdf documentation [DOCDIR]
1232 --psdir=DIR ps documentation [DOCDIR]
1233 _ACEOF
1234
1235 cat <<\_ACEOF
1236 _ACEOF
1237 fi
1238
1239 if test -n "$ac_init_help"; then
1240 case $ac_init_help in
1241 short | recursive ) echo "Configuration of mod_domaintree 1.6:";;
1242 esac
1243 cat <<\_ACEOF
1244
1245 Optional Packages:
1246 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1247 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1248 --with-apxs2 where the apxs2 tool is located
1249
1250 Some influential environment variables:
1251 CC C compiler command
1252 CFLAGS C compiler flags
1253 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1254 nonstandard directory <lib dir>
1255 LIBS libraries to pass to the linker, e.g. -l<library>
1256 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1257 you have headers in a nonstandard directory <include dir>
1258 CPP C preprocessor
1259
1260 Use these variables to override the choices made by `configure' or to help
1261 it to find libraries and programs with nonstandard names/locations.
1262
1263 Report bugs to <mike@iworks.at>.
1264 _ACEOF
1265 ac_status=$?
1266 fi
1267
1268 if test "$ac_init_help" = "recursive"; then
1269 # If there are subdirs, report their specific --help.
1270 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1271 test -d "$ac_dir" || continue
1272 ac_builddir=.
1273
1274 case "$ac_dir" in
1275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1276 *)
1277 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1278 # A ".." for each directory in $ac_dir_suffix.
1279 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1280 case $ac_top_builddir_sub in
1281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1283 esac ;;
1284 esac
1285 ac_abs_top_builddir=$ac_pwd
1286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1287 # for backward compatibility:
1288 ac_top_builddir=$ac_top_build_prefix
1289
1290 case $srcdir in
1291 .) # We are building in place.
1292 ac_srcdir=.
1293 ac_top_srcdir=$ac_top_builddir_sub
1294 ac_abs_top_srcdir=$ac_pwd ;;
1295 [\\/]* | ?:[\\/]* ) # Absolute name.
1296 ac_srcdir=$srcdir$ac_dir_suffix;
1297 ac_top_srcdir=$srcdir
1298 ac_abs_top_srcdir=$srcdir ;;
1299 *) # Relative name.
1300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1301 ac_top_srcdir=$ac_top_build_prefix$srcdir
1302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1303 esac
1304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1305
1306 cd "$ac_dir" || { ac_status=$?; continue; }
1307 # Check for guested configure.
1308 if test -f "$ac_srcdir/configure.gnu"; then
1309 echo &&
1310 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1311 elif test -f "$ac_srcdir/configure"; then
1312 echo &&
1313 $SHELL "$ac_srcdir/configure" --help=recursive
1314 else
1315 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1316 fi || ac_status=$?
1317 cd "$ac_pwd" || { ac_status=$?; break; }
1318 done
1319 fi
1320
1321 test -n "$ac_init_help" && exit $ac_status
1322 if $ac_init_version; then
1323 cat <<\_ACEOF
1324 mod_domaintree configure 1.6
1325 generated by GNU Autoconf 2.61
1326
1327 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1328 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1329 This configure script is free software; the Free Software Foundation
1330 gives unlimited permission to copy, distribute and modify it.
1331 _ACEOF
1332 exit
1333 fi
1334 cat >config.log <<_ACEOF
1335 This file contains any messages produced by compilers while
1336 running configure, to aid debugging if configure makes a mistake.
1337
1338 It was created by mod_domaintree $as_me 1.6, which was
1339 generated by GNU Autoconf 2.61. Invocation command line was
1340
1341 $ $0 $@
1342
1343 _ACEOF
1344 exec 5>>config.log
1345 {
1346 cat <<_ASUNAME
1347 ## --------- ##
1348 ## Platform. ##
1349 ## --------- ##
1350
1351 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1352 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1353 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1354 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1355 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1356
1357 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1358 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1359
1360 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1361 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1362 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1363 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1364 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1365 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1366 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1367
1368 _ASUNAME
1369
1370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371 for as_dir in $PATH
1372 do
1373 IFS=$as_save_IFS
1374 test -z "$as_dir" && as_dir=.
1375 echo "PATH: $as_dir"
1376 done
1377 IFS=$as_save_IFS
1378
1379 } >&5
1380
1381 cat >&5 <<_ACEOF
1382
1383
1384 ## ----------- ##
1385 ## Core tests. ##
1386 ## ----------- ##
1387
1388 _ACEOF
1389
1390
1391 # Keep a trace of the command line.
1392 # Strip out --no-create and --no-recursion so they do not pile up.
1393 # Strip out --silent because we don't want to record it for future runs.
1394 # Also quote any args containing shell meta-characters.
1395 # Make two passes to allow for proper duplicate-argument suppression.
1396 ac_configure_args=
1397 ac_configure_args0=
1398 ac_configure_args1=
1399 ac_must_keep_next=false
1400 for ac_pass in 1 2
1401 do
1402 for ac_arg
1403 do
1404 case $ac_arg in
1405 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1407 | -silent | --silent | --silen | --sile | --sil)
1408 continue ;;
1409 *\'*)
1410 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1411 esac
1412 case $ac_pass in
1413 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1414 2)
1415 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1416 if test $ac_must_keep_next = true; then
1417 ac_must_keep_next=false # Got value, back to normal.
1418 else
1419 case $ac_arg in
1420 *=* | --config-cache | -C | -disable-* | --disable-* \
1421 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1422 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1423 | -with-* | --with-* | -without-* | --without-* | --x)
1424 case "$ac_configure_args0 " in
1425 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1426 esac
1427 ;;
1428 -* ) ac_must_keep_next=true ;;
1429 esac
1430 fi
1431 ac_configure_args="$ac_configure_args '$ac_arg'"
1432 ;;
1433 esac
1434 done
1435 done
1436 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1437 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1438
1439 # When interrupted or exit'd, cleanup temporary files, and complete
1440 # config.log. We remove comments because anyway the quotes in there
1441 # would cause problems or look ugly.
1442 # WARNING: Use '\'' to represent an apostrophe within the trap.
1443 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1444 trap 'exit_status=$?
1445 # Save into config.log some information that might help in debugging.
1446 {
1447 echo
1448
1449 cat <<\_ASBOX
1450 ## ---------------- ##
1451 ## Cache variables. ##
1452 ## ---------------- ##
1453 _ASBOX
1454 echo
1455 # The following way of writing the cache mishandles newlines in values,
1456 (
1457 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1458 eval ac_val=\$$ac_var
1459 case $ac_val in #(
1460 *${as_nl}*)
1461 case $ac_var in #(
1462 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1463 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1464 esac
1465 case $ac_var in #(
1466 _ | IFS | as_nl) ;; #(
1467 *) $as_unset $ac_var ;;
1468 esac ;;
1469 esac
1470 done
1471 (set) 2>&1 |
1472 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1473 *${as_nl}ac_space=\ *)
1474 sed -n \
1475 "s/'\''/'\''\\\\'\'''\''/g;
1476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1477 ;; #(
1478 *)
1479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1480 ;;
1481 esac |
1482 sort
1483 )
1484 echo
1485
1486 cat <<\_ASBOX
1487 ## ----------------- ##
1488 ## Output variables. ##
1489 ## ----------------- ##
1490 _ASBOX
1491 echo
1492 for ac_var in $ac_subst_vars
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
1502 if test -n "$ac_subst_files"; then
1503 cat <<\_ASBOX
1504 ## ------------------- ##
1505 ## File substitutions. ##
1506 ## ------------------- ##
1507 _ASBOX
1508 echo
1509 for ac_var in $ac_subst_files
1510 do
1511 eval ac_val=\$$ac_var
1512 case $ac_val in
1513 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1514 esac
1515 echo "$ac_var='\''$ac_val'\''"
1516 done | sort
1517 echo
1518 fi
1519
1520 if test -s confdefs.h; then
1521 cat <<\_ASBOX
1522 ## ----------- ##
1523 ## confdefs.h. ##
1524 ## ----------- ##
1525 _ASBOX
1526 echo
1527 cat confdefs.h
1528 echo
1529 fi
1530 test "$ac_signal" != 0 &&
1531 echo "$as_me: caught signal $ac_signal"
1532 echo "$as_me: exit $exit_status"
1533 } >&5
1534 rm -f core *.core core.conftest.* &&
1535 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1536 exit $exit_status
1537 ' 0
1538 for ac_signal in 1 2 13 15; do
1539 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1540 done
1541 ac_signal=0
1542
1543 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1544 rm -f -r conftest* confdefs.h
1545
1546 # Predefined preprocessor variables.
1547
1548 cat >>confdefs.h <<_ACEOF
1549 #define PACKAGE_NAME "$PACKAGE_NAME"
1550 _ACEOF
1551
1552
1553 cat >>confdefs.h <<_ACEOF
1554 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1555 _ACEOF
1556
1557
1558 cat >>confdefs.h <<_ACEOF
1559 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1560 _ACEOF
1561
1562
1563 cat >>confdefs.h <<_ACEOF
1564 #define PACKAGE_STRING "$PACKAGE_STRING"
1565 _ACEOF
1566
1567
1568 cat >>confdefs.h <<_ACEOF
1569 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1570 _ACEOF
1571
1572
1573 # Let the site file select an alternate cache file if it wants to.
1574 # Prefer explicitly selected file to automatically selected ones.
1575 if test -n "$CONFIG_SITE"; then
1576 set x "$CONFIG_SITE"
1577 elif test "x$prefix" != xNONE; then
1578 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1579 else
1580 set x "$ac_default_prefix/share/config.site" \
1581 "$ac_default_prefix/etc/config.site"
1582 fi
1583 shift
1584 for ac_site_file
1585 do
1586 if test -r "$ac_site_file"; then
1587 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1588 echo "$as_me: loading site script $ac_site_file" >&6;}
1589 sed 's/^/| /' "$ac_site_file" >&5
1590 . "$ac_site_file"
1591 fi
1592 done
1593
1594 if test -r "$cache_file"; then
1595 # Some versions of bash will fail to source /dev/null (special
1596 # files actually), so we avoid doing that.
1597 if test -f "$cache_file"; then
1598 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1599 echo "$as_me: loading cache $cache_file" >&6;}
1600 case $cache_file in
1601 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1602 *) . "./$cache_file";;
1603 esac
1604 fi
1605 else
1606 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1607 echo "$as_me: creating cache $cache_file" >&6;}
1608 >$cache_file
1609 fi
1610
1611 # Check that the precious variables saved in the cache have kept the same
1612 # value.
1613 ac_cache_corrupted=false
1614 for ac_var in $ac_precious_vars; do
1615 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1616 eval ac_new_set=\$ac_env_${ac_var}_set
1617 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1618 eval ac_new_val=\$ac_env_${ac_var}_value
1619 case $ac_old_set,$ac_new_set in
1620 set,)
1621 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1622 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1623 ac_cache_corrupted=: ;;
1624 ,set)
1625 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1626 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1627 ac_cache_corrupted=: ;;
1628 ,);;
1629 *)
1630 if test "x$ac_old_val" != "x$ac_new_val"; then
1631 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1632 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1633 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1634 echo "$as_me: former value: $ac_old_val" >&2;}
1635 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1636 echo "$as_me: current value: $ac_new_val" >&2;}
1637 ac_cache_corrupted=:
1638 fi;;
1639 esac
1640 # Pass precious variables to config.status.
1641 if test "$ac_new_set" = set; then
1642 case $ac_new_val in
1643 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1644 *) ac_arg=$ac_var=$ac_new_val ;;
1645 esac
1646 case " $ac_configure_args " in
1647 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1648 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1649 esac
1650 fi
1651 done
1652 if $ac_cache_corrupted; then
1653 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1654 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1655 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1656 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1657 { (exit 1); exit 1; }; }
1658 fi
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684 ac_ext=c
1685 ac_cpp='$CPP $CPPFLAGS'
1686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1689
1690
1691
1692
1693 ac_config_headers="$ac_config_headers config.h"
1694
1695
1696 ac_ext=c
1697 ac_cpp='$CPP $CPPFLAGS'
1698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1701 if test -n "$ac_tool_prefix"; then
1702 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1703 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1706 if test "${ac_cv_prog_CC+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709 if test -n "$CC"; then
1710 ac_cv_prog_CC="$CC" # Let the user override the test.
1711 else
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1719 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 break 2
1722 fi
1723 done
1724 done
1725 IFS=$as_save_IFS
1726
1727 fi
1728 fi
1729 CC=$ac_cv_prog_CC
1730 if test -n "$CC"; then
1731 { echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6; }
1733 else
1734 { echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6; }
1736 fi
1737
1738
1739 fi
1740 if test -z "$ac_cv_prog_CC"; then
1741 ac_ct_CC=$CC
1742 # Extract the first word of "gcc", so it can be a program name with args.
1743 set dummy gcc; ac_word=$2
1744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1746 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749 if test -n "$ac_ct_CC"; then
1750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1759 ac_cv_prog_ac_ct_CC="gcc"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761 break 2
1762 fi
1763 done
1764 done
1765 IFS=$as_save_IFS
1766
1767 fi
1768 fi
1769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1770 if test -n "$ac_ct_CC"; then
1771 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1772 echo "${ECHO_T}$ac_ct_CC" >&6; }
1773 else
1774 { echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6; }
1776 fi
1777
1778 if test "x$ac_ct_CC" = x; then
1779 CC=""
1780 else
1781 case $cross_compiling:$ac_tool_warned in
1782 yes:)
1783 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1784 whose name does not start with the host triplet. If you think this
1785 configuration is useful to you, please write to autoconf@gnu.org." >&5
1786 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1787 whose name does not start with the host triplet. If you think this
1788 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1789 ac_tool_warned=yes ;;
1790 esac
1791 CC=$ac_ct_CC
1792 fi
1793 else
1794 CC="$ac_cv_prog_CC"
1795 fi
1796
1797 if test -z "$CC"; then
1798 if test -n "$ac_tool_prefix"; then
1799 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1800 set dummy ${ac_tool_prefix}cc; ac_word=$2
1801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1803 if test "${ac_cv_prog_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806 if test -n "$CC"; then
1807 ac_cv_prog_CC="$CC" # Let the user override the test.
1808 else
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 for as_dir in $PATH
1811 do
1812 IFS=$as_save_IFS
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1816 ac_cv_prog_CC="${ac_tool_prefix}cc"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 break 2
1819 fi
1820 done
1821 done
1822 IFS=$as_save_IFS
1823
1824 fi
1825 fi
1826 CC=$ac_cv_prog_CC
1827 if test -n "$CC"; then
1828 { echo "$as_me:$LINENO: result: $CC" >&5
1829 echo "${ECHO_T}$CC" >&6; }
1830 else
1831 { echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6; }
1833 fi
1834
1835
1836 fi
1837 fi
1838 if test -z "$CC"; then
1839 # Extract the first word of "cc", so it can be a program name with args.
1840 set dummy cc; ac_word=$2
1841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1843 if test "${ac_cv_prog_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846 if test -n "$CC"; then
1847 ac_cv_prog_CC="$CC" # Let the user override the test.
1848 else
1849 ac_prog_rejected=no
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1852 do
1853 IFS=$as_save_IFS
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1857 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1858 ac_prog_rejected=yes
1859 continue
1860 fi
1861 ac_cv_prog_CC="cc"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 break 2
1864 fi
1865 done
1866 done
1867 IFS=$as_save_IFS
1868
1869 if test $ac_prog_rejected = yes; then
1870 # We found a bogon in the path, so make sure we never use it.
1871 set dummy $ac_cv_prog_CC
1872 shift
1873 if test $# != 0; then
1874 # We chose a different compiler from the bogus one.
1875 # However, it has the same basename, so the bogon will be chosen
1876 # first if we set CC to just the basename; use the full file name.
1877 shift
1878 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1879 fi
1880 fi
1881 fi
1882 fi
1883 CC=$ac_cv_prog_CC
1884 if test -n "$CC"; then
1885 { echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6; }
1887 else
1888 { echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6; }
1890 fi
1891
1892
1893 fi
1894 if test -z "$CC"; then
1895 if test -n "$ac_tool_prefix"; then
1896 for ac_prog in cl.exe
1897 do
1898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1902 if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC="$CC" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911 IFS=$as_save_IFS
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1915 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 break 2
1918 fi
1919 done
1920 done
1921 IFS=$as_save_IFS
1922
1923 fi
1924 fi
1925 CC=$ac_cv_prog_CC
1926 if test -n "$CC"; then
1927 { echo "$as_me:$LINENO: result: $CC" >&5
1928 echo "${ECHO_T}$CC" >&6; }
1929 else
1930 { echo "$as_me:$LINENO: result: no" >&5
1931 echo "${ECHO_T}no" >&6; }
1932 fi
1933
1934
1935 test -n "$CC" && break
1936 done
1937 fi
1938 if test -z "$CC"; then
1939 ac_ct_CC=$CC
1940 for ac_prog in cl.exe
1941 do
1942 # Extract the first word of "$ac_prog", so it can be a program name with args.
1943 set dummy $ac_prog; ac_word=$2
1944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1946 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 if test -n "$ac_ct_CC"; then
1950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1959 ac_cv_prog_ac_ct_CC="$ac_prog"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1962 fi
1963 done
1964 done
1965 IFS=$as_save_IFS
1966
1967 fi
1968 fi
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6; }
1973 else
1974 { echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6; }
1976 fi
1977
1978
1979 test -n "$ac_ct_CC" && break
1980 done
1981
1982 if test "x$ac_ct_CC" = x; then
1983 CC=""
1984 else
1985 case $cross_compiling:$ac_tool_warned in
1986 yes:)
1987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1988 whose name does not start with the host triplet. If you think this
1989 configuration is useful to you, please write to autoconf@gnu.org." >&5
1990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1991 whose name does not start with the host triplet. If you think this
1992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1993 ac_tool_warned=yes ;;
1994 esac
1995 CC=$ac_ct_CC
1996 fi
1997 fi
1998
1999 fi
2000
2001
2002 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2003 See \`config.log' for more details." >&5
2004 echo "$as_me: error: no acceptable C compiler found in \$PATH
2005 See \`config.log' for more details." >&2;}
2006 { (exit 1); exit 1; }; }
2007
2008 # Provide some information about the compiler.
2009 echo "$as_me:$LINENO: checking for C compiler version" >&5
2010 ac_compiler=`set X $ac_compile; echo $2`
2011 { (ac_try="$ac_compiler --version >&5"
2012 case "(($ac_try" in
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2015 esac
2016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2017 (eval "$ac_compiler --version >&5") 2>&5
2018 ac_status=$?
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }
2021 { (ac_try="$ac_compiler -v >&5"
2022 case "(($ac_try" in
2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024 *) ac_try_echo=$ac_try;;
2025 esac
2026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2027 (eval "$ac_compiler -v >&5") 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }
2031 { (ac_try="$ac_compiler -V >&5"
2032 case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035 esac
2036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2037 (eval "$ac_compiler -V >&5") 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }
2041
2042 cat >conftest.$ac_ext <<_ACEOF
2043 /* confdefs.h. */
2044 _ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h. */
2048
2049 int
2050 main ()
2051 {
2052
2053 ;
2054 return 0;
2055 }
2056 _ACEOF
2057 ac_clean_files_save=$ac_clean_files
2058 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2059 # Try to create an executable without -o first, disregard a.out.
2060 # It will help us diagnose broken compilers, and finding out an intuition
2061 # of exeext.
2062 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2063 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2064 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2065 #
2066 # List of possible output files, starting from the most likely.
2067 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2068 # only as a last resort. b.out is created by i960 compilers.
2069 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2070 #
2071 # The IRIX 6 linker writes into existing files which may not be
2072 # executable, retaining their permissions. Remove them first so a
2073 # subsequent execution test works.
2074 ac_rmfiles=
2075 for ac_file in $ac_files
2076 do
2077 case $ac_file in
2078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2079 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2080 esac
2081 done
2082 rm -f $ac_rmfiles
2083
2084 if { (ac_try="$ac_link_default"
2085 case "(($ac_try" in
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2088 esac
2089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2090 (eval "$ac_link_default") 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; then
2094 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2095 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2096 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2097 # so that the user can short-circuit this test for compilers unknown to
2098 # Autoconf.
2099 for ac_file in $ac_files ''
2100 do
2101 test -f "$ac_file" || continue
2102 case $ac_file in
2103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2104 ;;
2105 [ab].out )
2106 # We found the default executable, but exeext='' is most
2107 # certainly right.
2108 break;;
2109 *.* )
2110 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2111 then :; else
2112 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2113 fi
2114 # We set ac_cv_exeext here because the later test for it is not
2115 # safe: cross compilers may not add the suffix if given an `-o'
2116 # argument, so we may need to know it at that point already.
2117 # Even if this section looks crufty: it has the advantage of
2118 # actually working.
2119 break;;
2120 * )
2121 break;;
2122 esac
2123 done
2124 test "$ac_cv_exeext" = no && ac_cv_exeext=
2125
2126 else
2127 ac_file=''
2128 fi
2129
2130 { echo "$as_me:$LINENO: result: $ac_file" >&5
2131 echo "${ECHO_T}$ac_file" >&6; }
2132 if test -z "$ac_file"; then
2133 echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: C compiler cannot create executables
2139 See \`config.log' for more details." >&2;}
2140 { (exit 77); exit 77; }; }
2141 fi
2142
2143 ac_exeext=$ac_cv_exeext
2144
2145 # Check that the compiler produces executables we can run. If not, either
2146 # the compiler is broken, or we cross compile.
2147 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150 # If not cross compiling, check that we can run a simple program.
2151 if test "$cross_compiling" != yes; then
2152 if { ac_try='./$ac_file'
2153 { (case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156 esac
2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158 (eval "$ac_try") 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2162 cross_compiling=no
2163 else
2164 if test "$cross_compiling" = maybe; then
2165 cross_compiling=yes
2166 else
2167 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2168 If you meant to cross compile, use \`--host'.
2169 See \`config.log' for more details." >&5
2170 echo "$as_me: error: cannot run C compiled programs.
2171 If you meant to cross compile, use \`--host'.
2172 See \`config.log' for more details." >&2;}
2173 { (exit 1); exit 1; }; }
2174 fi
2175 fi
2176 fi
2177 { echo "$as_me:$LINENO: result: yes" >&5
2178 echo "${ECHO_T}yes" >&6; }
2179
2180 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2181 ac_clean_files=$ac_clean_files_save
2182 # Check that the compiler produces executables we can run. If not, either
2183 # the compiler is broken, or we cross compile.
2184 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2185 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2186 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2187 echo "${ECHO_T}$cross_compiling" >&6; }
2188
2189 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2190 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2191 if { (ac_try="$ac_link"
2192 case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195 esac
2196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2197 (eval "$ac_link") 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; then
2201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2202 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2203 # work properly (i.e., refer to `conftest.exe'), while it won't with
2204 # `rm'.
2205 for ac_file in conftest.exe conftest conftest.*; do
2206 test -f "$ac_file" || continue
2207 case $ac_file in
2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2209 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210 break;;
2211 * ) break;;
2212 esac
2213 done
2214 else
2215 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2218 See \`config.log' for more details." >&2;}
2219 { (exit 1); exit 1; }; }
2220 fi
2221
2222 rm -f conftest$ac_cv_exeext
2223 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2224 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2225
2226 rm -f conftest.$ac_ext
2227 EXEEXT=$ac_cv_exeext
2228 ac_exeext=$EXEEXT
2229 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2230 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2231 if test "${ac_cv_objext+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234 cat >conftest.$ac_ext <<_ACEOF
2235 /* confdefs.h. */
2236 _ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>conftest.$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2240
2241 int
2242 main ()
2243 {
2244
2245 ;
2246 return 0;
2247 }
2248 _ACEOF
2249 rm -f conftest.o conftest.obj
2250 if { (ac_try="$ac_compile"
2251 case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2254 esac
2255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2256 (eval "$ac_compile") 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; then
2260 for ac_file in conftest.o conftest.obj conftest.*; do
2261 test -f "$ac_file" || continue;
2262 case $ac_file in
2263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2264 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2265 break;;
2266 esac
2267 done
2268 else
2269 echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2271
2272 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2275 See \`config.log' for more details." >&2;}
2276 { (exit 1); exit 1; }; }
2277 fi
2278
2279 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2280 fi
2281 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2282 echo "${ECHO_T}$ac_cv_objext" >&6; }
2283 OBJEXT=$ac_cv_objext
2284 ac_objext=$OBJEXT
2285 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2286 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2287 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h. */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2296
2297 int
2298 main ()
2299 {
2300 #ifndef __GNUC__
2301 choke me
2302 #endif
2303
2304 ;
2305 return 0;
2306 }
2307 _ACEOF
2308 rm -f conftest.$ac_objext
2309 if { (ac_try="$ac_compile"
2310 case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2313 esac
2314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2315 (eval "$ac_compile") 2>conftest.er1
2316 ac_status=$?
2317 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } && {
2322 test -z "$ac_c_werror_flag" ||
2323 test ! -s conftest.err
2324 } && test -s conftest.$ac_objext; then
2325 ac_compiler_gnu=yes
2326 else
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 ac_compiler_gnu=no
2331 fi
2332
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2335
2336 fi
2337 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2339 GCC=`test $ac_compiler_gnu = yes && echo yes`
2340 ac_test_CFLAGS=${CFLAGS+set}
2341 ac_save_CFLAGS=$CFLAGS
2342 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2343 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2344 if test "${ac_cv_prog_cc_g+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347 ac_save_c_werror_flag=$ac_c_werror_flag
2348 ac_c_werror_flag=yes
2349 ac_cv_prog_cc_g=no
2350 CFLAGS="-g"
2351 cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h. */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2357
2358 int
2359 main ()
2360 {
2361
2362 ;
2363 return 0;
2364 }
2365 _ACEOF
2366 rm -f conftest.$ac_objext
2367 if { (ac_try="$ac_compile"
2368 case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371 esac
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>conftest.er1
2374 ac_status=$?
2375 grep -v '^ *+' conftest.er1 >conftest.err
2376 rm -f conftest.er1
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } && {
2380 test -z "$ac_c_werror_flag" ||
2381 test ! -s conftest.err
2382 } && test -s conftest.$ac_objext; then
2383 ac_cv_prog_cc_g=yes
2384 else
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 CFLAGS=""
2389 cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h. */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2395
2396 int
2397 main ()
2398 {
2399
2400 ;
2401 return 0;
2402 }
2403 _ACEOF
2404 rm -f conftest.$ac_objext
2405 if { (ac_try="$ac_compile"
2406 case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_compile") 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } && {
2418 test -z "$ac_c_werror_flag" ||
2419 test ! -s conftest.err
2420 } && test -s conftest.$ac_objext; then
2421 :
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 ac_c_werror_flag=$ac_save_c_werror_flag
2427 CFLAGS="-g"
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2434
2435 int
2436 main ()
2437 {
2438
2439 ;
2440 return 0;
2441 }
2442 _ACEOF
2443 rm -f conftest.$ac_objext
2444 if { (ac_try="$ac_compile"
2445 case "(($ac_try" in
2446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447 *) ac_try_echo=$ac_try;;
2448 esac
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450 (eval "$ac_compile") 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } && {
2457 test -z "$ac_c_werror_flag" ||
2458 test ! -s conftest.err
2459 } && test -s conftest.$ac_objext; then
2460 ac_cv_prog_cc_g=yes
2461 else
2462 echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2464
2465
2466 fi
2467
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 fi
2470
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2472 fi
2473
2474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 ac_c_werror_flag=$ac_save_c_werror_flag
2476 fi
2477 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2478 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2479 if test "$ac_test_CFLAGS" = set; then
2480 CFLAGS=$ac_save_CFLAGS
2481 elif test $ac_cv_prog_cc_g = yes; then
2482 if test "$GCC" = yes; then
2483 CFLAGS="-g -O2"
2484 else
2485 CFLAGS="-g"
2486 fi
2487 else
2488 if test "$GCC" = yes; then
2489 CFLAGS="-O2"
2490 else
2491 CFLAGS=
2492 fi
2493 fi
2494 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2495 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2496 if test "${ac_cv_prog_cc_c89+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499 ac_cv_prog_cc_c89=no
2500 ac_save_CC=$CC
2501 cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h. */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2507 #include <stdarg.h>
2508 #include <stdio.h>
2509 #include <sys/types.h>
2510 #include <sys/stat.h>
2511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2512 struct buf { int x; };
2513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2514 static char *e (p, i)
2515 char **p;
2516 int i;
2517 {
2518 return p[i];
2519 }
2520 static char *f (char * (*g) (char **, int), char **p, ...)
2521 {
2522 char *s;
2523 va_list v;
2524 va_start (v,p);
2525 s = g (p, va_arg (v,int));
2526 va_end (v);
2527 return s;
2528 }
2529
2530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2531 function prototypes and stuff, but not '\xHH' hex character constants.
2532 These don't provoke an error unfortunately, instead are silently treated
2533 as 'x'. The following induces an error, until -std is added to get
2534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2535 array size at least. It's necessary to write '\x00'==0 to get something
2536 that's true only with -std. */
2537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2538
2539 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2540 inside strings and character constants. */
2541 #define FOO(x) 'x'
2542 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2543
2544 int test (int i, double x);
2545 struct s1 {int (*f) (int a);};
2546 struct s2 {int (*f) (double a);};
2547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2548 int argc;
2549 char **argv;
2550 int
2551 main ()
2552 {
2553 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2554 ;
2555 return 0;
2556 }
2557 _ACEOF
2558 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2559 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2560 do
2561 CC="$ac_save_CC $ac_arg"
2562 rm -f conftest.$ac_objext
2563 if { (ac_try="$ac_compile"
2564 case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>conftest.er1
2570 ac_status=$?
2571 grep -v '^ *+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } && {
2576 test -z "$ac_c_werror_flag" ||
2577 test ! -s conftest.err
2578 } && test -s conftest.$ac_objext; then
2579 ac_cv_prog_cc_c89=$ac_arg
2580 else
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584
2585 fi
2586
2587 rm -f core conftest.err conftest.$ac_objext
2588 test "x$ac_cv_prog_cc_c89" != "xno" && break
2589 done
2590 rm -f conftest.$ac_ext
2591 CC=$ac_save_CC
2592
2593 fi
2594 # AC_CACHE_VAL
2595 case "x$ac_cv_prog_cc_c89" in
2596 x)
2597 { echo "$as_me:$LINENO: result: none needed" >&5
2598 echo "${ECHO_T}none needed" >&6; } ;;
2599 xno)
2600 { echo "$as_me:$LINENO: result: unsupported" >&5
2601 echo "${ECHO_T}unsupported" >&6; } ;;
2602 *)
2603 CC="$CC $ac_cv_prog_cc_c89"
2604 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2605 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2606 esac
2607
2608
2609 ac_ext=c
2610 ac_cpp='$CPP $CPPFLAGS'
2611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614
2615
2616 ac_ext=c
2617 ac_cpp='$CPP $CPPFLAGS'
2618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2622 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2623 # On Suns, sometimes $CPP names a directory.
2624 if test -n "$CPP" && test -d "$CPP"; then
2625 CPP=
2626 fi
2627 if test -z "$CPP"; then
2628 if test "${ac_cv_prog_CPP+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 # Double quotes because CPP needs to be expanded
2632 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2633 do
2634 ac_preproc_ok=false
2635 for ac_c_preproc_warn_flag in '' yes
2636 do
2637 # Use a header file that comes with gcc, so configuring glibc
2638 # with a fresh cross-compiler works.
2639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2640 # <limits.h> exists even on freestanding compilers.
2641 # On the NeXT, cc -E runs the code through the compiler's parser,
2642 # not just through cpp. "Syntax error" is here to catch this case.
2643 cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h. */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2649 #ifdef __STDC__
2650 # include <limits.h>
2651 #else
2652 # include <assert.h>
2653 #endif
2654 Syntax error
2655 _ACEOF
2656 if { (ac_try="$ac_cpp conftest.$ac_ext"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } >/dev/null && {
2669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2670 test ! -s conftest.err
2671 }; then
2672 :
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 # Broken: fails on valid input.
2678 continue
2679 fi
2680
2681 rm -f conftest.err conftest.$ac_ext
2682
2683 # OK, works on sane cases. Now check whether nonexistent headers
2684 # can be detected and how.
2685 cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h. */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2691 #include <ac_nonexistent.h>
2692 _ACEOF
2693 if { (ac_try="$ac_cpp conftest.$ac_ext"
2694 case "(($ac_try" in
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2697 esac
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } >/dev/null && {
2706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2707 test ! -s conftest.err
2708 }; then
2709 # Broken: success on invalid input.
2710 continue
2711 else
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715 # Passes both tests.
2716 ac_preproc_ok=:
2717 break
2718 fi
2719
2720 rm -f conftest.err conftest.$ac_ext
2721
2722 done
2723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2724 rm -f conftest.err conftest.$ac_ext
2725 if $ac_preproc_ok; then
2726 break
2727 fi
2728
2729 done
2730 ac_cv_prog_CPP=$CPP
2731
2732 fi
2733 CPP=$ac_cv_prog_CPP
2734 else
2735 ac_cv_prog_CPP=$CPP
2736 fi
2737 { echo "$as_me:$LINENO: result: $CPP" >&5
2738 echo "${ECHO_T}$CPP" >&6; }
2739 ac_preproc_ok=false
2740 for ac_c_preproc_warn_flag in '' yes
2741 do
2742 # Use a header file that comes with gcc, so configuring glibc
2743 # with a fresh cross-compiler works.
2744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2745 # <limits.h> exists even on freestanding compilers.
2746 # On the NeXT, cc -E runs the code through the compiler's parser,
2747 # not just through cpp. "Syntax error" is here to catch this case.
2748 cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h. */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2754 #ifdef __STDC__
2755 # include <limits.h>
2756 #else
2757 # include <assert.h>
2758 #endif
2759 Syntax error
2760 _ACEOF
2761 if { (ac_try="$ac_cpp conftest.$ac_ext"
2762 case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765 esac
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } >/dev/null && {
2774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2775 test ! -s conftest.err
2776 }; then
2777 :
2778 else
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 # Broken: fails on valid input.
2783 continue
2784 fi
2785
2786 rm -f conftest.err conftest.$ac_ext
2787
2788 # OK, works on sane cases. Now check whether nonexistent headers
2789 # can be detected and how.
2790 cat >conftest.$ac_ext <<_ACEOF
2791 /* confdefs.h. */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2796 #include <ac_nonexistent.h>
2797 _ACEOF
2798 if { (ac_try="$ac_cpp conftest.$ac_ext"
2799 case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802 esac
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } >/dev/null && {
2811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2812 test ! -s conftest.err
2813 }; then
2814 # Broken: success on invalid input.
2815 continue
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 # Passes both tests.
2821 ac_preproc_ok=:
2822 break
2823 fi
2824
2825 rm -f conftest.err conftest.$ac_ext
2826
2827 done
2828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2829 rm -f conftest.err conftest.$ac_ext
2830 if $ac_preproc_ok; then
2831 :
2832 else
2833 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2834 See \`config.log' for more details." >&5
2835 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2836 See \`config.log' for more details." >&2;}
2837 { (exit 1); exit 1; }; }
2838 fi
2839
2840 ac_ext=c
2841 ac_cpp='$CPP $CPPFLAGS'
2842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845
2846
2847 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2848 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2849 if test "${ac_cv_path_GREP+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852 # Extract the first word of "grep ggrep" to use in msg output
2853 if test -z "$GREP"; then
2854 set dummy grep ggrep; ac_prog_name=$2
2855 if test "${ac_cv_path_GREP+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 ac_path_GREP_found=false
2859 # Loop through the user's path and test for each of PROGNAME-LIST
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2862 do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_prog in grep ggrep; do
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2868 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2869 # Check for GNU ac_path_GREP and select it if it is found.
2870 # Check for GNU $ac_path_GREP
2871 case `"$ac_path_GREP" --version 2>&1` in
2872 *GNU*)
2873 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2874 *)
2875 ac_count=0
2876 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2877 while :
2878 do
2879 cat "conftest.in" "conftest.in" >"conftest.tmp"
2880 mv "conftest.tmp" "conftest.in"
2881 cp "conftest.in" "conftest.nl"
2882 echo 'GREP' >> "conftest.nl"
2883 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2885 ac_count=`expr $ac_count + 1`
2886 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2887 # Best one so far, save it but keep looking for a better one
2888 ac_cv_path_GREP="$ac_path_GREP"
2889 ac_path_GREP_max=$ac_count
2890 fi
2891 # 10*(2^10) chars as input seems more than enough
2892 test $ac_count -gt 10 && break
2893 done
2894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2895 esac
2896
2897
2898 $ac_path_GREP_found && break 3
2899 done
2900 done
2901
2902 done
2903 IFS=$as_save_IFS
2904
2905
2906 fi
2907
2908 GREP="$ac_cv_path_GREP"
2909 if test -z "$GREP"; then
2910 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2911 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2912 { (exit 1); exit 1; }; }
2913 fi
2914
2915 else
2916 ac_cv_path_GREP=$GREP
2917 fi
2918
2919
2920 fi
2921 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2922 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
2923 GREP="$ac_cv_path_GREP"
2924
2925
2926 { echo "$as_me:$LINENO: checking for egrep" >&5
2927 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2928 if test "${ac_cv_path_EGREP+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2932 then ac_cv_path_EGREP="$GREP -E"
2933 else
2934 # Extract the first word of "egrep" to use in msg output
2935 if test -z "$EGREP"; then
2936 set dummy egrep; ac_prog_name=$2
2937 if test "${ac_cv_path_EGREP+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940 ac_path_EGREP_found=false
2941 # Loop through the user's path and test for each of PROGNAME-LIST
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_prog in egrep; do
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2950 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2951 # Check for GNU ac_path_EGREP and select it if it is found.
2952 # Check for GNU $ac_path_EGREP
2953 case `"$ac_path_EGREP" --version 2>&1` in
2954 *GNU*)
2955 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2956 *)
2957 ac_count=0
2958 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2959 while :
2960 do
2961 cat "conftest.in" "conftest.in" >"conftest.tmp"
2962 mv "conftest.tmp" "conftest.in"
2963 cp "conftest.in" "conftest.nl"
2964 echo 'EGREP' >> "conftest.nl"
2965 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2967 ac_count=`expr $ac_count + 1`
2968 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2969 # Best one so far, save it but keep looking for a better one
2970 ac_cv_path_EGREP="$ac_path_EGREP"
2971 ac_path_EGREP_max=$ac_count
2972 fi
2973 # 10*(2^10) chars as input seems more than enough
2974 test $ac_count -gt 10 && break
2975 done
2976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2977 esac
2978
2979
2980 $ac_path_EGREP_found && break 3
2981 done
2982 done
2983
2984 done
2985 IFS=$as_save_IFS
2986
2987
2988 fi
2989
2990 EGREP="$ac_cv_path_EGREP"
2991 if test -z "$EGREP"; then
2992 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2993 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2994 { (exit 1); exit 1; }; }
2995 fi
2996
2997 else
2998 ac_cv_path_EGREP=$EGREP
2999 fi
3000
3001
3002 fi
3003 fi
3004 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3005 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3006 EGREP="$ac_cv_path_EGREP"
3007
3008
3009 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3010 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3011 if test "${ac_cv_header_stdc+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #include <stdlib.h>
3021 #include <stdarg.h>
3022 #include <string.h>
3023 #include <float.h>
3024
3025 int
3026 main ()
3027 {
3028
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.$ac_objext
3034 if { (ac_try="$ac_compile"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compile") 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } && {
3047 test -z "$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 } && test -s conftest.$ac_objext; then
3050 ac_cv_header_stdc=yes
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 ac_cv_header_stdc=no
3056 fi
3057
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059
3060 if test $ac_cv_header_stdc = yes; then
3061 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3062 cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h. */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3068 #include <string.h>
3069
3070 _ACEOF
3071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3072 $EGREP "memchr" >/dev/null 2>&1; then
3073 :
3074 else
3075 ac_cv_header_stdc=no
3076 fi
3077 rm -f conftest*
3078
3079 fi
3080
3081 if test $ac_cv_header_stdc = yes; then
3082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3083 cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h. */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3089 #include <stdlib.h>
3090
3091 _ACEOF
3092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3093 $EGREP "free" >/dev/null 2>&1; then
3094 :
3095 else
3096 ac_cv_header_stdc=no
3097 fi
3098 rm -f conftest*
3099
3100 fi
3101
3102 if test $ac_cv_header_stdc = yes; then
3103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3104 if test "$cross_compiling" = yes; then
3105 :
3106 else
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3113 #include <ctype.h>
3114 #include <stdlib.h>
3115 #if ((' ' & 0x0FF) == 0x020)
3116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3118 #else
3119 # define ISLOWER(c) \
3120 (('a' <= (c) && (c) <= 'i') \
3121 || ('j' <= (c) && (c) <= 'r') \
3122 || ('s' <= (c) && (c) <= 'z'))
3123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3124 #endif
3125
3126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3127 int
3128 main ()
3129 {
3130 int i;
3131 for (i = 0; i < 256; i++)
3132 if (XOR (islower (i), ISLOWER (i))
3133 || toupper (i) != TOUPPER (i))
3134 return 2;
3135 return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest$ac_exeext
3139 if { (ac_try="$ac_link"
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_link") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 :
3159 else
3160 echo "$as_me: program exited with status $ac_status" >&5
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 ( exit $ac_status )
3165 ac_cv_header_stdc=no
3166 fi
3167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3168 fi
3169
3170
3171 fi
3172 fi
3173 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3174 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3175 if test $ac_cv_header_stdc = yes; then
3176
3177 cat >>confdefs.h <<\_ACEOF
3178 #define STDC_HEADERS 1
3179 _ACEOF
3180
3181 fi
3182
3183 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3194 inttypes.h stdint.h unistd.h
3195 do
3196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h. */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3208 $ac_includes_default
3209
3210 #include <$ac_header>
3211 _ACEOF
3212 rm -f conftest.$ac_objext
3213 if { (ac_try="$ac_compile"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_compile") 2>conftest.er1
3220 ac_status=$?
3221 grep -v '^ *+' conftest.er1 >conftest.err
3222 rm -f conftest.er1
3223 cat conftest.err >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } && {
3226 test -z "$ac_c_werror_flag" ||
3227 test ! -s conftest.err
3228 } && test -s conftest.$ac_objext; then
3229 eval "$as_ac_Header=yes"
3230 else
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 eval "$as_ac_Header=no"
3235 fi
3236
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 fi
3239 ac_res=`eval echo '${'$as_ac_Header'}'`
3240 { echo "$as_me:$LINENO: result: $ac_res" >&5
3241 echo "${ECHO_T}$ac_res" >&6; }
3242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3243 cat >>confdefs.h <<_ACEOF
3244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3245 _ACEOF
3246
3247 fi
3248
3249 done
3250
3251
3252
3253 for ac_header in unistd.h
3254 do
3255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 fi
3262 ac_res=`eval echo '${'$as_ac_Header'}'`
3263 { echo "$as_me:$LINENO: result: $ac_res" >&5
3264 echo "${ECHO_T}$ac_res" >&6; }
3265 else
3266 # Is the header compilable?
3267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3269 cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h. */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 $ac_includes_default
3276 #include <$ac_header>
3277 _ACEOF
3278 rm -f conftest.$ac_objext
3279 if { (ac_try="$ac_compile"
3280 case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_compile") 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } && {
3292 test -z "$ac_c_werror_flag" ||
3293 test ! -s conftest.err
3294 } && test -s conftest.$ac_objext; then
3295 ac_header_compiler=yes
3296 else
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300 ac_header_compiler=no
3301 fi
3302
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3305 echo "${ECHO_T}$ac_header_compiler" >&6; }
3306
3307 # Is the header present?
3308 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3310 cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h. */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 #include <$ac_header>
3317 _ACEOF
3318 if { (ac_try="$ac_cpp conftest.$ac_ext"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } >/dev/null && {
3331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3332 test ! -s conftest.err
3333 }; then
3334 ac_header_preproc=yes
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 ac_header_preproc=no
3340 fi
3341
3342 rm -f conftest.err conftest.$ac_ext
3343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3344 echo "${ECHO_T}$ac_header_preproc" >&6; }
3345
3346 # So? What about this header?
3347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3348 yes:no: )
3349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3353 ac_header_preproc=yes
3354 ;;
3355 no:yes:* )
3356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3368 ( cat <<\_ASBOX
3369 ## ----------------------------- ##
3370 ## Report this to mike@iworks.at ##
3371 ## ----------------------------- ##
3372 _ASBOX
3373 ) | sed "s/^/$as_me: WARNING: /" >&2
3374 ;;
3375 esac
3376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381 eval "$as_ac_Header=\$ac_header_preproc"
3382 fi
3383 ac_res=`eval echo '${'$as_ac_Header'}'`
3384 { echo "$as_me:$LINENO: result: $ac_res" >&5
3385 echo "${ECHO_T}$ac_res" >&6; }
3386
3387 fi
3388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3389 cat >>confdefs.h <<_ACEOF
3390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3391 _ACEOF
3392
3393 fi
3394
3395 done
3396
3397 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3398 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3399 if test "${ac_cv_c_const+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408
3409 int
3410 main ()
3411 {
3412 /* FIXME: Include the comments suggested by Paul. */
3413 #ifndef __cplusplus
3414 /* Ultrix mips cc rejects this. */
3415 typedef int charset[2];
3416 const charset cs;
3417 /* SunOS 4.1.1 cc rejects this. */
3418 char const *const *pcpcc;
3419 char **ppc;
3420 /* NEC SVR4.0.2 mips cc rejects this. */
3421 struct point {int x, y;};
3422 static struct point const zero = {0,0};
3423 /* AIX XL C 1.02.0.0 rejects this.
3424 It does not let you subtract one const X* pointer from another in
3425 an arm of an if-expression whose if-part is not a constant
3426 expression */
3427 const char *g = "string";
3428 pcpcc = &g + (g ? g-g : 0);
3429 /* HPUX 7.0 cc rejects these. */
3430 ++pcpcc;
3431 ppc = (char**) pcpcc;
3432 pcpcc = (char const *const *) ppc;
3433 { /* SCO 3.2v4 cc rejects this. */
3434 char *t;
3435 char const *s = 0 ? (char *) 0 : (char const *) 0;
3436
3437 *t++ = 0;
3438 if (s) return 0;
3439 }
3440 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3441 int x[] = {25, 17};
3442 const int *foo = &x[0];
3443 ++foo;
3444 }
3445 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3446 typedef const int *iptr;
3447 iptr p = 0;
3448 ++p;
3449 }
3450 { /* AIX XL C 1.02.0.0 rejects this saying
3451 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3452 struct s { int j; const int *ap[3]; };
3453 struct s *b; b->j = 5;
3454 }
3455 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3456 const int foo = 10;
3457 if (!foo) return 0;
3458 }
3459 return !cs[0] && !zero.x;
3460 #endif
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 rm -f conftest.$ac_objext
3467 if { (ac_try="$ac_compile"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_compile") 2>conftest.er1
3474 ac_status=$?
3475 grep -v '^ *+' conftest.er1 >conftest.err
3476 rm -f conftest.er1
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } && {
3480 test -z "$ac_c_werror_flag" ||
3481 test ! -s conftest.err
3482 } && test -s conftest.$ac_objext; then
3483 ac_cv_c_const=yes
3484 else
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 ac_cv_c_const=no
3489 fi
3490
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 fi
3493 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3494 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3495 if test $ac_cv_c_const = no; then
3496
3497 cat >>confdefs.h <<\_ACEOF
3498 #define const
3499 _ACEOF
3500
3501 fi
3502
3503 { echo "$as_me:$LINENO: checking for size_t" >&5
3504 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
3505 if test "${ac_cv_type_size_t+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 $ac_includes_default
3515 typedef size_t ac__type_new_;
3516 int
3517 main ()
3518 {
3519 if ((ac__type_new_ *) 0)
3520 return 0;
3521 if (sizeof (ac__type_new_))
3522 return 0;
3523 ;
3524 return 0;
3525 }
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (ac_try="$ac_compile"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_compile") 2>conftest.er1
3535 ac_status=$?
3536 grep -v '^ *+' conftest.er1 >conftest.err
3537 rm -f conftest.er1
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } && {
3541 test -z "$ac_c_werror_flag" ||
3542 test ! -s conftest.err
3543 } && test -s conftest.$ac_objext; then
3544 ac_cv_type_size_t=yes
3545 else
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549 ac_cv_type_size_t=no
3550 fi
3551
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 fi
3554 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3555 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
3556 if test $ac_cv_type_size_t = yes; then
3557 :
3558 else
3559
3560 cat >>confdefs.h <<_ACEOF
3561 #define size_t unsigned int
3562 _ACEOF
3563
3564 fi
3565
3566 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3567 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3568 if test "${ac_cv_header_stdc+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571 cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h. */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 #include <stdlib.h>
3578 #include <stdarg.h>
3579 #include <string.h>
3580 #include <float.h>
3581
3582 int
3583 main ()
3584 {
3585
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 rm -f conftest.$ac_objext
3591 if { (ac_try="$ac_compile"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_compile") 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } && {
3604 test -z "$ac_c_werror_flag" ||
3605 test ! -s conftest.err
3606 } && test -s conftest.$ac_objext; then
3607 ac_cv_header_stdc=yes
3608 else
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612 ac_cv_header_stdc=no
3613 fi
3614
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616
3617 if test $ac_cv_header_stdc = yes; then
3618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3619 cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h. */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3625 #include <string.h>
3626
3627 _ACEOF
3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629 $EGREP "memchr" >/dev/null 2>&1; then
3630 :
3631 else
3632 ac_cv_header_stdc=no
3633 fi
3634 rm -f conftest*
3635
3636 fi
3637
3638 if test $ac_cv_header_stdc = yes; then
3639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3640 cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 #include <stdlib.h>
3647
3648 _ACEOF
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 $EGREP "free" >/dev/null 2>&1; then
3651 :
3652 else
3653 ac_cv_header_stdc=no
3654 fi
3655 rm -f conftest*
3656
3657 fi
3658
3659 if test $ac_cv_header_stdc = yes; then
3660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3661 if test "$cross_compiling" = yes; then
3662 :
3663 else
3664 cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h. */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3670 #include <ctype.h>
3671 #include <stdlib.h>
3672 #if ((' ' & 0x0FF) == 0x020)
3673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3675 #else
3676 # define ISLOWER(c) \
3677 (('a' <= (c) && (c) <= 'i') \
3678 || ('j' <= (c) && (c) <= 'r') \
3679 || ('s' <= (c) && (c) <= 'z'))
3680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3681 #endif
3682
3683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3684 int
3685 main ()
3686 {
3687 int i;
3688 for (i = 0; i < 256; i++)
3689 if (XOR (islower (i), ISLOWER (i))
3690 || toupper (i) != TOUPPER (i))
3691 return 2;
3692 return 0;
3693 }
3694 _ACEOF
3695 rm -f conftest$ac_exeext
3696 if { (ac_try="$ac_link"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_link") 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3706 { (case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 (eval "$ac_try") 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 :
3716 else
3717 echo "$as_me: program exited with status $ac_status" >&5
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 ( exit $ac_status )
3722 ac_cv_header_stdc=no
3723 fi
3724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3725 fi
3726
3727
3728 fi
3729 fi
3730 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3731 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3732 if test $ac_cv_header_stdc = yes; then
3733
3734 cat >>confdefs.h <<\_ACEOF
3735 #define STDC_HEADERS 1
3736 _ACEOF
3737
3738 fi
3739
3740
3741
3742 for ac_func in memmove strchr
3743 do
3744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 cat >conftest.$ac_ext <<_ACEOF
3751 /* confdefs.h. */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3758 #define $ac_func innocuous_$ac_func
3759
3760 /* System header to define __stub macros and hopefully few prototypes,
3761 which can conflict with char $ac_func (); below.
3762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3763 <limits.h> exists even on freestanding compilers. */
3764
3765 #ifdef __STDC__
3766 # include <limits.h>
3767 #else
3768 # include <assert.h>
3769 #endif
3770
3771 #undef $ac_func
3772
3773 /* Override any GCC internal prototype to avoid an error.
3774 Use char because int might match the return type of a GCC
3775 builtin and then its argument prototype would still apply. */
3776 #ifdef __cplusplus
3777 extern "C"
3778 #endif
3779 char $ac_func ();
3780 /* The GNU C library defines this for functions which it implements
3781 to always fail with ENOSYS. Some functions are actually named
3782 something starting with __ and the normal name is an alias. */
3783 #if defined __stub_$ac_func || defined __stub___$ac_func
3784 choke me
3785 #endif
3786
3787 int
3788 main ()
3789 {
3790 return $ac_func ();
3791 ;
3792 return 0;
3793 }
3794 _ACEOF
3795 rm -f conftest.$ac_objext conftest$ac_exeext
3796 if { (ac_try="$ac_link"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_link") 2>conftest.er1
3803 ac_status=$?
3804 grep -v '^ *+' conftest.er1 >conftest.err
3805 rm -f conftest.er1
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } && {
3809 test -z "$ac_c_werror_flag" ||
3810 test ! -s conftest.err
3811 } && test -s conftest$ac_exeext &&
3812 $as_test_x conftest$ac_exeext; then
3813 eval "$as_ac_var=yes"
3814 else
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 eval "$as_ac_var=no"
3819 fi
3820
3821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3822 conftest$ac_exeext conftest.$ac_ext
3823 fi
3824 ac_res=`eval echo '${'$as_ac_var'}'`
3825 { echo "$as_me:$LINENO: result: $ac_res" >&5
3826 echo "${ECHO_T}$ac_res" >&6; }
3827 if test `eval echo '${'$as_ac_var'}'` = yes; then
3828 cat >>confdefs.h <<_ACEOF
3829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3830 _ACEOF
3831
3832 fi
3833 done
3834
3835
3836
3837 # Check whether --with-apxs2 was given.
3838 if test "${with_apxs2+set}" = set; then
3839 withval=$with_apxs2;
3840 fi
3841
3842
3843 { echo "$as_me:$LINENO: checking for apxs2" >&5
3844 echo $ECHO_N "checking for apxs2... $ECHO_C" >&6; }
3845 APXS2=apxs2
3846 if test "$with_apxs2" -a -x "$with_apxs2"; then
3847 APXS2=$with_apxs2
3848 { echo "$as_me:$LINENO: result: $APXS2" >&5
3849 echo "${ECHO_T}$APXS2" >&6; }
3850 else
3851 apxs2 >/dev/null 2>&1
3852 if test $? -eq 1; then
3853 APXS2=apxs2
3854 { echo "$as_me:$LINENO: result: in \$PATH" >&5
3855 echo "${ECHO_T}in \$PATH" >&6; }
3856 else
3857 { echo "$as_me:$LINENO: result: " >&5
3858 echo "${ECHO_T} " >&6; }
3859 { { echo "$as_me:$LINENO: error: please specify path to the apxs2 tool through --with-apxs2" >&5
3860 echo "$as_me: error: please specify path to the apxs2 tool through --with-apxs2" >&2;}
3861 { (exit 1); exit 1; }; }
3862 fi
3863 fi
3864
3865
3866
3867 ac_config_files="$ac_config_files Makefile"
3868
3869 cat >confcache <<\_ACEOF
3870 # This file is a shell script that caches the results of configure
3871 # tests run on this system so they can be shared between configure
3872 # scripts and configure runs, see configure's option --config-cache.
3873 # It is not useful on other systems. If it contains results you don't
3874 # want to keep, you may remove or edit it.
3875 #
3876 # config.status only pays attention to the cache file if you give it
3877 # the --recheck option to rerun configure.
3878 #
3879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3881 # following values.
3882
3883 _ACEOF
3884
3885 # The following way of writing the cache mishandles newlines in values,
3886 # but we know of no workaround that is simple, portable, and efficient.
3887 # So, we kill variables containing newlines.
3888 # Ultrix sh set writes to stderr and can't be redirected directly,
3889 # and sets the high bit in the cache file unless we assign to the vars.
3890 (
3891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3892 eval ac_val=\$$ac_var
3893 case $ac_val in #(
3894 *${as_nl}*)
3895 case $ac_var in #(
3896 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3897 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3898 esac
3899 case $ac_var in #(
3900 _ | IFS | as_nl) ;; #(
3901 *) $as_unset $ac_var ;;
3902 esac ;;
3903 esac
3904 done
3905
3906 (set) 2>&1 |
3907 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3908 *${as_nl}ac_space=\ *)
3909 # `set' does not quote correctly, so add quotes (double-quote
3910 # substitution turns \\\\ into \\, and sed turns \\ into \).
3911 sed -n \
3912 "s/'/'\\\\''/g;
3913 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3914 ;; #(
3915 *)
3916 # `set' quotes correctly as required by POSIX, so do not add quotes.
3917 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3918 ;;
3919 esac |
3920 sort
3921 ) |
3922 sed '
3923 /^ac_cv_env_/b end
3924 t clear
3925 :clear
3926 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3927 t end
3928 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3929 :end' >>confcache
3930 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3931 if test -w "$cache_file"; then
3932 test "x$cache_file" != "x/dev/null" &&
3933 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3934 echo "$as_me: updating cache $cache_file" >&6;}
3935 cat confcache >$cache_file
3936 else
3937 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3938 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3939 fi
3940 fi
3941 rm -f confcache
3942
3943 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3944 # Let make expand exec_prefix.
3945 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3946
3947 DEFS=-DHAVE_CONFIG_H
3948
3949 ac_libobjs=
3950 ac_ltlibobjs=
3951 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3952 # 1. Remove the extension, and $U if already installed.
3953 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3954 ac_i=`echo "$ac_i" | sed "$ac_script"`
3955 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3956 # will be set to the directory where LIBOBJS objects are built.
3957 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3958 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3959 done
3960 LIBOBJS=$ac_libobjs
3961
3962 LTLIBOBJS=$ac_ltlibobjs
3963
3964
3965
3966 : ${CONFIG_STATUS=./config.status}
3967 ac_clean_files_save=$ac_clean_files
3968 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3969 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3970 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3971 cat >$CONFIG_STATUS <<_ACEOF
3972 #! $SHELL
3973 # Generated by $as_me.
3974 # Run this file to recreate the current configuration.
3975 # Compiler output produced by configure, useful for debugging
3976 # configure, is in config.log if it exists.
3977
3978 debug=false
3979 ac_cs_recheck=false
3980 ac_cs_silent=false
3981 SHELL=\${CONFIG_SHELL-$SHELL}
3982 _ACEOF
3983
3984 cat >>$CONFIG_STATUS <<\_ACEOF
3985 ## --------------------- ##
3986 ## M4sh Initialization. ##
3987 ## --------------------- ##
3988
3989 # Be more Bourne compatible
3990 DUALCASE=1; export DUALCASE # for MKS sh
3991 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3992 emulate sh
3993 NULLCMD=:
3994 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3995 # is contrary to our usage. Disable this feature.
3996 alias -g '${1+"$@"}'='"$@"'
3997 setopt NO_GLOB_SUBST
3998 else
3999 case `(set -o) 2>/dev/null` in
4000 *posix*) set -o posix ;;
4001 esac
4002
4003 fi
4004
4005
4006
4007
4008 # PATH needs CR
4009 # Avoid depending upon Character Ranges.
4010 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4011 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4012 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4013 as_cr_digits='0123456789'
4014 as_cr_alnum=$as_cr_Letters$as_cr_digits
4015
4016 # The user is always right.
4017 if test "${PATH_SEPARATOR+set}" != set; then
4018 echo "#! /bin/sh" >conf$$.sh
4019 echo "exit 0" >>conf$$.sh
4020 chmod +x conf$$.sh
4021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4022 PATH_SEPARATOR=';'
4023 else
4024 PATH_SEPARATOR=:
4025 fi
4026 rm -f conf$$.sh
4027 fi
4028
4029 # Support unset when possible.
4030 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4031 as_unset=unset
4032 else
4033 as_unset=false
4034 fi
4035
4036
4037 # IFS
4038 # We need space, tab and new line, in precisely that order. Quoting is
4039 # there to prevent editors from complaining about space-tab.
4040 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4041 # splitting by setting IFS to empty value.)
4042 as_nl='
4043 '
4044 IFS=" "" $as_nl"
4045
4046 # Find who we are. Look in the path if we contain no directory separator.
4047 case $0 in
4048 *[\\/]* ) as_myself=$0 ;;
4049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4055 done
4056 IFS=$as_save_IFS
4057
4058 ;;
4059 esac
4060 # We did not find ourselves, most probably we were run as `sh COMMAND'
4061 # in which case we are not to be found in the path.
4062 if test "x$as_myself" = x; then
4063 as_myself=$0
4064 fi
4065 if test ! -f "$as_myself"; then
4066 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4067 { (exit 1); exit 1; }
4068 fi
4069
4070 # Work around bugs in pre-3.0 UWIN ksh.
4071 for as_var in ENV MAIL MAILPATH
4072 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4073 done
4074 PS1='$ '
4075 PS2='> '
4076 PS4='+ '
4077
4078 # NLS nuisances.
4079 for as_var in \
4080 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4081 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4082 LC_TELEPHONE LC_TIME
4083 do
4084 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4085 eval $as_var=C; export $as_var
4086 else
4087 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4088 fi
4089 done
4090
4091 # Required to use basename.
4092 if expr a : '\(a\)' >/dev/null 2>&1 &&
4093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4094 as_expr=expr
4095 else
4096 as_expr=false
4097 fi
4098
4099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4100 as_basename=basename
4101 else
4102 as_basename=false
4103 fi
4104
4105
4106 # Name of the executable.
4107 as_me=`$as_basename -- "$0" ||
4108 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4109 X"$0" : 'X\(//\)$' \| \
4110 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4111 echo X/"$0" |
4112 sed '/^.*\/\([^/][^/]*\)\/*$/{
4113 s//\1/
4114 q
4115 }
4116 /^X\/\(\/\/\)$/{
4117 s//\1/
4118 q
4119 }
4120 /^X\/\(\/\).*/{
4121 s//\1/
4122 q
4123 }
4124 s/.*/./; q'`
4125
4126 # CDPATH.
4127 $as_unset CDPATH
4128
4129
4130
4131 as_lineno_1=$LINENO
4132 as_lineno_2=$LINENO
4133 test "x$as_lineno_1" != "x$as_lineno_2" &&
4134 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4135
4136 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4137 # uniformly replaced by the line number. The first 'sed' inserts a
4138 # line-number line after each line using $LINENO; the second 'sed'
4139 # does the real work. The second script uses 'N' to pair each
4140 # line-number line with the line containing $LINENO, and appends
4141 # trailing '-' during substitution so that $LINENO is not a special
4142 # case at line end.
4143 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4144 # scripts with optimization help from Paolo Bonzini. Blame Lee
4145 # E. McMahon (1931-1989) for sed's syntax. :-)
4146 sed -n '
4147 p
4148 /[$]LINENO/=
4149 ' <$as_myself |
4150 sed '
4151 s/[$]LINENO.*/&-/
4152 t lineno
4153 b
4154 :lineno
4155 N
4156 :loop
4157 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4158 t loop
4159 s/-\n.*//
4160 ' >$as_me.lineno &&
4161 chmod +x "$as_me.lineno" ||
4162 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4163 { (exit 1); exit 1; }; }
4164
4165 # Don't try to exec as it changes $[0], causing all sort of problems
4166 # (the dirname of $[0] is not the place where we might find the
4167 # original and so on. Autoconf is especially sensitive to this).
4168 . "./$as_me.lineno"
4169 # Exit status is that of the last command.
4170 exit
4171 }
4172
4173
4174 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4175 as_dirname=dirname
4176 else
4177 as_dirname=false
4178 fi
4179
4180 ECHO_C= ECHO_N= ECHO_T=
4181 case `echo -n x` in
4182 -n*)
4183 case `echo 'x\c'` in
4184 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4185 *) ECHO_C='\c';;
4186 esac;;
4187 *)
4188 ECHO_N='-n';;
4189 esac
4190
4191 if expr a : '\(a\)' >/dev/null 2>&1 &&
4192 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4193 as_expr=expr
4194 else
4195 as_expr=false
4196 fi
4197
4198 rm -f conf$$ conf$$.exe conf$$.file
4199 if test -d conf$$.dir; then
4200 rm -f conf$$.dir/conf$$.file
4201 else
4202 rm -f conf$$.dir
4203 mkdir conf$$.dir
4204 fi
4205 echo >conf$$.file
4206 if ln -s conf$$.file conf$$ 2>/dev/null; then
4207 as_ln_s='ln -s'
4208 # ... but there are two gotchas:
4209 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4210 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4211 # In both cases, we have to default to `cp -p'.
4212 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4213 as_ln_s='cp -p'
4214 elif ln conf$$.file conf$$ 2>/dev/null; then
4215 as_ln_s=ln
4216 else
4217 as_ln_s='cp -p'
4218 fi
4219 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4220 rmdir conf$$.dir 2>/dev/null
4221
4222 if mkdir -p . 2>/dev/null; then
4223 as_mkdir_p=:
4224 else
4225 test -d ./-p && rmdir ./-p
4226 as_mkdir_p=false
4227 fi
4228
4229 if test -x / >/dev/null 2>&1; then
4230 as_test_x='test -x'
4231 else
4232 if ls -dL / >/dev/null 2>&1; then
4233 as_ls_L_option=L
4234 else
4235 as_ls_L_option=
4236 fi
4237 as_test_x='
4238 eval sh -c '\''
4239 if test -d "$1"; then
4240 test -d "$1/.";
4241 else
4242 case $1 in
4243 -*)set "./$1";;
4244 esac;
4245 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4246 ???[sx]*):;;*)false;;esac;fi
4247 '\'' sh
4248 '
4249 fi
4250 as_executable_p=$as_test_x
4251
4252 # Sed expression to map a string onto a valid CPP name.
4253 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4254
4255 # Sed expression to map a string onto a valid variable name.
4256 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4257
4258
4259 exec 6>&1
4260
4261 # Save the log message, to keep $[0] and so on meaningful, and to
4262 # report actual input values of CONFIG_FILES etc. instead of their
4263 # values after options handling.
4264 ac_log="
4265 This file was extended by mod_domaintree $as_me 1.6, which was
4266 generated by GNU Autoconf 2.61. Invocation command line was
4267
4268 CONFIG_FILES = $CONFIG_FILES
4269 CONFIG_HEADERS = $CONFIG_HEADERS
4270 CONFIG_LINKS = $CONFIG_LINKS
4271 CONFIG_COMMANDS = $CONFIG_COMMANDS
4272 $ $0 $@
4273
4274 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4275 "
4276
4277 _ACEOF
4278
4279 cat >>$CONFIG_STATUS <<_ACEOF
4280 # Files that config.status was made for.
4281 config_files="$ac_config_files"
4282 config_headers="$ac_config_headers"
4283
4284 _ACEOF
4285
4286 cat >>$CONFIG_STATUS <<\_ACEOF
4287 ac_cs_usage="\
4288 \`$as_me' instantiates files from templates according to the
4289 current configuration.
4290
4291 Usage: $0 [OPTIONS] [FILE]...
4292
4293 -h, --help print this help, then exit
4294 -V, --version print version number and configuration settings, then exit
4295 -q, --quiet do not print progress messages
4296 -d, --debug don't remove temporary files
4297 --recheck update $as_me by reconfiguring in the same conditions
4298 --file=FILE[:TEMPLATE]
4299 instantiate the configuration file FILE
4300 --header=FILE[:TEMPLATE]
4301 instantiate the configuration header FILE
4302
4303 Configuration files:
4304 $config_files
4305
4306 Configuration headers:
4307 $config_headers
4308
4309 Report bugs to <bug-autoconf@gnu.org>."
4310
4311 _ACEOF
4312 cat >>$CONFIG_STATUS <<_ACEOF
4313 ac_cs_version="\\
4314 mod_domaintree config.status 1.6
4315 configured by $0, generated by GNU Autoconf 2.61,
4316 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4317
4318 Copyright (C) 2006 Free Software Foundation, Inc.
4319 This config.status script is free software; the Free Software Foundation
4320 gives unlimited permission to copy, distribute and modify it."
4321
4322 ac_pwd='$ac_pwd'
4323 srcdir='$srcdir'
4324 _ACEOF
4325
4326 cat >>$CONFIG_STATUS <<\_ACEOF
4327 # If no file are specified by the user, then we need to provide default
4328 # value. By we need to know if files were specified by the user.
4329 ac_need_defaults=:
4330 while test $# != 0
4331 do
4332 case $1 in
4333 --*=*)
4334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4335 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4336 ac_shift=:
4337 ;;
4338 *)
4339 ac_option=$1
4340 ac_optarg=$2
4341 ac_shift=shift
4342 ;;
4343 esac
4344
4345 case $ac_option in
4346 # Handling of the options.
4347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4348 ac_cs_recheck=: ;;
4349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4350 echo "$ac_cs_version"; exit ;;
4351 --debug | --debu | --deb | --de | --d | -d )
4352 debug=: ;;
4353 --file | --fil | --fi | --f )
4354 $ac_shift
4355 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4356 ac_need_defaults=false;;
4357 --header | --heade | --head | --hea )
4358 $ac_shift
4359 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4360 ac_need_defaults=false;;
4361 --he | --h)
4362 # Conflict between --help and --header
4363 { echo "$as_me: error: ambiguous option: $1
4364 Try \`$0 --help' for more information." >&2
4365 { (exit 1); exit 1; }; };;
4366 --help | --hel | -h )
4367 echo "$ac_cs_usage"; exit ;;
4368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4369 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4370 ac_cs_silent=: ;;
4371
4372 # This is an error.
4373 -*) { echo "$as_me: error: unrecognized option: $1
4374 Try \`$0 --help' for more information." >&2
4375 { (exit 1); exit 1; }; } ;;
4376
4377 *) ac_config_targets="$ac_config_targets $1"
4378 ac_need_defaults=false ;;
4379
4380 esac
4381 shift
4382 done
4383
4384 ac_configure_extra_args=
4385
4386 if $ac_cs_silent; then
4387 exec 6>/dev/null
4388 ac_configure_extra_args="$ac_configure_extra_args --silent"
4389 fi
4390
4391 _ACEOF
4392 cat >>$CONFIG_STATUS <<_ACEOF
4393 if \$ac_cs_recheck; then
4394 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4395 CONFIG_SHELL=$SHELL
4396 export CONFIG_SHELL
4397 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4398 fi
4399
4400 _ACEOF
4401 cat >>$CONFIG_STATUS <<\_ACEOF
4402 exec 5>>config.log
4403 {
4404 echo
4405 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4406 ## Running $as_me. ##
4407 _ASBOX
4408 echo "$ac_log"
4409 } >&5
4410
4411 _ACEOF
4412 cat >>$CONFIG_STATUS <<_ACEOF
4413 _ACEOF
4414
4415 cat >>$CONFIG_STATUS <<\_ACEOF
4416
4417 # Handling of arguments.
4418 for ac_config_target in $ac_config_targets
4419 do
4420 case $ac_config_target in
4421 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4422 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4423
4424 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4425 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4426 { (exit 1); exit 1; }; };;
4427 esac
4428 done
4429
4430
4431 # If the user did not use the arguments to specify the items to instantiate,
4432 # then the envvar interface is used. Set only those that are not.
4433 # We use the long form for the default assignment because of an extremely
4434 # bizarre bug on SunOS 4.1.3.
4435 if $ac_need_defaults; then
4436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4438 fi
4439
4440 # Have a temporary directory for convenience. Make it in the build tree
4441 # simply because there is no reason against having it here, and in addition,
4442 # creating and moving files from /tmp can sometimes cause problems.
4443 # Hook for its removal unless debugging.
4444 # Note that there is a small window in which the directory will not be cleaned:
4445 # after its creation but before its name has been assigned to `$tmp'.
4446 $debug ||
4447 {
4448 tmp=
4449 trap 'exit_status=$?
4450 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4451 ' 0
4452 trap '{ (exit 1); exit 1; }' 1 2 13 15
4453 }
4454 # Create a (secure) tmp directory for tmp files.
4455
4456 {
4457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4458 test -n "$tmp" && test -d "$tmp"
4459 } ||
4460 {
4461 tmp=./conf$$-$RANDOM
4462 (umask 077 && mkdir "$tmp")
4463 } ||
4464 {
4465 echo "$me: cannot create a temporary directory in ." >&2
4466 { (exit 1); exit 1; }
4467 }
4468
4469 #
4470 # Set up the sed scripts for CONFIG_FILES section.
4471 #
4472
4473 # No need to generate the scripts if there are no CONFIG_FILES.
4474 # This happens for instance when ./config.status config.h
4475 if test -n "$CONFIG_FILES"; then
4476
4477 _ACEOF
4478
4479
4480
4481 ac_delim='%!_!# '
4482 for ac_last_try in false false false false false :; do
4483 cat >conf$$subs.sed <<_ACEOF
4484 SHELL!$SHELL$ac_delim
4485 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4486 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4487 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4488 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4489 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4490 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4491 exec_prefix!$exec_prefix$ac_delim
4492 prefix!$prefix$ac_delim
4493 program_transform_name!$program_transform_name$ac_delim
4494 bindir!$bindir$ac_delim
4495 sbindir!$sbindir$ac_delim
4496 libexecdir!$libexecdir$ac_delim
4497 datarootdir!$datarootdir$ac_delim
4498 datadir!$datadir$ac_delim
4499 sysconfdir!$sysconfdir$ac_delim
4500 sharedstatedir!$sharedstatedir$ac_delim
4501 localstatedir!$localstatedir$ac_delim
4502 includedir!$includedir$ac_delim
4503 oldincludedir!$oldincludedir$ac_delim
4504 docdir!$docdir$ac_delim
4505 infodir!$infodir$ac_delim
4506 htmldir!$htmldir$ac_delim
4507 dvidir!$dvidir$ac_delim
4508 pdfdir!$pdfdir$ac_delim
4509 psdir!$psdir$ac_delim
4510 libdir!$libdir$ac_delim
4511 localedir!$localedir$ac_delim
4512 mandir!$mandir$ac_delim
4513 DEFS!$DEFS$ac_delim
4514 ECHO_C!$ECHO_C$ac_delim
4515 ECHO_N!$ECHO_N$ac_delim
4516 ECHO_T!$ECHO_T$ac_delim
4517 LIBS!$LIBS$ac_delim
4518 build_alias!$build_alias$ac_delim
4519 host_alias!$host_alias$ac_delim
4520 target_alias!$target_alias$ac_delim
4521 CC!$CC$ac_delim
4522 CFLAGS!$CFLAGS$ac_delim
4523 LDFLAGS!$LDFLAGS$ac_delim
4524 CPPFLAGS!$CPPFLAGS$ac_delim
4525 ac_ct_CC!$ac_ct_CC$ac_delim
4526 EXEEXT!$EXEEXT$ac_delim
4527 OBJEXT!$OBJEXT$ac_delim
4528 CPP!$CPP$ac_delim
4529 GREP!$GREP$ac_delim
4530 EGREP!$EGREP$ac_delim
4531 APXS2!$APXS2$ac_delim
4532 LIBOBJS!$LIBOBJS$ac_delim
4533 LTLIBOBJS!$LTLIBOBJS$ac_delim
4534 _ACEOF
4535
4536 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
4537 break
4538 elif $ac_last_try; then
4539 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4540 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4541 { (exit 1); exit 1; }; }
4542 else
4543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4544 fi
4545 done
4546
4547 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4548 if test -n "$ac_eof"; then
4549 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4550 ac_eof=`expr $ac_eof + 1`
4551 fi
4552
4553 cat >>$CONFIG_STATUS <<_ACEOF
4554 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4555 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4556 _ACEOF
4557 sed '
4558 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4559 s/^/s,@/; s/!/@,|#_!!_#|/
4560 :n
4561 t n
4562 s/'"$ac_delim"'$/,g/; t
4563 s/$/\\/; p
4564 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4565 ' >>$CONFIG_STATUS <conf$$subs.sed
4566 rm -f conf$$subs.sed
4567 cat >>$CONFIG_STATUS <<_ACEOF
4568 :end
4569 s/|#_!!_#|//g
4570 CEOF$ac_eof
4571 _ACEOF
4572
4573
4574 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4575 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4576 # trailing colons and then remove the whole line if VPATH becomes empty
4577 # (actually we leave an empty line to preserve line numbers).
4578 if test "x$srcdir" = x.; then
4579 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4580 s/:*\$(srcdir):*/:/
4581 s/:*\${srcdir}:*/:/
4582 s/:*@srcdir@:*/:/
4583 s/^\([^=]*=[ ]*\):*/\1/
4584 s/:*$//
4585 s/^[^=]*=[ ]*$//
4586 }'
4587 fi
4588
4589 cat >>$CONFIG_STATUS <<\_ACEOF
4590 fi # test -n "$CONFIG_FILES"
4591
4592
4593 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
4594 do
4595 case $ac_tag in
4596 :[FHLC]) ac_mode=$ac_tag; continue;;
4597 esac
4598 case $ac_mode$ac_tag in
4599 :[FHL]*:*);;
4600 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4601 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4602 { (exit 1); exit 1; }; };;
4603 :[FH]-) ac_tag=-:-;;
4604 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4605 esac
4606 ac_save_IFS=$IFS
4607 IFS=:
4608 set x $ac_tag
4609 IFS=$ac_save_IFS
4610 shift
4611 ac_file=$1
4612 shift
4613
4614 case $ac_mode in
4615 :L) ac_source=$1;;
4616 :[FH])
4617 ac_file_inputs=
4618 for ac_f
4619 do
4620 case $ac_f in
4621 -) ac_f="$tmp/stdin";;
4622 *) # Look for the file first in the build tree, then in the source tree
4623 # (if the path is not absolute). The absolute path cannot be DOS-style,
4624 # because $ac_f cannot contain `:'.
4625 test -f "$ac_f" ||
4626 case $ac_f in
4627 [\\/$]*) false;;
4628 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4629 esac ||
4630 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4631 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4632 { (exit 1); exit 1; }; };;
4633 esac
4634 ac_file_inputs="$ac_file_inputs $ac_f"
4635 done
4636
4637 # Let's still pretend it is `configure' which instantiates (i.e., don't
4638 # use $as_me), people would be surprised to read:
4639 # /* config.h. Generated by config.status. */
4640 configure_input="Generated from "`IFS=:
4641 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4642 if test x"$ac_file" != x-; then
4643 configure_input="$ac_file. $configure_input"
4644 { echo "$as_me:$LINENO: creating $ac_file" >&5
4645 echo "$as_me: creating $ac_file" >&6;}
4646 fi
4647
4648 case $ac_tag in
4649 *:-:* | *:-) cat >"$tmp/stdin";;
4650 esac
4651 ;;
4652 esac
4653
4654 ac_dir=`$as_dirname -- "$ac_file" ||
4655 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4656 X"$ac_file" : 'X\(//\)[^/]' \| \
4657 X"$ac_file" : 'X\(//\)$' \| \
4658 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4659 echo X"$ac_file" |
4660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4661 s//\1/
4662 q
4663 }
4664 /^X\(\/\/\)[^/].*/{
4665 s//\1/
4666 q
4667 }
4668 /^X\(\/\/\)$/{
4669 s//\1/
4670 q
4671 }
4672 /^X\(\/\).*/{
4673 s//\1/
4674 q
4675 }
4676 s/.*/./; q'`
4677 { as_dir="$ac_dir"
4678 case $as_dir in #(
4679 -*) as_dir=./$as_dir;;
4680 esac
4681 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4682 as_dirs=
4683 while :; do
4684 case $as_dir in #(
4685 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4686 *) as_qdir=$as_dir;;
4687 esac
4688 as_dirs="'$as_qdir' $as_dirs"
4689 as_dir=`$as_dirname -- "$as_dir" ||
4690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4691 X"$as_dir" : 'X\(//\)[^/]' \| \
4692 X"$as_dir" : 'X\(//\)$' \| \
4693 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4694 echo X"$as_dir" |
4695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4696 s//\1/
4697 q
4698 }
4699 /^X\(\/\/\)[^/].*/{
4700 s//\1/
4701 q
4702 }
4703 /^X\(\/\/\)$/{
4704 s//\1/
4705 q
4706 }
4707 /^X\(\/\).*/{
4708 s//\1/
4709 q
4710 }
4711 s/.*/./; q'`
4712 test -d "$as_dir" && break
4713 done
4714 test -z "$as_dirs" || eval "mkdir $as_dirs"
4715 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4716 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4717 { (exit 1); exit 1; }; }; }
4718 ac_builddir=.
4719
4720 case "$ac_dir" in
4721 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4722 *)
4723 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4724 # A ".." for each directory in $ac_dir_suffix.
4725 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4726 case $ac_top_builddir_sub in
4727 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4728 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4729 esac ;;
4730 esac
4731 ac_abs_top_builddir=$ac_pwd
4732 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4733 # for backward compatibility:
4734 ac_top_builddir=$ac_top_build_prefix
4735
4736 case $srcdir in
4737 .) # We are building in place.
4738 ac_srcdir=.
4739 ac_top_srcdir=$ac_top_builddir_sub
4740 ac_abs_top_srcdir=$ac_pwd ;;
4741 [\\/]* | ?:[\\/]* ) # Absolute name.
4742 ac_srcdir=$srcdir$ac_dir_suffix;
4743 ac_top_srcdir=$srcdir
4744 ac_abs_top_srcdir=$srcdir ;;
4745 *) # Relative name.
4746 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4747 ac_top_srcdir=$ac_top_build_prefix$srcdir
4748 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4749 esac
4750 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4751
4752
4753 case $ac_mode in
4754 :F)
4755 #
4756 # CONFIG_FILE
4757 #
4758
4759 _ACEOF
4760
4761 cat >>$CONFIG_STATUS <<\_ACEOF
4762 # If the template does not know about datarootdir, expand it.
4763 # FIXME: This hack should be removed a few years after 2.60.
4764 ac_datarootdir_hack=; ac_datarootdir_seen=
4765
4766 case `sed -n '/datarootdir/ {
4767 p
4768 q
4769 }
4770 /@datadir@/p
4771 /@docdir@/p
4772 /@infodir@/p
4773 /@localedir@/p
4774 /@mandir@/p
4775 ' $ac_file_inputs` in
4776 *datarootdir*) ac_datarootdir_seen=yes;;
4777 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4778 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4779 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4780 _ACEOF
4781 cat >>$CONFIG_STATUS <<_ACEOF
4782 ac_datarootdir_hack='
4783 s&@datadir@&$datadir&g
4784 s&@docdir@&$docdir&g
4785 s&@infodir@&$infodir&g
4786 s&@localedir@&$localedir&g
4787 s&@mandir@&$mandir&g
4788 s&\\\${datarootdir}&$datarootdir&g' ;;
4789 esac
4790 _ACEOF
4791
4792 # Neutralize VPATH when `$srcdir' = `.'.
4793 # Shell code in configure.ac might set extrasub.
4794 # FIXME: do we really want to maintain this feature?
4795 cat >>$CONFIG_STATUS <<_ACEOF
4796 sed "$ac_vpsub
4797 $extrasub
4798 _ACEOF
4799 cat >>$CONFIG_STATUS <<\_ACEOF
4800 :t
4801 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4802 s&@configure_input@&$configure_input&;t t
4803 s&@top_builddir@&$ac_top_builddir_sub&;t t
4804 s&@srcdir@&$ac_srcdir&;t t
4805 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4806 s&@top_srcdir@&$ac_top_srcdir&;t t
4807 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4808 s&@builddir@&$ac_builddir&;t t
4809 s&@abs_builddir@&$ac_abs_builddir&;t t
4810 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4811 $ac_datarootdir_hack
4812 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4813
4814 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4815 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4816 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4817 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4818 which seems to be undefined. Please make sure it is defined." >&5
4819 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4820 which seems to be undefined. Please make sure it is defined." >&2;}
4821
4822 rm -f "$tmp/stdin"
4823 case $ac_file in
4824 -) cat "$tmp/out"; rm -f "$tmp/out";;
4825 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4826 esac
4827 ;;
4828 :H)
4829 #
4830 # CONFIG_HEADER
4831 #
4832 _ACEOF
4833
4834 # Transform confdefs.h into a sed script `conftest.defines', that
4835 # substitutes the proper values into config.h.in to produce config.h.
4836 rm -f conftest.defines conftest.tail
4837 # First, append a space to every undef/define line, to ease matching.
4838 echo 's/$/ /' >conftest.defines
4839 # Then, protect against being on the right side of a sed subst, or in
4840 # an unquoted here document, in config.status. If some macros were
4841 # called several times there might be several #defines for the same
4842 # symbol, which is useless. But do not sort them, since the last
4843 # AC_DEFINE must be honored.
4844 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4845 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
4846 # NAME is the cpp macro being defined, VALUE is the value it is being given.
4847 # PARAMS is the parameter list in the macro definition--in most cases, it's
4848 # just an empty string.
4849 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
4850 ac_dB='\\)[ (].*,\\1define\\2'
4851 ac_dC=' '
4852 ac_dD=' ,'
4853
4854 uniq confdefs.h |
4855 sed -n '
4856 t rset
4857 :rset
4858 s/^[ ]*#[ ]*define[ ][ ]*//
4859 t ok
4860 d
4861 :ok
4862 s/[\\&,]/\\&/g
4863 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
4864 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
4865 ' >>conftest.defines
4866
4867 # Remove the space that was appended to ease matching.
4868 # Then replace #undef with comments. This is necessary, for
4869 # example, in the case of _POSIX_SOURCE, which is predefined and required
4870 # on some systems where configure will not decide to define it.
4871 # (The regexp can be short, since the line contains either #define or #undef.)
4872 echo 's/ $//
4873 s,^[ #]*u.*,/* & */,' >>conftest.defines
4874
4875 # Break up conftest.defines:
4876 ac_max_sed_lines=50
4877
4878 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
4879 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
4880 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
4881 # et cetera.
4882 ac_in='$ac_file_inputs'
4883 ac_out='"$tmp/out1"'
4884 ac_nxt='"$tmp/out2"'
4885
4886 while :
4887 do
4888 # Write a here document:
4889 cat >>$CONFIG_STATUS <<_ACEOF
4890 # First, check the format of the line:
4891 cat >"\$tmp/defines.sed" <<\\CEOF
4892 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
4893 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
4894 b
4895 :def
4896 _ACEOF
4897 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
4898 echo 'CEOF
4899 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
4900 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
4901 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
4902 grep . conftest.tail >/dev/null || break
4903 rm -f conftest.defines
4904 mv conftest.tail conftest.defines
4905 done
4906 rm -f conftest.defines conftest.tail
4907
4908 echo "ac_result=$ac_in" >>$CONFIG_STATUS
4909 cat >>$CONFIG_STATUS <<\_ACEOF
4910 if test x"$ac_file" != x-; then
4911 echo "/* $configure_input */" >"$tmp/config.h"
4912 cat "$ac_result" >>"$tmp/config.h"
4913 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
4914 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4915 echo "$as_me: $ac_file is unchanged" >&6;}
4916 else
4917 rm -f $ac_file
4918 mv "$tmp/config.h" $ac_file
4919 fi
4920 else
4921 echo "/* $configure_input */"
4922 cat "$ac_result"
4923 fi
4924 rm -f "$tmp/out12"
4925 ;;
4926
4927
4928 esac
4929
4930 done # for ac_tag
4931
4932
4933 { (exit 0); exit 0; }
4934 _ACEOF
4935 chmod +x $CONFIG_STATUS
4936 ac_clean_files=$ac_clean_files_save
4937
4938
4939 # configure is writing to config.log, and then calls config.status.
4940 # config.status does its own redirection, appending to config.log.
4941 # Unfortunately, on DOS this fails, as config.log is still kept open
4942 # by configure, so config.status won't be able to write to it; its
4943 # output is simply discarded. So we exec the FD to /dev/null,
4944 # effectively closing config.log, so it can be properly (re)opened and
4945 # appended to by config.status. When coming back to configure, we
4946 # need to make the FD available again.
4947 if test "$no_create" != yes; then
4948 ac_cs_success=:
4949 ac_config_status_args=
4950 test "$silent" = yes &&
4951 ac_config_status_args="$ac_config_status_args --quiet"
4952 exec 5>/dev/null
4953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4954 exec 5>>config.log
4955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4956 # would make configure fail if this is the last instruction.
4957 $ac_cs_success || { (exit 1); exit 1; }
4958 fi
4959