* gcc-interface/decl.c (gnat_to_gnu_field): Do not set the alignment
[official-gcc.git] / libada / configure
blob76b39921e7273323ff839636cd0b148ae4673263
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="Makefile.in"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
591 ac_subst_vars='LTLIBOBJS
592 LIBOBJS
593 get_gcc_base_ver
594 have_capability
595 EGREP
596 GREP
598 have_getipinfo
599 default_gnatlib_target
600 LN_S
602 PICFLAG
603 enable_shared
604 OBJEXT
605 EXEEXT
606 ac_ct_CC
607 CPPFLAGS
608 LDFLAGS
609 CFLAGS
611 toolexeclibdir
612 toolexecdir
613 multi_basedir
614 MAINT
615 target_subdir
616 host_subdir
617 build_subdir
618 build_libsubdir
619 target_noncanonical
620 target_os
621 target_vendor
622 target_cpu
623 target
624 host_os
625 host_vendor
626 host_cpu
627 host
628 build_os
629 build_vendor
630 build_cpu
631 build
632 target_alias
633 host_alias
634 build_alias
635 LIBS
636 ECHO_T
637 ECHO_N
638 ECHO_C
639 DEFS
640 mandir
641 localedir
642 libdir
643 psdir
644 pdfdir
645 dvidir
646 htmldir
647 infodir
648 docdir
649 oldincludedir
650 includedir
651 localstatedir
652 sharedstatedir
653 sysconfdir
654 datadir
655 datarootdir
656 libexecdir
657 sbindir
658 bindir
659 program_transform_name
660 prefix
661 exec_prefix
662 PACKAGE_URL
663 PACKAGE_BUGREPORT
664 PACKAGE_STRING
665 PACKAGE_VERSION
666 PACKAGE_TARNAME
667 PACKAGE_NAME
668 PATH_SEPARATOR
669 SHELL'
670 ac_subst_files=''
671 ac_user_opts='
672 enable_option_checking
673 with_build_libsubdir
674 enable_maintainer_mode
675 enable_multilib
676 enable_shared
677 with_system_libunwind
678 with_gcc_major_version_only
680 ac_precious_vars='build_alias
681 host_alias
682 target_alias
684 CPPFLAGS'
687 # Initialize some variables set by options.
688 ac_init_help=
689 ac_init_version=false
690 ac_unrecognized_opts=
691 ac_unrecognized_sep=
692 # The variables have the same names as the options, with
693 # dashes changed to underlines.
694 cache_file=/dev/null
695 exec_prefix=NONE
696 no_create=
697 no_recursion=
698 prefix=NONE
699 program_prefix=NONE
700 program_suffix=NONE
701 program_transform_name=s,x,x,
702 silent=
703 site=
704 srcdir=
705 verbose=
706 x_includes=NONE
707 x_libraries=NONE
709 # Installation directory options.
710 # These are left unexpanded so users can "make install exec_prefix=/foo"
711 # and all the variables that are supposed to be based on exec_prefix
712 # by default will actually change.
713 # Use braces instead of parens because sh, perl, etc. also accept them.
714 # (The list follows the same order as the GNU Coding Standards.)
715 bindir='${exec_prefix}/bin'
716 sbindir='${exec_prefix}/sbin'
717 libexecdir='${exec_prefix}/libexec'
718 datarootdir='${prefix}/share'
719 datadir='${datarootdir}'
720 sysconfdir='${prefix}/etc'
721 sharedstatedir='${prefix}/com'
722 localstatedir='${prefix}/var'
723 includedir='${prefix}/include'
724 oldincludedir='/usr/include'
725 docdir='${datarootdir}/doc/${PACKAGE}'
726 infodir='${datarootdir}/info'
727 htmldir='${docdir}'
728 dvidir='${docdir}'
729 pdfdir='${docdir}'
730 psdir='${docdir}'
731 libdir='${exec_prefix}/lib'
732 localedir='${datarootdir}/locale'
733 mandir='${datarootdir}/man'
735 ac_prev=
736 ac_dashdash=
737 for ac_option
739 # If the previous option needs an argument, assign it.
740 if test -n "$ac_prev"; then
741 eval $ac_prev=\$ac_option
742 ac_prev=
743 continue
746 case $ac_option in
747 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
748 *) ac_optarg=yes ;;
749 esac
751 # Accept the important Cygnus configure options, so we can diagnose typos.
753 case $ac_dashdash$ac_option in
755 ac_dashdash=yes ;;
757 -bindir | --bindir | --bindi | --bind | --bin | --bi)
758 ac_prev=bindir ;;
759 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
760 bindir=$ac_optarg ;;
762 -build | --build | --buil | --bui | --bu)
763 ac_prev=build_alias ;;
764 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
765 build_alias=$ac_optarg ;;
767 -cache-file | --cache-file | --cache-fil | --cache-fi \
768 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
769 ac_prev=cache_file ;;
770 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
771 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
772 cache_file=$ac_optarg ;;
774 --config-cache | -C)
775 cache_file=config.cache ;;
777 -datadir | --datadir | --datadi | --datad)
778 ac_prev=datadir ;;
779 -datadir=* | --datadir=* | --datadi=* | --datad=*)
780 datadir=$ac_optarg ;;
782 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
783 | --dataroo | --dataro | --datar)
784 ac_prev=datarootdir ;;
785 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
786 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
787 datarootdir=$ac_optarg ;;
789 -disable-* | --disable-*)
790 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
793 as_fn_error "invalid feature name: $ac_useropt"
794 ac_useropt_orig=$ac_useropt
795 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
796 case $ac_user_opts in
798 "enable_$ac_useropt"
799 "*) ;;
800 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
801 ac_unrecognized_sep=', ';;
802 esac
803 eval enable_$ac_useropt=no ;;
805 -docdir | --docdir | --docdi | --doc | --do)
806 ac_prev=docdir ;;
807 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
808 docdir=$ac_optarg ;;
810 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
811 ac_prev=dvidir ;;
812 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
813 dvidir=$ac_optarg ;;
815 -enable-* | --enable-*)
816 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
817 # Reject names that are not valid shell variable names.
818 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
819 as_fn_error "invalid feature name: $ac_useropt"
820 ac_useropt_orig=$ac_useropt
821 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
822 case $ac_user_opts in
824 "enable_$ac_useropt"
825 "*) ;;
826 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
827 ac_unrecognized_sep=', ';;
828 esac
829 eval enable_$ac_useropt=\$ac_optarg ;;
831 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
832 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
833 | --exec | --exe | --ex)
834 ac_prev=exec_prefix ;;
835 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
836 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
837 | --exec=* | --exe=* | --ex=*)
838 exec_prefix=$ac_optarg ;;
840 -gas | --gas | --ga | --g)
841 # Obsolete; use --with-gas.
842 with_gas=yes ;;
844 -help | --help | --hel | --he | -h)
845 ac_init_help=long ;;
846 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
847 ac_init_help=recursive ;;
848 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
849 ac_init_help=short ;;
851 -host | --host | --hos | --ho)
852 ac_prev=host_alias ;;
853 -host=* | --host=* | --hos=* | --ho=*)
854 host_alias=$ac_optarg ;;
856 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
857 ac_prev=htmldir ;;
858 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
859 | --ht=*)
860 htmldir=$ac_optarg ;;
862 -includedir | --includedir | --includedi | --included | --include \
863 | --includ | --inclu | --incl | --inc)
864 ac_prev=includedir ;;
865 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
866 | --includ=* | --inclu=* | --incl=* | --inc=*)
867 includedir=$ac_optarg ;;
869 -infodir | --infodir | --infodi | --infod | --info | --inf)
870 ac_prev=infodir ;;
871 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
872 infodir=$ac_optarg ;;
874 -libdir | --libdir | --libdi | --libd)
875 ac_prev=libdir ;;
876 -libdir=* | --libdir=* | --libdi=* | --libd=*)
877 libdir=$ac_optarg ;;
879 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
880 | --libexe | --libex | --libe)
881 ac_prev=libexecdir ;;
882 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
883 | --libexe=* | --libex=* | --libe=*)
884 libexecdir=$ac_optarg ;;
886 -localedir | --localedir | --localedi | --localed | --locale)
887 ac_prev=localedir ;;
888 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
889 localedir=$ac_optarg ;;
891 -localstatedir | --localstatedir | --localstatedi | --localstated \
892 | --localstate | --localstat | --localsta | --localst | --locals)
893 ac_prev=localstatedir ;;
894 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
895 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
896 localstatedir=$ac_optarg ;;
898 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
899 ac_prev=mandir ;;
900 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
901 mandir=$ac_optarg ;;
903 -nfp | --nfp | --nf)
904 # Obsolete; use --without-fp.
905 with_fp=no ;;
907 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
908 | --no-cr | --no-c | -n)
909 no_create=yes ;;
911 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
912 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
913 no_recursion=yes ;;
915 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
916 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
917 | --oldin | --oldi | --old | --ol | --o)
918 ac_prev=oldincludedir ;;
919 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
920 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
921 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
922 oldincludedir=$ac_optarg ;;
924 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
925 ac_prev=prefix ;;
926 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
927 prefix=$ac_optarg ;;
929 -program-prefix | --program-prefix | --program-prefi | --program-pref \
930 | --program-pre | --program-pr | --program-p)
931 ac_prev=program_prefix ;;
932 -program-prefix=* | --program-prefix=* | --program-prefi=* \
933 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
934 program_prefix=$ac_optarg ;;
936 -program-suffix | --program-suffix | --program-suffi | --program-suff \
937 | --program-suf | --program-su | --program-s)
938 ac_prev=program_suffix ;;
939 -program-suffix=* | --program-suffix=* | --program-suffi=* \
940 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
941 program_suffix=$ac_optarg ;;
943 -program-transform-name | --program-transform-name \
944 | --program-transform-nam | --program-transform-na \
945 | --program-transform-n | --program-transform- \
946 | --program-transform | --program-transfor \
947 | --program-transfo | --program-transf \
948 | --program-trans | --program-tran \
949 | --progr-tra | --program-tr | --program-t)
950 ac_prev=program_transform_name ;;
951 -program-transform-name=* | --program-transform-name=* \
952 | --program-transform-nam=* | --program-transform-na=* \
953 | --program-transform-n=* | --program-transform-=* \
954 | --program-transform=* | --program-transfor=* \
955 | --program-transfo=* | --program-transf=* \
956 | --program-trans=* | --program-tran=* \
957 | --progr-tra=* | --program-tr=* | --program-t=*)
958 program_transform_name=$ac_optarg ;;
960 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
961 ac_prev=pdfdir ;;
962 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
963 pdfdir=$ac_optarg ;;
965 -psdir | --psdir | --psdi | --psd | --ps)
966 ac_prev=psdir ;;
967 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
968 psdir=$ac_optarg ;;
970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
971 | -silent | --silent | --silen | --sile | --sil)
972 silent=yes ;;
974 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
975 ac_prev=sbindir ;;
976 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
977 | --sbi=* | --sb=*)
978 sbindir=$ac_optarg ;;
980 -sharedstatedir | --sharedstatedir | --sharedstatedi \
981 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
982 | --sharedst | --shareds | --shared | --share | --shar \
983 | --sha | --sh)
984 ac_prev=sharedstatedir ;;
985 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
986 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
987 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
988 | --sha=* | --sh=*)
989 sharedstatedir=$ac_optarg ;;
991 -site | --site | --sit)
992 ac_prev=site ;;
993 -site=* | --site=* | --sit=*)
994 site=$ac_optarg ;;
996 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
997 ac_prev=srcdir ;;
998 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
999 srcdir=$ac_optarg ;;
1001 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1002 | --syscon | --sysco | --sysc | --sys | --sy)
1003 ac_prev=sysconfdir ;;
1004 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1005 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1006 sysconfdir=$ac_optarg ;;
1008 -target | --target | --targe | --targ | --tar | --ta | --t)
1009 ac_prev=target_alias ;;
1010 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1011 target_alias=$ac_optarg ;;
1013 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1014 verbose=yes ;;
1016 -version | --version | --versio | --versi | --vers | -V)
1017 ac_init_version=: ;;
1019 -with-* | --with-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error "invalid package name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "with_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval with_$ac_useropt=\$ac_optarg ;;
1035 -without-* | --without-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error "invalid package name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "with_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval with_$ac_useropt=no ;;
1051 --x)
1052 # Obsolete; use --with-x.
1053 with_x=yes ;;
1055 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1056 | --x-incl | --x-inc | --x-in | --x-i)
1057 ac_prev=x_includes ;;
1058 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1059 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1060 x_includes=$ac_optarg ;;
1062 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1063 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1064 ac_prev=x_libraries ;;
1065 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1066 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1067 x_libraries=$ac_optarg ;;
1069 -*) as_fn_error "unrecognized option: \`$ac_option'
1070 Try \`$0 --help' for more information."
1073 *=*)
1074 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1075 # Reject names that are not valid shell variable names.
1076 case $ac_envvar in #(
1077 '' | [0-9]* | *[!_$as_cr_alnum]* )
1078 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1079 esac
1080 eval $ac_envvar=\$ac_optarg
1081 export $ac_envvar ;;
1084 # FIXME: should be removed in autoconf 3.0.
1085 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1086 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1087 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1088 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1091 esac
1092 done
1094 if test -n "$ac_prev"; then
1095 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1096 as_fn_error "missing argument to $ac_option"
1099 if test -n "$ac_unrecognized_opts"; then
1100 case $enable_option_checking in
1101 no) ;;
1102 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1103 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1104 esac
1107 # Check all directory arguments for consistency.
1108 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1109 datadir sysconfdir sharedstatedir localstatedir includedir \
1110 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1111 libdir localedir mandir
1113 eval ac_val=\$$ac_var
1114 # Remove trailing slashes.
1115 case $ac_val in
1116 */ )
1117 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1118 eval $ac_var=\$ac_val;;
1119 esac
1120 # Be sure to have absolute directory names.
1121 case $ac_val in
1122 [\\/$]* | ?:[\\/]* ) continue;;
1123 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1124 esac
1125 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1126 done
1128 # There might be people who depend on the old broken behavior: `$host'
1129 # used to hold the argument of --host etc.
1130 # FIXME: To remove some day.
1131 build=$build_alias
1132 host=$host_alias
1133 target=$target_alias
1135 # FIXME: To remove some day.
1136 if test "x$host_alias" != x; then
1137 if test "x$build_alias" = x; then
1138 cross_compiling=maybe
1139 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1140 If a cross compiler is detected then cross compile mode will be used." >&2
1141 elif test "x$build_alias" != "x$host_alias"; then
1142 cross_compiling=yes
1146 ac_tool_prefix=
1147 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1149 test "$silent" = yes && exec 6>/dev/null
1152 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1153 ac_ls_di=`ls -di .` &&
1154 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1155 as_fn_error "working directory cannot be determined"
1156 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1157 as_fn_error "pwd does not report name of working directory"
1160 # Find the source files, if location was not specified.
1161 if test -z "$srcdir"; then
1162 ac_srcdir_defaulted=yes
1163 # Try the directory containing this script, then the parent directory.
1164 ac_confdir=`$as_dirname -- "$as_myself" ||
1165 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1166 X"$as_myself" : 'X\(//\)[^/]' \| \
1167 X"$as_myself" : 'X\(//\)$' \| \
1168 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1169 $as_echo X"$as_myself" |
1170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1171 s//\1/
1174 /^X\(\/\/\)[^/].*/{
1175 s//\1/
1178 /^X\(\/\/\)$/{
1179 s//\1/
1182 /^X\(\/\).*/{
1183 s//\1/
1186 s/.*/./; q'`
1187 srcdir=$ac_confdir
1188 if test ! -r "$srcdir/$ac_unique_file"; then
1189 srcdir=..
1191 else
1192 ac_srcdir_defaulted=no
1194 if test ! -r "$srcdir/$ac_unique_file"; then
1195 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1196 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1198 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1199 ac_abs_confdir=`(
1200 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1201 pwd)`
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204 srcdir=.
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1209 case $srcdir in
1210 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1211 esac
1212 for ac_var in $ac_precious_vars; do
1213 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_env_${ac_var}_value=\$${ac_var}
1215 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1216 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1217 done
1220 # Report the --help message.
1222 if test "$ac_init_help" = "long"; then
1223 # Omit some internal or obsolete options to make the list less imposing.
1224 # This message is too long to be a string in the A/UX 3.1 sh.
1225 cat <<_ACEOF
1226 \`configure' configures this package to adapt to many kinds of systems.
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE. See below for descriptions of some of the useful variables.
1233 Defaults for the options are specified in brackets.
1235 Configuration:
1236 -h, --help display this help and exit
1237 --help=short display options specific to this package
1238 --help=recursive display the short help of all the included packages
1239 -V, --version display version information and exit
1240 -q, --quiet, --silent do not print \`checking...' messages
1241 --cache-file=FILE cache test results in FILE [disabled]
1242 -C, --config-cache alias for \`--cache-file=config.cache'
1243 -n, --no-create do not create output files
1244 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1246 Installation directories:
1247 --prefix=PREFIX install architecture-independent files in PREFIX
1248 [$ac_default_prefix]
1249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1250 [PREFIX]
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1257 For better control, use the options below.
1259 Fine tuning of the installation directories:
1260 --bindir=DIR user executables [EPREFIX/bin]
1261 --sbindir=DIR system admin executables [EPREFIX/sbin]
1262 --libexecdir=DIR program executables [EPREFIX/libexec]
1263 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1264 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1265 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1279 _ACEOF
1281 cat <<\_ACEOF
1283 System types:
1284 --build=BUILD configure for building on BUILD [guessed]
1285 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1286 --target=TARGET configure for building compilers for TARGET [HOST]
1287 _ACEOF
1290 if test -n "$ac_init_help"; then
1292 cat <<\_ACEOF
1294 Optional Features:
1295 --disable-option-checking ignore unrecognized --enable/--with options
1296 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1297 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1298 --enable-maintainer-mode
1299 enable make rules and dependencies not useful (and
1300 sometimes confusing) to the casual installer
1301 --enable-multilib build many library versions (default)
1302 --disable-shared don't provide a shared libgnat
1304 Optional Packages:
1305 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1306 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1307 --with-build-libsubdir=DIR Directory where to find libraries for build system
1308 --with-system-libunwind use installed libunwind
1309 --with-gcc-major-version-only
1310 use only GCC major number in filesystem paths
1312 Some influential environment variables:
1313 CC C compiler command
1314 CFLAGS C compiler flags
1315 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1316 nonstandard directory <lib dir>
1317 LIBS libraries to pass to the linker, e.g. -l<library>
1318 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1319 you have headers in a nonstandard directory <include dir>
1320 CPP C preprocessor
1322 Use these variables to override the choices made by `configure' or to help
1323 it to find libraries and programs with nonstandard names/locations.
1325 Report bugs to the package provider.
1326 _ACEOF
1327 ac_status=$?
1330 if test "$ac_init_help" = "recursive"; then
1331 # If there are subdirs, report their specific --help.
1332 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1333 test -d "$ac_dir" ||
1334 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1335 continue
1336 ac_builddir=.
1338 case "$ac_dir" in
1339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1342 # A ".." for each directory in $ac_dir_suffix.
1343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1344 case $ac_top_builddir_sub in
1345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1347 esac ;;
1348 esac
1349 ac_abs_top_builddir=$ac_pwd
1350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1351 # for backward compatibility:
1352 ac_top_builddir=$ac_top_build_prefix
1354 case $srcdir in
1355 .) # We are building in place.
1356 ac_srcdir=.
1357 ac_top_srcdir=$ac_top_builddir_sub
1358 ac_abs_top_srcdir=$ac_pwd ;;
1359 [\\/]* | ?:[\\/]* ) # Absolute name.
1360 ac_srcdir=$srcdir$ac_dir_suffix;
1361 ac_top_srcdir=$srcdir
1362 ac_abs_top_srcdir=$srcdir ;;
1363 *) # Relative name.
1364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1365 ac_top_srcdir=$ac_top_build_prefix$srcdir
1366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1367 esac
1368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1370 cd "$ac_dir" || { ac_status=$?; continue; }
1371 # Check for guested configure.
1372 if test -f "$ac_srcdir/configure.gnu"; then
1373 echo &&
1374 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1375 elif test -f "$ac_srcdir/configure"; then
1376 echo &&
1377 $SHELL "$ac_srcdir/configure" --help=recursive
1378 else
1379 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1380 fi || ac_status=$?
1381 cd "$ac_pwd" || { ac_status=$?; break; }
1382 done
1385 test -n "$ac_init_help" && exit $ac_status
1386 if $ac_init_version; then
1387 cat <<\_ACEOF
1388 configure
1389 generated by GNU Autoconf 2.64
1391 Copyright (C) 2009 Free Software Foundation, Inc.
1392 This configure script is free software; the Free Software Foundation
1393 gives unlimited permission to copy, distribute and modify it.
1394 _ACEOF
1395 exit
1398 ## ------------------------ ##
1399 ## Autoconf initialization. ##
1400 ## ------------------------ ##
1402 # ac_fn_c_try_compile LINENO
1403 # --------------------------
1404 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1405 ac_fn_c_try_compile ()
1407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1408 rm -f conftest.$ac_objext
1409 if { { ac_try="$ac_compile"
1410 case "(($ac_try" in
1411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1412 *) ac_try_echo=$ac_try;;
1413 esac
1414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1415 $as_echo "$ac_try_echo"; } >&5
1416 (eval "$ac_compile") 2>conftest.err
1417 ac_status=$?
1418 if test -s conftest.err; then
1419 grep -v '^ *+' conftest.err >conftest.er1
1420 cat conftest.er1 >&5
1421 mv -f conftest.er1 conftest.err
1423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1424 test $ac_status = 0; } && {
1425 test -z "$ac_c_werror_flag" ||
1426 test ! -s conftest.err
1427 } && test -s conftest.$ac_objext; then :
1428 ac_retval=0
1429 else
1430 $as_echo "$as_me: failed program was:" >&5
1431 sed 's/^/| /' conftest.$ac_ext >&5
1433 ac_retval=1
1435 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1436 return $ac_retval
1438 } # ac_fn_c_try_compile
1440 # ac_fn_c_try_cpp LINENO
1441 # ----------------------
1442 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1443 ac_fn_c_try_cpp ()
1445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1446 if { { ac_try="$ac_cpp conftest.$ac_ext"
1447 case "(($ac_try" in
1448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1449 *) ac_try_echo=$ac_try;;
1450 esac
1451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1452 $as_echo "$ac_try_echo"; } >&5
1453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1454 ac_status=$?
1455 if test -s conftest.err; then
1456 grep -v '^ *+' conftest.err >conftest.er1
1457 cat conftest.er1 >&5
1458 mv -f conftest.er1 conftest.err
1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461 test $ac_status = 0; } >/dev/null && {
1462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1463 test ! -s conftest.err
1464 }; then :
1465 ac_retval=0
1466 else
1467 $as_echo "$as_me: failed program was:" >&5
1468 sed 's/^/| /' conftest.$ac_ext >&5
1470 ac_retval=1
1472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1473 return $ac_retval
1475 } # ac_fn_c_try_cpp
1477 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1478 # -------------------------------------------------------
1479 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1480 # the include files in INCLUDES and setting the cache variable VAR
1481 # accordingly.
1482 ac_fn_c_check_header_mongrel ()
1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1487 $as_echo_n "checking for $2... " >&6; }
1488 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1489 $as_echo_n "(cached) " >&6
1491 eval ac_res=\$$3
1492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1493 $as_echo "$ac_res" >&6; }
1494 else
1495 # Is the header compilable?
1496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1497 $as_echo_n "checking $2 usability... " >&6; }
1498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1499 /* end confdefs.h. */
1501 #include <$2>
1502 _ACEOF
1503 if ac_fn_c_try_compile "$LINENO"; then :
1504 ac_header_compiler=yes
1505 else
1506 ac_header_compiler=no
1508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1510 $as_echo "$ac_header_compiler" >&6; }
1512 # Is the header present?
1513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1514 $as_echo_n "checking $2 presence... " >&6; }
1515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1516 /* end confdefs.h. */
1517 #include <$2>
1518 _ACEOF
1519 if ac_fn_c_try_cpp "$LINENO"; then :
1520 ac_header_preproc=yes
1521 else
1522 ac_header_preproc=no
1524 rm -f conftest.err conftest.$ac_ext
1525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1526 $as_echo "$ac_header_preproc" >&6; }
1528 # So? What about this header?
1529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1530 yes:no: )
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1532 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1534 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1536 no:yes:* )
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1538 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1540 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1542 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1544 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1546 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1548 esac
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1550 $as_echo_n "checking for $2... " >&6; }
1551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1552 $as_echo_n "(cached) " >&6
1553 else
1554 eval "$3=\$ac_header_compiler"
1556 eval ac_res=\$$3
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1558 $as_echo "$ac_res" >&6; }
1560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562 } # ac_fn_c_check_header_mongrel
1564 # ac_fn_c_try_run LINENO
1565 # ----------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1567 # that executables *can* be run.
1568 ac_fn_c_try_run ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 if { { ac_try="$ac_link"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>&5
1579 ac_status=$?
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1582 { { case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_try") 2>&5
1589 ac_status=$?
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; }; }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: program exited with status $ac_status" >&5
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1598 ac_retval=$ac_status
1600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1601 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1602 return $ac_retval
1604 } # ac_fn_c_try_run
1606 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1607 # -------------------------------------------------------
1608 # Tests whether HEADER exists and can be compiled using the include files in
1609 # INCLUDES, setting the cache variable VAR accordingly.
1610 ac_fn_c_check_header_compile ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1616 $as_echo_n "(cached) " >&6
1617 else
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1621 #include <$2>
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 eval "$3=yes"
1625 else
1626 eval "$3=no"
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 eval ac_res=\$$3
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 } # ac_fn_c_check_header_compile
1636 cat >config.log <<_ACEOF
1637 This file contains any messages produced by compilers while
1638 running configure, to aid debugging if configure makes a mistake.
1640 It was created by $as_me, which was
1641 generated by GNU Autoconf 2.64. Invocation command line was
1643 $ $0 $@
1645 _ACEOF
1646 exec 5>>config.log
1648 cat <<_ASUNAME
1649 ## --------- ##
1650 ## Platform. ##
1651 ## --------- ##
1653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1660 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1662 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1663 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1665 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1666 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1667 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1668 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1670 _ASUNAME
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 $as_echo "PATH: $as_dir"
1678 done
1679 IFS=$as_save_IFS
1681 } >&5
1683 cat >&5 <<_ACEOF
1686 ## ----------- ##
1687 ## Core tests. ##
1688 ## ----------- ##
1690 _ACEOF
1693 # Keep a trace of the command line.
1694 # Strip out --no-create and --no-recursion so they do not pile up.
1695 # Strip out --silent because we don't want to record it for future runs.
1696 # Also quote any args containing shell meta-characters.
1697 # Make two passes to allow for proper duplicate-argument suppression.
1698 ac_configure_args=
1699 ac_configure_args0=
1700 ac_configure_args1=
1701 ac_must_keep_next=false
1702 for ac_pass in 1 2
1704 for ac_arg
1706 case $ac_arg in
1707 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1709 | -silent | --silent | --silen | --sile | --sil)
1710 continue ;;
1711 *\'*)
1712 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713 esac
1714 case $ac_pass in
1715 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1717 as_fn_append ac_configure_args1 " '$ac_arg'"
1718 if test $ac_must_keep_next = true; then
1719 ac_must_keep_next=false # Got value, back to normal.
1720 else
1721 case $ac_arg in
1722 *=* | --config-cache | -C | -disable-* | --disable-* \
1723 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1724 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1725 | -with-* | --with-* | -without-* | --without-* | --x)
1726 case "$ac_configure_args0 " in
1727 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1728 esac
1730 -* ) ac_must_keep_next=true ;;
1731 esac
1733 as_fn_append ac_configure_args " '$ac_arg'"
1735 esac
1736 done
1737 done
1738 { ac_configure_args0=; unset ac_configure_args0;}
1739 { ac_configure_args1=; unset ac_configure_args1;}
1741 # When interrupted or exit'd, cleanup temporary files, and complete
1742 # config.log. We remove comments because anyway the quotes in there
1743 # would cause problems or look ugly.
1744 # WARNING: Use '\'' to represent an apostrophe within the trap.
1745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1746 trap 'exit_status=$?
1747 # Save into config.log some information that might help in debugging.
1749 echo
1751 cat <<\_ASBOX
1752 ## ---------------- ##
1753 ## Cache variables. ##
1754 ## ---------------- ##
1755 _ASBOX
1756 echo
1757 # The following way of writing the cache mishandles newlines in values,
1759 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760 eval ac_val=\$$ac_var
1761 case $ac_val in #(
1762 *${as_nl}*)
1763 case $ac_var in #(
1764 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1766 esac
1767 case $ac_var in #(
1768 _ | IFS | as_nl) ;; #(
1769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1770 *) { eval $ac_var=; unset $ac_var;} ;;
1771 esac ;;
1772 esac
1773 done
1774 (set) 2>&1 |
1775 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1776 *${as_nl}ac_space=\ *)
1777 sed -n \
1778 "s/'\''/'\''\\\\'\'''\''/g;
1779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1780 ;; #(
1782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1784 esac |
1785 sort
1787 echo
1789 cat <<\_ASBOX
1790 ## ----------------- ##
1791 ## Output variables. ##
1792 ## ----------------- ##
1793 _ASBOX
1794 echo
1795 for ac_var in $ac_subst_vars
1797 eval ac_val=\$$ac_var
1798 case $ac_val in
1799 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1800 esac
1801 $as_echo "$ac_var='\''$ac_val'\''"
1802 done | sort
1803 echo
1805 if test -n "$ac_subst_files"; then
1806 cat <<\_ASBOX
1807 ## ------------------- ##
1808 ## File substitutions. ##
1809 ## ------------------- ##
1810 _ASBOX
1811 echo
1812 for ac_var in $ac_subst_files
1814 eval ac_val=\$$ac_var
1815 case $ac_val in
1816 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817 esac
1818 $as_echo "$ac_var='\''$ac_val'\''"
1819 done | sort
1820 echo
1823 if test -s confdefs.h; then
1824 cat <<\_ASBOX
1825 ## ----------- ##
1826 ## confdefs.h. ##
1827 ## ----------- ##
1828 _ASBOX
1829 echo
1830 cat confdefs.h
1831 echo
1833 test "$ac_signal" != 0 &&
1834 $as_echo "$as_me: caught signal $ac_signal"
1835 $as_echo "$as_me: exit $exit_status"
1836 } >&5
1837 rm -f core *.core core.conftest.* &&
1838 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1839 exit $exit_status
1841 for ac_signal in 1 2 13 15; do
1842 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1843 done
1844 ac_signal=0
1846 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1847 rm -f -r conftest* confdefs.h
1849 $as_echo "/* confdefs.h */" > confdefs.h
1851 # Predefined preprocessor variables.
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_NAME "$PACKAGE_NAME"
1855 _ACEOF
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1859 _ACEOF
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1863 _ACEOF
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_STRING "$PACKAGE_STRING"
1867 _ACEOF
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1871 _ACEOF
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_URL "$PACKAGE_URL"
1875 _ACEOF
1878 # Let the site file select an alternate cache file if it wants to.
1879 # Prefer an explicitly selected file to automatically selected ones.
1880 ac_site_file1=NONE
1881 ac_site_file2=NONE
1882 if test -n "$CONFIG_SITE"; then
1883 ac_site_file1=$CONFIG_SITE
1884 elif test "x$prefix" != xNONE; then
1885 ac_site_file1=$prefix/share/config.site
1886 ac_site_file2=$prefix/etc/config.site
1887 else
1888 ac_site_file1=$ac_default_prefix/share/config.site
1889 ac_site_file2=$ac_default_prefix/etc/config.site
1891 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1893 test "x$ac_site_file" = xNONE && continue
1894 if test -r "$ac_site_file"; then
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1896 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1897 sed 's/^/| /' "$ac_site_file" >&5
1898 . "$ac_site_file"
1900 done
1902 if test -r "$cache_file"; then
1903 # Some versions of bash will fail to source /dev/null (special
1904 # files actually), so we avoid doing that.
1905 if test -f "$cache_file"; then
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1907 $as_echo "$as_me: loading cache $cache_file" >&6;}
1908 case $cache_file in
1909 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910 *) . "./$cache_file";;
1911 esac
1913 else
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1915 $as_echo "$as_me: creating cache $cache_file" >&6;}
1916 >$cache_file
1919 # Check that the precious variables saved in the cache have kept the same
1920 # value.
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924 eval ac_new_set=\$ac_env_${ac_var}_set
1925 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926 eval ac_new_val=\$ac_env_${ac_var}_value
1927 case $ac_old_set,$ac_new_set in
1928 set,)
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931 ac_cache_corrupted=: ;;
1932 ,set)
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1936 ,);;
1938 if test "x$ac_old_val" != "x$ac_new_val"; then
1939 # differences in whitespace do not lead to failure.
1940 ac_old_val_w=`echo x $ac_old_val`
1941 ac_new_val_w=`echo x $ac_new_val`
1942 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1944 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1945 ac_cache_corrupted=:
1946 else
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1948 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1949 eval $ac_var=\$ac_old_val
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1952 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1954 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1955 fi;;
1956 esac
1957 # Pass precious variables to config.status.
1958 if test "$ac_new_set" = set; then
1959 case $ac_new_val in
1960 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1961 *) ac_arg=$ac_var=$ac_new_val ;;
1962 esac
1963 case " $ac_configure_args " in
1964 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1965 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1966 esac
1968 done
1969 if $ac_cache_corrupted; then
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1973 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1974 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1976 ## -------------------- ##
1977 ## Main body of script. ##
1978 ## -------------------- ##
1980 ac_ext=c
1981 ac_cpp='$CPP $CPPFLAGS'
1982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994 # Determine the host, build, and target systems
1995 ac_aux_dir=
1996 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1997 for ac_t in install-sh install.sh shtool; do
1998 if test -f "$ac_dir/$ac_t"; then
1999 ac_aux_dir=$ac_dir
2000 ac_install_sh="$ac_aux_dir/$ac_t -c"
2001 break 2
2003 done
2004 done
2005 if test -z "$ac_aux_dir"; then
2006 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2009 # These three variables are undocumented and unsupported,
2010 # and are intended to be withdrawn in a future Autoconf release.
2011 # They can cause serious problems if a builder's source tree is in a directory
2012 # whose full name contains unusual characters.
2013 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2014 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2015 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2018 # Make sure we can run config.sub.
2019 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2020 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2023 $as_echo_n "checking build system type... " >&6; }
2024 if test "${ac_cv_build+set}" = set; then :
2025 $as_echo_n "(cached) " >&6
2026 else
2027 ac_build_alias=$build_alias
2028 test "x$ac_build_alias" = x &&
2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030 test "x$ac_build_alias" = x &&
2031 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2032 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2033 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2037 $as_echo "$ac_cv_build" >&6; }
2038 case $ac_cv_build in
2039 *-*-*) ;;
2040 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2041 esac
2042 build=$ac_cv_build
2043 ac_save_IFS=$IFS; IFS='-'
2044 set x $ac_cv_build
2045 shift
2046 build_cpu=$1
2047 build_vendor=$2
2048 shift; shift
2049 # Remember, the first character of IFS is used to create $*,
2050 # except with old shells:
2051 build_os=$*
2052 IFS=$ac_save_IFS
2053 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2057 $as_echo_n "checking host system type... " >&6; }
2058 if test "${ac_cv_host+set}" = set; then :
2059 $as_echo_n "(cached) " >&6
2060 else
2061 if test "x$host_alias" = x; then
2062 ac_cv_host=$ac_cv_build
2063 else
2064 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2065 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2070 $as_echo "$ac_cv_host" >&6; }
2071 case $ac_cv_host in
2072 *-*-*) ;;
2073 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2074 esac
2075 host=$ac_cv_host
2076 ac_save_IFS=$IFS; IFS='-'
2077 set x $ac_cv_host
2078 shift
2079 host_cpu=$1
2080 host_vendor=$2
2081 shift; shift
2082 # Remember, the first character of IFS is used to create $*,
2083 # except with old shells:
2084 host_os=$*
2085 IFS=$ac_save_IFS
2086 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2090 $as_echo_n "checking target system type... " >&6; }
2091 if test "${ac_cv_target+set}" = set; then :
2092 $as_echo_n "(cached) " >&6
2093 else
2094 if test "x$target_alias" = x; then
2095 ac_cv_target=$ac_cv_host
2096 else
2097 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2098 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2103 $as_echo "$ac_cv_target" >&6; }
2104 case $ac_cv_target in
2105 *-*-*) ;;
2106 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2107 esac
2108 target=$ac_cv_target
2109 ac_save_IFS=$IFS; IFS='-'
2110 set x $ac_cv_target
2111 shift
2112 target_cpu=$1
2113 target_vendor=$2
2114 shift; shift
2115 # Remember, the first character of IFS is used to create $*,
2116 # except with old shells:
2117 target_os=$*
2118 IFS=$ac_save_IFS
2119 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2122 # The aliases save the names the user supplied, while $host etc.
2123 # will get canonicalized.
2124 test -n "$target_alias" &&
2125 test "$program_prefix$program_suffix$program_transform_name" = \
2126 NONENONEs,x,x, &&
2127 program_prefix=${target_alias}-
2128 target_alias=${target_alias-$host_alias}
2130 # Determine the noncanonical target name, for directory use.
2131 case ${build_alias} in
2132 "") build_noncanonical=${build} ;;
2133 *) build_noncanonical=${build_alias} ;;
2134 esac
2136 case ${host_alias} in
2137 "") host_noncanonical=${build_noncanonical} ;;
2138 *) host_noncanonical=${host_alias} ;;
2139 esac
2141 case ${target_alias} in
2142 "") target_noncanonical=${host_noncanonical} ;;
2143 *) target_noncanonical=${target_alias} ;;
2144 esac
2149 # Determine the target- and build-specific subdirectories
2151 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2152 # have matching libraries, they should use host libraries: Makefile.tpl
2153 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2154 # However, they still use the build modules, because the corresponding
2155 # host modules (e.g. bison) are only built for the host when bootstrap
2156 # finishes. So:
2157 # - build_subdir is where we find build modules, and never changes.
2158 # - build_libsubdir is where we find build libraries, and can be overridden.
2160 # Prefix 'build-' so this never conflicts with target_subdir.
2161 build_subdir="build-${build_noncanonical}"
2163 # Check whether --with-build-libsubdir was given.
2164 if test "${with_build_libsubdir+set}" = set; then :
2165 withval=$with_build_libsubdir; build_libsubdir="$withval"
2166 else
2167 build_libsubdir="$build_subdir"
2170 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2171 if ( test $srcdir = . && test -d gcc ) \
2172 || test -d $srcdir/../host-${host_noncanonical}; then
2173 host_subdir="host-${host_noncanonical}"
2174 else
2175 host_subdir=.
2177 # No prefix.
2178 target_subdir=${target_noncanonical}
2181 # Command-line options.
2182 # Very limited version of AC_MAINTAINER_MODE.
2183 # Check whether --enable-maintainer-mode was given.
2184 if test "${enable_maintainer_mode+set}" = set; then :
2185 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2186 yes) MAINT='' ;;
2187 no) MAINT='#' ;;
2188 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2189 esac
2190 maintainer_mode=${enableval}
2191 else
2192 MAINT='#'
2196 # Default to --enable-multilib
2197 # Check whether --enable-multilib was given.
2198 if test "${enable_multilib+set}" = set; then :
2199 enableval=$enable_multilib; case "$enableval" in
2200 yes) multilib=yes ;;
2201 no) multilib=no ;;
2202 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2203 esac
2204 else
2205 multilib=yes
2209 # We may get other options which we leave undocumented:
2210 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2211 # See config-ml.in if you want the gory details.
2213 if test "$srcdir" = "."; then
2214 if test "$with_target_subdir" != "."; then
2215 multi_basedir="$srcdir/$with_multisrctop../.."
2216 else
2217 multi_basedir="$srcdir/$with_multisrctop.."
2219 else
2220 multi_basedir="$srcdir/.."
2224 # Even if the default multilib is not a cross compilation,
2225 # it may be that some of the other multilibs are.
2226 if test $cross_compiling = no && test $multilib = yes \
2227 && test "x${with_multisubdir}" != x ; then
2228 cross_compiling=maybe
2231 ac_config_commands="$ac_config_commands default-1"
2233 # Calculate toolexeclibdir
2234 # Also toolexecdir, though it's only used in toolexeclibdir
2235 case ${enable_version_specific_runtime_libs} in
2236 yes)
2237 # Need the gcc compiler version to know where to install libraries
2238 # and header files if --enable-version-specific-runtime-libs option
2239 # is selected.
2240 toolexecdir='$(libdir)/gcc/$(target_alias)'
2241 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2244 if test -n "$with_cross_host" &&
2245 test x"$with_cross_host" != x"no"; then
2246 # Install a library built with a cross compiler in tooldir, not libdir.
2247 toolexecdir='$(exec_prefix)/$(target_alias)'
2248 toolexeclibdir='$(toolexecdir)/lib'
2249 else
2250 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2251 toolexeclibdir='$(libdir)'
2253 multi_os_directory=`$CC -print-multi-os-directory`
2254 case $multi_os_directory in
2255 .) ;; # Avoid trailing /.
2256 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2257 esac
2259 esac
2262 #TODO: toolexeclibdir is currently disregarded
2264 # Check the compiler.
2265 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2266 # We must force CC to /not/ be precious variables; otherwise
2267 # the wrong, non-multilib-adjusted value will be used in multilibs.
2268 # As a side effect, we have to subst CFLAGS ourselves.
2272 ac_ext=c
2273 ac_cpp='$CPP $CPPFLAGS'
2274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277 if test -n "$ac_tool_prefix"; then
2278 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2279 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2281 $as_echo_n "checking for $ac_word... " >&6; }
2282 if test "${ac_cv_prog_CC+set}" = set; then :
2283 $as_echo_n "(cached) " >&6
2284 else
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 break 2
2299 done
2300 done
2301 IFS=$as_save_IFS
2305 CC=$ac_cv_prog_CC
2306 if test -n "$CC"; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2308 $as_echo "$CC" >&6; }
2309 else
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2311 $as_echo "no" >&6; }
2316 if test -z "$ac_cv_prog_CC"; then
2317 ac_ct_CC=$CC
2318 # Extract the first word of "gcc", so it can be a program name with args.
2319 set dummy gcc; ac_word=$2
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2321 $as_echo_n "checking for $ac_word... " >&6; }
2322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2323 $as_echo_n "(cached) " >&6
2324 else
2325 if test -n "$ac_ct_CC"; then
2326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_ac_ct_CC="gcc"
2336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 break 2
2339 done
2340 done
2341 IFS=$as_save_IFS
2345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2346 if test -n "$ac_ct_CC"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2348 $as_echo "$ac_ct_CC" >&6; }
2349 else
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2351 $as_echo "no" >&6; }
2354 if test "x$ac_ct_CC" = x; then
2355 CC=""
2356 else
2357 case $cross_compiling:$ac_tool_warned in
2358 yes:)
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2361 ac_tool_warned=yes ;;
2362 esac
2363 CC=$ac_ct_CC
2365 else
2366 CC="$ac_cv_prog_CC"
2369 if test -z "$CC"; then
2370 if test -n "$ac_tool_prefix"; then
2371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2372 set dummy ${ac_tool_prefix}cc; ac_word=$2
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2374 $as_echo_n "checking for $ac_word... " >&6; }
2375 if test "${ac_cv_prog_CC+set}" = set; then :
2376 $as_echo_n "(cached) " >&6
2377 else
2378 if test -n "$CC"; then
2379 ac_cv_prog_CC="$CC" # Let the user override the test.
2380 else
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 ac_cv_prog_CC="${ac_tool_prefix}cc"
2389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 break 2
2392 done
2393 done
2394 IFS=$as_save_IFS
2398 CC=$ac_cv_prog_CC
2399 if test -n "$CC"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2401 $as_echo "$CC" >&6; }
2402 else
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2404 $as_echo "no" >&6; }
2410 if test -z "$CC"; then
2411 # Extract the first word of "cc", so it can be a program name with args.
2412 set dummy cc; ac_word=$2
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if test "${ac_cv_prog_CC+set}" = set; then :
2416 $as_echo_n "(cached) " >&6
2417 else
2418 if test -n "$CC"; then
2419 ac_cv_prog_CC="$CC" # Let the user override the test.
2420 else
2421 ac_prog_rejected=no
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2430 ac_prog_rejected=yes
2431 continue
2433 ac_cv_prog_CC="cc"
2434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2437 done
2438 done
2439 IFS=$as_save_IFS
2441 if test $ac_prog_rejected = yes; then
2442 # We found a bogon in the path, so make sure we never use it.
2443 set dummy $ac_cv_prog_CC
2444 shift
2445 if test $# != 0; then
2446 # We chose a different compiler from the bogus one.
2447 # However, it has the same basename, so the bogon will be chosen
2448 # first if we set CC to just the basename; use the full file name.
2449 shift
2450 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2455 CC=$ac_cv_prog_CC
2456 if test -n "$CC"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2458 $as_echo "$CC" >&6; }
2459 else
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461 $as_echo "no" >&6; }
2466 if test -z "$CC"; then
2467 if test -n "$ac_tool_prefix"; then
2468 for ac_prog in cl.exe
2470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473 $as_echo_n "checking for $ac_word... " >&6; }
2474 if test "${ac_cv_prog_CC+set}" = set; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2491 done
2492 done
2493 IFS=$as_save_IFS
2497 CC=$ac_cv_prog_CC
2498 if test -n "$CC"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2500 $as_echo "$CC" >&6; }
2501 else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503 $as_echo "no" >&6; }
2507 test -n "$CC" && break
2508 done
2510 if test -z "$CC"; then
2511 ac_ct_CC=$CC
2512 for ac_prog in cl.exe
2514 # Extract the first word of "$ac_prog", so it can be a program name with args.
2515 set dummy $ac_prog; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 if test -n "$ac_ct_CC"; then
2522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531 ac_cv_prog_ac_ct_CC="$ac_prog"
2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2535 done
2536 done
2537 IFS=$as_save_IFS
2541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2542 if test -n "$ac_ct_CC"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2544 $as_echo "$ac_ct_CC" >&6; }
2545 else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2551 test -n "$ac_ct_CC" && break
2552 done
2554 if test "x$ac_ct_CC" = x; then
2555 CC=""
2556 else
2557 case $cross_compiling:$ac_tool_warned in
2558 yes:)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2561 ac_tool_warned=yes ;;
2562 esac
2563 CC=$ac_ct_CC
2570 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2572 as_fn_error "no acceptable C compiler found in \$PATH
2573 See \`config.log' for more details." "$LINENO" 5; }
2575 # Provide some information about the compiler.
2576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2577 set X $ac_compile
2578 ac_compiler=$2
2579 for ac_option in --version -v -V -qversion; do
2580 { { ac_try="$ac_compiler $ac_option >&5"
2581 case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2588 ac_status=$?
2589 if test -s conftest.err; then
2590 sed '10a\
2591 ... rest of stderr output deleted ...
2592 10q' conftest.err >conftest.er1
2593 cat conftest.er1 >&5
2594 rm -f conftest.er1 conftest.err
2596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2597 test $ac_status = 0; }
2598 done
2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h. */
2604 main ()
2608 return 0;
2610 _ACEOF
2611 ac_clean_files_save=$ac_clean_files
2612 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2613 # Try to create an executable without -o first, disregard a.out.
2614 # It will help us diagnose broken compilers, and finding out an intuition
2615 # of exeext.
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2617 $as_echo_n "checking for C compiler default output file name... " >&6; }
2618 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2620 # The possible output files:
2621 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2623 ac_rmfiles=
2624 for ac_file in $ac_files
2626 case $ac_file in
2627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2628 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2629 esac
2630 done
2631 rm -f $ac_rmfiles
2633 if { { ac_try="$ac_link_default"
2634 case "(($ac_try" in
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2637 esac
2638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 $as_echo "$ac_try_echo"; } >&5
2640 (eval "$ac_link_default") 2>&5
2641 ac_status=$?
2642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643 test $ac_status = 0; }; then :
2644 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2645 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2646 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2647 # so that the user can short-circuit this test for compilers unknown to
2648 # Autoconf.
2649 for ac_file in $ac_files ''
2651 test -f "$ac_file" || continue
2652 case $ac_file in
2653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2655 [ab].out )
2656 # We found the default executable, but exeext='' is most
2657 # certainly right.
2658 break;;
2659 *.* )
2660 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2661 then :; else
2662 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2664 # We set ac_cv_exeext here because the later test for it is not
2665 # safe: cross compilers may not add the suffix if given an `-o'
2666 # argument, so we may need to know it at that point already.
2667 # Even if this section looks crufty: it has the advantage of
2668 # actually working.
2669 break;;
2671 break;;
2672 esac
2673 done
2674 test "$ac_cv_exeext" = no && ac_cv_exeext=
2676 else
2677 ac_file=''
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2680 $as_echo "$ac_file" >&6; }
2681 if test -z "$ac_file"; then :
2682 $as_echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2687 { as_fn_set_status 77
2688 as_fn_error "C compiler cannot create executables
2689 See \`config.log' for more details." "$LINENO" 5; }; }
2691 ac_exeext=$ac_cv_exeext
2693 # Check that the compiler produces executables we can run. If not, either
2694 # the compiler is broken, or we cross compile.
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2696 $as_echo_n "checking whether the C compiler works... " >&6; }
2697 # If not cross compiling, check that we can run a simple program.
2698 if test "$cross_compiling" != yes; then
2699 if { ac_try='./$ac_file'
2700 { { case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705 $as_echo "$ac_try_echo"; } >&5
2706 (eval "$ac_try") 2>&5
2707 ac_status=$?
2708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2709 test $ac_status = 0; }; }; then
2710 cross_compiling=no
2711 else
2712 if test "$cross_compiling" = maybe; then
2713 cross_compiling=yes
2714 else
2715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717 as_fn_error "cannot run C compiled programs.
2718 If you meant to cross compile, use \`--host'.
2719 See \`config.log' for more details." "$LINENO" 5; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2724 $as_echo "yes" >&6; }
2726 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2727 ac_clean_files=$ac_clean_files_save
2728 # Check that the compiler produces executables we can run. If not, either
2729 # the compiler is broken, or we cross compile.
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2731 $as_echo_n "checking whether we are cross compiling... " >&6; }
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2733 $as_echo "$cross_compiling" >&6; }
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2736 $as_echo_n "checking for suffix of executables... " >&6; }
2737 if { { ac_try="$ac_link"
2738 case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741 esac
2742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2743 $as_echo "$ac_try_echo"; } >&5
2744 (eval "$ac_link") 2>&5
2745 ac_status=$?
2746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2747 test $ac_status = 0; }; then :
2748 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2749 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2750 # work properly (i.e., refer to `conftest.exe'), while it won't with
2751 # `rm'.
2752 for ac_file in conftest.exe conftest conftest.*; do
2753 test -f "$ac_file" || continue
2754 case $ac_file in
2755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2756 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2757 break;;
2758 * ) break;;
2759 esac
2760 done
2761 else
2762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764 as_fn_error "cannot compute suffix of executables: cannot compile and link
2765 See \`config.log' for more details." "$LINENO" 5; }
2767 rm -f conftest$ac_cv_exeext
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2769 $as_echo "$ac_cv_exeext" >&6; }
2771 rm -f conftest.$ac_ext
2772 EXEEXT=$ac_cv_exeext
2773 ac_exeext=$EXEEXT
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2775 $as_echo_n "checking for suffix of object files... " >&6; }
2776 if test "${ac_cv_objext+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h. */
2783 main ()
2787 return 0;
2789 _ACEOF
2790 rm -f conftest.o conftest.obj
2791 if { { ac_try="$ac_compile"
2792 case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795 esac
2796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2797 $as_echo "$ac_try_echo"; } >&5
2798 (eval "$ac_compile") 2>&5
2799 ac_status=$?
2800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2801 test $ac_status = 0; }; then :
2802 for ac_file in conftest.o conftest.obj conftest.*; do
2803 test -f "$ac_file" || continue;
2804 case $ac_file in
2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2806 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2807 break;;
2808 esac
2809 done
2810 else
2811 $as_echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2816 as_fn_error "cannot compute suffix of object files: cannot compile
2817 See \`config.log' for more details." "$LINENO" 5; }
2819 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2822 $as_echo "$ac_cv_objext" >&6; }
2823 OBJEXT=$ac_cv_objext
2824 ac_objext=$OBJEXT
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2826 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2827 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h. */
2834 main ()
2836 #ifndef __GNUC__
2837 choke me
2838 #endif
2841 return 0;
2843 _ACEOF
2844 if ac_fn_c_try_compile "$LINENO"; then :
2845 ac_compiler_gnu=yes
2846 else
2847 ac_compiler_gnu=no
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2854 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2855 if test $ac_compiler_gnu = yes; then
2856 GCC=yes
2857 else
2858 GCC=
2860 ac_test_CFLAGS=${CFLAGS+set}
2861 ac_save_CFLAGS=$CFLAGS
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2863 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2864 if test "${ac_cv_prog_cc_g+set}" = set; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 ac_save_c_werror_flag=$ac_c_werror_flag
2868 ac_c_werror_flag=yes
2869 ac_cv_prog_cc_g=no
2870 CFLAGS="-g"
2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872 /* end confdefs.h. */
2875 main ()
2879 return 0;
2881 _ACEOF
2882 if ac_fn_c_try_compile "$LINENO"; then :
2883 ac_cv_prog_cc_g=yes
2884 else
2885 CFLAGS=""
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2890 main ()
2894 return 0;
2896 _ACEOF
2897 if ac_fn_c_try_compile "$LINENO"; then :
2899 else
2900 ac_c_werror_flag=$ac_save_c_werror_flag
2901 CFLAGS="-g"
2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h. */
2906 main ()
2910 return 0;
2912 _ACEOF
2913 if ac_fn_c_try_compile "$LINENO"; then :
2914 ac_cv_prog_cc_g=yes
2916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921 ac_c_werror_flag=$ac_save_c_werror_flag
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2924 $as_echo "$ac_cv_prog_cc_g" >&6; }
2925 if test "$ac_test_CFLAGS" = set; then
2926 CFLAGS=$ac_save_CFLAGS
2927 elif test $ac_cv_prog_cc_g = yes; then
2928 if test "$GCC" = yes; then
2929 CFLAGS="-g -O2"
2930 else
2931 CFLAGS="-g"
2933 else
2934 if test "$GCC" = yes; then
2935 CFLAGS="-O2"
2936 else
2937 CFLAGS=
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2942 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 ac_cv_prog_cc_c89=no
2946 ac_save_CC=$CC
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2949 #include <stdarg.h>
2950 #include <stdio.h>
2951 #include <sys/types.h>
2952 #include <sys/stat.h>
2953 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2954 struct buf { int x; };
2955 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2956 static char *e (p, i)
2957 char **p;
2958 int i;
2960 return p[i];
2962 static char *f (char * (*g) (char **, int), char **p, ...)
2964 char *s;
2965 va_list v;
2966 va_start (v,p);
2967 s = g (p, va_arg (v,int));
2968 va_end (v);
2969 return s;
2972 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2973 function prototypes and stuff, but not '\xHH' hex character constants.
2974 These don't provoke an error unfortunately, instead are silently treated
2975 as 'x'. The following induces an error, until -std is added to get
2976 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2977 array size at least. It's necessary to write '\x00'==0 to get something
2978 that's true only with -std. */
2979 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2981 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2982 inside strings and character constants. */
2983 #define FOO(x) 'x'
2984 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2986 int test (int i, double x);
2987 struct s1 {int (*f) (int a);};
2988 struct s2 {int (*f) (double a);};
2989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2990 int argc;
2991 char **argv;
2993 main ()
2995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2997 return 0;
2999 _ACEOF
3000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3001 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3003 CC="$ac_save_CC $ac_arg"
3004 if ac_fn_c_try_compile "$LINENO"; then :
3005 ac_cv_prog_cc_c89=$ac_arg
3007 rm -f core conftest.err conftest.$ac_objext
3008 test "x$ac_cv_prog_cc_c89" != "xno" && break
3009 done
3010 rm -f conftest.$ac_ext
3011 CC=$ac_save_CC
3014 # AC_CACHE_VAL
3015 case "x$ac_cv_prog_cc_c89" in
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3018 $as_echo "none needed" >&6; } ;;
3019 xno)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3021 $as_echo "unsupported" >&6; } ;;
3023 CC="$CC $ac_cv_prog_cc_c89"
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3025 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3026 esac
3027 if test "x$ac_cv_prog_cc_c89" != xno; then :
3031 ac_ext=c
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 # Check whether --enable-shared was given.
3042 if test "${enable_shared+set}" = set; then :
3043 enableval=$enable_shared;
3044 case $enable_shared in
3045 yes | no) ;;
3047 enable_shared=no
3048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3049 for pkg in $enableval; do
3050 case $pkg in
3051 ada | libada)
3052 enable_shared=yes ;;
3053 esac
3054 done
3055 IFS="$ac_save_ifs"
3057 esac
3059 else
3060 enable_shared=yes
3069 case "${host}" in
3070 # PIC is the default on some targets or must not be used.
3071 *-*-darwin*)
3072 # For darwin, common symbols are not allowed in MH_DYLIB files
3073 case "${CFLAGS}" in
3074 # If we are using a compiler supporting mdynamic-no-pic
3075 # and the option has been tested as safe to add, then cancel
3076 # it here, since the code generated is incompatible with shared
3077 # libs.
3078 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
3079 *) PICFLAG=-fno-common ;;
3080 esac
3082 alpha*-dec-osf5*)
3083 # PIC is the default.
3085 hppa*64*-*-hpux*)
3086 # PIC is the default for 64-bit PA HP-UX.
3088 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
3090 i[34567]86-*-mingw* | x86_64-*-mingw*)
3092 i[34567]86-*-interix[3-9]*)
3093 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3094 # Instead, we relocate shared libraries at runtime.
3096 i[34567]86-*-nto-qnx*)
3097 # QNX uses GNU C++, but need to define -shared option too, otherwise
3098 # it will coredump.
3099 PICFLAG='-fPIC -shared'
3101 i[34567]86-pc-msdosdjgpp*)
3102 # DJGPP does not support shared libraries at all.
3104 ia64*-*-hpux*)
3105 # On IA64 HP-UX, PIC is the default but the pic flag
3106 # sets the default TLS model and affects inlining.
3107 PICFLAG=-fPIC
3109 mips-sgi-irix6*)
3110 # PIC is the default.
3112 rs6000-ibm-aix* | powerpc-ibm-aix*)
3113 # All AIX code is PIC.
3116 # Some targets support both -fPIC and -fpic, but prefer the latter.
3117 # FIXME: Why?
3118 i[34567]86-*-* | x86_64-*-*)
3119 PICFLAG=-fpic
3121 # FIXME: Override -fPIC default in libgcc only?
3122 sh-*-linux* | sh[2346lbe]*-*-linux*)
3123 PICFLAG=-fpic
3125 # FIXME: Simplify to sh*-*-netbsd*?
3126 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
3127 sh64-*-netbsd* | sh64l*-*-netbsd*)
3128 PICFLAG=-fpic
3130 # Default to -fPIC unless specified otherwise.
3132 PICFLAG=-fPIC
3134 esac
3136 # If the user explicitly uses -fpic/-fPIC, keep that.
3137 case "${CFLAGS}" in
3138 *-fpic*)
3139 PICFLAG=-fpic
3141 *-fPIC*)
3142 PICFLAG=-fPIC
3144 esac
3148 # These must be passed down, or are needed by gcc/libgcc.mvars
3149 for ac_prog in gawk mawk nawk awk
3151 # Extract the first word of "$ac_prog", so it can be a program name with args.
3152 set dummy $ac_prog; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if test "${ac_cv_prog_AWK+set}" = set; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 if test -n "$AWK"; then
3159 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168 ac_cv_prog_AWK="$ac_prog"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3172 done
3173 done
3174 IFS=$as_save_IFS
3178 AWK=$ac_cv_prog_AWK
3179 if test -n "$AWK"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3181 $as_echo "$AWK" >&6; }
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3188 test -n "$AWK" && break
3189 done
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3192 $as_echo_n "checking whether ln -s works... " >&6; }
3193 LN_S=$as_ln_s
3194 if test "$LN_S" = "ln -s"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 $as_echo "yes" >&6; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3199 $as_echo "no, using $LN_S" >&6; }
3203 # Determine what to build for 'gnatlib'
3204 if test ${enable_shared} = yes; then
3205 default_gnatlib_target="gnatlib-shared"
3206 else
3207 default_gnatlib_target="gnatlib-plain"
3211 # Check for _Unwind_GetIPInfo
3214 # Check whether --with-system-libunwind was given.
3215 if test "${with_system_libunwind+set}" = set; then :
3216 withval=$with_system_libunwind;
3219 # If system-libunwind was not specifically set, pick a default setting.
3220 if test x$with_system_libunwind = x; then
3221 case ${target} in
3222 ia64-*-hpux*) with_system_libunwind=yes ;;
3223 *) with_system_libunwind=no ;;
3224 esac
3226 # Based on system-libunwind and target, do we have ipinfo?
3227 if test x$with_system_libunwind = xyes; then
3228 case ${target} in
3229 ia64-*-*) have_unwind_getipinfo=no ;;
3230 *) have_unwind_getipinfo=yes ;;
3231 esac
3232 else
3233 # Darwin before version 9 does not have _Unwind_GetIPInfo.
3235 case ${target} in
3236 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
3237 *) have_unwind_getipinfo=yes ;;
3238 esac
3242 if test x$have_unwind_getipinfo = xyes; then
3244 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
3248 if test x$have_unwind_getipinfo = xyes; then
3249 have_getipinfo=-DHAVE_GETIPINFO
3250 else
3251 have_getipinfo=
3255 # Check for <sys/capability.h>
3257 ac_ext=c
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3263 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3264 # On Suns, sometimes $CPP names a directory.
3265 if test -n "$CPP" && test -d "$CPP"; then
3266 CPP=
3268 if test -z "$CPP"; then
3269 if test "${ac_cv_prog_CPP+set}" = set; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 # Double quotes because CPP needs to be expanded
3273 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3275 ac_preproc_ok=false
3276 for ac_c_preproc_warn_flag in '' yes
3278 # Use a header file that comes with gcc, so configuring glibc
3279 # with a fresh cross-compiler works.
3280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3281 # <limits.h> exists even on freestanding compilers.
3282 # On the NeXT, cc -E runs the code through the compiler's parser,
3283 # not just through cpp. "Syntax error" is here to catch this case.
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3286 #ifdef __STDC__
3287 # include <limits.h>
3288 #else
3289 # include <assert.h>
3290 #endif
3291 Syntax error
3292 _ACEOF
3293 if ac_fn_c_try_cpp "$LINENO"; then :
3295 else
3296 # Broken: fails on valid input.
3297 continue
3299 rm -f conftest.err conftest.$ac_ext
3301 # OK, works on sane cases. Now check whether nonexistent headers
3302 # can be detected and how.
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3305 #include <ac_nonexistent.h>
3306 _ACEOF
3307 if ac_fn_c_try_cpp "$LINENO"; then :
3308 # Broken: success on invalid input.
3309 continue
3310 else
3311 # Passes both tests.
3312 ac_preproc_ok=:
3313 break
3315 rm -f conftest.err conftest.$ac_ext
3317 done
3318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3319 rm -f conftest.err conftest.$ac_ext
3320 if $ac_preproc_ok; then :
3321 break
3324 done
3325 ac_cv_prog_CPP=$CPP
3328 CPP=$ac_cv_prog_CPP
3329 else
3330 ac_cv_prog_CPP=$CPP
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3333 $as_echo "$CPP" >&6; }
3334 ac_preproc_ok=false
3335 for ac_c_preproc_warn_flag in '' yes
3337 # Use a header file that comes with gcc, so configuring glibc
3338 # with a fresh cross-compiler works.
3339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3340 # <limits.h> exists even on freestanding compilers.
3341 # On the NeXT, cc -E runs the code through the compiler's parser,
3342 # not just through cpp. "Syntax error" is here to catch this case.
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3345 #ifdef __STDC__
3346 # include <limits.h>
3347 #else
3348 # include <assert.h>
3349 #endif
3350 Syntax error
3351 _ACEOF
3352 if ac_fn_c_try_cpp "$LINENO"; then :
3354 else
3355 # Broken: fails on valid input.
3356 continue
3358 rm -f conftest.err conftest.$ac_ext
3360 # OK, works on sane cases. Now check whether nonexistent headers
3361 # can be detected and how.
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364 #include <ac_nonexistent.h>
3365 _ACEOF
3366 if ac_fn_c_try_cpp "$LINENO"; then :
3367 # Broken: success on invalid input.
3368 continue
3369 else
3370 # Passes both tests.
3371 ac_preproc_ok=:
3372 break
3374 rm -f conftest.err conftest.$ac_ext
3376 done
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.err conftest.$ac_ext
3379 if $ac_preproc_ok; then :
3381 else
3382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3385 See \`config.log' for more details." "$LINENO" 5; }
3388 ac_ext=c
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3396 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3397 if test "${ac_cv_path_GREP+set}" = set; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 if test -z "$GREP"; then
3401 ac_path_GREP_found=false
3402 # Loop through the user's path and test for each of PROGNAME-LIST
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_prog in grep ggrep; do
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3411 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3412 # Check for GNU ac_path_GREP and select it if it is found.
3413 # Check for GNU $ac_path_GREP
3414 case `"$ac_path_GREP" --version 2>&1` in
3415 *GNU*)
3416 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3418 ac_count=0
3419 $as_echo_n 0123456789 >"conftest.in"
3420 while :
3422 cat "conftest.in" "conftest.in" >"conftest.tmp"
3423 mv "conftest.tmp" "conftest.in"
3424 cp "conftest.in" "conftest.nl"
3425 $as_echo 'GREP' >> "conftest.nl"
3426 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3428 as_fn_arith $ac_count + 1 && ac_count=$as_val
3429 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3430 # Best one so far, save it but keep looking for a better one
3431 ac_cv_path_GREP="$ac_path_GREP"
3432 ac_path_GREP_max=$ac_count
3434 # 10*(2^10) chars as input seems more than enough
3435 test $ac_count -gt 10 && break
3436 done
3437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3438 esac
3440 $ac_path_GREP_found && break 3
3441 done
3442 done
3443 done
3444 IFS=$as_save_IFS
3445 if test -z "$ac_cv_path_GREP"; then
3446 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3448 else
3449 ac_cv_path_GREP=$GREP
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3454 $as_echo "$ac_cv_path_GREP" >&6; }
3455 GREP="$ac_cv_path_GREP"
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3459 $as_echo_n "checking for egrep... " >&6; }
3460 if test "${ac_cv_path_EGREP+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3464 then ac_cv_path_EGREP="$GREP -E"
3465 else
3466 if test -z "$EGREP"; then
3467 ac_path_EGREP_found=false
3468 # Loop through the user's path and test for each of PROGNAME-LIST
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_prog in egrep; do
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3477 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3478 # Check for GNU ac_path_EGREP and select it if it is found.
3479 # Check for GNU $ac_path_EGREP
3480 case `"$ac_path_EGREP" --version 2>&1` in
3481 *GNU*)
3482 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3484 ac_count=0
3485 $as_echo_n 0123456789 >"conftest.in"
3486 while :
3488 cat "conftest.in" "conftest.in" >"conftest.tmp"
3489 mv "conftest.tmp" "conftest.in"
3490 cp "conftest.in" "conftest.nl"
3491 $as_echo 'EGREP' >> "conftest.nl"
3492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3494 as_fn_arith $ac_count + 1 && ac_count=$as_val
3495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3496 # Best one so far, save it but keep looking for a better one
3497 ac_cv_path_EGREP="$ac_path_EGREP"
3498 ac_path_EGREP_max=$ac_count
3500 # 10*(2^10) chars as input seems more than enough
3501 test $ac_count -gt 10 && break
3502 done
3503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3504 esac
3506 $ac_path_EGREP_found && break 3
3507 done
3508 done
3509 done
3510 IFS=$as_save_IFS
3511 if test -z "$ac_cv_path_EGREP"; then
3512 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3514 else
3515 ac_cv_path_EGREP=$EGREP
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3521 $as_echo "$ac_cv_path_EGREP" >&6; }
3522 EGREP="$ac_cv_path_EGREP"
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3526 $as_echo_n "checking for ANSI C header files... " >&6; }
3527 if test "${ac_cv_header_stdc+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
3529 else
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3532 #include <stdlib.h>
3533 #include <stdarg.h>
3534 #include <string.h>
3535 #include <float.h>
3538 main ()
3542 return 0;
3544 _ACEOF
3545 if ac_fn_c_try_compile "$LINENO"; then :
3546 ac_cv_header_stdc=yes
3547 else
3548 ac_cv_header_stdc=no
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 if test $ac_cv_header_stdc = yes; then
3553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3556 #include <string.h>
3558 _ACEOF
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 $EGREP "memchr" >/dev/null 2>&1; then :
3562 else
3563 ac_cv_header_stdc=no
3565 rm -f conftest*
3569 if test $ac_cv_header_stdc = yes; then
3570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573 #include <stdlib.h>
3575 _ACEOF
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577 $EGREP "free" >/dev/null 2>&1; then :
3579 else
3580 ac_cv_header_stdc=no
3582 rm -f conftest*
3586 if test $ac_cv_header_stdc = yes; then
3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588 if test "$cross_compiling" = yes; then :
3590 else
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593 #include <ctype.h>
3594 #include <stdlib.h>
3595 #if ((' ' & 0x0FF) == 0x020)
3596 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3597 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3598 #else
3599 # define ISLOWER(c) \
3600 (('a' <= (c) && (c) <= 'i') \
3601 || ('j' <= (c) && (c) <= 'r') \
3602 || ('s' <= (c) && (c) <= 'z'))
3603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3604 #endif
3606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3608 main ()
3610 int i;
3611 for (i = 0; i < 256; i++)
3612 if (XOR (islower (i), ISLOWER (i))
3613 || toupper (i) != TOUPPER (i))
3614 return 2;
3615 return 0;
3617 _ACEOF
3618 if ac_fn_c_try_run "$LINENO"; then :
3620 else
3621 ac_cv_header_stdc=no
3623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3624 conftest.$ac_objext conftest.beam conftest.$ac_ext
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3630 $as_echo "$ac_cv_header_stdc" >&6; }
3631 if test $ac_cv_header_stdc = yes; then
3633 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3638 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3639 inttypes.h stdint.h unistd.h
3640 do :
3641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3642 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3644 eval as_val=\$$as_ac_Header
3645 if test "x$as_val" = x""yes; then :
3646 cat >>confdefs.h <<_ACEOF
3647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3648 _ACEOF
3652 done
3655 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
3656 if test "x$ac_cv_header_sys_capability_h" = x""yes; then :
3657 have_capability=-DHAVE_CAPABILITY
3658 else
3659 have_capability=
3665 # Determine what GCC version number to use in filesystem paths.
3667 get_gcc_base_ver="cat"
3669 # Check whether --with-gcc-major-version-only was given.
3670 if test "${with_gcc_major_version_only+set}" = set; then :
3671 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
3672 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
3680 # Output: create a Makefile.
3681 ac_config_files="$ac_config_files Makefile"
3684 cat >confcache <<\_ACEOF
3685 # This file is a shell script that caches the results of configure
3686 # tests run on this system so they can be shared between configure
3687 # scripts and configure runs, see configure's option --config-cache.
3688 # It is not useful on other systems. If it contains results you don't
3689 # want to keep, you may remove or edit it.
3691 # config.status only pays attention to the cache file if you give it
3692 # the --recheck option to rerun configure.
3694 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3695 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3696 # following values.
3698 _ACEOF
3700 # The following way of writing the cache mishandles newlines in values,
3701 # but we know of no workaround that is simple, portable, and efficient.
3702 # So, we kill variables containing newlines.
3703 # Ultrix sh set writes to stderr and can't be redirected directly,
3704 # and sets the high bit in the cache file unless we assign to the vars.
3706 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3707 eval ac_val=\$$ac_var
3708 case $ac_val in #(
3709 *${as_nl}*)
3710 case $ac_var in #(
3711 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3712 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3713 esac
3714 case $ac_var in #(
3715 _ | IFS | as_nl) ;; #(
3716 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3717 *) { eval $ac_var=; unset $ac_var;} ;;
3718 esac ;;
3719 esac
3720 done
3722 (set) 2>&1 |
3723 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3724 *${as_nl}ac_space=\ *)
3725 # `set' does not quote correctly, so add quotes: double-quote
3726 # substitution turns \\\\ into \\, and sed turns \\ into \.
3727 sed -n \
3728 "s/'/'\\\\''/g;
3729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3730 ;; #(
3732 # `set' quotes correctly as required by POSIX, so do not add quotes.
3733 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3735 esac |
3736 sort
3738 sed '
3739 /^ac_cv_env_/b end
3740 t clear
3741 :clear
3742 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3743 t end
3744 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3745 :end' >>confcache
3746 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3747 if test -w "$cache_file"; then
3748 test "x$cache_file" != "x/dev/null" &&
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3750 $as_echo "$as_me: updating cache $cache_file" >&6;}
3751 cat confcache >$cache_file
3752 else
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3754 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3757 rm -f confcache
3759 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3760 # Let make expand exec_prefix.
3761 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3763 # Transform confdefs.h into DEFS.
3764 # Protect against shell expansion while executing Makefile rules.
3765 # Protect against Makefile macro expansion.
3767 # If the first sed substitution is executed (which looks for macros that
3768 # take arguments), then branch to the quote section. Otherwise,
3769 # look for a macro that doesn't take arguments.
3770 ac_script='
3771 :mline
3772 /\\$/{
3774 s,\\\n,,
3775 b mline
3777 t clear
3778 :clear
3779 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3780 t quote
3781 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3782 t quote
3783 b any
3784 :quote
3785 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3786 s/\[/\\&/g
3787 s/\]/\\&/g
3788 s/\$/$$/g
3790 :any
3793 s/^\n//
3794 s/\n/ /g
3798 DEFS=`sed -n "$ac_script" confdefs.h`
3801 ac_libobjs=
3802 ac_ltlibobjs=
3803 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3804 # 1. Remove the extension, and $U if already installed.
3805 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3806 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3807 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3808 # will be set to the directory where LIBOBJS objects are built.
3809 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3810 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3811 done
3812 LIBOBJS=$ac_libobjs
3814 LTLIBOBJS=$ac_ltlibobjs
3818 : ${CONFIG_STATUS=./config.status}
3819 ac_write_fail=0
3820 ac_clean_files_save=$ac_clean_files
3821 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3823 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3824 as_write_fail=0
3825 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3826 #! $SHELL
3827 # Generated by $as_me.
3828 # Run this file to recreate the current configuration.
3829 # Compiler output produced by configure, useful for debugging
3830 # configure, is in config.log if it exists.
3832 debug=false
3833 ac_cs_recheck=false
3834 ac_cs_silent=false
3836 SHELL=\${CONFIG_SHELL-$SHELL}
3837 export SHELL
3838 _ASEOF
3839 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3840 ## -------------------- ##
3841 ## M4sh Initialization. ##
3842 ## -------------------- ##
3844 # Be more Bourne compatible
3845 DUALCASE=1; export DUALCASE # for MKS sh
3846 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3847 emulate sh
3848 NULLCMD=:
3849 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3850 # is contrary to our usage. Disable this feature.
3851 alias -g '${1+"$@"}'='"$@"'
3852 setopt NO_GLOB_SUBST
3853 else
3854 case `(set -o) 2>/dev/null` in #(
3855 *posix*) :
3856 set -o posix ;; #(
3857 *) :
3859 esac
3863 as_nl='
3865 export as_nl
3866 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3867 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3868 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3870 # Prefer a ksh shell builtin over an external printf program on Solaris,
3871 # but without wasting forks for bash or zsh.
3872 if test -z "$BASH_VERSION$ZSH_VERSION" \
3873 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3874 as_echo='print -r --'
3875 as_echo_n='print -rn --'
3876 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3877 as_echo='printf %s\n'
3878 as_echo_n='printf %s'
3879 else
3880 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3881 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3882 as_echo_n='/usr/ucb/echo -n'
3883 else
3884 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3885 as_echo_n_body='eval
3886 arg=$1;
3887 case $arg in #(
3888 *"$as_nl"*)
3889 expr "X$arg" : "X\\(.*\\)$as_nl";
3890 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3891 esac;
3892 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3894 export as_echo_n_body
3895 as_echo_n='sh -c $as_echo_n_body as_echo'
3897 export as_echo_body
3898 as_echo='sh -c $as_echo_body as_echo'
3901 # The user is always right.
3902 if test "${PATH_SEPARATOR+set}" != set; then
3903 PATH_SEPARATOR=:
3904 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3905 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3906 PATH_SEPARATOR=';'
3911 # IFS
3912 # We need space, tab and new line, in precisely that order. Quoting is
3913 # there to prevent editors from complaining about space-tab.
3914 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3915 # splitting by setting IFS to empty value.)
3916 IFS=" "" $as_nl"
3918 # Find who we are. Look in the path if we contain no directory separator.
3919 case $0 in #((
3920 *[\\/]* ) as_myself=$0 ;;
3921 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3927 done
3928 IFS=$as_save_IFS
3931 esac
3932 # We did not find ourselves, most probably we were run as `sh COMMAND'
3933 # in which case we are not to be found in the path.
3934 if test "x$as_myself" = x; then
3935 as_myself=$0
3937 if test ! -f "$as_myself"; then
3938 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3939 exit 1
3942 # Unset variables that we do not need and which cause bugs (e.g. in
3943 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3944 # suppresses any "Segmentation fault" message there. '((' could
3945 # trigger a bug in pdksh 5.2.14.
3946 for as_var in BASH_ENV ENV MAIL MAILPATH
3947 do eval test x\${$as_var+set} = xset \
3948 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3949 done
3950 PS1='$ '
3951 PS2='> '
3952 PS4='+ '
3954 # NLS nuisances.
3955 LC_ALL=C
3956 export LC_ALL
3957 LANGUAGE=C
3958 export LANGUAGE
3960 # CDPATH.
3961 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3964 # as_fn_error ERROR [LINENO LOG_FD]
3965 # ---------------------------------
3966 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3967 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3968 # script with status $?, using 1 if that was 0.
3969 as_fn_error ()
3971 as_status=$?; test $as_status -eq 0 && as_status=1
3972 if test "$3"; then
3973 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3974 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3976 $as_echo "$as_me: error: $1" >&2
3977 as_fn_exit $as_status
3978 } # as_fn_error
3981 # as_fn_set_status STATUS
3982 # -----------------------
3983 # Set $? to STATUS, without forking.
3984 as_fn_set_status ()
3986 return $1
3987 } # as_fn_set_status
3989 # as_fn_exit STATUS
3990 # -----------------
3991 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3992 as_fn_exit ()
3994 set +e
3995 as_fn_set_status $1
3996 exit $1
3997 } # as_fn_exit
3999 # as_fn_unset VAR
4000 # ---------------
4001 # Portably unset VAR.
4002 as_fn_unset ()
4004 { eval $1=; unset $1;}
4006 as_unset=as_fn_unset
4007 # as_fn_append VAR VALUE
4008 # ----------------------
4009 # Append the text in VALUE to the end of the definition contained in VAR. Take
4010 # advantage of any shell optimizations that allow amortized linear growth over
4011 # repeated appends, instead of the typical quadratic growth present in naive
4012 # implementations.
4013 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4014 eval 'as_fn_append ()
4016 eval $1+=\$2
4018 else
4019 as_fn_append ()
4021 eval $1=\$$1\$2
4023 fi # as_fn_append
4025 # as_fn_arith ARG...
4026 # ------------------
4027 # Perform arithmetic evaluation on the ARGs, and store the result in the
4028 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4029 # must be portable across $(()) and expr.
4030 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4031 eval 'as_fn_arith ()
4033 as_val=$(( $* ))
4035 else
4036 as_fn_arith ()
4038 as_val=`expr "$@" || test $? -eq 1`
4040 fi # as_fn_arith
4043 if expr a : '\(a\)' >/dev/null 2>&1 &&
4044 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4045 as_expr=expr
4046 else
4047 as_expr=false
4050 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4051 as_basename=basename
4052 else
4053 as_basename=false
4056 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4057 as_dirname=dirname
4058 else
4059 as_dirname=false
4062 as_me=`$as_basename -- "$0" ||
4063 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4064 X"$0" : 'X\(//\)$' \| \
4065 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4066 $as_echo X/"$0" |
4067 sed '/^.*\/\([^/][^/]*\)\/*$/{
4068 s//\1/
4071 /^X\/\(\/\/\)$/{
4072 s//\1/
4075 /^X\/\(\/\).*/{
4076 s//\1/
4079 s/.*/./; q'`
4081 # Avoid depending upon Character Ranges.
4082 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4083 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4084 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4085 as_cr_digits='0123456789'
4086 as_cr_alnum=$as_cr_Letters$as_cr_digits
4088 ECHO_C= ECHO_N= ECHO_T=
4089 case `echo -n x` in #(((((
4090 -n*)
4091 case `echo 'xy\c'` in
4092 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4093 xy) ECHO_C='\c';;
4094 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4095 ECHO_T=' ';;
4096 esac;;
4098 ECHO_N='-n';;
4099 esac
4101 rm -f conf$$ conf$$.exe conf$$.file
4102 if test -d conf$$.dir; then
4103 rm -f conf$$.dir/conf$$.file
4104 else
4105 rm -f conf$$.dir
4106 mkdir conf$$.dir 2>/dev/null
4108 if (echo >conf$$.file) 2>/dev/null; then
4109 if ln -s conf$$.file conf$$ 2>/dev/null; then
4110 as_ln_s='ln -s'
4111 # ... but there are two gotchas:
4112 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4113 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4114 # In both cases, we have to default to `cp -p'.
4115 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4116 as_ln_s='cp -p'
4117 elif ln conf$$.file conf$$ 2>/dev/null; then
4118 as_ln_s=ln
4119 else
4120 as_ln_s='cp -p'
4122 else
4123 as_ln_s='cp -p'
4125 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4126 rmdir conf$$.dir 2>/dev/null
4129 # as_fn_mkdir_p
4130 # -------------
4131 # Create "$as_dir" as a directory, including parents if necessary.
4132 as_fn_mkdir_p ()
4135 case $as_dir in #(
4136 -*) as_dir=./$as_dir;;
4137 esac
4138 test -d "$as_dir" || eval $as_mkdir_p || {
4139 as_dirs=
4140 while :; do
4141 case $as_dir in #(
4142 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4143 *) as_qdir=$as_dir;;
4144 esac
4145 as_dirs="'$as_qdir' $as_dirs"
4146 as_dir=`$as_dirname -- "$as_dir" ||
4147 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4148 X"$as_dir" : 'X\(//\)[^/]' \| \
4149 X"$as_dir" : 'X\(//\)$' \| \
4150 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4151 $as_echo X"$as_dir" |
4152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4153 s//\1/
4156 /^X\(\/\/\)[^/].*/{
4157 s//\1/
4160 /^X\(\/\/\)$/{
4161 s//\1/
4164 /^X\(\/\).*/{
4165 s//\1/
4168 s/.*/./; q'`
4169 test -d "$as_dir" && break
4170 done
4171 test -z "$as_dirs" || eval "mkdir $as_dirs"
4172 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4175 } # as_fn_mkdir_p
4176 if mkdir -p . 2>/dev/null; then
4177 as_mkdir_p='mkdir -p "$as_dir"'
4178 else
4179 test -d ./-p && rmdir ./-p
4180 as_mkdir_p=false
4183 if test -x / >/dev/null 2>&1; then
4184 as_test_x='test -x'
4185 else
4186 if ls -dL / >/dev/null 2>&1; then
4187 as_ls_L_option=L
4188 else
4189 as_ls_L_option=
4191 as_test_x='
4192 eval sh -c '\''
4193 if test -d "$1"; then
4194 test -d "$1/.";
4195 else
4196 case $1 in #(
4197 -*)set "./$1";;
4198 esac;
4199 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4200 ???[sx]*):;;*)false;;esac;fi
4201 '\'' sh
4204 as_executable_p=$as_test_x
4206 # Sed expression to map a string onto a valid CPP name.
4207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4209 # Sed expression to map a string onto a valid variable name.
4210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4213 exec 6>&1
4214 ## ----------------------------------- ##
4215 ## Main body of $CONFIG_STATUS script. ##
4216 ## ----------------------------------- ##
4217 _ASEOF
4218 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4221 # Save the log message, to keep $0 and so on meaningful, and to
4222 # report actual input values of CONFIG_FILES etc. instead of their
4223 # values after options handling.
4224 ac_log="
4225 This file was extended by $as_me, which was
4226 generated by GNU Autoconf 2.64. Invocation command line was
4228 CONFIG_FILES = $CONFIG_FILES
4229 CONFIG_HEADERS = $CONFIG_HEADERS
4230 CONFIG_LINKS = $CONFIG_LINKS
4231 CONFIG_COMMANDS = $CONFIG_COMMANDS
4232 $ $0 $@
4234 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4237 _ACEOF
4239 case $ac_config_files in *"
4240 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4241 esac
4245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4246 # Files that config.status was made for.
4247 config_files="$ac_config_files"
4248 config_commands="$ac_config_commands"
4250 _ACEOF
4252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4253 ac_cs_usage="\
4254 \`$as_me' instantiates files and other configuration actions
4255 from templates according to the current configuration. Unless the files
4256 and actions are specified as TAGs, all are instantiated by default.
4258 Usage: $0 [OPTION]... [TAG]...
4260 -h, --help print this help, then exit
4261 -V, --version print version number and configuration settings, then exit
4262 -q, --quiet, --silent
4263 do not print progress messages
4264 -d, --debug don't remove temporary files
4265 --recheck update $as_me by reconfiguring in the same conditions
4266 --file=FILE[:TEMPLATE]
4267 instantiate the configuration file FILE
4269 Configuration files:
4270 $config_files
4272 Configuration commands:
4273 $config_commands
4275 Report bugs to the package provider."
4277 _ACEOF
4278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4279 ac_cs_version="\\
4280 config.status
4281 configured by $0, generated by GNU Autoconf 2.64,
4282 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4284 Copyright (C) 2009 Free Software Foundation, Inc.
4285 This config.status script is free software; the Free Software Foundation
4286 gives unlimited permission to copy, distribute and modify it."
4288 ac_pwd='$ac_pwd'
4289 srcdir='$srcdir'
4290 AWK='$AWK'
4291 test -n "\$AWK" || AWK=awk
4292 _ACEOF
4294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4295 # The default lists apply if the user does not specify any file.
4296 ac_need_defaults=:
4297 while test $# != 0
4299 case $1 in
4300 --*=*)
4301 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4302 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4303 ac_shift=:
4306 ac_option=$1
4307 ac_optarg=$2
4308 ac_shift=shift
4310 esac
4312 case $ac_option in
4313 # Handling of the options.
4314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4315 ac_cs_recheck=: ;;
4316 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4317 $as_echo "$ac_cs_version"; exit ;;
4318 --debug | --debu | --deb | --de | --d | -d )
4319 debug=: ;;
4320 --file | --fil | --fi | --f )
4321 $ac_shift
4322 case $ac_optarg in
4323 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4324 esac
4325 as_fn_append CONFIG_FILES " '$ac_optarg'"
4326 ac_need_defaults=false;;
4327 --he | --h | --help | --hel | -h )
4328 $as_echo "$ac_cs_usage"; exit ;;
4329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4331 ac_cs_silent=: ;;
4333 # This is an error.
4334 -*) as_fn_error "unrecognized option: \`$1'
4335 Try \`$0 --help' for more information." ;;
4337 *) as_fn_append ac_config_targets " $1"
4338 ac_need_defaults=false ;;
4340 esac
4341 shift
4342 done
4344 ac_configure_extra_args=
4346 if $ac_cs_silent; then
4347 exec 6>/dev/null
4348 ac_configure_extra_args="$ac_configure_extra_args --silent"
4351 _ACEOF
4352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4353 if \$ac_cs_recheck; then
4354 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4355 shift
4356 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4357 CONFIG_SHELL='$SHELL'
4358 export CONFIG_SHELL
4359 exec "\$@"
4362 _ACEOF
4363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4364 exec 5>>config.log
4366 echo
4367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4368 ## Running $as_me. ##
4369 _ASBOX
4370 $as_echo "$ac_log"
4371 } >&5
4373 _ACEOF
4374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4376 # INIT-COMMANDS
4379 srcdir="$srcdir"
4380 host="$host"
4381 target="$target"
4382 with_multisubdir="$with_multisubdir"
4383 with_multisrctop="$with_multisrctop"
4384 with_target_subdir="$with_target_subdir"
4385 ac_configure_args="${multilib_arg} ${ac_configure_args}"
4386 multi_basedir="$multi_basedir"
4387 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4388 CC="$CC"
4389 CXX="$CXX"
4390 GFORTRAN="$GFORTRAN"
4392 _ACEOF
4394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4396 # Handling of arguments.
4397 for ac_config_target in $ac_config_targets
4399 case $ac_config_target in
4400 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4401 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4403 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4404 esac
4405 done
4408 # If the user did not use the arguments to specify the items to instantiate,
4409 # then the envvar interface is used. Set only those that are not.
4410 # We use the long form for the default assignment because of an extremely
4411 # bizarre bug on SunOS 4.1.3.
4412 if $ac_need_defaults; then
4413 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4414 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4417 # Have a temporary directory for convenience. Make it in the build tree
4418 # simply because there is no reason against having it here, and in addition,
4419 # creating and moving files from /tmp can sometimes cause problems.
4420 # Hook for its removal unless debugging.
4421 # Note that there is a small window in which the directory will not be cleaned:
4422 # after its creation but before its name has been assigned to `$tmp'.
4423 $debug ||
4425 tmp=
4426 trap 'exit_status=$?
4427 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4429 trap 'as_fn_exit 1' 1 2 13 15
4431 # Create a (secure) tmp directory for tmp files.
4434 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4435 test -n "$tmp" && test -d "$tmp"
4436 } ||
4438 tmp=./conf$$-$RANDOM
4439 (umask 077 && mkdir "$tmp")
4440 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
4442 # Set up the scripts for CONFIG_FILES section.
4443 # No need to generate them if there are no CONFIG_FILES.
4444 # This happens for instance with `./config.status config.h'.
4445 if test -n "$CONFIG_FILES"; then
4448 ac_cr=`echo X | tr X '\015'`
4449 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4450 # But we know of no other shell where ac_cr would be empty at this
4451 # point, so we can use a bashism as a fallback.
4452 if test "x$ac_cr" = x; then
4453 eval ac_cr=\$\'\\r\'
4455 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4456 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4457 ac_cs_awk_cr='\r'
4458 else
4459 ac_cs_awk_cr=$ac_cr
4462 echo 'BEGIN {' >"$tmp/subs1.awk" &&
4463 _ACEOF
4467 echo "cat >conf$$subs.awk <<_ACEOF" &&
4468 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4469 echo "_ACEOF"
4470 } >conf$$subs.sh ||
4471 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4472 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4473 ac_delim='%!_!# '
4474 for ac_last_try in false false false false false :; do
4475 . ./conf$$subs.sh ||
4476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4478 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4479 if test $ac_delim_n = $ac_delim_num; then
4480 break
4481 elif $ac_last_try; then
4482 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4483 else
4484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4486 done
4487 rm -f conf$$subs.sh
4489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4490 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4491 _ACEOF
4492 sed -n '
4494 s/^/S["/; s/!.*/"]=/
4497 s/^[^!]*!//
4498 :repl
4499 t repl
4500 s/'"$ac_delim"'$//
4501 t delim
4504 s/\(.\{148\}\).*/\1/
4505 t more1
4506 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4509 b repl
4510 :more1
4511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4514 s/.\{148\}//
4515 t nl
4516 :delim
4518 s/\(.\{148\}\).*/\1/
4519 t more2
4520 s/["\\]/\\&/g; s/^/"/; s/$/"/
4523 :more2
4524 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4527 s/.\{148\}//
4528 t delim
4529 ' <conf$$subs.awk | sed '
4530 /^[^""]/{
4532 s/\n//
4534 ' >>$CONFIG_STATUS || ac_write_fail=1
4535 rm -f conf$$subs.awk
4536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4537 _ACAWK
4538 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4539 for (key in S) S_is_set[key] = 1
4540 FS = "\a"
4544 line = $ 0
4545 nfields = split(line, field, "@")
4546 substed = 0
4547 len = length(field[1])
4548 for (i = 2; i < nfields; i++) {
4549 key = field[i]
4550 keylen = length(key)
4551 if (S_is_set[key]) {
4552 value = S[key]
4553 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4554 len += length(value) + length(field[++i])
4555 substed = 1
4556 } else
4557 len += 1 + keylen
4560 print line
4563 _ACAWK
4564 _ACEOF
4565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4566 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4567 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4568 else
4570 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4571 || as_fn_error "could not setup config files machinery" "$LINENO" 5
4572 _ACEOF
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/^[^=]*=[ ]*$//
4589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4590 fi # test -n "$CONFIG_FILES"
4593 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
4594 shift
4595 for ac_tag
4597 case $ac_tag in
4598 :[FHLC]) ac_mode=$ac_tag; continue;;
4599 esac
4600 case $ac_mode$ac_tag in
4601 :[FHL]*:*);;
4602 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
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
4614 case $ac_mode in
4615 :L) ac_source=$1;;
4616 :[FH])
4617 ac_file_inputs=
4618 for ac_f
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 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4631 esac
4632 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4633 as_fn_append ac_file_inputs " '$ac_f'"
4634 done
4636 # Let's still pretend it is `configure' which instantiates (i.e., don't
4637 # use $as_me), people would be surprised to read:
4638 # /* config.h. Generated by config.status. */
4639 configure_input='Generated from '`
4640 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4641 `' by configure.'
4642 if test x"$ac_file" != x-; then
4643 configure_input="$ac_file. $configure_input"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4645 $as_echo "$as_me: creating $ac_file" >&6;}
4647 # Neutralize special characters interpreted by sed in replacement strings.
4648 case $configure_input in #(
4649 *\&* | *\|* | *\\* )
4650 ac_sed_conf_input=`$as_echo "$configure_input" |
4651 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4652 *) ac_sed_conf_input=$configure_input;;
4653 esac
4655 case $ac_tag in
4656 *:-:* | *:-) cat >"$tmp/stdin" \
4657 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4658 esac
4660 esac
4662 ac_dir=`$as_dirname -- "$ac_file" ||
4663 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4664 X"$ac_file" : 'X\(//\)[^/]' \| \
4665 X"$ac_file" : 'X\(//\)$' \| \
4666 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4667 $as_echo X"$ac_file" |
4668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4669 s//\1/
4672 /^X\(\/\/\)[^/].*/{
4673 s//\1/
4676 /^X\(\/\/\)$/{
4677 s//\1/
4680 /^X\(\/\).*/{
4681 s//\1/
4684 s/.*/./; q'`
4685 as_dir="$ac_dir"; as_fn_mkdir_p
4686 ac_builddir=.
4688 case "$ac_dir" in
4689 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4691 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4692 # A ".." for each directory in $ac_dir_suffix.
4693 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4694 case $ac_top_builddir_sub in
4695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4697 esac ;;
4698 esac
4699 ac_abs_top_builddir=$ac_pwd
4700 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4701 # for backward compatibility:
4702 ac_top_builddir=$ac_top_build_prefix
4704 case $srcdir in
4705 .) # We are building in place.
4706 ac_srcdir=.
4707 ac_top_srcdir=$ac_top_builddir_sub
4708 ac_abs_top_srcdir=$ac_pwd ;;
4709 [\\/]* | ?:[\\/]* ) # Absolute name.
4710 ac_srcdir=$srcdir$ac_dir_suffix;
4711 ac_top_srcdir=$srcdir
4712 ac_abs_top_srcdir=$srcdir ;;
4713 *) # Relative name.
4714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4715 ac_top_srcdir=$ac_top_build_prefix$srcdir
4716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4717 esac
4718 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4721 case $ac_mode in
4724 # CONFIG_FILE
4727 _ACEOF
4729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4730 # If the template does not know about datarootdir, expand it.
4731 # FIXME: This hack should be removed a few years after 2.60.
4732 ac_datarootdir_hack=; ac_datarootdir_seen=
4733 ac_sed_dataroot='
4734 /datarootdir/ {
4738 /@datadir@/p
4739 /@docdir@/p
4740 /@infodir@/p
4741 /@localedir@/p
4742 /@mandir@/p'
4743 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4744 *datarootdir*) ac_datarootdir_seen=yes;;
4745 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4747 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4748 _ACEOF
4749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4750 ac_datarootdir_hack='
4751 s&@datadir@&$datadir&g
4752 s&@docdir@&$docdir&g
4753 s&@infodir@&$infodir&g
4754 s&@localedir@&$localedir&g
4755 s&@mandir@&$mandir&g
4756 s&\\\${datarootdir}&$datarootdir&g' ;;
4757 esac
4758 _ACEOF
4760 # Neutralize VPATH when `$srcdir' = `.'.
4761 # Shell code in configure.ac might set extrasub.
4762 # FIXME: do we really want to maintain this feature?
4763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4764 ac_sed_extra="$ac_vpsub
4765 $extrasub
4766 _ACEOF
4767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4770 s|@configure_input@|$ac_sed_conf_input|;t t
4771 s&@top_builddir@&$ac_top_builddir_sub&;t t
4772 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4773 s&@srcdir@&$ac_srcdir&;t t
4774 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4775 s&@top_srcdir@&$ac_top_srcdir&;t t
4776 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4777 s&@builddir@&$ac_builddir&;t t
4778 s&@abs_builddir@&$ac_abs_builddir&;t t
4779 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4780 $ac_datarootdir_hack
4782 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4783 || as_fn_error "could not create $ac_file" "$LINENO" 5
4785 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4786 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4789 which seems to be undefined. Please make sure it is defined." >&5
4790 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4791 which seems to be undefined. Please make sure it is defined." >&2;}
4793 rm -f "$tmp/stdin"
4794 case $ac_file in
4795 -) cat "$tmp/out" && rm -f "$tmp/out";;
4796 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4797 esac \
4798 || as_fn_error "could not create $ac_file" "$LINENO" 5
4802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4803 $as_echo "$as_me: executing $ac_file commands" >&6;}
4805 esac
4808 case $ac_file$ac_mode in
4809 "default-1":C)
4810 # Only add multilib support code if we just rebuilt the top-level
4811 # Makefile.
4812 case " $CONFIG_FILES " in
4813 *" Makefile "*)
4814 ac_file=Makefile . ${multi_basedir}/config-ml.in
4816 esac ;;
4818 esac
4819 done # for ac_tag
4822 as_fn_exit 0
4823 _ACEOF
4824 ac_clean_files=$ac_clean_files_save
4826 test $ac_write_fail = 0 ||
4827 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4830 # configure is writing to config.log, and then calls config.status.
4831 # config.status does its own redirection, appending to config.log.
4832 # Unfortunately, on DOS this fails, as config.log is still kept open
4833 # by configure, so config.status won't be able to write to it; its
4834 # output is simply discarded. So we exec the FD to /dev/null,
4835 # effectively closing config.log, so it can be properly (re)opened and
4836 # appended to by config.status. When coming back to configure, we
4837 # need to make the FD available again.
4838 if test "$no_create" != yes; then
4839 ac_cs_success=:
4840 ac_config_status_args=
4841 test "$silent" = yes &&
4842 ac_config_status_args="$ac_config_status_args --quiet"
4843 exec 5>/dev/null
4844 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4845 exec 5>>config.log
4846 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4847 # would make configure fail if this is the last instruction.
4848 $ac_cs_success || as_fn_exit $?
4850 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4852 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}