[RS6000] rs6000_indirect_call_template
[official-gcc.git] / libada / configure
blob1b056ac44ac859611c8e6f7c0173ec1ea9af2fd9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="Makefile.in"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 get_gcc_base_ver
625 have_capability
626 EGREP
627 GREP
629 have_getipinfo
630 default_gnatlib_target
631 LN_S
633 PICFLAG
634 enable_shared
635 OBJEXT
636 EXEEXT
637 ac_ct_CC
638 CPPFLAGS
639 LDFLAGS
640 CFLAGS
642 toolexeclibdir
643 toolexecdir
644 multi_basedir
645 MAINT
646 target_subdir
647 host_subdir
648 build_subdir
649 build_libsubdir
650 target_noncanonical
651 target_os
652 target_vendor
653 target_cpu
654 target
655 host_os
656 host_vendor
657 host_cpu
658 host
659 build_os
660 build_vendor
661 build_cpu
662 build
663 target_alias
664 host_alias
665 build_alias
666 LIBS
667 ECHO_T
668 ECHO_N
669 ECHO_C
670 DEFS
671 mandir
672 localedir
673 libdir
674 psdir
675 pdfdir
676 dvidir
677 htmldir
678 infodir
679 docdir
680 oldincludedir
681 includedir
682 localstatedir
683 sharedstatedir
684 sysconfdir
685 datadir
686 datarootdir
687 libexecdir
688 sbindir
689 bindir
690 program_transform_name
691 prefix
692 exec_prefix
693 PACKAGE_URL
694 PACKAGE_BUGREPORT
695 PACKAGE_STRING
696 PACKAGE_VERSION
697 PACKAGE_TARNAME
698 PACKAGE_NAME
699 PATH_SEPARATOR
700 SHELL'
701 ac_subst_files=''
702 ac_user_opts='
703 enable_option_checking
704 with_build_libsubdir
705 enable_maintainer_mode
706 enable_multilib
707 enable_shared
708 with_system_libunwind
709 with_gcc_major_version_only
711 ac_precious_vars='build_alias
712 host_alias
713 target_alias
715 CPPFLAGS'
718 # Initialize some variables set by options.
719 ac_init_help=
720 ac_init_version=false
721 ac_unrecognized_opts=
722 ac_unrecognized_sep=
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
725 cache_file=/dev/null
726 exec_prefix=NONE
727 no_create=
728 no_recursion=
729 prefix=NONE
730 program_prefix=NONE
731 program_suffix=NONE
732 program_transform_name=s,x,x,
733 silent=
734 site=
735 srcdir=
736 verbose=
737 x_includes=NONE
738 x_libraries=NONE
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir='${exec_prefix}/bin'
747 sbindir='${exec_prefix}/sbin'
748 libexecdir='${exec_prefix}/libexec'
749 datarootdir='${prefix}/share'
750 datadir='${datarootdir}'
751 sysconfdir='${prefix}/etc'
752 sharedstatedir='${prefix}/com'
753 localstatedir='${prefix}/var'
754 includedir='${prefix}/include'
755 oldincludedir='/usr/include'
756 docdir='${datarootdir}/doc/${PACKAGE}'
757 infodir='${datarootdir}/info'
758 htmldir='${docdir}'
759 dvidir='${docdir}'
760 pdfdir='${docdir}'
761 psdir='${docdir}'
762 libdir='${exec_prefix}/lib'
763 localedir='${datarootdir}/locale'
764 mandir='${datarootdir}/man'
766 ac_prev=
767 ac_dashdash=
768 for ac_option
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\$ac_option
773 ac_prev=
774 continue
777 case $ac_option in
778 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *=) ac_optarg= ;;
780 *) ac_optarg=yes ;;
781 esac
783 # Accept the important Cygnus configure options, so we can diagnose typos.
785 case $ac_dashdash$ac_option in
787 ac_dashdash=yes ;;
789 -bindir | --bindir | --bindi | --bind | --bin | --bi)
790 ac_prev=bindir ;;
791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 bindir=$ac_optarg ;;
794 -build | --build | --buil | --bui | --bu)
795 ac_prev=build_alias ;;
796 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
797 build_alias=$ac_optarg ;;
799 -cache-file | --cache-file | --cache-fil | --cache-fi \
800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
801 ac_prev=cache_file ;;
802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
804 cache_file=$ac_optarg ;;
806 --config-cache | -C)
807 cache_file=config.cache ;;
809 -datadir | --datadir | --datadi | --datad)
810 ac_prev=datadir ;;
811 -datadir=* | --datadir=* | --datadi=* | --datad=*)
812 datadir=$ac_optarg ;;
814 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
815 | --dataroo | --dataro | --datar)
816 ac_prev=datarootdir ;;
817 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
818 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
819 datarootdir=$ac_optarg ;;
821 -disable-* | --disable-*)
822 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error $? "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
830 "enable_$ac_useropt"
831 "*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
834 esac
835 eval enable_$ac_useropt=no ;;
837 -docdir | --docdir | --docdi | --doc | --do)
838 ac_prev=docdir ;;
839 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840 docdir=$ac_optarg ;;
842 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
843 ac_prev=dvidir ;;
844 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845 dvidir=$ac_optarg ;;
847 -enable-* | --enable-*)
848 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error $? "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
856 "enable_$ac_useropt"
857 "*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
860 esac
861 eval enable_$ac_useropt=\$ac_optarg ;;
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
870 exec_prefix=$ac_optarg ;;
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
874 with_gas=yes ;;
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
883 -host | --host | --hos | --ho)
884 ac_prev=host_alias ;;
885 -host=* | --host=* | --hos=* | --ho=*)
886 host_alias=$ac_optarg ;;
888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
892 htmldir=$ac_optarg ;;
894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
899 includedir=$ac_optarg ;;
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904 infodir=$ac_optarg ;;
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 libdir=$ac_optarg ;;
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
916 libexecdir=$ac_optarg ;;
918 -localedir | --localedir | --localedi | --localed | --locale)
919 ac_prev=localedir ;;
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
923 -localstatedir | --localstatedir | --localstatedi | --localstated \
924 | --localstate | --localstat | --localsta | --localst | --locals)
925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928 localstatedir=$ac_optarg ;;
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933 mandir=$ac_optarg ;;
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c | -n)
941 no_create=yes ;;
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954 oldincludedir=$ac_optarg ;;
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 prefix=$ac_optarg ;;
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966 program_prefix=$ac_optarg ;;
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973 program_suffix=$ac_optarg ;;
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
983 -program-transform-name=* | --program-transform-name=* \
984 | --program-transform-nam=* | --program-transform-na=* \
985 | --program-transform-n=* | --program-transform-=* \
986 | --program-transform=* | --program-transfor=* \
987 | --program-transfo=* | --program-transf=* \
988 | --program-trans=* | --program-tran=* \
989 | --progr-tra=* | --program-tr=* | --program-t=*)
990 program_transform_name=$ac_optarg ;;
992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007 ac_prev=sbindir ;;
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009 | --sbi=* | --sb=*)
1010 sbindir=$ac_optarg ;;
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1015 | --sha | --sh)
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020 | --sha=* | --sh=*)
1021 sharedstatedir=$ac_optarg ;;
1023 -site | --site | --sit)
1024 ac_prev=site ;;
1025 -site=* | --site=* | --sit=*)
1026 site=$ac_optarg ;;
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029 ac_prev=srcdir ;;
1030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031 srcdir=$ac_optarg ;;
1033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034 | --syscon | --sysco | --sysc | --sys | --sy)
1035 ac_prev=sysconfdir ;;
1036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038 sysconfdir=$ac_optarg ;;
1040 -target | --target | --targe | --targ | --tar | --ta | --t)
1041 ac_prev=target_alias ;;
1042 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043 target_alias=$ac_optarg ;;
1045 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 verbose=yes ;;
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
1051 -with-* | --with-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "with_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=\$ac_optarg ;;
1067 -without-* | --without-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error $? "invalid package name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "with_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval with_$ac_useropt=no ;;
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092 x_includes=$ac_optarg ;;
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;;
1101 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1102 Try \`$0 --help' for more information"
1105 *=*)
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 case $ac_envvar in #(
1109 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1111 esac
1112 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1123 esac
1124 done
1126 if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 as_fn_error $? "missing argument to $ac_option"
1131 if test -n "$ac_unrecognized_opts"; then
1132 case $enable_option_checking in
1133 no) ;;
1134 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1136 esac
1139 # Check all directory arguments for consistency.
1140 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
1145 eval ac_val=\$$ac_var
1146 # Remove trailing slashes.
1147 case $ac_val in
1148 */ )
1149 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\$ac_val;;
1151 esac
1152 # Be sure to have absolute directory names.
1153 case $ac_val in
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1156 esac
1157 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1158 done
1160 # There might be people who depend on the old broken behavior: `$host'
1161 # used to hold the argument of --host etc.
1162 # FIXME: To remove some day.
1163 build=$build_alias
1164 host=$host_alias
1165 target=$target_alias
1167 # FIXME: To remove some day.
1168 if test "x$host_alias" != x; then
1169 if test "x$build_alias" = x; then
1170 cross_compiling=maybe
1171 elif test "x$build_alias" != "x$host_alias"; then
1172 cross_compiling=yes
1176 ac_tool_prefix=
1177 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1179 test "$silent" = yes && exec 6>/dev/null
1182 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1183 ac_ls_di=`ls -di .` &&
1184 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1185 as_fn_error $? "working directory cannot be determined"
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 as_fn_error $? "pwd does not report name of working directory"
1190 # Find the source files, if location was not specified.
1191 if test -z "$srcdir"; then
1192 ac_srcdir_defaulted=yes
1193 # Try the directory containing this script, then the parent directory.
1194 ac_confdir=`$as_dirname -- "$as_myself" ||
1195 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1196 X"$as_myself" : 'X\(//\)[^/]' \| \
1197 X"$as_myself" : 'X\(//\)$' \| \
1198 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1199 $as_echo X"$as_myself" |
1200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1201 s//\1/
1204 /^X\(\/\/\)[^/].*/{
1205 s//\1/
1208 /^X\(\/\/\)$/{
1209 s//\1/
1212 /^X\(\/\).*/{
1213 s//\1/
1216 s/.*/./; q'`
1217 srcdir=$ac_confdir
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 srcdir=..
1221 else
1222 ac_srcdir_defaulted=no
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1225 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1226 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1228 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1229 ac_abs_confdir=`(
1230 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1231 pwd)`
1232 # When building in place, set srcdir=.
1233 if test "$ac_abs_confdir" = "$ac_pwd"; then
1234 srcdir=.
1236 # Remove unnecessary trailing slashes from srcdir.
1237 # Double slashes in file names in object file debugging info
1238 # mess up M-x gdb in Emacs.
1239 case $srcdir in
1240 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1241 esac
1242 for ac_var in $ac_precious_vars; do
1243 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_env_${ac_var}_value=\$${ac_var}
1245 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1247 done
1250 # Report the --help message.
1252 if test "$ac_init_help" = "long"; then
1253 # Omit some internal or obsolete options to make the list less imposing.
1254 # This message is too long to be a string in the A/UX 3.1 sh.
1255 cat <<_ACEOF
1256 \`configure' configures this package to adapt to many kinds of systems.
1258 Usage: $0 [OPTION]... [VAR=VALUE]...
1260 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1261 VAR=VALUE. See below for descriptions of some of the useful variables.
1263 Defaults for the options are specified in brackets.
1265 Configuration:
1266 -h, --help display this help and exit
1267 --help=short display options specific to this package
1268 --help=recursive display the short help of all the included packages
1269 -V, --version display version information and exit
1270 -q, --quiet, --silent do not print \`checking ...' messages
1271 --cache-file=FILE cache test results in FILE [disabled]
1272 -C, --config-cache alias for \`--cache-file=config.cache'
1273 -n, --no-create do not create output files
1274 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1276 Installation directories:
1277 --prefix=PREFIX install architecture-independent files in PREFIX
1278 [$ac_default_prefix]
1279 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1280 [PREFIX]
1282 By default, \`make install' will install all the files in
1283 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1284 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1285 for instance \`--prefix=\$HOME'.
1287 For better control, use the options below.
1289 Fine tuning of the installation directories:
1290 --bindir=DIR user executables [EPREFIX/bin]
1291 --sbindir=DIR system admin executables [EPREFIX/sbin]
1292 --libexecdir=DIR program executables [EPREFIX/libexec]
1293 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1294 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1295 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1296 --libdir=DIR object code libraries [EPREFIX/lib]
1297 --includedir=DIR C header files [PREFIX/include]
1298 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1299 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1300 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1301 --infodir=DIR info documentation [DATAROOTDIR/info]
1302 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1303 --mandir=DIR man documentation [DATAROOTDIR/man]
1304 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1305 --htmldir=DIR html documentation [DOCDIR]
1306 --dvidir=DIR dvi documentation [DOCDIR]
1307 --pdfdir=DIR pdf documentation [DOCDIR]
1308 --psdir=DIR ps documentation [DOCDIR]
1309 _ACEOF
1311 cat <<\_ACEOF
1313 System types:
1314 --build=BUILD configure for building on BUILD [guessed]
1315 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1316 --target=TARGET configure for building compilers for TARGET [HOST]
1317 _ACEOF
1320 if test -n "$ac_init_help"; then
1322 cat <<\_ACEOF
1324 Optional Features:
1325 --disable-option-checking ignore unrecognized --enable/--with options
1326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1328 --enable-maintainer-mode
1329 enable make rules and dependencies not useful (and
1330 sometimes confusing) to the casual installer
1331 --enable-multilib build many library versions (default)
1332 --disable-shared don't provide a shared libgnat
1334 Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1337 --with-build-libsubdir=DIR Directory where to find libraries for build system
1338 --with-system-libunwind use installed libunwind
1339 --with-gcc-major-version-only
1340 use only GCC major number in filesystem paths
1342 Some influential environment variables:
1343 CC C compiler command
1344 CFLAGS C compiler flags
1345 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1346 nonstandard directory <lib dir>
1347 LIBS libraries to pass to the linker, e.g. -l<library>
1348 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1349 you have headers in a nonstandard directory <include dir>
1350 CPP C preprocessor
1352 Use these variables to override the choices made by `configure' or to help
1353 it to find libraries and programs with nonstandard names/locations.
1355 Report bugs to the package provider.
1356 _ACEOF
1357 ac_status=$?
1360 if test "$ac_init_help" = "recursive"; then
1361 # If there are subdirs, report their specific --help.
1362 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1363 test -d "$ac_dir" ||
1364 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1365 continue
1366 ac_builddir=.
1368 case "$ac_dir" in
1369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1372 # A ".." for each directory in $ac_dir_suffix.
1373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1374 case $ac_top_builddir_sub in
1375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1377 esac ;;
1378 esac
1379 ac_abs_top_builddir=$ac_pwd
1380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1381 # for backward compatibility:
1382 ac_top_builddir=$ac_top_build_prefix
1384 case $srcdir in
1385 .) # We are building in place.
1386 ac_srcdir=.
1387 ac_top_srcdir=$ac_top_builddir_sub
1388 ac_abs_top_srcdir=$ac_pwd ;;
1389 [\\/]* | ?:[\\/]* ) # Absolute name.
1390 ac_srcdir=$srcdir$ac_dir_suffix;
1391 ac_top_srcdir=$srcdir
1392 ac_abs_top_srcdir=$srcdir ;;
1393 *) # Relative name.
1394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1395 ac_top_srcdir=$ac_top_build_prefix$srcdir
1396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1397 esac
1398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1400 cd "$ac_dir" || { ac_status=$?; continue; }
1401 # Check for guested configure.
1402 if test -f "$ac_srcdir/configure.gnu"; then
1403 echo &&
1404 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1405 elif test -f "$ac_srcdir/configure"; then
1406 echo &&
1407 $SHELL "$ac_srcdir/configure" --help=recursive
1408 else
1409 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1410 fi || ac_status=$?
1411 cd "$ac_pwd" || { ac_status=$?; break; }
1412 done
1415 test -n "$ac_init_help" && exit $ac_status
1416 if $ac_init_version; then
1417 cat <<\_ACEOF
1418 configure
1419 generated by GNU Autoconf 2.69
1421 Copyright (C) 2012 Free Software Foundation, Inc.
1422 This configure script is free software; the Free Software Foundation
1423 gives unlimited permission to copy, distribute and modify it.
1424 _ACEOF
1425 exit
1428 ## ------------------------ ##
1429 ## Autoconf initialization. ##
1430 ## ------------------------ ##
1432 # ac_fn_c_try_compile LINENO
1433 # --------------------------
1434 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1435 ac_fn_c_try_compile ()
1437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1438 rm -f conftest.$ac_objext
1439 if { { ac_try="$ac_compile"
1440 case "(($ac_try" in
1441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1442 *) ac_try_echo=$ac_try;;
1443 esac
1444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1445 $as_echo "$ac_try_echo"; } >&5
1446 (eval "$ac_compile") 2>conftest.err
1447 ac_status=$?
1448 if test -s conftest.err; then
1449 grep -v '^ *+' conftest.err >conftest.er1
1450 cat conftest.er1 >&5
1451 mv -f conftest.er1 conftest.err
1453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1454 test $ac_status = 0; } && {
1455 test -z "$ac_c_werror_flag" ||
1456 test ! -s conftest.err
1457 } && test -s conftest.$ac_objext; then :
1458 ac_retval=0
1459 else
1460 $as_echo "$as_me: failed program was:" >&5
1461 sed 's/^/| /' conftest.$ac_ext >&5
1463 ac_retval=1
1465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1466 as_fn_set_status $ac_retval
1468 } # ac_fn_c_try_compile
1470 # ac_fn_c_try_cpp LINENO
1471 # ----------------------
1472 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1473 ac_fn_c_try_cpp ()
1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1476 if { { ac_try="$ac_cpp conftest.$ac_ext"
1477 case "(($ac_try" in
1478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1479 *) ac_try_echo=$ac_try;;
1480 esac
1481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482 $as_echo "$ac_try_echo"; } >&5
1483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1484 ac_status=$?
1485 if test -s conftest.err; then
1486 grep -v '^ *+' conftest.err >conftest.er1
1487 cat conftest.er1 >&5
1488 mv -f conftest.er1 conftest.err
1490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1491 test $ac_status = 0; } > conftest.i && {
1492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1493 test ! -s conftest.err
1494 }; then :
1495 ac_retval=0
1496 else
1497 $as_echo "$as_me: failed program was:" >&5
1498 sed 's/^/| /' conftest.$ac_ext >&5
1500 ac_retval=1
1502 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1503 as_fn_set_status $ac_retval
1505 } # ac_fn_c_try_cpp
1507 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1508 # -------------------------------------------------------
1509 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1510 # the include files in INCLUDES and setting the cache variable VAR
1511 # accordingly.
1512 ac_fn_c_check_header_mongrel ()
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 if eval \${$3+:} false; then :
1516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1517 $as_echo_n "checking for $2... " >&6; }
1518 if eval \${$3+:} false; then :
1519 $as_echo_n "(cached) " >&6
1521 eval ac_res=\$$3
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1523 $as_echo "$ac_res" >&6; }
1524 else
1525 # Is the header compilable?
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1527 $as_echo_n "checking $2 usability... " >&6; }
1528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1529 /* end confdefs.h. */
1531 #include <$2>
1532 _ACEOF
1533 if ac_fn_c_try_compile "$LINENO"; then :
1534 ac_header_compiler=yes
1535 else
1536 ac_header_compiler=no
1538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1540 $as_echo "$ac_header_compiler" >&6; }
1542 # Is the header present?
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1544 $as_echo_n "checking $2 presence... " >&6; }
1545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1546 /* end confdefs.h. */
1547 #include <$2>
1548 _ACEOF
1549 if ac_fn_c_try_cpp "$LINENO"; then :
1550 ac_header_preproc=yes
1551 else
1552 ac_header_preproc=no
1554 rm -f conftest.err conftest.i conftest.$ac_ext
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1556 $as_echo "$ac_header_preproc" >&6; }
1558 # So? What about this header?
1559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1560 yes:no: )
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1562 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1564 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1566 no:yes:* )
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1568 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1570 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1572 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1574 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1576 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1578 esac
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580 $as_echo_n "checking for $2... " >&6; }
1581 if eval \${$3+:} false; then :
1582 $as_echo_n "(cached) " >&6
1583 else
1584 eval "$3=\$ac_header_compiler"
1586 eval ac_res=\$$3
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588 $as_echo "$ac_res" >&6; }
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 } # ac_fn_c_check_header_mongrel
1594 # ac_fn_c_try_run LINENO
1595 # ----------------------
1596 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1597 # that executables *can* be run.
1598 ac_fn_c_try_run ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_link"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>&5
1609 ac_status=$?
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1612 { { case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_try") 2>&5
1619 ac_status=$?
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; }; }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: program exited with status $ac_status" >&5
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1628 ac_retval=$ac_status
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1634 } # ac_fn_c_try_run
1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists and can be compiled using the include files in
1639 # INCLUDES, setting the cache variable VAR accordingly.
1640 ac_fn_c_check_header_compile ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1647 else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654 eval "$3=yes"
1655 else
1656 eval "$3=no"
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 } # ac_fn_c_check_header_compile
1666 cat >config.log <<_ACEOF
1667 This file contains any messages produced by compilers while
1668 running configure, to aid debugging if configure makes a mistake.
1670 It was created by $as_me, which was
1671 generated by GNU Autoconf 2.69. Invocation command line was
1673 $ $0 $@
1675 _ACEOF
1676 exec 5>>config.log
1678 cat <<_ASUNAME
1679 ## --------- ##
1680 ## Platform. ##
1681 ## --------- ##
1683 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1684 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1685 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1686 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1687 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1689 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1690 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1692 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1693 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1694 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1695 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1696 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1697 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1698 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1700 _ASUNAME
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 for as_dir in $PATH
1705 IFS=$as_save_IFS
1706 test -z "$as_dir" && as_dir=.
1707 $as_echo "PATH: $as_dir"
1708 done
1709 IFS=$as_save_IFS
1711 } >&5
1713 cat >&5 <<_ACEOF
1716 ## ----------- ##
1717 ## Core tests. ##
1718 ## ----------- ##
1720 _ACEOF
1723 # Keep a trace of the command line.
1724 # Strip out --no-create and --no-recursion so they do not pile up.
1725 # Strip out --silent because we don't want to record it for future runs.
1726 # Also quote any args containing shell meta-characters.
1727 # Make two passes to allow for proper duplicate-argument suppression.
1728 ac_configure_args=
1729 ac_configure_args0=
1730 ac_configure_args1=
1731 ac_must_keep_next=false
1732 for ac_pass in 1 2
1734 for ac_arg
1736 case $ac_arg in
1737 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1739 | -silent | --silent | --silen | --sile | --sil)
1740 continue ;;
1741 *\'*)
1742 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1743 esac
1744 case $ac_pass in
1745 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1747 as_fn_append ac_configure_args1 " '$ac_arg'"
1748 if test $ac_must_keep_next = true; then
1749 ac_must_keep_next=false # Got value, back to normal.
1750 else
1751 case $ac_arg in
1752 *=* | --config-cache | -C | -disable-* | --disable-* \
1753 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1754 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1755 | -with-* | --with-* | -without-* | --without-* | --x)
1756 case "$ac_configure_args0 " in
1757 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1758 esac
1760 -* ) ac_must_keep_next=true ;;
1761 esac
1763 as_fn_append ac_configure_args " '$ac_arg'"
1765 esac
1766 done
1767 done
1768 { ac_configure_args0=; unset ac_configure_args0;}
1769 { ac_configure_args1=; unset ac_configure_args1;}
1771 # When interrupted or exit'd, cleanup temporary files, and complete
1772 # config.log. We remove comments because anyway the quotes in there
1773 # would cause problems or look ugly.
1774 # WARNING: Use '\'' to represent an apostrophe within the trap.
1775 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1776 trap 'exit_status=$?
1777 # Save into config.log some information that might help in debugging.
1779 echo
1781 $as_echo "## ---------------- ##
1782 ## Cache variables. ##
1783 ## ---------------- ##"
1784 echo
1785 # The following way of writing the cache mishandles newlines in values,
1787 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788 eval ac_val=\$$ac_var
1789 case $ac_val in #(
1790 *${as_nl}*)
1791 case $ac_var in #(
1792 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1793 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1794 esac
1795 case $ac_var in #(
1796 _ | IFS | as_nl) ;; #(
1797 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1798 *) { eval $ac_var=; unset $ac_var;} ;;
1799 esac ;;
1800 esac
1801 done
1802 (set) 2>&1 |
1803 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1804 *${as_nl}ac_space=\ *)
1805 sed -n \
1806 "s/'\''/'\''\\\\'\'''\''/g;
1807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1808 ;; #(
1810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1812 esac |
1813 sort
1815 echo
1817 $as_echo "## ----------------- ##
1818 ## Output variables. ##
1819 ## ----------------- ##"
1820 echo
1821 for ac_var in $ac_subst_vars
1823 eval ac_val=\$$ac_var
1824 case $ac_val in
1825 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 esac
1827 $as_echo "$ac_var='\''$ac_val'\''"
1828 done | sort
1829 echo
1831 if test -n "$ac_subst_files"; then
1832 $as_echo "## ------------------- ##
1833 ## File substitutions. ##
1834 ## ------------------- ##"
1835 echo
1836 for ac_var in $ac_subst_files
1838 eval ac_val=\$$ac_var
1839 case $ac_val in
1840 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841 esac
1842 $as_echo "$ac_var='\''$ac_val'\''"
1843 done | sort
1844 echo
1847 if test -s confdefs.h; then
1848 $as_echo "## ----------- ##
1849 ## confdefs.h. ##
1850 ## ----------- ##"
1851 echo
1852 cat confdefs.h
1853 echo
1855 test "$ac_signal" != 0 &&
1856 $as_echo "$as_me: caught signal $ac_signal"
1857 $as_echo "$as_me: exit $exit_status"
1858 } >&5
1859 rm -f core *.core core.conftest.* &&
1860 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1861 exit $exit_status
1863 for ac_signal in 1 2 13 15; do
1864 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1865 done
1866 ac_signal=0
1868 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1869 rm -f -r conftest* confdefs.h
1871 $as_echo "/* confdefs.h */" > confdefs.h
1873 # Predefined preprocessor variables.
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_NAME "$PACKAGE_NAME"
1877 _ACEOF
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1881 _ACEOF
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1885 _ACEOF
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_STRING "$PACKAGE_STRING"
1889 _ACEOF
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1893 _ACEOF
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_URL "$PACKAGE_URL"
1897 _ACEOF
1900 # Let the site file select an alternate cache file if it wants to.
1901 # Prefer an explicitly selected file to automatically selected ones.
1902 ac_site_file1=NONE
1903 ac_site_file2=NONE
1904 if test -n "$CONFIG_SITE"; then
1905 # We do not want a PATH search for config.site.
1906 case $CONFIG_SITE in #((
1907 -*) ac_site_file1=./$CONFIG_SITE;;
1908 */*) ac_site_file1=$CONFIG_SITE;;
1909 *) ac_site_file1=./$CONFIG_SITE;;
1910 esac
1911 elif test "x$prefix" != xNONE; then
1912 ac_site_file1=$prefix/share/config.site
1913 ac_site_file2=$prefix/etc/config.site
1914 else
1915 ac_site_file1=$ac_default_prefix/share/config.site
1916 ac_site_file2=$ac_default_prefix/etc/config.site
1918 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1920 test "x$ac_site_file" = xNONE && continue
1921 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1924 sed 's/^/| /' "$ac_site_file" >&5
1925 . "$ac_site_file" \
1926 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1928 as_fn_error $? "failed to load site script $ac_site_file
1929 See \`config.log' for more details" "$LINENO" 5; }
1931 done
1933 if test -r "$cache_file"; then
1934 # Some versions of bash will fail to source /dev/null (special files
1935 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1936 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1938 $as_echo "$as_me: loading cache $cache_file" >&6;}
1939 case $cache_file in
1940 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1941 *) . "./$cache_file";;
1942 esac
1944 else
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1946 $as_echo "$as_me: creating cache $cache_file" >&6;}
1947 >$cache_file
1950 # Check that the precious variables saved in the cache have kept the same
1951 # value.
1952 ac_cache_corrupted=false
1953 for ac_var in $ac_precious_vars; do
1954 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1955 eval ac_new_set=\$ac_env_${ac_var}_set
1956 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1957 eval ac_new_val=\$ac_env_${ac_var}_value
1958 case $ac_old_set,$ac_new_set in
1959 set,)
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1961 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1962 ac_cache_corrupted=: ;;
1963 ,set)
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1965 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1967 ,);;
1969 if test "x$ac_old_val" != "x$ac_new_val"; then
1970 # differences in whitespace do not lead to failure.
1971 ac_old_val_w=`echo x $ac_old_val`
1972 ac_new_val_w=`echo x $ac_new_val`
1973 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1975 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1976 ac_cache_corrupted=:
1977 else
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1979 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1980 eval $ac_var=\$ac_old_val
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1983 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1985 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1986 fi;;
1987 esac
1988 # Pass precious variables to config.status.
1989 if test "$ac_new_set" = set; then
1990 case $ac_new_val in
1991 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 *) ac_arg=$ac_var=$ac_new_val ;;
1993 esac
1994 case " $ac_configure_args " in
1995 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1996 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1997 esac
1999 done
2000 if $ac_cache_corrupted; then
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2004 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2005 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2007 ## -------------------- ##
2008 ## Main body of script. ##
2009 ## -------------------- ##
2011 ac_ext=c
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024 # Determine the host, build, and target systems
2025 ac_aux_dir=
2026 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2027 if test -f "$ac_dir/install-sh"; then
2028 ac_aux_dir=$ac_dir
2029 ac_install_sh="$ac_aux_dir/install-sh -c"
2030 break
2031 elif test -f "$ac_dir/install.sh"; then
2032 ac_aux_dir=$ac_dir
2033 ac_install_sh="$ac_aux_dir/install.sh -c"
2034 break
2035 elif test -f "$ac_dir/shtool"; then
2036 ac_aux_dir=$ac_dir
2037 ac_install_sh="$ac_aux_dir/shtool install -c"
2038 break
2040 done
2041 if test -z "$ac_aux_dir"; then
2042 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2045 # These three variables are undocumented and unsupported,
2046 # and are intended to be withdrawn in a future Autoconf release.
2047 # They can cause serious problems if a builder's source tree is in a directory
2048 # whose full name contains unusual characters.
2049 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2050 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2051 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2054 # Make sure we can run config.sub.
2055 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2056 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2059 $as_echo_n "checking build system type... " >&6; }
2060 if ${ac_cv_build+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062 else
2063 ac_build_alias=$build_alias
2064 test "x$ac_build_alias" = x &&
2065 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2066 test "x$ac_build_alias" = x &&
2067 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2068 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2069 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2073 $as_echo "$ac_cv_build" >&6; }
2074 case $ac_cv_build in
2075 *-*-*) ;;
2076 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2077 esac
2078 build=$ac_cv_build
2079 ac_save_IFS=$IFS; IFS='-'
2080 set x $ac_cv_build
2081 shift
2082 build_cpu=$1
2083 build_vendor=$2
2084 shift; shift
2085 # Remember, the first character of IFS is used to create $*,
2086 # except with old shells:
2087 build_os=$*
2088 IFS=$ac_save_IFS
2089 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2093 $as_echo_n "checking host system type... " >&6; }
2094 if ${ac_cv_host+:} false; then :
2095 $as_echo_n "(cached) " >&6
2096 else
2097 if test "x$host_alias" = x; then
2098 ac_cv_host=$ac_cv_build
2099 else
2100 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2101 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2106 $as_echo "$ac_cv_host" >&6; }
2107 case $ac_cv_host in
2108 *-*-*) ;;
2109 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2110 esac
2111 host=$ac_cv_host
2112 ac_save_IFS=$IFS; IFS='-'
2113 set x $ac_cv_host
2114 shift
2115 host_cpu=$1
2116 host_vendor=$2
2117 shift; shift
2118 # Remember, the first character of IFS is used to create $*,
2119 # except with old shells:
2120 host_os=$*
2121 IFS=$ac_save_IFS
2122 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2126 $as_echo_n "checking target system type... " >&6; }
2127 if ${ac_cv_target+:} false; then :
2128 $as_echo_n "(cached) " >&6
2129 else
2130 if test "x$target_alias" = x; then
2131 ac_cv_target=$ac_cv_host
2132 else
2133 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2134 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2139 $as_echo "$ac_cv_target" >&6; }
2140 case $ac_cv_target in
2141 *-*-*) ;;
2142 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2143 esac
2144 target=$ac_cv_target
2145 ac_save_IFS=$IFS; IFS='-'
2146 set x $ac_cv_target
2147 shift
2148 target_cpu=$1
2149 target_vendor=$2
2150 shift; shift
2151 # Remember, the first character of IFS is used to create $*,
2152 # except with old shells:
2153 target_os=$*
2154 IFS=$ac_save_IFS
2155 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2158 # The aliases save the names the user supplied, while $host etc.
2159 # will get canonicalized.
2160 test -n "$target_alias" &&
2161 test "$program_prefix$program_suffix$program_transform_name" = \
2162 NONENONEs,x,x, &&
2163 program_prefix=${target_alias}-
2164 target_alias=${target_alias-$host_alias}
2166 # Determine the noncanonical target name, for directory use.
2167 case ${build_alias} in
2168 "") build_noncanonical=${build} ;;
2169 *) build_noncanonical=${build_alias} ;;
2170 esac
2172 case ${host_alias} in
2173 "") host_noncanonical=${build_noncanonical} ;;
2174 *) host_noncanonical=${host_alias} ;;
2175 esac
2177 case ${target_alias} in
2178 "") target_noncanonical=${host_noncanonical} ;;
2179 *) target_noncanonical=${target_alias} ;;
2180 esac
2185 # Determine the target- and build-specific subdirectories
2187 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2188 # have matching libraries, they should use host libraries: Makefile.tpl
2189 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2190 # However, they still use the build modules, because the corresponding
2191 # host modules (e.g. bison) are only built for the host when bootstrap
2192 # finishes. So:
2193 # - build_subdir is where we find build modules, and never changes.
2194 # - build_libsubdir is where we find build libraries, and can be overridden.
2196 # Prefix 'build-' so this never conflicts with target_subdir.
2197 build_subdir="build-${build_noncanonical}"
2199 # Check whether --with-build-libsubdir was given.
2200 if test "${with_build_libsubdir+set}" = set; then :
2201 withval=$with_build_libsubdir; build_libsubdir="$withval"
2202 else
2203 build_libsubdir="$build_subdir"
2206 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2207 if ( test $srcdir = . && test -d gcc ) \
2208 || test -d $srcdir/../host-${host_noncanonical}; then
2209 host_subdir="host-${host_noncanonical}"
2210 else
2211 host_subdir=.
2213 # No prefix.
2214 target_subdir=${target_noncanonical}
2217 # Command-line options.
2218 # Very limited version of AC_MAINTAINER_MODE.
2219 # Check whether --enable-maintainer-mode was given.
2220 if test "${enable_maintainer_mode+set}" = set; then :
2221 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2222 yes) MAINT='' ;;
2223 no) MAINT='#' ;;
2224 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2225 esac
2226 maintainer_mode=${enableval}
2227 else
2228 MAINT='#'
2232 # Default to --enable-multilib
2233 # Check whether --enable-multilib was given.
2234 if test "${enable_multilib+set}" = set; then :
2235 enableval=$enable_multilib; case "$enableval" in
2236 yes) multilib=yes ;;
2237 no) multilib=no ;;
2238 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2239 esac
2240 else
2241 multilib=yes
2245 # We may get other options which we leave undocumented:
2246 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2247 # See config-ml.in if you want the gory details.
2249 if test "$srcdir" = "."; then
2250 if test "$with_target_subdir" != "."; then
2251 multi_basedir="$srcdir/$with_multisrctop../.."
2252 else
2253 multi_basedir="$srcdir/$with_multisrctop.."
2255 else
2256 multi_basedir="$srcdir/.."
2260 # Even if the default multilib is not a cross compilation,
2261 # it may be that some of the other multilibs are.
2262 if test $cross_compiling = no && test $multilib = yes \
2263 && test "x${with_multisubdir}" != x ; then
2264 cross_compiling=maybe
2267 ac_config_commands="$ac_config_commands default-1"
2269 # Calculate toolexeclibdir
2270 # Also toolexecdir, though it's only used in toolexeclibdir
2271 case ${enable_version_specific_runtime_libs} in
2272 yes)
2273 # Need the gcc compiler version to know where to install libraries
2274 # and header files if --enable-version-specific-runtime-libs option
2275 # is selected.
2276 toolexecdir='$(libdir)/gcc/$(target_alias)'
2277 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2280 if test -n "$with_cross_host" &&
2281 test x"$with_cross_host" != x"no"; then
2282 # Install a library built with a cross compiler in tooldir, not libdir.
2283 toolexecdir='$(exec_prefix)/$(target_alias)'
2284 toolexeclibdir='$(toolexecdir)/lib'
2285 else
2286 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2287 toolexeclibdir='$(libdir)'
2289 multi_os_directory=`$CC -print-multi-os-directory`
2290 case $multi_os_directory in
2291 .) ;; # Avoid trailing /.
2292 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2293 esac
2295 esac
2298 #TODO: toolexeclibdir is currently disregarded
2300 # Check the compiler.
2301 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2302 # We must force CC to /not/ be precious variables; otherwise
2303 # the wrong, non-multilib-adjusted value will be used in multilibs.
2304 # As a side effect, we have to subst CFLAGS ourselves.
2308 ac_ext=c
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313 if test -n "$ac_tool_prefix"; then
2314 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2315 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2317 $as_echo_n "checking for $ac_word... " >&6; }
2318 if ${ac_cv_prog_CC+:} false; then :
2319 $as_echo_n "(cached) " >&6
2320 else
2321 if test -n "$CC"; then
2322 ac_cv_prog_CC="$CC" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2331 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2335 done
2336 done
2337 IFS=$as_save_IFS
2341 CC=$ac_cv_prog_CC
2342 if test -n "$CC"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2344 $as_echo "$CC" >&6; }
2345 else
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2347 $as_echo "no" >&6; }
2352 if test -z "$ac_cv_prog_CC"; then
2353 ac_ct_CC=$CC
2354 # Extract the first word of "gcc", so it can be a program name with args.
2355 set dummy gcc; ac_word=$2
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2357 $as_echo_n "checking for $ac_word... " >&6; }
2358 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2359 $as_echo_n "(cached) " >&6
2360 else
2361 if test -n "$ac_ct_CC"; then
2362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2371 ac_cv_prog_ac_ct_CC="gcc"
2372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2375 done
2376 done
2377 IFS=$as_save_IFS
2381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2382 if test -n "$ac_ct_CC"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2384 $as_echo "$ac_ct_CC" >&6; }
2385 else
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2387 $as_echo "no" >&6; }
2390 if test "x$ac_ct_CC" = x; then
2391 CC=""
2392 else
2393 case $cross_compiling:$ac_tool_warned in
2394 yes:)
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2397 ac_tool_warned=yes ;;
2398 esac
2399 CC=$ac_ct_CC
2401 else
2402 CC="$ac_cv_prog_CC"
2405 if test -z "$CC"; then
2406 if test -n "$ac_tool_prefix"; then
2407 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2408 set dummy ${ac_tool_prefix}cc; ac_word=$2
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2410 $as_echo_n "checking for $ac_word... " >&6; }
2411 if ${ac_cv_prog_CC+:} false; then :
2412 $as_echo_n "(cached) " >&6
2413 else
2414 if test -n "$CC"; then
2415 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2424 ac_cv_prog_CC="${ac_tool_prefix}cc"
2425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 break 2
2428 done
2429 done
2430 IFS=$as_save_IFS
2434 CC=$ac_cv_prog_CC
2435 if test -n "$CC"; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2437 $as_echo "$CC" >&6; }
2438 else
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2440 $as_echo "no" >&6; }
2446 if test -z "$CC"; then
2447 # Extract the first word of "cc", so it can be a program name with args.
2448 set dummy cc; ac_word=$2
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2450 $as_echo_n "checking for $ac_word... " >&6; }
2451 if ${ac_cv_prog_CC+:} false; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 if test -n "$CC"; then
2455 ac_cv_prog_CC="$CC" # Let the user override the test.
2456 else
2457 ac_prog_rejected=no
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2465 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2466 ac_prog_rejected=yes
2467 continue
2469 ac_cv_prog_CC="cc"
2470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2473 done
2474 done
2475 IFS=$as_save_IFS
2477 if test $ac_prog_rejected = yes; then
2478 # We found a bogon in the path, so make sure we never use it.
2479 set dummy $ac_cv_prog_CC
2480 shift
2481 if test $# != 0; then
2482 # We chose a different compiler from the bogus one.
2483 # However, it has the same basename, so the bogon will be chosen
2484 # first if we set CC to just the basename; use the full file name.
2485 shift
2486 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2491 CC=$ac_cv_prog_CC
2492 if test -n "$CC"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2494 $as_echo "$CC" >&6; }
2495 else
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2502 if test -z "$CC"; then
2503 if test -n "$ac_tool_prefix"; then
2504 for ac_prog in cl.exe
2506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if ${ac_cv_prog_CC+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2523 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2527 done
2528 done
2529 IFS=$as_save_IFS
2533 CC=$ac_cv_prog_CC
2534 if test -n "$CC"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2536 $as_echo "$CC" >&6; }
2537 else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2543 test -n "$CC" && break
2544 done
2546 if test -z "$CC"; then
2547 ac_ct_CC=$CC
2548 for ac_prog in cl.exe
2550 # Extract the first word of "$ac_prog", so it can be a program name with args.
2551 set dummy $ac_prog; ac_word=$2
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553 $as_echo_n "checking for $ac_word... " >&6; }
2554 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 if test -n "$ac_ct_CC"; then
2558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567 ac_cv_prog_ac_ct_CC="$ac_prog"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2571 done
2572 done
2573 IFS=$as_save_IFS
2577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2578 if test -n "$ac_ct_CC"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2580 $as_echo "$ac_ct_CC" >&6; }
2581 else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2587 test -n "$ac_ct_CC" && break
2588 done
2590 if test "x$ac_ct_CC" = x; then
2591 CC=""
2592 else
2593 case $cross_compiling:$ac_tool_warned in
2594 yes:)
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2597 ac_tool_warned=yes ;;
2598 esac
2599 CC=$ac_ct_CC
2606 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2608 as_fn_error $? "no acceptable C compiler found in \$PATH
2609 See \`config.log' for more details" "$LINENO" 5; }
2611 # Provide some information about the compiler.
2612 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2613 set X $ac_compile
2614 ac_compiler=$2
2615 for ac_option in --version -v -V -qversion; do
2616 { { ac_try="$ac_compiler $ac_option >&5"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2624 ac_status=$?
2625 if test -s conftest.err; then
2626 sed '10a\
2627 ... rest of stderr output deleted ...
2628 10q' conftest.err >conftest.er1
2629 cat conftest.er1 >&5
2631 rm -f conftest.er1 conftest.err
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633 test $ac_status = 0; }
2634 done
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h. */
2640 main ()
2644 return 0;
2646 _ACEOF
2647 ac_clean_files_save=$ac_clean_files
2648 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2649 # Try to create an executable without -o first, disregard a.out.
2650 # It will help us diagnose broken compilers, and finding out an intuition
2651 # of exeext.
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2653 $as_echo_n "checking whether the C compiler works... " >&6; }
2654 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2656 # The possible output files:
2657 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2659 ac_rmfiles=
2660 for ac_file in $ac_files
2662 case $ac_file in
2663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2664 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2665 esac
2666 done
2667 rm -f $ac_rmfiles
2669 if { { ac_try="$ac_link_default"
2670 case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2673 esac
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676 (eval "$ac_link_default") 2>&5
2677 ac_status=$?
2678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679 test $ac_status = 0; }; then :
2680 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2681 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2682 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2683 # so that the user can short-circuit this test for compilers unknown to
2684 # Autoconf.
2685 for ac_file in $ac_files ''
2687 test -f "$ac_file" || continue
2688 case $ac_file in
2689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2691 [ab].out )
2692 # We found the default executable, but exeext='' is most
2693 # certainly right.
2694 break;;
2695 *.* )
2696 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2697 then :; else
2698 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2700 # We set ac_cv_exeext here because the later test for it is not
2701 # safe: cross compilers may not add the suffix if given an `-o'
2702 # argument, so we may need to know it at that point already.
2703 # Even if this section looks crufty: it has the advantage of
2704 # actually working.
2705 break;;
2707 break;;
2708 esac
2709 done
2710 test "$ac_cv_exeext" = no && ac_cv_exeext=
2712 else
2713 ac_file=''
2715 if test -z "$ac_file"; then :
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2718 $as_echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2723 as_fn_error 77 "C compiler cannot create executables
2724 See \`config.log' for more details" "$LINENO" 5; }
2725 else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2727 $as_echo "yes" >&6; }
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2730 $as_echo_n "checking for C compiler default output file name... " >&6; }
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2732 $as_echo "$ac_file" >&6; }
2733 ac_exeext=$ac_cv_exeext
2735 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2736 ac_clean_files=$ac_clean_files_save
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2738 $as_echo_n "checking for suffix of executables... " >&6; }
2739 if { { ac_try="$ac_link"
2740 case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743 esac
2744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2745 $as_echo "$ac_try_echo"; } >&5
2746 (eval "$ac_link") 2>&5
2747 ac_status=$?
2748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2749 test $ac_status = 0; }; then :
2750 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2751 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2752 # work properly (i.e., refer to `conftest.exe'), while it won't with
2753 # `rm'.
2754 for ac_file in conftest.exe conftest conftest.*; do
2755 test -f "$ac_file" || continue
2756 case $ac_file in
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2758 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2759 break;;
2760 * ) break;;
2761 esac
2762 done
2763 else
2764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2767 See \`config.log' for more details" "$LINENO" 5; }
2769 rm -f conftest conftest$ac_cv_exeext
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2771 $as_echo "$ac_cv_exeext" >&6; }
2773 rm -f conftest.$ac_ext
2774 EXEEXT=$ac_cv_exeext
2775 ac_exeext=$EXEEXT
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2778 #include <stdio.h>
2780 main ()
2782 FILE *f = fopen ("conftest.out", "w");
2783 return ferror (f) || fclose (f) != 0;
2786 return 0;
2788 _ACEOF
2789 ac_clean_files="$ac_clean_files conftest.out"
2790 # Check that the compiler produces executables we can run. If not, either
2791 # the compiler is broken, or we cross compile.
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2793 $as_echo_n "checking whether we are cross compiling... " >&6; }
2794 if test "$cross_compiling" != yes; then
2795 { { ac_try="$ac_link"
2796 case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799 esac
2800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2801 $as_echo "$ac_try_echo"; } >&5
2802 (eval "$ac_link") 2>&5
2803 ac_status=$?
2804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2805 test $ac_status = 0; }
2806 if { ac_try='./conftest$ac_cv_exeext'
2807 { { case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810 esac
2811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812 $as_echo "$ac_try_echo"; } >&5
2813 (eval "$ac_try") 2>&5
2814 ac_status=$?
2815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816 test $ac_status = 0; }; }; then
2817 cross_compiling=no
2818 else
2819 if test "$cross_compiling" = maybe; then
2820 cross_compiling=yes
2821 else
2822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2824 as_fn_error $? "cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details" "$LINENO" 5; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2831 $as_echo "$cross_compiling" >&6; }
2833 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2834 ac_clean_files=$ac_clean_files_save
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2836 $as_echo_n "checking for suffix of object files... " >&6; }
2837 if ${ac_cv_objext+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841 /* end confdefs.h. */
2844 main ()
2848 return 0;
2850 _ACEOF
2851 rm -f conftest.o conftest.obj
2852 if { { ac_try="$ac_compile"
2853 case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856 esac
2857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2858 $as_echo "$ac_try_echo"; } >&5
2859 (eval "$ac_compile") 2>&5
2860 ac_status=$?
2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2862 test $ac_status = 0; }; then :
2863 for ac_file in conftest.o conftest.obj conftest.*; do
2864 test -f "$ac_file" || continue;
2865 case $ac_file in
2866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2867 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2868 break;;
2869 esac
2870 done
2871 else
2872 $as_echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2877 as_fn_error $? "cannot compute suffix of object files: cannot compile
2878 See \`config.log' for more details" "$LINENO" 5; }
2880 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2883 $as_echo "$ac_cv_objext" >&6; }
2884 OBJEXT=$ac_cv_objext
2885 ac_objext=$OBJEXT
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2887 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2888 if ${ac_cv_c_compiler_gnu+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2895 main ()
2897 #ifndef __GNUC__
2898 choke me
2899 #endif
2902 return 0;
2904 _ACEOF
2905 if ac_fn_c_try_compile "$LINENO"; then :
2906 ac_compiler_gnu=yes
2907 else
2908 ac_compiler_gnu=no
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2915 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2916 if test $ac_compiler_gnu = yes; then
2917 GCC=yes
2918 else
2919 GCC=
2921 ac_test_CFLAGS=${CFLAGS+set}
2922 ac_save_CFLAGS=$CFLAGS
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2924 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2925 if ${ac_cv_prog_cc_g+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 ac_save_c_werror_flag=$ac_c_werror_flag
2929 ac_c_werror_flag=yes
2930 ac_cv_prog_cc_g=no
2931 CFLAGS="-g"
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h. */
2936 main ()
2940 return 0;
2942 _ACEOF
2943 if ac_fn_c_try_compile "$LINENO"; then :
2944 ac_cv_prog_cc_g=yes
2945 else
2946 CFLAGS=""
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2951 main ()
2955 return 0;
2957 _ACEOF
2958 if ac_fn_c_try_compile "$LINENO"; then :
2960 else
2961 ac_c_werror_flag=$ac_save_c_werror_flag
2962 CFLAGS="-g"
2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964 /* end confdefs.h. */
2967 main ()
2971 return 0;
2973 _ACEOF
2974 if ac_fn_c_try_compile "$LINENO"; then :
2975 ac_cv_prog_cc_g=yes
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982 ac_c_werror_flag=$ac_save_c_werror_flag
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2985 $as_echo "$ac_cv_prog_cc_g" >&6; }
2986 if test "$ac_test_CFLAGS" = set; then
2987 CFLAGS=$ac_save_CFLAGS
2988 elif test $ac_cv_prog_cc_g = yes; then
2989 if test "$GCC" = yes; then
2990 CFLAGS="-g -O2"
2991 else
2992 CFLAGS="-g"
2994 else
2995 if test "$GCC" = yes; then
2996 CFLAGS="-O2"
2997 else
2998 CFLAGS=
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3002 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3003 if ${ac_cv_prog_cc_c89+:} false; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 ac_cv_prog_cc_c89=no
3007 ac_save_CC=$CC
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h. */
3010 #include <stdarg.h>
3011 #include <stdio.h>
3012 struct stat;
3013 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3014 struct buf { int x; };
3015 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3016 static char *e (p, i)
3017 char **p;
3018 int i;
3020 return p[i];
3022 static char *f (char * (*g) (char **, int), char **p, ...)
3024 char *s;
3025 va_list v;
3026 va_start (v,p);
3027 s = g (p, va_arg (v,int));
3028 va_end (v);
3029 return s;
3032 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3033 function prototypes and stuff, but not '\xHH' hex character constants.
3034 These don't provoke an error unfortunately, instead are silently treated
3035 as 'x'. The following induces an error, until -std is added to get
3036 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3037 array size at least. It's necessary to write '\x00'==0 to get something
3038 that's true only with -std. */
3039 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3041 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3042 inside strings and character constants. */
3043 #define FOO(x) 'x'
3044 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3046 int test (int i, double x);
3047 struct s1 {int (*f) (int a);};
3048 struct s2 {int (*f) (double a);};
3049 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3050 int argc;
3051 char **argv;
3053 main ()
3055 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3057 return 0;
3059 _ACEOF
3060 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3061 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3063 CC="$ac_save_CC $ac_arg"
3064 if ac_fn_c_try_compile "$LINENO"; then :
3065 ac_cv_prog_cc_c89=$ac_arg
3067 rm -f core conftest.err conftest.$ac_objext
3068 test "x$ac_cv_prog_cc_c89" != "xno" && break
3069 done
3070 rm -f conftest.$ac_ext
3071 CC=$ac_save_CC
3074 # AC_CACHE_VAL
3075 case "x$ac_cv_prog_cc_c89" in
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3078 $as_echo "none needed" >&6; } ;;
3079 xno)
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3081 $as_echo "unsupported" >&6; } ;;
3083 CC="$CC $ac_cv_prog_cc_c89"
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3085 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3086 esac
3087 if test "x$ac_cv_prog_cc_c89" != xno; then :
3091 ac_ext=c
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 # Check whether --enable-shared was given.
3102 if test "${enable_shared+set}" = set; then :
3103 enableval=$enable_shared;
3104 case $enable_shared in
3105 yes | no) ;;
3107 enable_shared=no
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3109 for pkg in $enableval; do
3110 case $pkg in
3111 ada | libada)
3112 enable_shared=yes ;;
3113 esac
3114 done
3115 IFS="$ac_save_ifs"
3117 esac
3119 else
3120 enable_shared=yes
3129 case "${host}" in
3130 # PIC is the default on some targets or must not be used.
3131 *-*-darwin*)
3132 # For darwin, common symbols are not allowed in MH_DYLIB files
3133 case "${CFLAGS}" in
3134 # If we are using a compiler supporting mdynamic-no-pic
3135 # and the option has been tested as safe to add, then cancel
3136 # it here, since the code generated is incompatible with shared
3137 # libs.
3138 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
3139 *) PICFLAG=-fno-common ;;
3140 esac
3142 alpha*-dec-osf5*)
3143 # PIC is the default.
3145 hppa*64*-*-hpux*)
3146 # PIC is the default for 64-bit PA HP-UX.
3148 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
3150 i[34567]86-*-mingw* | x86_64-*-mingw*)
3152 i[34567]86-*-interix[3-9]*)
3153 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3154 # Instead, we relocate shared libraries at runtime.
3156 i[34567]86-*-nto-qnx*)
3157 # QNX uses GNU C++, but need to define -shared option too, otherwise
3158 # it will coredump.
3159 PICFLAG='-fPIC -shared'
3161 i[34567]86-pc-msdosdjgpp*)
3162 # DJGPP does not support shared libraries at all.
3164 ia64*-*-hpux*)
3165 # On IA64 HP-UX, PIC is the default but the pic flag
3166 # sets the default TLS model and affects inlining.
3167 PICFLAG=-fPIC
3169 mips-sgi-irix6*)
3170 # PIC is the default.
3172 rs6000-ibm-aix* | powerpc-ibm-aix*)
3173 # All AIX code is PIC.
3176 # Some targets support both -fPIC and -fpic, but prefer the latter.
3177 # FIXME: Why?
3178 i[34567]86-*-* | x86_64-*-*)
3179 PICFLAG=-fpic
3181 # FIXME: Override -fPIC default in libgcc only?
3182 sh-*-linux* | sh[2346lbe]*-*-linux*)
3183 PICFLAG=-fpic
3185 # FIXME: Simplify to sh*-*-netbsd*?
3186 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
3187 sh64-*-netbsd* | sh64l*-*-netbsd*)
3188 PICFLAG=-fpic
3190 # Default to -fPIC unless specified otherwise.
3192 PICFLAG=-fPIC
3194 esac
3196 # If the user explicitly uses -fpic/-fPIC, keep that.
3197 case "${CFLAGS}" in
3198 *-fpic*)
3199 PICFLAG=-fpic
3201 *-fPIC*)
3202 PICFLAG=-fPIC
3204 esac
3208 # These must be passed down, or are needed by gcc/libgcc.mvars
3209 for ac_prog in gawk mawk nawk awk
3211 # Extract the first word of "$ac_prog", so it can be a program name with args.
3212 set dummy $ac_prog; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if ${ac_cv_prog_AWK+:} false; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$AWK"; then
3219 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 ac_cv_prog_AWK="$ac_prog"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3232 done
3233 done
3234 IFS=$as_save_IFS
3238 AWK=$ac_cv_prog_AWK
3239 if test -n "$AWK"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3241 $as_echo "$AWK" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3248 test -n "$AWK" && break
3249 done
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3252 $as_echo_n "checking whether ln -s works... " >&6; }
3253 LN_S=$as_ln_s
3254 if test "$LN_S" = "ln -s"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256 $as_echo "yes" >&6; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3259 $as_echo "no, using $LN_S" >&6; }
3263 # Determine what to build for 'gnatlib'
3264 if test ${enable_shared} = yes; then
3265 default_gnatlib_target="gnatlib-shared"
3266 else
3267 default_gnatlib_target="gnatlib-plain"
3271 # Check for _Unwind_GetIPInfo
3274 # Check whether --with-system-libunwind was given.
3275 if test "${with_system_libunwind+set}" = set; then :
3276 withval=$with_system_libunwind;
3279 # If system-libunwind was not specifically set, pick a default setting.
3280 if test x$with_system_libunwind = x; then
3281 case ${target} in
3282 ia64-*-hpux*) with_system_libunwind=yes ;;
3283 *) with_system_libunwind=no ;;
3284 esac
3286 # Based on system-libunwind and target, do we have ipinfo?
3287 if test x$with_system_libunwind = xyes; then
3288 case ${target} in
3289 ia64-*-*) have_unwind_getipinfo=no ;;
3290 *) have_unwind_getipinfo=yes ;;
3291 esac
3292 else
3293 # Darwin before version 9 does not have _Unwind_GetIPInfo.
3295 case ${target} in
3296 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
3297 *) have_unwind_getipinfo=yes ;;
3298 esac
3302 if test x$have_unwind_getipinfo = xyes; then
3304 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
3308 if test x$have_unwind_getipinfo = xyes; then
3309 have_getipinfo=-DHAVE_GETIPINFO
3310 else
3311 have_getipinfo=
3315 # Check for <sys/capability.h>
3317 ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3323 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3324 # On Suns, sometimes $CPP names a directory.
3325 if test -n "$CPP" && test -d "$CPP"; then
3326 CPP=
3328 if test -z "$CPP"; then
3329 if ${ac_cv_prog_CPP+:} false; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 # Double quotes because CPP needs to be expanded
3333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3335 ac_preproc_ok=false
3336 for ac_c_preproc_warn_flag in '' yes
3338 # Use a header file that comes with gcc, so configuring glibc
3339 # with a fresh cross-compiler works.
3340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341 # <limits.h> exists even on freestanding compilers.
3342 # On the NeXT, cc -E runs the code through the compiler's parser,
3343 # not just through cpp. "Syntax error" is here to catch this case.
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3346 #ifdef __STDC__
3347 # include <limits.h>
3348 #else
3349 # include <assert.h>
3350 #endif
3351 Syntax error
3352 _ACEOF
3353 if ac_fn_c_try_cpp "$LINENO"; then :
3355 else
3356 # Broken: fails on valid input.
3357 continue
3359 rm -f conftest.err conftest.i conftest.$ac_ext
3361 # OK, works on sane cases. Now check whether nonexistent headers
3362 # can be detected and how.
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3365 #include <ac_nonexistent.h>
3366 _ACEOF
3367 if ac_fn_c_try_cpp "$LINENO"; then :
3368 # Broken: success on invalid input.
3369 continue
3370 else
3371 # Passes both tests.
3372 ac_preproc_ok=:
3373 break
3375 rm -f conftest.err conftest.i conftest.$ac_ext
3377 done
3378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3379 rm -f conftest.i conftest.err conftest.$ac_ext
3380 if $ac_preproc_ok; then :
3381 break
3384 done
3385 ac_cv_prog_CPP=$CPP
3388 CPP=$ac_cv_prog_CPP
3389 else
3390 ac_cv_prog_CPP=$CPP
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3393 $as_echo "$CPP" >&6; }
3394 ac_preproc_ok=false
3395 for ac_c_preproc_warn_flag in '' yes
3397 # Use a header file that comes with gcc, so configuring glibc
3398 # with a fresh cross-compiler works.
3399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3400 # <limits.h> exists even on freestanding compilers.
3401 # On the NeXT, cc -E runs the code through the compiler's parser,
3402 # not just through cpp. "Syntax error" is here to catch this case.
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405 #ifdef __STDC__
3406 # include <limits.h>
3407 #else
3408 # include <assert.h>
3409 #endif
3410 Syntax error
3411 _ACEOF
3412 if ac_fn_c_try_cpp "$LINENO"; then :
3414 else
3415 # Broken: fails on valid input.
3416 continue
3418 rm -f conftest.err conftest.i conftest.$ac_ext
3420 # OK, works on sane cases. Now check whether nonexistent headers
3421 # can be detected and how.
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424 #include <ac_nonexistent.h>
3425 _ACEOF
3426 if ac_fn_c_try_cpp "$LINENO"; then :
3427 # Broken: success on invalid input.
3428 continue
3429 else
3430 # Passes both tests.
3431 ac_preproc_ok=:
3432 break
3434 rm -f conftest.err conftest.i conftest.$ac_ext
3436 done
3437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3438 rm -f conftest.i conftest.err conftest.$ac_ext
3439 if $ac_preproc_ok; then :
3441 else
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details" "$LINENO" 5; }
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3456 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3457 if ${ac_cv_path_GREP+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -z "$GREP"; then
3461 ac_path_GREP_found=false
3462 # Loop through the user's path and test for each of PROGNAME-LIST
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_prog in grep ggrep; do
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3471 as_fn_executable_p "$ac_path_GREP" || continue
3472 # Check for GNU ac_path_GREP and select it if it is found.
3473 # Check for GNU $ac_path_GREP
3474 case `"$ac_path_GREP" --version 2>&1` in
3475 *GNU*)
3476 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3478 ac_count=0
3479 $as_echo_n 0123456789 >"conftest.in"
3480 while :
3482 cat "conftest.in" "conftest.in" >"conftest.tmp"
3483 mv "conftest.tmp" "conftest.in"
3484 cp "conftest.in" "conftest.nl"
3485 $as_echo 'GREP' >> "conftest.nl"
3486 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3488 as_fn_arith $ac_count + 1 && ac_count=$as_val
3489 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3490 # Best one so far, save it but keep looking for a better one
3491 ac_cv_path_GREP="$ac_path_GREP"
3492 ac_path_GREP_max=$ac_count
3494 # 10*(2^10) chars as input seems more than enough
3495 test $ac_count -gt 10 && break
3496 done
3497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3498 esac
3500 $ac_path_GREP_found && break 3
3501 done
3502 done
3503 done
3504 IFS=$as_save_IFS
3505 if test -z "$ac_cv_path_GREP"; then
3506 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3508 else
3509 ac_cv_path_GREP=$GREP
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3514 $as_echo "$ac_cv_path_GREP" >&6; }
3515 GREP="$ac_cv_path_GREP"
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3519 $as_echo_n "checking for egrep... " >&6; }
3520 if ${ac_cv_path_EGREP+:} false; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3524 then ac_cv_path_EGREP="$GREP -E"
3525 else
3526 if test -z "$EGREP"; then
3527 ac_path_EGREP_found=false
3528 # Loop through the user's path and test for each of PROGNAME-LIST
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_prog in egrep; do
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3537 as_fn_executable_p "$ac_path_EGREP" || continue
3538 # Check for GNU ac_path_EGREP and select it if it is found.
3539 # Check for GNU $ac_path_EGREP
3540 case `"$ac_path_EGREP" --version 2>&1` in
3541 *GNU*)
3542 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3544 ac_count=0
3545 $as_echo_n 0123456789 >"conftest.in"
3546 while :
3548 cat "conftest.in" "conftest.in" >"conftest.tmp"
3549 mv "conftest.tmp" "conftest.in"
3550 cp "conftest.in" "conftest.nl"
3551 $as_echo 'EGREP' >> "conftest.nl"
3552 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3554 as_fn_arith $ac_count + 1 && ac_count=$as_val
3555 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3556 # Best one so far, save it but keep looking for a better one
3557 ac_cv_path_EGREP="$ac_path_EGREP"
3558 ac_path_EGREP_max=$ac_count
3560 # 10*(2^10) chars as input seems more than enough
3561 test $ac_count -gt 10 && break
3562 done
3563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3564 esac
3566 $ac_path_EGREP_found && break 3
3567 done
3568 done
3569 done
3570 IFS=$as_save_IFS
3571 if test -z "$ac_cv_path_EGREP"; then
3572 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3574 else
3575 ac_cv_path_EGREP=$EGREP
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3581 $as_echo "$ac_cv_path_EGREP" >&6; }
3582 EGREP="$ac_cv_path_EGREP"
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3586 $as_echo_n "checking for ANSI C header files... " >&6; }
3587 if ${ac_cv_header_stdc+:} false; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 #include <stdlib.h>
3593 #include <stdarg.h>
3594 #include <string.h>
3595 #include <float.h>
3598 main ()
3602 return 0;
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_header_stdc=yes
3607 else
3608 ac_cv_header_stdc=no
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 if test $ac_cv_header_stdc = yes; then
3613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3616 #include <string.h>
3618 _ACEOF
3619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3620 $EGREP "memchr" >/dev/null 2>&1; then :
3622 else
3623 ac_cv_header_stdc=no
3625 rm -f conftest*
3629 if test $ac_cv_header_stdc = yes; then
3630 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <stdlib.h>
3635 _ACEOF
3636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3637 $EGREP "free" >/dev/null 2>&1; then :
3639 else
3640 ac_cv_header_stdc=no
3642 rm -f conftest*
3646 if test $ac_cv_header_stdc = yes; then
3647 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3648 if test "$cross_compiling" = yes; then :
3650 else
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3653 #include <ctype.h>
3654 #include <stdlib.h>
3655 #if ((' ' & 0x0FF) == 0x020)
3656 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3657 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3658 #else
3659 # define ISLOWER(c) \
3660 (('a' <= (c) && (c) <= 'i') \
3661 || ('j' <= (c) && (c) <= 'r') \
3662 || ('s' <= (c) && (c) <= 'z'))
3663 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3664 #endif
3666 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3668 main ()
3670 int i;
3671 for (i = 0; i < 256; i++)
3672 if (XOR (islower (i), ISLOWER (i))
3673 || toupper (i) != TOUPPER (i))
3674 return 2;
3675 return 0;
3677 _ACEOF
3678 if ac_fn_c_try_run "$LINENO"; then :
3680 else
3681 ac_cv_header_stdc=no
3683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3684 conftest.$ac_objext conftest.beam conftest.$ac_ext
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3690 $as_echo "$ac_cv_header_stdc" >&6; }
3691 if test $ac_cv_header_stdc = yes; then
3693 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3697 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3698 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3699 inttypes.h stdint.h unistd.h
3700 do :
3701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3702 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3704 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3705 cat >>confdefs.h <<_ACEOF
3706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3707 _ACEOF
3711 done
3714 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
3715 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
3716 have_capability=-DHAVE_CAPABILITY
3717 else
3718 have_capability=
3724 # Determine what GCC version number to use in filesystem paths.
3726 get_gcc_base_ver="cat"
3728 # Check whether --with-gcc-major-version-only was given.
3729 if test "${with_gcc_major_version_only+set}" = set; then :
3730 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
3731 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3739 # Output: create a Makefile.
3740 ac_config_files="$ac_config_files Makefile"
3743 cat >confcache <<\_ACEOF
3744 # This file is a shell script that caches the results of configure
3745 # tests run on this system so they can be shared between configure
3746 # scripts and configure runs, see configure's option --config-cache.
3747 # It is not useful on other systems. If it contains results you don't
3748 # want to keep, you may remove or edit it.
3750 # config.status only pays attention to the cache file if you give it
3751 # the --recheck option to rerun configure.
3753 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3754 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3755 # following values.
3757 _ACEOF
3759 # The following way of writing the cache mishandles newlines in values,
3760 # but we know of no workaround that is simple, portable, and efficient.
3761 # So, we kill variables containing newlines.
3762 # Ultrix sh set writes to stderr and can't be redirected directly,
3763 # and sets the high bit in the cache file unless we assign to the vars.
3765 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3766 eval ac_val=\$$ac_var
3767 case $ac_val in #(
3768 *${as_nl}*)
3769 case $ac_var in #(
3770 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3772 esac
3773 case $ac_var in #(
3774 _ | IFS | as_nl) ;; #(
3775 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3776 *) { eval $ac_var=; unset $ac_var;} ;;
3777 esac ;;
3778 esac
3779 done
3781 (set) 2>&1 |
3782 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3783 *${as_nl}ac_space=\ *)
3784 # `set' does not quote correctly, so add quotes: double-quote
3785 # substitution turns \\\\ into \\, and sed turns \\ into \.
3786 sed -n \
3787 "s/'/'\\\\''/g;
3788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3789 ;; #(
3791 # `set' quotes correctly as required by POSIX, so do not add quotes.
3792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3794 esac |
3795 sort
3797 sed '
3798 /^ac_cv_env_/b end
3799 t clear
3800 :clear
3801 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3802 t end
3803 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3804 :end' >>confcache
3805 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3806 if test -w "$cache_file"; then
3807 if test "x$cache_file" != "x/dev/null"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3809 $as_echo "$as_me: updating cache $cache_file" >&6;}
3810 if test ! -f "$cache_file" || test -h "$cache_file"; then
3811 cat confcache >"$cache_file"
3812 else
3813 case $cache_file in #(
3814 */* | ?:*)
3815 mv -f confcache "$cache_file"$$ &&
3816 mv -f "$cache_file"$$ "$cache_file" ;; #(
3818 mv -f confcache "$cache_file" ;;
3819 esac
3822 else
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3824 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3827 rm -f confcache
3829 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3830 # Let make expand exec_prefix.
3831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3833 # Transform confdefs.h into DEFS.
3834 # Protect against shell expansion while executing Makefile rules.
3835 # Protect against Makefile macro expansion.
3837 # If the first sed substitution is executed (which looks for macros that
3838 # take arguments), then branch to the quote section. Otherwise,
3839 # look for a macro that doesn't take arguments.
3840 ac_script='
3841 :mline
3842 /\\$/{
3844 s,\\\n,,
3845 b mline
3847 t clear
3848 :clear
3849 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3850 t quote
3851 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3852 t quote
3853 b any
3854 :quote
3855 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3856 s/\[/\\&/g
3857 s/\]/\\&/g
3858 s/\$/$$/g
3860 :any
3863 s/^\n//
3864 s/\n/ /g
3868 DEFS=`sed -n "$ac_script" confdefs.h`
3871 ac_libobjs=
3872 ac_ltlibobjs=
3874 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3875 # 1. Remove the extension, and $U if already installed.
3876 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3877 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3878 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3879 # will be set to the directory where LIBOBJS objects are built.
3880 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3881 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3882 done
3883 LIBOBJS=$ac_libobjs
3885 LTLIBOBJS=$ac_ltlibobjs
3889 : "${CONFIG_STATUS=./config.status}"
3890 ac_write_fail=0
3891 ac_clean_files_save=$ac_clean_files
3892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3894 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3895 as_write_fail=0
3896 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3897 #! $SHELL
3898 # Generated by $as_me.
3899 # Run this file to recreate the current configuration.
3900 # Compiler output produced by configure, useful for debugging
3901 # configure, is in config.log if it exists.
3903 debug=false
3904 ac_cs_recheck=false
3905 ac_cs_silent=false
3907 SHELL=\${CONFIG_SHELL-$SHELL}
3908 export SHELL
3909 _ASEOF
3910 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3911 ## -------------------- ##
3912 ## M4sh Initialization. ##
3913 ## -------------------- ##
3915 # Be more Bourne compatible
3916 DUALCASE=1; export DUALCASE # for MKS sh
3917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3918 emulate sh
3919 NULLCMD=:
3920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3921 # is contrary to our usage. Disable this feature.
3922 alias -g '${1+"$@"}'='"$@"'
3923 setopt NO_GLOB_SUBST
3924 else
3925 case `(set -o) 2>/dev/null` in #(
3926 *posix*) :
3927 set -o posix ;; #(
3928 *) :
3930 esac
3934 as_nl='
3936 export as_nl
3937 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3938 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3941 # Prefer a ksh shell builtin over an external printf program on Solaris,
3942 # but without wasting forks for bash or zsh.
3943 if test -z "$BASH_VERSION$ZSH_VERSION" \
3944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3945 as_echo='print -r --'
3946 as_echo_n='print -rn --'
3947 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3948 as_echo='printf %s\n'
3949 as_echo_n='printf %s'
3950 else
3951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3952 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3953 as_echo_n='/usr/ucb/echo -n'
3954 else
3955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3956 as_echo_n_body='eval
3957 arg=$1;
3958 case $arg in #(
3959 *"$as_nl"*)
3960 expr "X$arg" : "X\\(.*\\)$as_nl";
3961 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3962 esac;
3963 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3965 export as_echo_n_body
3966 as_echo_n='sh -c $as_echo_n_body as_echo'
3968 export as_echo_body
3969 as_echo='sh -c $as_echo_body as_echo'
3972 # The user is always right.
3973 if test "${PATH_SEPARATOR+set}" != set; then
3974 PATH_SEPARATOR=:
3975 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3976 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3977 PATH_SEPARATOR=';'
3982 # IFS
3983 # We need space, tab and new line, in precisely that order. Quoting is
3984 # there to prevent editors from complaining about space-tab.
3985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3986 # splitting by setting IFS to empty value.)
3987 IFS=" "" $as_nl"
3989 # Find who we are. Look in the path if we contain no directory separator.
3990 as_myself=
3991 case $0 in #((
3992 *[\\/]* ) as_myself=$0 ;;
3993 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3999 done
4000 IFS=$as_save_IFS
4003 esac
4004 # We did not find ourselves, most probably we were run as `sh COMMAND'
4005 # in which case we are not to be found in the path.
4006 if test "x$as_myself" = x; then
4007 as_myself=$0
4009 if test ! -f "$as_myself"; then
4010 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4011 exit 1
4014 # Unset variables that we do not need and which cause bugs (e.g. in
4015 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4016 # suppresses any "Segmentation fault" message there. '((' could
4017 # trigger a bug in pdksh 5.2.14.
4018 for as_var in BASH_ENV ENV MAIL MAILPATH
4019 do eval test x\${$as_var+set} = xset \
4020 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4021 done
4022 PS1='$ '
4023 PS2='> '
4024 PS4='+ '
4026 # NLS nuisances.
4027 LC_ALL=C
4028 export LC_ALL
4029 LANGUAGE=C
4030 export LANGUAGE
4032 # CDPATH.
4033 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4036 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4037 # ----------------------------------------
4038 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4039 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4040 # script with STATUS, using 1 if that was 0.
4041 as_fn_error ()
4043 as_status=$1; test $as_status -eq 0 && as_status=1
4044 if test "$4"; then
4045 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4046 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4048 $as_echo "$as_me: error: $2" >&2
4049 as_fn_exit $as_status
4050 } # as_fn_error
4053 # as_fn_set_status STATUS
4054 # -----------------------
4055 # Set $? to STATUS, without forking.
4056 as_fn_set_status ()
4058 return $1
4059 } # as_fn_set_status
4061 # as_fn_exit STATUS
4062 # -----------------
4063 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4064 as_fn_exit ()
4066 set +e
4067 as_fn_set_status $1
4068 exit $1
4069 } # as_fn_exit
4071 # as_fn_unset VAR
4072 # ---------------
4073 # Portably unset VAR.
4074 as_fn_unset ()
4076 { eval $1=; unset $1;}
4078 as_unset=as_fn_unset
4079 # as_fn_append VAR VALUE
4080 # ----------------------
4081 # Append the text in VALUE to the end of the definition contained in VAR. Take
4082 # advantage of any shell optimizations that allow amortized linear growth over
4083 # repeated appends, instead of the typical quadratic growth present in naive
4084 # implementations.
4085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4086 eval 'as_fn_append ()
4088 eval $1+=\$2
4090 else
4091 as_fn_append ()
4093 eval $1=\$$1\$2
4095 fi # as_fn_append
4097 # as_fn_arith ARG...
4098 # ------------------
4099 # Perform arithmetic evaluation on the ARGs, and store the result in the
4100 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4101 # must be portable across $(()) and expr.
4102 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4103 eval 'as_fn_arith ()
4105 as_val=$(( $* ))
4107 else
4108 as_fn_arith ()
4110 as_val=`expr "$@" || test $? -eq 1`
4112 fi # as_fn_arith
4115 if expr a : '\(a\)' >/dev/null 2>&1 &&
4116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4117 as_expr=expr
4118 else
4119 as_expr=false
4122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4123 as_basename=basename
4124 else
4125 as_basename=false
4128 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4129 as_dirname=dirname
4130 else
4131 as_dirname=false
4134 as_me=`$as_basename -- "$0" ||
4135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4136 X"$0" : 'X\(//\)$' \| \
4137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4138 $as_echo X/"$0" |
4139 sed '/^.*\/\([^/][^/]*\)\/*$/{
4140 s//\1/
4143 /^X\/\(\/\/\)$/{
4144 s//\1/
4147 /^X\/\(\/\).*/{
4148 s//\1/
4151 s/.*/./; q'`
4153 # Avoid depending upon Character Ranges.
4154 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4155 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4156 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4157 as_cr_digits='0123456789'
4158 as_cr_alnum=$as_cr_Letters$as_cr_digits
4160 ECHO_C= ECHO_N= ECHO_T=
4161 case `echo -n x` in #(((((
4162 -n*)
4163 case `echo 'xy\c'` in
4164 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4165 xy) ECHO_C='\c';;
4166 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4167 ECHO_T=' ';;
4168 esac;;
4170 ECHO_N='-n';;
4171 esac
4173 rm -f conf$$ conf$$.exe conf$$.file
4174 if test -d conf$$.dir; then
4175 rm -f conf$$.dir/conf$$.file
4176 else
4177 rm -f conf$$.dir
4178 mkdir conf$$.dir 2>/dev/null
4180 if (echo >conf$$.file) 2>/dev/null; then
4181 if ln -s conf$$.file conf$$ 2>/dev/null; then
4182 as_ln_s='ln -s'
4183 # ... but there are two gotchas:
4184 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4185 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4186 # In both cases, we have to default to `cp -pR'.
4187 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4188 as_ln_s='cp -pR'
4189 elif ln conf$$.file conf$$ 2>/dev/null; then
4190 as_ln_s=ln
4191 else
4192 as_ln_s='cp -pR'
4194 else
4195 as_ln_s='cp -pR'
4197 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4198 rmdir conf$$.dir 2>/dev/null
4201 # as_fn_mkdir_p
4202 # -------------
4203 # Create "$as_dir" as a directory, including parents if necessary.
4204 as_fn_mkdir_p ()
4207 case $as_dir in #(
4208 -*) as_dir=./$as_dir;;
4209 esac
4210 test -d "$as_dir" || eval $as_mkdir_p || {
4211 as_dirs=
4212 while :; do
4213 case $as_dir in #(
4214 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4215 *) as_qdir=$as_dir;;
4216 esac
4217 as_dirs="'$as_qdir' $as_dirs"
4218 as_dir=`$as_dirname -- "$as_dir" ||
4219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4220 X"$as_dir" : 'X\(//\)[^/]' \| \
4221 X"$as_dir" : 'X\(//\)$' \| \
4222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4223 $as_echo X"$as_dir" |
4224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4225 s//\1/
4228 /^X\(\/\/\)[^/].*/{
4229 s//\1/
4232 /^X\(\/\/\)$/{
4233 s//\1/
4236 /^X\(\/\).*/{
4237 s//\1/
4240 s/.*/./; q'`
4241 test -d "$as_dir" && break
4242 done
4243 test -z "$as_dirs" || eval "mkdir $as_dirs"
4244 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4247 } # as_fn_mkdir_p
4248 if mkdir -p . 2>/dev/null; then
4249 as_mkdir_p='mkdir -p "$as_dir"'
4250 else
4251 test -d ./-p && rmdir ./-p
4252 as_mkdir_p=false
4256 # as_fn_executable_p FILE
4257 # -----------------------
4258 # Test if FILE is an executable regular file.
4259 as_fn_executable_p ()
4261 test -f "$1" && test -x "$1"
4262 } # as_fn_executable_p
4263 as_test_x='test -x'
4264 as_executable_p=as_fn_executable_p
4266 # Sed expression to map a string onto a valid CPP name.
4267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4269 # Sed expression to map a string onto a valid variable name.
4270 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4273 exec 6>&1
4274 ## ----------------------------------- ##
4275 ## Main body of $CONFIG_STATUS script. ##
4276 ## ----------------------------------- ##
4277 _ASEOF
4278 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4281 # Save the log message, to keep $0 and so on meaningful, and to
4282 # report actual input values of CONFIG_FILES etc. instead of their
4283 # values after options handling.
4284 ac_log="
4285 This file was extended by $as_me, which was
4286 generated by GNU Autoconf 2.69. Invocation command line was
4288 CONFIG_FILES = $CONFIG_FILES
4289 CONFIG_HEADERS = $CONFIG_HEADERS
4290 CONFIG_LINKS = $CONFIG_LINKS
4291 CONFIG_COMMANDS = $CONFIG_COMMANDS
4292 $ $0 $@
4294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4297 _ACEOF
4299 case $ac_config_files in *"
4300 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4301 esac
4305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4306 # Files that config.status was made for.
4307 config_files="$ac_config_files"
4308 config_commands="$ac_config_commands"
4310 _ACEOF
4312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4313 ac_cs_usage="\
4314 \`$as_me' instantiates files and other configuration actions
4315 from templates according to the current configuration. Unless the files
4316 and actions are specified as TAGs, all are instantiated by default.
4318 Usage: $0 [OPTION]... [TAG]...
4320 -h, --help print this help, then exit
4321 -V, --version print version number and configuration settings, then exit
4322 --config print configuration, then exit
4323 -q, --quiet, --silent
4324 do not print progress messages
4325 -d, --debug don't remove temporary files
4326 --recheck update $as_me by reconfiguring in the same conditions
4327 --file=FILE[:TEMPLATE]
4328 instantiate the configuration file FILE
4330 Configuration files:
4331 $config_files
4333 Configuration commands:
4334 $config_commands
4336 Report bugs to the package provider."
4338 _ACEOF
4339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4340 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4341 ac_cs_version="\\
4342 config.status
4343 configured by $0, generated by GNU Autoconf 2.69,
4344 with options \\"\$ac_cs_config\\"
4346 Copyright (C) 2012 Free Software Foundation, Inc.
4347 This config.status script is free software; the Free Software Foundation
4348 gives unlimited permission to copy, distribute and modify it."
4350 ac_pwd='$ac_pwd'
4351 srcdir='$srcdir'
4352 AWK='$AWK'
4353 test -n "\$AWK" || AWK=awk
4354 _ACEOF
4356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4357 # The default lists apply if the user does not specify any file.
4358 ac_need_defaults=:
4359 while test $# != 0
4361 case $1 in
4362 --*=?*)
4363 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4364 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4365 ac_shift=:
4367 --*=)
4368 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4369 ac_optarg=
4370 ac_shift=:
4373 ac_option=$1
4374 ac_optarg=$2
4375 ac_shift=shift
4377 esac
4379 case $ac_option in
4380 # Handling of the options.
4381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4382 ac_cs_recheck=: ;;
4383 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4384 $as_echo "$ac_cs_version"; exit ;;
4385 --config | --confi | --conf | --con | --co | --c )
4386 $as_echo "$ac_cs_config"; exit ;;
4387 --debug | --debu | --deb | --de | --d | -d )
4388 debug=: ;;
4389 --file | --fil | --fi | --f )
4390 $ac_shift
4391 case $ac_optarg in
4392 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4393 '') as_fn_error $? "missing file argument" ;;
4394 esac
4395 as_fn_append CONFIG_FILES " '$ac_optarg'"
4396 ac_need_defaults=false;;
4397 --he | --h | --help | --hel | -h )
4398 $as_echo "$ac_cs_usage"; exit ;;
4399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4400 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4401 ac_cs_silent=: ;;
4403 # This is an error.
4404 -*) as_fn_error $? "unrecognized option: \`$1'
4405 Try \`$0 --help' for more information." ;;
4407 *) as_fn_append ac_config_targets " $1"
4408 ac_need_defaults=false ;;
4410 esac
4411 shift
4412 done
4414 ac_configure_extra_args=
4416 if $ac_cs_silent; then
4417 exec 6>/dev/null
4418 ac_configure_extra_args="$ac_configure_extra_args --silent"
4421 _ACEOF
4422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4423 if \$ac_cs_recheck; then
4424 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4425 shift
4426 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4427 CONFIG_SHELL='$SHELL'
4428 export CONFIG_SHELL
4429 exec "\$@"
4432 _ACEOF
4433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4434 exec 5>>config.log
4436 echo
4437 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4438 ## Running $as_me. ##
4439 _ASBOX
4440 $as_echo "$ac_log"
4441 } >&5
4443 _ACEOF
4444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4446 # INIT-COMMANDS
4449 srcdir="$srcdir"
4450 host="$host"
4451 target="$target"
4452 with_multisubdir="$with_multisubdir"
4453 with_multisrctop="$with_multisrctop"
4454 with_target_subdir="$with_target_subdir"
4455 ac_configure_args="${multilib_arg} ${ac_configure_args}"
4456 multi_basedir="$multi_basedir"
4457 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4458 CC="$CC"
4459 CXX="$CXX"
4460 GFORTRAN="$GFORTRAN"
4461 GDC="$GDC"
4463 _ACEOF
4465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4467 # Handling of arguments.
4468 for ac_config_target in $ac_config_targets
4470 case $ac_config_target in
4471 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4472 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4474 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4475 esac
4476 done
4479 # If the user did not use the arguments to specify the items to instantiate,
4480 # then the envvar interface is used. Set only those that are not.
4481 # We use the long form for the default assignment because of an extremely
4482 # bizarre bug on SunOS 4.1.3.
4483 if $ac_need_defaults; then
4484 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4488 # Have a temporary directory for convenience. Make it in the build tree
4489 # simply because there is no reason against having it here, and in addition,
4490 # creating and moving files from /tmp can sometimes cause problems.
4491 # Hook for its removal unless debugging.
4492 # Note that there is a small window in which the directory will not be cleaned:
4493 # after its creation but before its name has been assigned to `$tmp'.
4494 $debug ||
4496 tmp= ac_tmp=
4497 trap 'exit_status=$?
4498 : "${ac_tmp:=$tmp}"
4499 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4501 trap 'as_fn_exit 1' 1 2 13 15
4503 # Create a (secure) tmp directory for tmp files.
4506 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4507 test -d "$tmp"
4508 } ||
4510 tmp=./conf$$-$RANDOM
4511 (umask 077 && mkdir "$tmp")
4512 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4513 ac_tmp=$tmp
4515 # Set up the scripts for CONFIG_FILES section.
4516 # No need to generate them if there are no CONFIG_FILES.
4517 # This happens for instance with `./config.status config.h'.
4518 if test -n "$CONFIG_FILES"; then
4521 ac_cr=`echo X | tr X '\015'`
4522 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4523 # But we know of no other shell where ac_cr would be empty at this
4524 # point, so we can use a bashism as a fallback.
4525 if test "x$ac_cr" = x; then
4526 eval ac_cr=\$\'\\r\'
4528 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4529 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4530 ac_cs_awk_cr='\\r'
4531 else
4532 ac_cs_awk_cr=$ac_cr
4535 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4536 _ACEOF
4540 echo "cat >conf$$subs.awk <<_ACEOF" &&
4541 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4542 echo "_ACEOF"
4543 } >conf$$subs.sh ||
4544 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4545 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4546 ac_delim='%!_!# '
4547 for ac_last_try in false false false false false :; do
4548 . ./conf$$subs.sh ||
4549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4551 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4552 if test $ac_delim_n = $ac_delim_num; then
4553 break
4554 elif $ac_last_try; then
4555 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4556 else
4557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4559 done
4560 rm -f conf$$subs.sh
4562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4563 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4564 _ACEOF
4565 sed -n '
4567 s/^/S["/; s/!.*/"]=/
4570 s/^[^!]*!//
4571 :repl
4572 t repl
4573 s/'"$ac_delim"'$//
4574 t delim
4577 s/\(.\{148\}\)..*/\1/
4578 t more1
4579 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4582 b repl
4583 :more1
4584 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4587 s/.\{148\}//
4588 t nl
4589 :delim
4591 s/\(.\{148\}\)..*/\1/
4592 t more2
4593 s/["\\]/\\&/g; s/^/"/; s/$/"/
4596 :more2
4597 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4600 s/.\{148\}//
4601 t delim
4602 ' <conf$$subs.awk | sed '
4603 /^[^""]/{
4605 s/\n//
4607 ' >>$CONFIG_STATUS || ac_write_fail=1
4608 rm -f conf$$subs.awk
4609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4610 _ACAWK
4611 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4612 for (key in S) S_is_set[key] = 1
4613 FS = "\a"
4617 line = $ 0
4618 nfields = split(line, field, "@")
4619 substed = 0
4620 len = length(field[1])
4621 for (i = 2; i < nfields; i++) {
4622 key = field[i]
4623 keylen = length(key)
4624 if (S_is_set[key]) {
4625 value = S[key]
4626 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4627 len += length(value) + length(field[++i])
4628 substed = 1
4629 } else
4630 len += 1 + keylen
4633 print line
4636 _ACAWK
4637 _ACEOF
4638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4639 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4640 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4641 else
4643 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4644 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4645 _ACEOF
4647 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4648 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4649 # trailing colons and then remove the whole line if VPATH becomes empty
4650 # (actually we leave an empty line to preserve line numbers).
4651 if test "x$srcdir" = x.; then
4652 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4654 s///
4655 s/^/:/
4656 s/[ ]*$/:/
4657 s/:\$(srcdir):/:/g
4658 s/:\${srcdir}:/:/g
4659 s/:@srcdir@:/:/g
4660 s/^:*//
4661 s/:*$//
4663 s/\(=[ ]*\).*/\1/
4665 s/\n//
4666 s/^[^=]*=[ ]*$//
4670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4671 fi # test -n "$CONFIG_FILES"
4674 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
4675 shift
4676 for ac_tag
4678 case $ac_tag in
4679 :[FHLC]) ac_mode=$ac_tag; continue;;
4680 esac
4681 case $ac_mode$ac_tag in
4682 :[FHL]*:*);;
4683 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4684 :[FH]-) ac_tag=-:-;;
4685 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4686 esac
4687 ac_save_IFS=$IFS
4688 IFS=:
4689 set x $ac_tag
4690 IFS=$ac_save_IFS
4691 shift
4692 ac_file=$1
4693 shift
4695 case $ac_mode in
4696 :L) ac_source=$1;;
4697 :[FH])
4698 ac_file_inputs=
4699 for ac_f
4701 case $ac_f in
4702 -) ac_f="$ac_tmp/stdin";;
4703 *) # Look for the file first in the build tree, then in the source tree
4704 # (if the path is not absolute). The absolute path cannot be DOS-style,
4705 # because $ac_f cannot contain `:'.
4706 test -f "$ac_f" ||
4707 case $ac_f in
4708 [\\/$]*) false;;
4709 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4710 esac ||
4711 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4712 esac
4713 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4714 as_fn_append ac_file_inputs " '$ac_f'"
4715 done
4717 # Let's still pretend it is `configure' which instantiates (i.e., don't
4718 # use $as_me), people would be surprised to read:
4719 # /* config.h. Generated by config.status. */
4720 configure_input='Generated from '`
4721 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4722 `' by configure.'
4723 if test x"$ac_file" != x-; then
4724 configure_input="$ac_file. $configure_input"
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4726 $as_echo "$as_me: creating $ac_file" >&6;}
4728 # Neutralize special characters interpreted by sed in replacement strings.
4729 case $configure_input in #(
4730 *\&* | *\|* | *\\* )
4731 ac_sed_conf_input=`$as_echo "$configure_input" |
4732 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4733 *) ac_sed_conf_input=$configure_input;;
4734 esac
4736 case $ac_tag in
4737 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4738 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4739 esac
4741 esac
4743 ac_dir=`$as_dirname -- "$ac_file" ||
4744 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4745 X"$ac_file" : 'X\(//\)[^/]' \| \
4746 X"$ac_file" : 'X\(//\)$' \| \
4747 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4748 $as_echo X"$ac_file" |
4749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4750 s//\1/
4753 /^X\(\/\/\)[^/].*/{
4754 s//\1/
4757 /^X\(\/\/\)$/{
4758 s//\1/
4761 /^X\(\/\).*/{
4762 s//\1/
4765 s/.*/./; q'`
4766 as_dir="$ac_dir"; as_fn_mkdir_p
4767 ac_builddir=.
4769 case "$ac_dir" in
4770 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4772 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4773 # A ".." for each directory in $ac_dir_suffix.
4774 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4775 case $ac_top_builddir_sub in
4776 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4777 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4778 esac ;;
4779 esac
4780 ac_abs_top_builddir=$ac_pwd
4781 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4782 # for backward compatibility:
4783 ac_top_builddir=$ac_top_build_prefix
4785 case $srcdir in
4786 .) # We are building in place.
4787 ac_srcdir=.
4788 ac_top_srcdir=$ac_top_builddir_sub
4789 ac_abs_top_srcdir=$ac_pwd ;;
4790 [\\/]* | ?:[\\/]* ) # Absolute name.
4791 ac_srcdir=$srcdir$ac_dir_suffix;
4792 ac_top_srcdir=$srcdir
4793 ac_abs_top_srcdir=$srcdir ;;
4794 *) # Relative name.
4795 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4796 ac_top_srcdir=$ac_top_build_prefix$srcdir
4797 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4798 esac
4799 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4802 case $ac_mode in
4805 # CONFIG_FILE
4808 _ACEOF
4810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4811 # If the template does not know about datarootdir, expand it.
4812 # FIXME: This hack should be removed a few years after 2.60.
4813 ac_datarootdir_hack=; ac_datarootdir_seen=
4814 ac_sed_dataroot='
4815 /datarootdir/ {
4819 /@datadir@/p
4820 /@docdir@/p
4821 /@infodir@/p
4822 /@localedir@/p
4823 /@mandir@/p'
4824 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4825 *datarootdir*) ac_datarootdir_seen=yes;;
4826 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4828 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4829 _ACEOF
4830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4831 ac_datarootdir_hack='
4832 s&@datadir@&$datadir&g
4833 s&@docdir@&$docdir&g
4834 s&@infodir@&$infodir&g
4835 s&@localedir@&$localedir&g
4836 s&@mandir@&$mandir&g
4837 s&\\\${datarootdir}&$datarootdir&g' ;;
4838 esac
4839 _ACEOF
4841 # Neutralize VPATH when `$srcdir' = `.'.
4842 # Shell code in configure.ac might set extrasub.
4843 # FIXME: do we really want to maintain this feature?
4844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4845 ac_sed_extra="$ac_vpsub
4846 $extrasub
4847 _ACEOF
4848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4851 s|@configure_input@|$ac_sed_conf_input|;t t
4852 s&@top_builddir@&$ac_top_builddir_sub&;t t
4853 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4854 s&@srcdir@&$ac_srcdir&;t t
4855 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4856 s&@top_srcdir@&$ac_top_srcdir&;t t
4857 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4858 s&@builddir@&$ac_builddir&;t t
4859 s&@abs_builddir@&$ac_abs_builddir&;t t
4860 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4861 $ac_datarootdir_hack
4863 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4864 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4866 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4867 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4868 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4869 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4871 which seems to be undefined. Please make sure it is defined" >&5
4872 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4873 which seems to be undefined. Please make sure it is defined" >&2;}
4875 rm -f "$ac_tmp/stdin"
4876 case $ac_file in
4877 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4878 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4879 esac \
4880 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4884 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4885 $as_echo "$as_me: executing $ac_file commands" >&6;}
4887 esac
4890 case $ac_file$ac_mode in
4891 "default-1":C)
4892 # Only add multilib support code if we just rebuilt the top-level
4893 # Makefile.
4894 case " $CONFIG_FILES " in
4895 *" Makefile "*)
4896 ac_file=Makefile . ${multi_basedir}/config-ml.in
4898 esac ;;
4900 esac
4901 done # for ac_tag
4904 as_fn_exit 0
4905 _ACEOF
4906 ac_clean_files=$ac_clean_files_save
4908 test $ac_write_fail = 0 ||
4909 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4912 # configure is writing to config.log, and then calls config.status.
4913 # config.status does its own redirection, appending to config.log.
4914 # Unfortunately, on DOS this fails, as config.log is still kept open
4915 # by configure, so config.status won't be able to write to it; its
4916 # output is simply discarded. So we exec the FD to /dev/null,
4917 # effectively closing config.log, so it can be properly (re)opened and
4918 # appended to by config.status. When coming back to configure, we
4919 # need to make the FD available again.
4920 if test "$no_create" != yes; then
4921 ac_cs_success=:
4922 ac_config_status_args=
4923 test "$silent" = yes &&
4924 ac_config_status_args="$ac_config_status_args --quiet"
4925 exec 5>/dev/null
4926 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4927 exec 5>>config.log
4928 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4929 # would make configure fail if this is the last instruction.
4930 $ac_cs_success || as_fn_exit 1
4932 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4934 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}