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