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