Add support for DragonFlyBSD target.
[binutils.git] / bfd / configure
Commit [+]AuthorDateLineData
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001#! /bin/sh
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00002# Guess values for system-dependent variables and create Makefiles.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003# 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.
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00008#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +000011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
68594b41 Nathanael Nerode2004-08-30 18:58:14 +000014
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +000018 emulate sh
19 NULLCMD=:
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +000020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +000023 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
68594b41 Nathanael Nerode2004-08-30 18:58:14 +000031fi
68594b41 Nathanael Nerode2004-08-30 18:58:14 +000032
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +000033
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'
50else
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 }
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +000079fi
80
81
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +000082# 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
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
c17122d7
RW
Ralf Wildenhues2010-01-09 21:11:31 +0000172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000192do
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000236 else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000241 fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000364
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000383 as_expr=expr
384else
385 as_expr=false
386fi
387
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000389 as_basename=basename
390else
391 as_basename=false
392fi
393
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000399
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000400as_me=`$as_basename -- "$0" ||
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000418
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000426
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000436 sed '
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000441 N
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000444 t loop
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000445 s/-\n.*//
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000446 ' >$as_me.lineno &&
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000454 # Exit status is that of the last command.
455 exit
456}
457
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000469esac
470
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000474else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000477fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000480 as_ln_s='ln -s'
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000491 fi
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000492else
493 as_ln_s='cp -p'
494fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000497
498if mkdir -p . 2>/dev/null; then
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000499 as_mkdir_p='mkdir -p "$as_dir"'
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
7159040a
SE
Steve Ellcey2007-05-24 18:12:51 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
7159040a Steve Ellcey2007-05-24 18:12:51 +0000536
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000537exec 7<&0 </dev/null 6>&1
538
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000543
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000544#
545# Initializations.
546#
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000547ac_default_prefix=/usr/local
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000548ac_clean_files=
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000549ac_config_libobj_dir=.
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000550LIBOBJS=
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000555
556# Identity of this package.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000562PACKAGE_URL=
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000563
564ac_unique_file="libbfd.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000568#ifdef HAVE_SYS_TYPES_H
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000569# include <sys/types.h>
570#endif
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000571#ifdef HAVE_SYS_STAT_H
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000572# include <sys/stat.h>
573#endif
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000574#ifdef STDC_HEADERS
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000575# include <stdlib.h>
576# include <stddef.h>
577#else
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000578# ifdef HAVE_STDLIB_H
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000579# include <stdlib.h>
580# endif
581#endif
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000584# include <memory.h>
585# endif
586# include <string.h>
587#endif
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000588#ifdef HAVE_STRINGS_H
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000589# include <strings.h>
590#endif
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000591#ifdef HAVE_INTTYPES_H
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000592# include <inttypes.h>
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000593#endif
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000598# include <unistd.h>
599#endif"
600
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
7ead9a68 Tristan Gingold2010-05-14 07:18:37 +0000605havevecs
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000606tdefaults
607bfd_ufile_ptr
608bfd_file_ptr
609supports_plugins
610bfd_default_target_size
611bfd_machines
612bfd_backends
613all_backends
614bfd64_libs
615wordsize
616TDEFINES
617SHARED_LIBADD
618SHARED_LDFLAGS
619LIBM
620COREFLAG
621COREFILE
622EXEEXT_FOR_BUILD
623CC_FOR_BUILD
624BFD_HOSTPTR_T
625BFD_HOST_U_64_BIT
626BFD_HOST_64_BIT
627BFD_HOST_64_BIT_DEFINED
628BFD_HOST_64BIT_LONG_LONG
629BFD_HOST_64BIT_LONG
630HDEFINES
631MSGMERGE
632MSGFMT
633MKINSTALLDIRS
634CATOBJEXT
635GENCAT
636INSTOBJEXT
637DATADIRNAME
638CATALOGS
639POSUB
640GMSGFMT
641XGETTEXT
642INCINTL
643LIBINTL_DEP
644LIBINTL
645USE_NLS
646bfdincludedir
647bfdlibdir
648target_noncanonical
649host_noncanonical
650INSTALL_LIBBFD_FALSE
651INSTALL_LIBBFD_TRUE
652GENINSRC_NEVER_FALSE
653GENINSRC_NEVER_TRUE
654MAINT
655MAINTAINER_MODE_FALSE
656MAINTAINER_MODE_TRUE
657NO_WERROR
658WARN_CFLAGS
659REPORT_BUGS_TEXI
660REPORT_BUGS_TO
661PKGVERSION
662DEBUGDIR
663PLUGINS_FALSE
664PLUGINS_TRUE
665OTOOL64
666OTOOL
667LIPO
668NMEDIT
669DSYMUTIL
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000670OBJDUMP
671LN_S
672NM
673ac_ct_DUMPBIN
674DUMPBIN
675LD
676FGREP
677SED
678LIBTOOL
679EGREP
680GREP
681CPP
682RANLIB
683AR
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
687AMDEPBACKSLASH
688AMDEP_FALSE
689AMDEP_TRUE
690am__quote
691am__include
692DEPDIR
693am__untar
694am__tar
695AMTAR
696am__leading_dot
697SET_MAKE
698AWK
699mkdir_p
700MKDIR_P
701INSTALL_STRIP_PROGRAM
702STRIP
703install_sh
704MAKEINFO
705AUTOHEADER
706AUTOMAKE
707AUTOCONF
708ACLOCAL
709VERSION
710PACKAGE
711CYGPATH_W
712am__isrc
713INSTALL_DATA
714INSTALL_SCRIPT
715INSTALL_PROGRAM
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
723target_os
724target_vendor
725target_cpu
726target
727host_os
728host_vendor
729host_cpu
730host
731build_os
732build_vendor
733build_cpu
734build
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000773ac_subst_files=''
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000774ac_user_opts='
775enable_option_checking
776enable_dependency_tracking
777enable_shared
778enable_static
779with_pic
780enable_fast_install
781with_gnu_ld
782enable_libtool_lock
783enable_plugins
784enable_largefile
785enable_64_bit_bfd
786enable_targets
787with_mmap
788enable_secureplt
1fa52323 Kai Tietz2010-04-27 17:25:59 +0000789enable_leading_mingw64_underscores
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000790with_separate_debug_dir
791enable_elf_stt_common
792with_pkgversion
793with_bugurl
794enable_werror
795enable_build_warnings
796enable_maintainer_mode
797enable_install_libbfd
798enable_nls
3433c262 Joel Brobecker2009-11-24 22:47:19 +0000799with_zlib
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000800'
801 ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807LIBS
808CPPFLAGS
809CPP'
810
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000811
812# Initialize some variables set by options.
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000813ac_init_help=
814ac_init_version=false
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000815ac_unrecognized_opts=
816ac_unrecognized_sep=
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000817# The variables have the same names as the options, with
818# dashes changed to underlines.
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000819cache_file=/dev/null
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000820exec_prefix=NONE
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000821no_create=
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000822no_recursion=
823prefix=NONE
824program_prefix=NONE
825program_suffix=NONE
826program_transform_name=s,x,x,
827silent=
828site=
829srcdir=
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000830verbose=
831x_includes=NONE
832x_libraries=NONE
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000833
834# Installation directory options.
835# These are left unexpanded so users can "make install exec_prefix=/foo"
836# and all the variables that are supposed to be based on exec_prefix
837# by default will actually change.
838# Use braces instead of parens because sh, perl, etc. also accept them.
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000839# (The list follows the same order as the GNU Coding Standards.)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000840bindir='${exec_prefix}/bin'
841sbindir='${exec_prefix}/sbin'
842libexecdir='${exec_prefix}/libexec'
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000843datarootdir='${prefix}/share'
844datadir='${datarootdir}'
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000845sysconfdir='${prefix}/etc'
846sharedstatedir='${prefix}/com'
847localstatedir='${prefix}/var'
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000848includedir='${prefix}/include'
849oldincludedir='/usr/include'
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000850docdir='${datarootdir}/doc/${PACKAGE}'
851infodir='${datarootdir}/info'
852htmldir='${docdir}'
853dvidir='${docdir}'
854pdfdir='${docdir}'
855psdir='${docdir}'
856libdir='${exec_prefix}/lib'
857localedir='${datarootdir}/locale'
858mandir='${datarootdir}/man'
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000859
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000860ac_prev=
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000861ac_dashdash=
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000862for ac_option
863do
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000866 eval $ac_prev=\$ac_option
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000867 ac_prev=
868 continue
869 fi
870
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000871 case $ac_option in
872 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *) ac_optarg=yes ;;
874 esac
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000875
876 # Accept the important Cygnus configure options, so we can diagnose typos.
877
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000878 case $ac_dashdash$ac_option in
879 --)
880 ac_dashdash=yes ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000881
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000885 bindir=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000886
887 -build | --build | --buil | --bui | --bu)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000888 ac_prev=build_alias ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000890 build_alias=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000891
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000897 cache_file=$ac_optarg ;;
898
899 --config-cache | -C)
900 cache_file=config.cache ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000901
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000902 -datadir | --datadir | --datadi | --datad)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000903 ac_prev=datadir ;;
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000905 datadir=$ac_optarg ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000906
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
913
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000914 -disable-* | --disable-*)
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000916 # Reject names that are not valid shell variable names.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923"enable_$ac_useropt"
924"*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000939
940 -enable-* | --enable-*)
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000942 # Reject names that are not valid shell variable names.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000953 esac
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +0000954 eval enable_$ac_useropt=\$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000955
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000963 exec_prefix=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000964
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
968
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +0000969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000975
976 -host | --host | --hos | --ho)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000977 ac_prev=host_alias ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000978 -host=* | --host=* | --hos=* | --ho=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000979 host_alias=$ac_optarg ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000980
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +0000981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
986
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000992 includedir=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000993
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000997 infodir=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000998
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001002 libdir=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001003
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001009 libexecdir=$ac_optarg ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001010
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1015
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001016 -localstatedir | --localstatedir | --localstatedi | --localstated \
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001017 | --localstate | --localstat | --localsta | --localst | --locals)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001021 localstatedir=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001022
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001026 mandir=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001027
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1031
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001033 | --no-cr | --no-c | -n)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001034 no_create=yes ;;
1035
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1039
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001047 oldincludedir=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001048
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001052 prefix=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001053
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001059 program_prefix=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001060
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001066 program_suffix=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001067
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001083 program_transform_name=$ac_optarg ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001084
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1089
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1094
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1098
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001103 sbindir=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001104
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001114 sharedstatedir=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001115
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001119 site=$ac_optarg ;;
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001120
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001124 srcdir=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001125
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001131 sysconfdir=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001132
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001134 ac_prev=target_alias ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001136 target_alias=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001137
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1140
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001143
1144 -with-* | --with-*)
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001146 # Reject names that are not valid shell variable names.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153"with_$ac_useropt"
1154"*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001157 esac
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001158 eval with_$ac_useropt=\$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001159
1160 -without-* | --without-*)
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001162 # Reject names that are not valid shell variable names.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169"with_$ac_useropt"
1170"*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=no ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001175
1176 --x)
1177 # Obsolete; use --with-x.
1178 with_x=yes ;;
1179
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001185 x_includes=$ac_optarg ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001186
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001192 x_libraries=$ac_optarg ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001193
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001194 -*) as_fn_error "unrecognized option: \`$ac_option'
1195Try \`$0 --help' for more information."
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001196 ;;
1197
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
1203 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1204 esac
1205 eval $ac_envvar=\$ac_optarg
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001206 export $ac_envvar ;;
1207
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001208 *)
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001209 # FIXME: should be removed in autoconf 3.0.
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001213 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001214 ;;
1215
1216 esac
1217done
1218
1219if test -n "$ac_prev"; then
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001221 as_fn_error "missing argument to $ac_option"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001222fi
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001223
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001224if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1226 no) ;;
1227 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001229 esac
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001230fi
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001231
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001232# Check all directory arguments for consistency.
1233for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001237do
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001240 case $ac_val in
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001244 esac
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001245 # Be sure to have absolute directory names.
1246 case $ac_val in
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 esac
1250 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001251done
1252
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001264 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001265 If a cross compiler is detected then cross compile mode will be used." >&2
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1268 fi
1269fi
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001270
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001271ac_tool_prefix=
1272test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274test "$silent" = yes && exec 6>/dev/null
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001275
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001276
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001277ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278ac_ls_di=`ls -di .` &&
1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error "working directory cannot be determined"
1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error "pwd does not report name of working directory"
1283
1284
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001285# Find the source files, if location was not specified.
1286if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294$as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\).*/{
1308 s//\1/
1309 q
1310 }
1311 s/.*/./; q'`
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001312 srcdir=$ac_confdir
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001313 if test ! -r "$srcdir/$ac_unique_file"; then
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001314 srcdir=..
1315 fi
1316else
1317 ac_srcdir_defaulted=no
1318fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001319if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1322fi
1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1326 pwd)`
1327# When building in place, set srcdir=.
1328if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1330fi
1331# Remove unnecessary trailing slashes from srcdir.
1332# Double slashes in file names in object file debugging info
1333# mess up M-x gdb in Emacs.
1334case $srcdir in
1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336esac
1337for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342done
6e10a47a Nick Clifton2001-04-24 15:08:16 +00001343
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001344#
1345# Report the --help message.
1346#
1347if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351\`configure' configures this package to adapt to many kinds of systems.
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001352
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001353Usage: $0 [OPTION]... [VAR=VALUE]...
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001354
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001355To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356VAR=VALUE. See below for descriptions of some of the useful variables.
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001357
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001358Defaults for the options are specified in brackets.
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001359
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001360Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001371Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001373 [$ac_default_prefix]
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001375 [PREFIX]
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001376
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001377By default, \`make install' will install all the files in
1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380for instance \`--prefix=\$HOME'.
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001381
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001382For better control, use the options below.
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001383
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001384Fine tuning of the installation directories:
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001404_ACEOF
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001405
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001406 cat <<\_ACEOF
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001407
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001408Program names:
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001412
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001413System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 --target=TARGET configure for building compilers for TARGET [HOST]
1417_ACEOF
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001418fi
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001419
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001420if test -n "$ac_init_help"; then
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001421
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001422 cat <<\_ACEOF
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001423
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001424Optional Features:
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001425 --disable-option-checking ignore unrecognized --enable/--with options
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ae97a107
AM
Alan Modra2004-09-16 14:52:12 +00001428 --disable-dependency-tracking speeds up one-time build
1429 --enable-dependency-tracking do not reject slow dependency extractors
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001430 --enable-shared[=PKGS] build shared libraries [default=no]
1431 --enable-static[=PKGS] build static libraries [default=yes]
7159040a
SE
Steve Ellcey2007-05-24 18:12:51 +00001432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001434 --disable-libtool-lock avoid locking (might break parallel builds)
fd20bd15 Nick Clifton2009-05-27 16:29:55 +00001435 --enable-plugins Enable support for plugins (defaults no)
dbda9fe8 Nick Clifton2009-05-26 14:12:03 +00001436 --disable-largefile omit support for large files
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001437 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1438 --enable-targets alternative target configurations
e6ed0f0f Richard Henderson2005-05-29 23:13:39 +00001439 --enable-secureplt Default to creating read-only plt entries
1fa52323
KT
Kai Tietz2010-04-27 17:25:59 +00001440 --enable-leading-mingw64-underscores
1441 Enable leading underscores on 64 bit mingw targets
e9284017 Nick Clifton2007-10-16 14:42:15 +00001442 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
48e556e2
AM
Alan Modra2006-04-19 02:06:15 +00001443 --enable-werror treat compile warnings as errors
1444 --enable-build-warnings enable build-time compiler warnings
ae97a107
AM
Alan Modra2004-09-16 14:52:12 +00001445 --enable-maintainer-mode enable make rules and dependencies not useful
1446 (and sometimes confusing) to the casual installer
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001447 --enable-install-libbfd controls installation of libbfd and related headers
1448 --disable-nls do not use Native Language Support
1449
1450Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
7159040a
SE
Steve Ellcey2007-05-24 18:12:51 +00001453 --with-pic try to use only PIC/non-PIC objects [default=use
1454 both]
1455 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001456 --with-mmap try using mmap for BFD input files if available
dd772ed7
AS
Andreas Schwab2007-06-23 08:40:54 +00001457 --with-separate-debug-dir=DIR
1458 Look for global separate debug info in DIR
1459 [default=LIBDIR/debug]
55ca86d4
JM
Joseph Myers2007-03-23 02:51:30 +00001460 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1461 Binutils"
33082f89 H.J. Lu2007-03-15 14:17:20 +00001462 --with-bugurl=URL Direct users to URL to report a bug
3433c262 Joel Brobecker2009-11-24 22:47:19 +00001463 --with-zlib include zlib support (auto/yes/no) default=auto
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001464
1465Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001473 CPP C preprocessor
1474
1475Use these variables to override the choices made by `configure' or to help
1476it to find libraries and programs with nonstandard names/locations.
1477
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001478Report bugs to the package provider.
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001479_ACEOF
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001480ac_status=$?
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001481fi
1482
1483if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 continue
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001489 ac_builddir=.
1490
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001491case "$ac_dir" in
1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493*)
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501esac
1502ac_abs_top_builddir=$ac_pwd
1503ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504# for backward compatibility:
1505ac_top_builddir=$ac_top_build_prefix
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001506
1507case $srcdir in
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001508 .) # We are building in place.
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001509 ac_srcdir=.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001513 ac_srcdir=$srcdir$ac_dir_suffix;
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001520esac
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001531 else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001535 done
0845bce5
AO
Alexandre Oliva2001-05-20 19:02:56 +00001536fi
1537
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001538test -n "$ac_init_help" && exit $ac_status
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001539if $ac_init_version; then
1540 cat <<\_ACEOF
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001541configure
1542generated by GNU Autoconf 2.64
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001543
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001544Copyright (C) 2009 Free Software Foundation, Inc.
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00001545This configure script is free software; the Free Software Foundation
1546gives unlimited permission to copy, distribute and modify it.
1547_ACEOF
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001548 exit
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001549fi
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001550
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001551## ------------------------ ##
1552## Autoconf initialization. ##
1553## ------------------------ ##
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001554
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001555# ac_fn_c_try_compile LINENO
1556# --------------------------
1557# Try to compile conftest.$ac_ext, and return whether this succeeded.
1558ac_fn_c_try_compile ()
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001559{
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1563case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1581 ac_retval=0
1582else
1583 $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001585
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001586 ac_retval=1
1587fi
1588 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589 return $ac_retval
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001590
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001591} # ac_fn_c_try_compile
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001592
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001593# ac_fn_c_try_link LINENO
1594# -----------------------
1595# Try to link conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_c_try_link ()
1597{
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext conftest$ac_exeext
1600 if { { ac_try="$ac_link"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_link") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest$ac_exeext && {
1619 test "$cross_compiling" = yes ||
1620 $as_test_x conftest$ac_exeext
1621 }; then :
1622 ac_retval=0
1623else
1624 $as_echo "$as_me: failed program was:" >&5
1625sed 's/^/| /' conftest.$ac_ext >&5
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001626
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001627 ac_retval=1
1628fi
1629 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1630 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1631 # interfere with the next link command; also delete a directory that is
1632 # left behind by Apple's compiler. We do this before executing the actions.
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 return $ac_retval
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001636
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001637} # ac_fn_c_try_link
cce499b5 Alan Modra2002-12-20 00:09:54 +00001638
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001639# ac_fn_c_try_cpp LINENO
1640# ----------------------
1641# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_cpp ()
1643{
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } >/dev/null && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 }; then :
1664 ac_retval=0
1665else
1666 $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
6e10a47a Nick Clifton2001-04-24 15:08:16 +00001668
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001669 ac_retval=1
1670fi
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 return $ac_retval
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001673
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001674} # ac_fn_c_try_cpp
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001675
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001676# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1677# -------------------------------------------------------
1678# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1679# the include files in INCLUDES and setting the cache variable VAR
1680# accordingly.
1681ac_fn_c_check_header_mongrel ()
1682{
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686$as_echo_n "checking for $2... " >&6; }
1687if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1688 $as_echo_n "(cached) " >&6
1689fi
1690eval ac_res=\$$3
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692$as_echo "$ac_res" >&6; }
1693else
1694 # Is the header compilable?
1695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1696$as_echo_n "checking $2 usability... " >&6; }
1697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698/* end confdefs.h. */
1699$4
1700#include <$2>
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001701_ACEOF
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001702if ac_fn_c_try_compile "$LINENO"; then :
1703 ac_header_compiler=yes
1704else
1705 ac_header_compiler=no
1706fi
1707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1709$as_echo "$ac_header_compiler" >&6; }
8cd1ce26 Nick Clifton2003-05-02 08:14:52 +00001710
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001711# Is the header present?
1712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1713$as_echo_n "checking $2 presence... " >&6; }
1714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715/* end confdefs.h. */
1716#include <$2>
1717_ACEOF
1718if ac_fn_c_try_cpp "$LINENO"; then :
1719 ac_header_preproc=yes
1720else
1721 ac_header_preproc=no
1722fi
1723rm -f conftest.err conftest.$ac_ext
1724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1725$as_echo "$ac_header_preproc" >&6; }
0845bce5 Alexandre Oliva2001-05-20 19:02:56 +00001726
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001727# So? What about this header?
1728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1729 yes:no: )
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1731$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734 ;;
1735 no:yes:* )
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1737$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1739$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1741$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1743$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 ;;
1747esac
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
1750if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751 $as_echo_n "(cached) " >&6
1752else
1753 eval "$3=\$ac_header_compiler"
1754fi
1755eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757$as_echo "$ac_res" >&6; }
1758fi
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001760
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001761} # ac_fn_c_check_header_mongrel
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001762
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001763# ac_fn_c_try_run LINENO
1764# ----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1766# that executables *can* be run.
1767ac_fn_c_try_run ()
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001768{
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>&5
1778 ac_status=$?
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1781 { { case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_try") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; }; }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: program exited with status $ac_status" >&5
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001796
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001797 ac_retval=$ac_status
1798fi
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 return $ac_retval
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001802
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001803} # ac_fn_c_try_run
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001804
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001805# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1806# -------------------------------------------------------
1807# Tests whether HEADER exists and can be compiled using the include files in
1808# INCLUDES, setting the cache variable VAR accordingly.
1809ac_fn_c_check_header_compile ()
1810{
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813$as_echo_n "checking for $2... " >&6; }
1814if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1815 $as_echo_n "(cached) " >&6
1816else
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h. */
1819$4
1820#include <$2>
1821_ACEOF
1822if ac_fn_c_try_compile "$LINENO"; then :
1823 eval "$3=yes"
1824else
1825 eval "$3=no"
1826fi
1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828fi
1829eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831$as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001833
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001834} # ac_fn_c_check_header_compile
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001835
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001836# ac_fn_c_check_func LINENO FUNC VAR
1837# ----------------------------------
1838# Tests whether FUNC exists, setting the cache variable VAR accordingly
1839ac_fn_c_check_func ()
1840{
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843$as_echo_n "checking for $2... " >&6; }
1844if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1845 $as_echo_n "(cached) " >&6
1846else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848/* end confdefs.h. */
1849/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851#define $2 innocuous_$2
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001852
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001853/* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below.
1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856 <limits.h> exists even on freestanding compilers. */
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001857
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001858#ifdef __STDC__
1859# include <limits.h>
1860#else
1861# include <assert.h>
1862#endif
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001863
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001864#undef $2
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001865
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001866/* Override any GCC internal prototype to avoid an error.
1867 Use char because int might match the return type of a GCC
1868 builtin and then its argument prototype would still apply. */
1869#ifdef __cplusplus
1870extern "C"
1871#endif
1872char $2 ();
1873/* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876#if defined __stub_$2 || defined __stub___$2
1877choke me
1878#endif
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001879
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001880int
1881main ()
1882{
1883return $2 ();
1884 ;
1885 return 0;
1886}
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001887_ACEOF
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001888if ac_fn_c_try_link "$LINENO"; then :
1889 eval "$3=yes"
1890else
1891 eval "$3=no"
1892fi
1893rm -f core conftest.err conftest.$ac_objext \
1894 conftest$ac_exeext conftest.$ac_ext
1895fi
1896eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898$as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001900
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00001901} # ac_fn_c_check_func
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001902
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001903# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1904# --------------------------------------------
1905# Tries to find the compile-time value of EXPR in a program that includes
1906# INCLUDES, setting VAR accordingly. Returns whether the value could be
1907# computed
1908ac_fn_c_compute_int ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if test "$cross_compiling" = yes; then
1912 # Depending upon the size, compute the lo and hi bounds.
1913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h. */
1915$4
1916int
1917main ()
1918{
1919static int test_array [1 - 2 * !(($2) >= 0)];
1920test_array [0] = 0
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001921
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001922 ;
1923 return 0;
1924}
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001925_ACEOF
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001926if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_lo=0 ac_mid=0
1928 while :; do
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931$4
1932int
1933main ()
1934{
1935static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1936test_array [0] = 0
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001937
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001938 ;
1939 return 0;
1940}
1941_ACEOF
1942if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_hi=$ac_mid; break
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001944else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001945 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1946 if test $ac_lo -le $ac_mid; then
1947 ac_lo= ac_hi=
1948 break
1949 fi
1950 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001951fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 done
1954else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h. */
1957$4
1958int
1959main ()
1960{
1961static int test_array [1 - 2 * !(($2) < 0)];
1962test_array [0] = 0
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001963
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001964 ;
1965 return 0;
1966}
1967_ACEOF
1968if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_hi=-1 ac_mid=-1
1970 while :; do
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h. */
1973$4
1974int
1975main ()
1976{
1977static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1978test_array [0] = 0
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001979
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00001980 ;
1981 return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_compile "$LINENO"; then :
1985 ac_lo=$ac_mid; break
1986else
1987 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1988 if test $ac_mid -le $ac_hi; then
1989 ac_lo= ac_hi=
1990 break
1991 fi
1992 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 done
1996else
1997 ac_lo= ac_hi=
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002# Binary search between lo and hi bounds.
2003while test "x$ac_lo" != "x$ac_hi"; do
2004 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h. */
2007$4
2008int
2009main ()
2010{
2011static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2012test_array [0] = 0
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002013
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002014 ;
2015 return 0;
2016}
2017_ACEOF
2018if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_hi=$ac_mid
2020else
2021 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2022fi
2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024done
2025case $ac_lo in #((
2026?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2027'') ac_retval=1 ;;
2028esac
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */
2032$4
2033static long int longval () { return $2; }
2034static unsigned long int ulongval () { return $2; }
2035#include <stdio.h>
2036#include <stdlib.h>
2037int
2038main ()
2039{
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002040
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002041 FILE *f = fopen ("conftest.val", "w");
2042 if (! f)
2043 return 1;
2044 if (($2) < 0)
2045 {
2046 long int i = longval ();
2047 if (i != ($2))
2048 return 1;
2049 fprintf (f, "%ld", i);
2050 }
2051 else
2052 {
2053 unsigned long int i = ulongval ();
2054 if (i != ($2))
2055 return 1;
2056 fprintf (f, "%lu", i);
2057 }
2058 /* Do not output a trailing newline, as this causes \r\n confusion
2059 on some platforms. */
2060 return ferror (f) || fclose (f) != 0;
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002061
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002062 ;
2063 return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_run "$LINENO"; then :
2067 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2068else
2069 ac_retval=1
2070fi
2071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2072 conftest.$ac_objext conftest.beam conftest.$ac_ext
2073rm -f conftest.val
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002074
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002075 fi
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 return $ac_retval
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002078
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002079} # ac_fn_c_compute_int
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002080
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002081# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082# -------------------------------------------
2083# Tests whether TYPE exists after having included INCLUDES, setting cache
2084# variable VAR accordingly.
2085ac_fn_c_check_type ()
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089$as_echo_n "checking for $2... " >&6; }
2090if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091 $as_echo_n "(cached) " >&6
2092else
2093 eval "$3=no"
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h. */
2096$4
2097int
2098main ()
2099{
2100if (sizeof ($2))
2101 return 0;
2102 ;
2103 return 0;
2104}
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110int
2111main ()
2112{
2113if (sizeof (($2)))
2114 return 0;
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002120
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002121else
2122 eval "$3=yes"
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127fi
2128eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130$as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
a403e39d Alan Modra2008-08-15 08:31:52 +00002132
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002133} # ac_fn_c_check_type
a403e39d Alan Modra2008-08-15 08:31:52 +00002134
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002135# ac_fn_c_check_decl LINENO SYMBOL VAR
2136# ------------------------------------
2137# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2138ac_fn_c_check_decl ()
2139{
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1bd90188
AM
Alan Modra2010-06-29 04:17:18 +00002141 as_decl_name=`echo $2|sed 's/ *(.*//'`
2142 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2144$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002145if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2146 $as_echo_n "(cached) " >&6
2147else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h. */
2150$4
2151int
2152main ()
2153{
1bd90188
AM
Alan Modra2010-06-29 04:17:18 +00002154#ifndef $as_decl_name
2155#ifdef __cplusplus
2156 (void) $as_decl_use;
2157#else
2158 (void) $as_decl_name;
2159#endif
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002160#endif
a403e39d Alan Modra2008-08-15 08:31:52 +00002161
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002162 ;
2163 return 0;
2164}
2165_ACEOF
2166if ac_fn_c_try_compile "$LINENO"; then :
2167 eval "$3=yes"
2168else
2169 eval "$3=no"
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002170fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172fi
2173eval ac_res=\$$3
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175$as_echo "$ac_res" >&6; }
2176 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002177
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002178} # ac_fn_c_check_decl
2179cat >config.log <<_ACEOF
2180This file contains any messages produced by compilers while
2181running configure, to aid debugging if configure makes a mistake.
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002182
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002183It was created by $as_me, which was
2184generated by GNU Autoconf 2.64. Invocation command line was
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002185
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002186 $ $0 $@
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002187
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002188_ACEOF
2189exec 5>>config.log
2190{
2191cat <<_ASUNAME
2192## --------- ##
2193## Platform. ##
2194## --------- ##
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002195
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002196hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2197uname -m = `(uname -m) 2>/dev/null || echo unknown`
2198uname -r = `(uname -r) 2>/dev/null || echo unknown`
2199uname -s = `(uname -s) 2>/dev/null || echo unknown`
2200uname -v = `(uname -v) 2>/dev/null || echo unknown`
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002201
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002202/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2203/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002204
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002205/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2206/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2207/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2208/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2209/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2210/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2211/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002212
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002213_ASUNAME
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002214
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216for as_dir in $PATH
2217do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002220 $as_echo "PATH: $as_dir"
2221 done
2222IFS=$as_save_IFS
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002223
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002224} >&5
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002225
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002226cat >&5 <<_ACEOF
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002227
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002228
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002229## ----------- ##
2230## Core tests. ##
2231## ----------- ##
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002232
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002233_ACEOF
2234
2235
2236# Keep a trace of the command line.
2237# Strip out --no-create and --no-recursion so they do not pile up.
2238# Strip out --silent because we don't want to record it for future runs.
2239# Also quote any args containing shell meta-characters.
2240# Make two passes to allow for proper duplicate-argument suppression.
2241ac_configure_args=
2242ac_configure_args0=
2243ac_configure_args1=
2244ac_must_keep_next=false
2245for ac_pass in 1 2
2246do
2247 for ac_arg
2248 do
2249 case $ac_arg in
2250 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2252 | -silent | --silent | --silen | --sile | --sil)
2253 continue ;;
2254 *\'*)
2255 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2256 esac
2257 case $ac_pass in
2258 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2259 2)
2260 as_fn_append ac_configure_args1 " '$ac_arg'"
2261 if test $ac_must_keep_next = true; then
2262 ac_must_keep_next=false # Got value, back to normal.
2263 else
2264 case $ac_arg in
2265 *=* | --config-cache | -C | -disable-* | --disable-* \
2266 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2267 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2268 | -with-* | --with-* | -without-* | --without-* | --x)
2269 case "$ac_configure_args0 " in
2270 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2271 esac
2272 ;;
2273 -* ) ac_must_keep_next=true ;;
2274 esac
2275 fi
2276 as_fn_append ac_configure_args " '$ac_arg'"
2277 ;;
2278 esac
2279 done
2280done
2281{ ac_configure_args0=; unset ac_configure_args0;}
2282{ ac_configure_args1=; unset ac_configure_args1;}
2283
2284# When interrupted or exit'd, cleanup temporary files, and complete
2285# config.log. We remove comments because anyway the quotes in there
2286# would cause problems or look ugly.
2287# WARNING: Use '\'' to represent an apostrophe within the trap.
2288# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2289trap 'exit_status=$?
2290 # Save into config.log some information that might help in debugging.
2291 {
2292 echo
2293
2294 cat <<\_ASBOX
2295## ---------------- ##
2296## Cache variables. ##
2297## ---------------- ##
2298_ASBOX
2299 echo
2300 # The following way of writing the cache mishandles newlines in values,
2301(
2302 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2303 eval ac_val=\$$ac_var
2304 case $ac_val in #(
2305 *${as_nl}*)
2306 case $ac_var in #(
2307 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2308$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2309 esac
2310 case $ac_var in #(
2311 _ | IFS | as_nl) ;; #(
2312 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2313 *) { eval $ac_var=; unset $ac_var;} ;;
2314 esac ;;
2315 esac
2316 done
2317 (set) 2>&1 |
2318 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2319 *${as_nl}ac_space=\ *)
2320 sed -n \
2321 "s/'\''/'\''\\\\'\'''\''/g;
2322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2323 ;; #(
2324 *)
2325 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2326 ;;
2327 esac |
2328 sort
2329)
2330 echo
2331
2332 cat <<\_ASBOX
2333## ----------------- ##
2334## Output variables. ##
2335## ----------------- ##
2336_ASBOX
2337 echo
2338 for ac_var in $ac_subst_vars
2339 do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2347
2348 if test -n "$ac_subst_files"; then
2349 cat <<\_ASBOX
2350## ------------------- ##
2351## File substitutions. ##
2352## ------------------- ##
2353_ASBOX
2354 echo
2355 for ac_var in $ac_subst_files
2356 do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 $as_echo "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2364 fi
2365
2366 if test -s confdefs.h; then
2367 cat <<\_ASBOX
2368## ----------- ##
2369## confdefs.h. ##
2370## ----------- ##
2371_ASBOX
2372 echo
2373 cat confdefs.h
2374 echo
2375 fi
2376 test "$ac_signal" != 0 &&
2377 $as_echo "$as_me: caught signal $ac_signal"
2378 $as_echo "$as_me: exit $exit_status"
2379 } >&5
2380 rm -f core *.core core.conftest.* &&
2381 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2382 exit $exit_status
2383' 0
2384for ac_signal in 1 2 13 15; do
2385 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2386done
2387ac_signal=0
2388
2389# confdefs.h avoids OS command line length limits that DEFS can exceed.
2390rm -f -r conftest* confdefs.h
2391
2392$as_echo "/* confdefs.h */" > confdefs.h
2393
2394# Predefined preprocessor variables.
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_NAME "$PACKAGE_NAME"
2398_ACEOF
2399
2400cat >>confdefs.h <<_ACEOF
2401#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2402_ACEOF
2403
2404cat >>confdefs.h <<_ACEOF
2405#define PACKAGE_VERSION "$PACKAGE_VERSION"
2406_ACEOF
2407
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE_STRING "$PACKAGE_STRING"
2410_ACEOF
2411
2412cat >>confdefs.h <<_ACEOF
2413#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2414_ACEOF
2415
2416cat >>confdefs.h <<_ACEOF
2417#define PACKAGE_URL "$PACKAGE_URL"
2418_ACEOF
2419
2420
2421# Let the site file select an alternate cache file if it wants to.
2422# Prefer an explicitly selected file to automatically selected ones.
2423ac_site_file1=NONE
2424ac_site_file2=NONE
2425if test -n "$CONFIG_SITE"; then
2426 ac_site_file1=$CONFIG_SITE
2427elif test "x$prefix" != xNONE; then
2428 ac_site_file1=$prefix/share/config.site
2429 ac_site_file2=$prefix/etc/config.site
2430else
2431 ac_site_file1=$ac_default_prefix/share/config.site
2432 ac_site_file2=$ac_default_prefix/etc/config.site
2433fi
2434for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2435do
2436 test "x$ac_site_file" = xNONE && continue
2437 if test -r "$ac_site_file"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2439$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2440 sed 's/^/| /' "$ac_site_file" >&5
2441 . "$ac_site_file"
2442 fi
2443done
2444
2445if test -r "$cache_file"; then
2446 # Some versions of bash will fail to source /dev/null (special
2447 # files actually), so we avoid doing that.
2448 if test -f "$cache_file"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2450$as_echo "$as_me: loading cache $cache_file" >&6;}
2451 case $cache_file in
2452 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2453 *) . "./$cache_file";;
2454 esac
2455 fi
2456else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2458$as_echo "$as_me: creating cache $cache_file" >&6;}
2459 >$cache_file
2460fi
2461
2462# Check that the precious variables saved in the cache have kept the same
2463# value.
2464ac_cache_corrupted=false
2465for ac_var in $ac_precious_vars; do
2466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2467 eval ac_new_set=\$ac_env_${ac_var}_set
2468 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2469 eval ac_new_val=\$ac_env_${ac_var}_value
2470 case $ac_old_set,$ac_new_set in
2471 set,)
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2473$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2474 ac_cache_corrupted=: ;;
2475 ,set)
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2477$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2478 ac_cache_corrupted=: ;;
2479 ,);;
2480 *)
2481 if test "x$ac_old_val" != "x$ac_new_val"; then
2482 # differences in whitespace do not lead to failure.
2483 ac_old_val_w=`echo x $ac_old_val`
2484 ac_new_val_w=`echo x $ac_new_val`
2485 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2487$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2488 ac_cache_corrupted=:
2489 else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2491$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2492 eval $ac_var=\$ac_old_val
2493 fi
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2495$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2497$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2498 fi;;
2499 esac
2500 # Pass precious variables to config.status.
2501 if test "$ac_new_set" = set; then
2502 case $ac_new_val in
2503 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2504 *) ac_arg=$ac_var=$ac_new_val ;;
2505 esac
2506 case " $ac_configure_args " in
2507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2508 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2509 esac
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002510 fi
2511done
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002512if $ac_cache_corrupted; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2516$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2517 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2518fi
2519## -------------------- ##
2520## Main body of script. ##
2521## -------------------- ##
2522
2523ac_ext=c
2524ac_cpp='$CPP $CPPFLAGS'
2525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528
2529
2530
2531
2532
2533
2534
2535ac_aux_dir=
2536for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2537 for ac_t in install-sh install.sh shtool; do
2538 if test -f "$ac_dir/$ac_t"; then
2539 ac_aux_dir=$ac_dir
2540 ac_install_sh="$ac_aux_dir/$ac_t -c"
2541 break 2
2542 fi
2543 done
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002544done
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002545if test -z "$ac_aux_dir"; then
2546 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2547fi
2548
2549# These three variables are undocumented and unsupported,
2550# and are intended to be withdrawn in a future Autoconf release.
2551# They can cause serious problems if a builder's source tree is in a directory
2552# whose full name contains unusual characters.
2553ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2554ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2555ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2556
2557
2558# Make sure we can run config.sub.
2559$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2560 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2561
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2563$as_echo_n "checking build system type... " >&6; }
2564if test "${ac_cv_build+set}" = set; then :
2565 $as_echo_n "(cached) " >&6
2566else
2567 ac_build_alias=$build_alias
2568test "x$ac_build_alias" = x &&
2569 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2570test "x$ac_build_alias" = x &&
2571 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2572ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2573 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2574
2575fi
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2577$as_echo "$ac_cv_build" >&6; }
2578case $ac_cv_build in
2579*-*-*) ;;
2580*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2581esac
2582build=$ac_cv_build
2583ac_save_IFS=$IFS; IFS='-'
2584set x $ac_cv_build
2585shift
2586build_cpu=$1
2587build_vendor=$2
2588shift; shift
2589# Remember, the first character of IFS is used to create $*,
2590# except with old shells:
2591build_os=$*
2592IFS=$ac_save_IFS
2593case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002594
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002595
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2597$as_echo_n "checking host system type... " >&6; }
2598if test "${ac_cv_host+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
2600else
2601 if test "x$host_alias" = x; then
2602 ac_cv_host=$ac_cv_build
2603else
2604 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2605 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002606fi
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002607
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002608fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2610$as_echo "$ac_cv_host" >&6; }
2611case $ac_cv_host in
2612*-*-*) ;;
2613*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2614esac
2615host=$ac_cv_host
2616ac_save_IFS=$IFS; IFS='-'
2617set x $ac_cv_host
2618shift
2619host_cpu=$1
2620host_vendor=$2
2621shift; shift
2622# Remember, the first character of IFS is used to create $*,
2623# except with old shells:
2624host_os=$*
2625IFS=$ac_save_IFS
2626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2627
2628
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2630$as_echo_n "checking target system type... " >&6; }
2631if test "${ac_cv_target+set}" = set; then :
2632 $as_echo_n "(cached) " >&6
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002633else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002634 if test "x$target_alias" = x; then
2635 ac_cv_target=$ac_cv_host
2636else
2637 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2638 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002639fi
2640
2641fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2643$as_echo "$ac_cv_target" >&6; }
2644case $ac_cv_target in
2645*-*-*) ;;
2646*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2647esac
2648target=$ac_cv_target
2649ac_save_IFS=$IFS; IFS='-'
2650set x $ac_cv_target
2651shift
2652target_cpu=$1
2653target_vendor=$2
2654shift; shift
2655# Remember, the first character of IFS is used to create $*,
2656# except with old shells:
2657target_os=$*
2658IFS=$ac_save_IFS
2659case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2660
2661
2662# The aliases save the names the user supplied, while $host etc.
2663# will get canonicalized.
2664test -n "$target_alias" &&
2665 test "$program_prefix$program_suffix$program_transform_name" = \
2666 NONENONEs,x,x, &&
2667 program_prefix=${target_alias}-
2668ac_ext=c
2669ac_cpp='$CPP $CPPFLAGS'
2670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673if test -n "$ac_tool_prefix"; then
2674 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2675set dummy ${ac_tool_prefix}gcc; ac_word=$2
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677$as_echo_n "checking for $ac_word... " >&6; }
2678if test "${ac_cv_prog_CC+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002680else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002693 break 2
2694 fi
2695done
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002696 done
2697IFS=$as_save_IFS
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002698
2699fi
2700fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002701CC=$ac_cv_prog_CC
2702if test -n "$CC"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704$as_echo "$CC" >&6; }
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002705else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002708fi
2709
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002710
2711fi
2712if test -z "$ac_cv_prog_CC"; then
2713 ac_ct_CC=$CC
2714 # Extract the first word of "gcc", so it can be a program name with args.
2715set dummy gcc; ac_word=$2
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717$as_echo_n "checking for $ac_word... " >&6; }
2718if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
2720else
2721 if test -n "$ac_ct_CC"; then
2722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723else
2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725for as_dir in $PATH
2726do
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_ac_ct_CC="gcc"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735done
2736 done
2737IFS=$as_save_IFS
2738
2739fi
2740fi
2741ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742if test -n "$ac_ct_CC"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2744$as_echo "$ac_ct_CC" >&6; }
2745else
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747$as_echo "no" >&6; }
2748fi
2749
2750 if test "x$ac_ct_CC" = x; then
2751 CC=""
2752 else
2753 case $cross_compiling:$ac_tool_warned in
2754yes:)
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757ac_tool_warned=yes ;;
2758esac
2759 CC=$ac_ct_CC
2760 fi
2761else
2762 CC="$ac_cv_prog_CC"
2763fi
2764
2765if test -z "$CC"; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2768set dummy ${ac_tool_prefix}cc; ac_word=$2
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
2771if test "${ac_cv_prog_CC+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
2773else
2774 if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CC="${ac_tool_prefix}cc"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788done
2789 done
2790IFS=$as_save_IFS
2791
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002792fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002793fi
2794CC=$ac_cv_prog_CC
2795if test -n "$CC"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2797$as_echo "$CC" >&6; }
2798else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
2801fi
2802
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002803
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002804 fi
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002805fi
2806if test -z "$CC"; then
2807 # Extract the first word of "cc", so it can be a program name with args.
2808set dummy cc; ac_word=$2
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810$as_echo_n "checking for $ac_word... " >&6; }
2811if test "${ac_cv_prog_CC+set}" = set; then :
2812 $as_echo_n "(cached) " >&6
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002813else
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2816else
2817 ac_prog_rejected=no
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002825 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2826 ac_prog_rejected=yes
2827 continue
2828 fi
2829 ac_cv_prog_CC="cc"
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002831 break 2
2832 fi
2833done
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002834 done
2835IFS=$as_save_IFS
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002836
2837if test $ac_prog_rejected = yes; then
2838 # We found a bogon in the path, so make sure we never use it.
2839 set dummy $ac_cv_prog_CC
2840 shift
2841 if test $# != 0; then
2842 # We chose a different compiler from the bogus one.
2843 # However, it has the same basename, so the bogon will be chosen
2844 # first if we set CC to just the basename; use the full file name.
2845 shift
2846 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2847 fi
2848fi
2849fi
2850fi
2851CC=$ac_cv_prog_CC
2852if test -n "$CC"; then
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854$as_echo "$CC" >&6; }
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002855else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002858fi
2859
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002860
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002861fi
2862if test -z "$CC"; then
2863 if test -n "$ac_tool_prefix"; then
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002864 for ac_prog in cl.exe
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002865 do
2866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869$as_echo_n "checking for $ac_word... " >&6; }
2870if test "${ac_cv_prog_CC+set}" = set; then :
2871 $as_echo_n "(cached) " >&6
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002872else
2873 if test -n "$CC"; then
2874 ac_cv_prog_CC="$CC" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002883 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002885 break 2
2886 fi
2887done
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002888 done
2889IFS=$as_save_IFS
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002890
2891fi
2892fi
2893CC=$ac_cv_prog_CC
2894if test -n "$CC"; then
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896$as_echo "$CC" >&6; }
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002897else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899$as_echo "no" >&6; }
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002900fi
2901
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002902
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002903 test -n "$CC" && break
2904 done
2905fi
2906if test -z "$CC"; then
2907 ac_ct_CC=$CC
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002908 for ac_prog in cl.exe
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002909do
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911set dummy $ac_prog; ac_word=$2
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913$as_echo_n "checking for $ac_word... " >&6; }
2914if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002916else
2917 if test -n "$ac_ct_CC"; then
2918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002927 ac_cv_prog_ac_ct_CC="$ac_prog"
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002929 break 2
2930 fi
2931done
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002932 done
2933IFS=$as_save_IFS
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002934
2935fi
2936fi
2937ac_ct_CC=$ac_cv_prog_ac_ct_CC
2938if test -n "$ac_ct_CC"; then
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2940$as_echo "$ac_ct_CC" >&6; }
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002941else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002944fi
2945
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002946
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002947 test -n "$ac_ct_CC" && break
2948done
2949
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002950 if test "x$ac_ct_CC" = x; then
2951 CC=""
2952 else
2953 case $cross_compiling:$ac_tool_warned in
2954yes:)
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957ac_tool_warned=yes ;;
2958esac
2959 CC=$ac_ct_CC
2960 fi
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002961fi
2962
2963fi
2964
2965
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002966test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968as_fn_error "no acceptable C compiler found in \$PATH
2969See \`config.log' for more details." "$LINENO" 5; }
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002970
2971# Provide some information about the compiler.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002972$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2973set X $ac_compile
2974ac_compiler=$2
2975for ac_option in --version -v -V -qversion; do
2976 { { ac_try="$ac_compiler $ac_option >&5"
2977case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982$as_echo "$ac_try_echo"; } >&5
2983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002984 ac_status=$?
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00002985 if test -s conftest.err; then
2986 sed '10a\
2987... rest of stderr output deleted ...
2988 10q' conftest.err >conftest.er1
2989 cat conftest.er1 >&5
2990 rm -f conftest.er1 conftest.err
2991 fi
2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993 test $ac_status = 0; }
2994done
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00002995
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00002996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00002997/* end confdefs.h. */
2998
2999int
3000main ()
3001{
3002
3003 ;
3004 return 0;
3005}
3006_ACEOF
3007ac_clean_files_save=$ac_clean_files
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003008ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003009# Try to create an executable without -o first, disregard a.out.
3010# It will help us diagnose broken compilers, and finding out an intuition
3011# of exeext.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3013$as_echo_n "checking for C compiler default output file name... " >&6; }
3014ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3015
3016# The possible output files:
3017ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3018
3019ac_rmfiles=
3020for ac_file in $ac_files
3021do
3022 case $ac_file in
3023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3024 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3025 esac
3026done
3027rm -f $ac_rmfiles
3028
3029if { { ac_try="$ac_link_default"
3030case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035$as_echo "$ac_try_echo"; } >&5
3036 (eval "$ac_link_default") 2>&5
3037 ac_status=$?
3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; }; then :
3040 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3041# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3042# in a Makefile. We should not override ac_cv_exeext if it was cached,
3043# so that the user can short-circuit this test for compilers unknown to
3044# Autoconf.
3045for ac_file in $ac_files ''
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003046do
3047 test -f "$ac_file" || continue
3048 case $ac_file in
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003050 ;;
3051 [ab].out )
3052 # We found the default executable, but exeext='' is most
3053 # certainly right.
3054 break;;
3055 *.* )
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003056 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3057 then :; else
3058 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 fi
3060 # We set ac_cv_exeext here because the later test for it is not
3061 # safe: cross compilers may not add the suffix if given an `-o'
3062 # argument, so we may need to know it at that point already.
3063 # Even if this section looks crufty: it has the advantage of
3064 # actually working.
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003065 break;;
3066 * )
3067 break;;
3068 esac
3069done
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003070test "$ac_cv_exeext" = no && ac_cv_exeext=
3071
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003072else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003073 ac_file=''
3074fi
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3076$as_echo "$ac_file" >&6; }
3077if test -z "$ac_file"; then :
3078 $as_echo "$as_me: failed program was:" >&5
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003079sed 's/^/| /' conftest.$ac_ext >&5
3080
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003081{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083{ as_fn_set_status 77
3084as_fn_error "C compiler cannot create executables
3085See \`config.log' for more details." "$LINENO" 5; }; }
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003086fi
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003087ac_exeext=$ac_cv_exeext
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003088
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003089# Check that the compiler produces executables we can run. If not, either
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003090# the compiler is broken, or we cross compile.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3092$as_echo_n "checking whether the C compiler works... " >&6; }
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003093# If not cross compiling, check that we can run a simple program.
3094if test "$cross_compiling" != yes; then
3095 if { ac_try='./$ac_file'
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003096 { { case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101$as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_try") 2>&5
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003103 ac_status=$?
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105 test $ac_status = 0; }; }; then
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003106 cross_compiling=no
3107 else
3108 if test "$cross_compiling" = maybe; then
3109 cross_compiling=yes
3110 else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113as_fn_error "cannot run C compiled programs.
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003114If you meant to cross compile, use \`--host'.
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003115See \`config.log' for more details." "$LINENO" 5; }
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003116 fi
3117 fi
3118fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120$as_echo "yes" >&6; }
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003121
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003122rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003123ac_clean_files=$ac_clean_files_save
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003124# Check that the compiler produces executables we can run. If not, either
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003125# the compiler is broken, or we cross compile.
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3127$as_echo_n "checking whether we are cross compiling... " >&6; }
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3129$as_echo "$cross_compiling" >&6; }
3130
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3132$as_echo_n "checking for suffix of executables... " >&6; }
3133if { { ac_try="$ac_link"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139$as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_link") 2>&5
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003141 ac_status=$?
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003144 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3145# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3146# work properly (i.e., refer to `conftest.exe'), while it won't with
3147# `rm'.
3148for ac_file in conftest.exe conftest conftest.*; do
3149 test -f "$ac_file" || continue
3150 case $ac_file in
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003153 break;;
3154 * ) break;;
3155 esac
3156done
3157else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160as_fn_error "cannot compute suffix of executables: cannot compile and link
3161See \`config.log' for more details." "$LINENO" 5; }
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003162fi
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003163rm -f conftest$ac_cv_exeext
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3165$as_echo "$ac_cv_exeext" >&6; }
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003166
3167rm -f conftest.$ac_ext
3168EXEEXT=$ac_cv_exeext
3169ac_exeext=$EXEEXT
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3171$as_echo_n "checking for suffix of object files... " >&6; }
3172if test "${ac_cv_objext+set}" = set; then :
3173 $as_echo_n "(cached) " >&6
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003174else
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003176/* end confdefs.h. */
3177
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186rm -f conftest.o conftest.obj
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003187if { { ac_try="$ac_compile"
3188case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193$as_echo "$ac_try_echo"; } >&5
3194 (eval "$ac_compile") 2>&5
3195 ac_status=$?
3196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197 test $ac_status = 0; }; then :
3198 for ac_file in conftest.o conftest.obj conftest.*; do
3199 test -f "$ac_file" || continue;
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003200 case $ac_file in
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3203 break;;
3204 esac
3205done
3206else
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003207 $as_echo "$as_me: failed program was:" >&5
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003208sed 's/^/| /' conftest.$ac_ext >&5
3209
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003210{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212as_fn_error "cannot compute suffix of object files: cannot compile
3213See \`config.log' for more details." "$LINENO" 5; }
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003214fi
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003215rm -f conftest.$ac_cv_objext conftest.$ac_ext
3216fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3218$as_echo "$ac_cv_objext" >&6; }
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003219OBJEXT=$ac_cv_objext
3220ac_objext=$OBJEXT
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3222$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3223if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003225else
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003227/* end confdefs.h. */
3228
3229int
3230main ()
3231{
3232#ifndef __GNUC__
3233 choke me
3234#endif
3235
3236 ;
3237 return 0;
3238}
3239_ACEOF
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003240if ac_fn_c_try_compile "$LINENO"; then :
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003241 ac_compiler_gnu=yes
3242else
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003243 ac_compiler_gnu=no
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003244fi
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003246ac_cv_c_compiler_gnu=$ac_compiler_gnu
3247
3248fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3250$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3251if test $ac_compiler_gnu = yes; then
3252 GCC=yes
3253else
3254 GCC=
3255fi
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003256ac_test_CFLAGS=${CFLAGS+set}
3257ac_save_CFLAGS=$CFLAGS
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3259$as_echo_n "checking whether $CC accepts -g... " >&6; }
3260if test "${ac_cv_prog_cc_g+set}" = set; then :
3261 $as_echo_n "(cached) " >&6
3262else
3263 ac_save_c_werror_flag=$ac_c_werror_flag
3264 ac_c_werror_flag=yes
3265 ac_cv_prog_cc_g=no
3266 CFLAGS="-g"
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003268/* end confdefs.h. */
3269
3270int
3271main ()
3272{
3273
3274 ;
3275 return 0;
3276}
3277_ACEOF
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003278if ac_fn_c_try_compile "$LINENO"; then :
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003279 ac_cv_prog_cc_g=yes
3280else
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003281 CFLAGS=""
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283/* end confdefs.h. */
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003284
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003285int
3286main ()
3287{
3288
3289 ;
3290 return 0;
3291}
3292_ACEOF
3293if ac_fn_c_try_compile "$LINENO"; then :
3294
3295else
3296 ac_c_werror_flag=$ac_save_c_werror_flag
3297 CFLAGS="-g"
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299/* end confdefs.h. */
3300
3301int
3302main ()
3303{
3304
3305 ;
3306 return 0;
3307}
3308_ACEOF
3309if ac_fn_c_try_compile "$LINENO"; then :
3310 ac_cv_prog_cc_g=yes
3311fi
3312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003313fi
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003315fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317 ac_c_werror_flag=$ac_save_c_werror_flag
3318fi
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3320$as_echo "$ac_cv_prog_cc_g" >&6; }
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003321if test "$ac_test_CFLAGS" = set; then
3322 CFLAGS=$ac_save_CFLAGS
3323elif test $ac_cv_prog_cc_g = yes; then
3324 if test "$GCC" = yes; then
3325 CFLAGS="-g -O2"
3326 else
3327 CFLAGS="-g"
3328 fi
3329else
3330 if test "$GCC" = yes; then
3331 CFLAGS="-O2"
3332 else
3333 CFLAGS=
3334 fi
3335fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3337$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3338if test "${ac_cv_prog_cc_c89+set}" = set; then :
3339 $as_echo_n "(cached) " >&6
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003340else
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003341 ac_cv_prog_cc_c89=no
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003342ac_save_CC=$CC
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003344/* end confdefs.h. */
3345#include <stdarg.h>
3346#include <stdio.h>
3347#include <sys/types.h>
3348#include <sys/stat.h>
3349/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3350struct buf { int x; };
3351FILE * (*rcsopen) (struct buf *, struct stat *, int);
3352static char *e (p, i)
3353 char **p;
3354 int i;
3355{
3356 return p[i];
3357}
3358static char *f (char * (*g) (char **, int), char **p, ...)
3359{
3360 char *s;
3361 va_list v;
3362 va_start (v,p);
3363 s = g (p, va_arg (v,int));
3364 va_end (v);
3365 return s;
3366}
3367
3368/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3369 function prototypes and stuff, but not '\xHH' hex character constants.
3370 These don't provoke an error unfortunately, instead are silently treated
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003371 as 'x'. The following induces an error, until -std is added to get
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003372 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3373 array size at least. It's necessary to write '\x00'==0 to get something
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003374 that's true only with -std. */
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003375int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3376
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003377/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3378 inside strings and character constants. */
3379#define FOO(x) 'x'
3380int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3381
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003382int test (int i, double x);
3383struct s1 {int (*f) (int a);};
3384struct s2 {int (*f) (double a);};
3385int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3386int argc;
3387char **argv;
3388int
3389main ()
3390{
3391return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3392 ;
3393 return 0;
3394}
3395_ACEOF
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003396for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3397 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003398do
3399 CC="$ac_save_CC $ac_arg"
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003400 if ac_fn_c_try_compile "$LINENO"; then :
3401 ac_cv_prog_cc_c89=$ac_arg
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003402fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003403rm -f core conftest.err conftest.$ac_objext
3404 test "x$ac_cv_prog_cc_c89" != "xno" && break
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003405done
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003406rm -f conftest.$ac_ext
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003407CC=$ac_save_CC
3408
3409fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003410# AC_CACHE_VAL
3411case "x$ac_cv_prog_cc_c89" in
3412 x)
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3414$as_echo "none needed" >&6; } ;;
3415 xno)
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3417$as_echo "unsupported" >&6; } ;;
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003418 *)
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003419 CC="$CC $ac_cv_prog_cc_c89"
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3421$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003422esac
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003423if test "x$ac_cv_prog_cc_c89" != xno; then :
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003424
3425fi
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003426
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003427ac_ext=c
3428ac_cpp='$CPP $CPPFLAGS'
3429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432
3433
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3435$as_echo_n "checking for library containing strerror... " >&6; }
3436if test "${ac_cv_search_strerror+set}" = set; then :
3437 $as_echo_n "(cached) " >&6
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003438else
ae97a107 Alan Modra2004-09-16 14:52:12 +00003439 ac_func_search_save_LIBS=$LIBS
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003441/* end confdefs.h. */
3442
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003443/* Override any GCC internal prototype to avoid an error.
3444 Use char because int might match the return type of a GCC
3445 builtin and then its argument prototype would still apply. */
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003446#ifdef __cplusplus
3447extern "C"
3448#endif
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003449char strerror ();
3450int
3451main ()
3452{
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003453return strerror ();
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003454 ;
3455 return 0;
3456}
3457_ACEOF
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003458for ac_lib in '' cposix; do
3459 if test -z "$ac_lib"; then
3460 ac_res="none required"
3461 else
3462 ac_res=-l$ac_lib
ae97a107 Alan Modra2004-09-16 14:52:12 +00003463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003464 fi
3465 if ac_fn_c_try_link "$LINENO"; then :
3466 ac_cv_search_strerror=$ac_res
3467fi
3468rm -f core conftest.err conftest.$ac_objext \
3469 conftest$ac_exeext
3470 if test "${ac_cv_search_strerror+set}" = set; then :
3471 break
3472fi
3473done
3474if test "${ac_cv_search_strerror+set}" = set; then :
ae97a107 Alan Modra2004-09-16 14:52:12 +00003475
ae97a107 Alan Modra2004-09-16 14:52:12 +00003476else
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003477 ac_cv_search_strerror=no
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003478fi
68178d93 Ralf Wildenhues2009-08-22 16:56:48 +00003479rm conftest.$ac_ext
ae97a107
AM
Alan Modra2004-09-16 14:52:12 +00003480LIBS=$ac_func_search_save_LIBS
3481fi
68178d93
RW
Ralf Wildenhues2009-08-22 16:56:48 +00003482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3483$as_echo "$ac_cv_search_strerror" >&6; }
3484ac_res=$ac_cv_search_strerror
3485if test "$ac_res" != no; then :
3486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00003487
ae97a107 Alan Modra2004-09-16 14:52:12 +00003488fi
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00003489
3490