]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/configure
sim: igen: merge build into top level
[thirdparty/binutils-gdb.git] / sim / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
6bddc3e8
MF
3# Generated by GNU Autoconf 2.69 for sim 0.
4#
5# Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
d0ac1c44
SM
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 9#
c906108c
SS
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
b7026657 16
81ecdfbb
RW
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
20 emulate sh
21 NULLCMD=:
81ecdfbb 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
b7026657 33fi
b7026657 34
81ecdfbb
RW
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
b7026657 52else
81ecdfbb
RW
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
b7026657
AC
81fi
82
83
81ecdfbb
RW
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 92as_myself=
81ecdfbb
RW
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
b7026657
AC
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
81ecdfbb
RW
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
d0ac1c44
SM
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
d0ac1c44
SM
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
81ecdfbb
RW
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
c2783492
MF
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 213do
81ecdfbb
RW
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
81ecdfbb
RW
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 268 else
6bddc3e8
MF
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
b7026657 275 fi
81ecdfbb
RW
276 exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294 { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303 return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311 set +e
312 as_fn_set_status $1
313 exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
360
361
362} # as_fn_mkdir_p
d0ac1c44
SM
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369 test -f "$1" && test -x "$1"
370} # as_fn_executable_p
81ecdfbb
RW
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404fi # as_fn_arith
405
406
d0ac1c44
SM
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
81ecdfbb
RW
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 411# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
412as_fn_error ()
413{
d0ac1c44
SM
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 418 fi
d0ac1c44 419 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
420 as_fn_exit $as_status
421} # as_fn_error
b7026657 422
81ecdfbb
RW
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
425 as_expr=expr
426else
427 as_expr=false
428fi
429
81ecdfbb 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
431 as_basename=basename
432else
433 as_basename=false
434fi
435
81ecdfbb
RW
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438else
439 as_dirname=false
440fi
b7026657 441
81ecdfbb 442as_me=`$as_basename -- "$0" ||
b7026657
AC
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
b7026657 460
fdd6fa61
AG
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
df1756f4 467
b7026657 468
81ecdfbb
RW
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
b7026657 478 sed '
81ecdfbb
RW
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
b7026657 483 N
81ecdfbb
RW
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 486 t loop
81ecdfbb 487 s/-\n.*//
b7026657 488 ' >$as_me.lineno &&
81ecdfbb
RW
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657 491
d0ac1c44
SM
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
b7026657
AC
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
b7026657
AC
500 # Exit status is that of the last command.
501 exit
502}
503
81ecdfbb
RW
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513*)
514 ECHO_N='-n';;
b7026657
AC
515esac
516
81ecdfbb
RW
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
b7026657 520else
81ecdfbb
RW
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
b7026657 523fi
81ecdfbb
RW
524if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 526 as_ln_s='ln -s'
81ecdfbb
RW
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 530 # In both cases, we have to default to `cp -pR'.
81ecdfbb 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 532 as_ln_s='cp -pR'
81ecdfbb
RW
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
d0ac1c44 536 as_ln_s='cp -pR'
fdd6fa61 537 fi
b7026657 538else
d0ac1c44 539 as_ln_s='cp -pR'
b7026657 540fi
81ecdfbb
RW
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
b7026657
AC
543
544if mkdir -p . 2>/dev/null; then
81ecdfbb 545 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
546else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549fi
c906108c 550
d0ac1c44
SM
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
b7026657
AC
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
d0ac1c44
SM
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
b7026657
AC
563
564# Name of the host.
d0ac1c44 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
b7026657
AC
569#
570# Initializations.
571#
c906108c 572ac_default_prefix=/usr/local
81ecdfbb 573ac_clean_files=
b7026657 574ac_config_libobj_dir=.
81ecdfbb 575LIBOBJS=
b7026657
AC
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
fdd6fa61 580
b7026657 581# Identity of this package.
6bddc3e8
MF
582PACKAGE_NAME='sim'
583PACKAGE_TARNAME='sim'
584PACKAGE_VERSION='0'
585PACKAGE_STRING='sim 0'
586PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
587PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
588
c2783492
MF
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603# include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608# include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
81ecdfbb 625enable_option_checking=no
6bddc3e8
MF
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
81ecdfbb 629LIBOBJS
b6b1c790
MF
630SIM_ENABLE_IGEN_FALSE
631SIM_ENABLE_IGEN_TRUE
81ecdfbb 632subdirs
c2783492
MF
633AM_BACKSLASH
634AM_DEFAULT_VERBOSITY
635AM_DEFAULT_V
636AM_V
6bddc3e8
MF
637am__fastdepCC_FALSE
638am__fastdepCC_TRUE
639CCDEPMODE
640am__nodep
641AMDEPBACKSLASH
642AMDEP_FALSE
643AMDEP_TRUE
644am__quote
645am__include
646DEPDIR
6bddc3e8
MF
647am__untar
648am__tar
649AMTAR
650am__leading_dot
651SET_MAKE
652AWK
653mkdir_p
654MKDIR_P
655INSTALL_STRIP_PROGRAM
656STRIP
657install_sh
658MAKEINFO
659AUTOHEADER
660AUTOMAKE
661AUTOCONF
662ACLOCAL
663VERSION
664PACKAGE
665CYGPATH_W
666am__isrc
8c379db2
TT
667MAINT
668MAINTAINER_MODE_FALSE
669MAINTAINER_MODE_TRUE
c2783492
MF
670C_DIALECT
671RANLIB
672AR
673LDFLAGS_FOR_BUILD
674CFLAGS_FOR_BUILD
675CC_FOR_BUILD
676INSTALL_DATA
677INSTALL_SCRIPT
678INSTALL_PROGRAM
679EGREP
680GREP
681CPP
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
81ecdfbb
RW
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697build_os
698build_vendor
699build_cpu
700build
81ecdfbb
RW
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
b7026657 739ac_subst_files=''
81ecdfbb
RW
740ac_user_opts='
741enable_option_checking
8c379db2 742enable_maintainer_mode
6bddc3e8 743enable_dependency_tracking
c2783492 744enable_silent_rules
81ecdfbb
RW
745enable_sim
746'
747 ac_precious_vars='build_alias
748host_alias
749target_alias
750CC
751CFLAGS
752LDFLAGS
753LIBS
5e25901f
MF
754CPPFLAGS
755CPP'
2e8cf49e
NC
756ac_subdirs_all='aarch64
757arm
81ecdfbb 758avr
ef016f83 759bfin
b26e2ae7 760bpf
81ecdfbb
RW
761cr16
762cris
763d10v
764frv
765h8300
766iq2000
767lm32
768m32c
769m32r
770m68hc11
771mcore
bd30e45a 772microblaze
81ecdfbb
RW
773mips
774mn10300
775moxie
3346cfda 776msp430
37f980dc 777or1k
ddd44b70 778pru
b9249c46 779riscv
87326c78 780rl78
4f8d4a38 781rx
81ecdfbb
RW
782sh
783erc32
784ppc
f46e4eb7 785ft32
b6b1c790 786v850'
c906108c
SS
787
788# Initialize some variables set by options.
b7026657
AC
789ac_init_help=
790ac_init_version=false
81ecdfbb
RW
791ac_unrecognized_opts=
792ac_unrecognized_sep=
c906108c
SS
793# The variables have the same names as the options, with
794# dashes changed to underlines.
b7026657 795cache_file=/dev/null
c906108c 796exec_prefix=NONE
c906108c 797no_create=
c906108c
SS
798no_recursion=
799prefix=NONE
800program_prefix=NONE
801program_suffix=NONE
802program_transform_name=s,x,x,
803silent=
804site=
805srcdir=
c906108c
SS
806verbose=
807x_includes=NONE
808x_libraries=NONE
b7026657
AC
809
810# Installation directory options.
811# These are left unexpanded so users can "make install exec_prefix=/foo"
812# and all the variables that are supposed to be based on exec_prefix
813# by default will actually change.
814# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 815# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
816bindir='${exec_prefix}/bin'
817sbindir='${exec_prefix}/sbin'
818libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
819datarootdir='${prefix}/share'
820datadir='${datarootdir}'
c906108c
SS
821sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var'
c906108c
SS
824includedir='${prefix}/include'
825oldincludedir='/usr/include'
6bddc3e8 826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
c906108c 835
c906108c 836ac_prev=
81ecdfbb 837ac_dashdash=
c906108c
SS
838for ac_option
839do
c906108c
SS
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
81ecdfbb 842 eval $ac_prev=\$ac_option
c906108c
SS
843 ac_prev=
844 continue
845 fi
846
81ecdfbb 847 case $ac_option in
d0ac1c44
SM
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *=) ac_optarg= ;;
850 *) ac_optarg=yes ;;
81ecdfbb 851 esac
c906108c
SS
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
81ecdfbb
RW
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
c906108c
SS
858
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 862 bindir=$ac_optarg ;;
c906108c
SS
863
864 -build | --build | --buil | --bui | --bu)
b7026657 865 ac_prev=build_alias ;;
c906108c 866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 867 build_alias=$ac_optarg ;;
c906108c
SS
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
c906108c 878
81ecdfbb 879 -datadir | --datadir | --datadi | --datad)
c906108c 880 ac_prev=datadir ;;
81ecdfbb 881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 882 datadir=$ac_optarg ;;
c906108c 883
81ecdfbb
RW
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
c906108c 891 -disable-* | --disable-*)
81ecdfbb 892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 893 # Reject names that are not valid shell variable names.
81ecdfbb 894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 895 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
c906108c
SS
916
917 -enable-* | --enable-*)
81ecdfbb 918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 919 # Reject names that are not valid shell variable names.
81ecdfbb 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 921 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926"enable_$ac_useropt"
927"*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
fdd6fa61 930 esac
81ecdfbb 931 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
b7026657 940 exec_prefix=$ac_optarg ;;
c906108c
SS
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
b7026657
AC
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
c906108c
SS
952
953 -host | --host | --hos | --ho)
b7026657 954 ac_prev=host_alias ;;
c906108c 955 -host=* | --host=* | --hos=* | --ho=*)
b7026657 956 host_alias=$ac_optarg ;;
c906108c 957
81ecdfbb
RW
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
c906108c
SS
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 969 includedir=$ac_optarg ;;
c906108c
SS
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 974 infodir=$ac_optarg ;;
c906108c
SS
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 979 libdir=$ac_optarg ;;
c906108c
SS
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
b7026657 986 libexecdir=$ac_optarg ;;
c906108c 987
81ecdfbb
RW
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
c906108c 993 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 994 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 998 localstatedir=$ac_optarg ;;
c906108c
SS
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1003 mandir=$ac_optarg ;;
c906108c
SS
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1010 | --no-cr | --no-c | -n)
c906108c
SS
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1024 oldincludedir=$ac_optarg ;;
c906108c
SS
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1029 prefix=$ac_optarg ;;
c906108c
SS
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1036 program_prefix=$ac_optarg ;;
c906108c
SS
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1043 program_suffix=$ac_optarg ;;
c906108c
SS
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1060 program_transform_name=$ac_optarg ;;
c906108c 1061
81ecdfbb
RW
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
c906108c
SS
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
b7026657 1080 sbindir=$ac_optarg ;;
c906108c
SS
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
b7026657 1091 sharedstatedir=$ac_optarg ;;
c906108c
SS
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
b7026657 1096 site=$ac_optarg ;;
0fda6bd2 1097
c906108c
SS
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1101 srcdir=$ac_optarg ;;
c906108c
SS
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1108 sysconfdir=$ac_optarg ;;
c906108c
SS
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1111 ac_prev=target_alias ;;
c906108c 1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1113 target_alias=$ac_optarg ;;
c906108c
SS
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
b7026657
AC
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
c906108c
SS
1120
1121 -with-* | --with-*)
81ecdfbb 1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1123 # Reject names that are not valid shell variable names.
81ecdfbb 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1125 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130"with_$ac_useropt"
1131"*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
fdd6fa61 1134 esac
81ecdfbb 1135 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1136
1137 -without-* | --without-*)
81ecdfbb 1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1139 # Reject names that are not valid shell variable names.
81ecdfbb 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1141 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146"with_$ac_useropt"
1147"*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
c906108c
SS
1152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1162 x_includes=$ac_optarg ;;
c906108c
SS
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1169 x_libraries=$ac_optarg ;;
c906108c 1170
d0ac1c44
SM
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172Try \`$0 --help' for more information"
c906108c
SS
1173 ;;
1174
b7026657
AC
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1181 esac
1182 eval $ac_envvar=\$ac_optarg
b7026657
AC
1183 export $ac_envvar ;;
1184
c906108c 1185 *)
b7026657 1186 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
b7026657 1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1198 as_fn_error $? "missing argument to $ac_option"
c906108c 1199fi
c906108c 1200
81ecdfbb
RW
1201if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
d0ac1c44 1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
fdd6fa61 1206 esac
81ecdfbb 1207fi
fdd6fa61 1208
81ecdfbb
RW
1209# Check all directory arguments for consistency.
1210for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
c906108c 1214do
81ecdfbb
RW
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
b7026657 1223 case $ac_val in
81ecdfbb
RW
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1226 esac
d0ac1c44 1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1228done
1229
b7026657
AC
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
b7026657
AC
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244fi
c906108c 1245
b7026657
AC
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
c906108c 1250
c906108c 1251
81ecdfbb
RW
1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1255 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1257 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1258
1259
c906108c
SS
1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
81ecdfbb
RW
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
c906108c 1287 srcdir=$ac_confdir
81ecdfbb 1288 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1289 srcdir=..
1290 fi
1291else
1292 ac_srcdir_defaulted=no
1293fi
81ecdfbb
RW
1294if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
d0ac1c44 1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1301 pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
df1756f4
TG
1318
1319#
b7026657
AC
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
6bddc3e8 1326\`configure' configures sim 0 to adapt to many kinds of systems.
b7026657
AC
1327
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
d0ac1c44 1340 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
b7026657
AC
1346Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1348 [$ac_default_prefix]
b7026657 1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1350 [PREFIX]
b7026657
AC
1351
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine tuning of the installation directories:
81ecdfbb
RW
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
6bddc3e8 1374 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
81ecdfbb
RW
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1379_ACEOF
1380
1381 cat <<\_ACEOF
1382
1383Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
6bddc3e8
MF
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of sim 0:";;
1398 esac
b7026657
AC
1399 cat <<\_ACEOF
1400
1401Optional Features:
81ecdfbb 1402 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8c379db2
TT
1405 --enable-maintainer-mode
1406 enable make rules and dependencies not useful (and
1407 sometimes confusing) to the casual installer
6bddc3e8
MF
1408 --enable-dependency-tracking
1409 do not reject slow dependency extractors
1410 --disable-dependency-tracking
1411 speeds up one-time build
c2783492
MF
1412 --enable-silent-rules less verbose build output (undo: "make V=1")
1413 --disable-silent-rules verbose build output (undo: "make V=0")
8d0978fb 1414 --enable-sim Enable the GNU simulator
b7026657
AC
1415
1416Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
81ecdfbb 1421 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1423 you have headers in a nonstandard directory <include dir>
5e25901f 1424 CPP C preprocessor
b7026657
AC
1425
1426Use these variables to override the choices made by `configure' or to help
1427it to find libraries and programs with nonstandard names/locations.
1428
6bddc3e8
MF
1429Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1430sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
b7026657 1431_ACEOF
81ecdfbb 1432ac_status=$?
b7026657
AC
1433fi
1434
1435if test "$ac_init_help" = "recursive"; then
1436 # If there are subdirs, report their specific --help.
b7026657 1437 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1438 test -d "$ac_dir" ||
1439 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1440 continue
b7026657
AC
1441 ac_builddir=.
1442
81ecdfbb
RW
1443case "$ac_dir" in
1444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445*)
1446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1447 # A ".." for each directory in $ac_dir_suffix.
1448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1449 case $ac_top_builddir_sub in
1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1452 esac ;;
1453esac
1454ac_abs_top_builddir=$ac_pwd
1455ac_abs_builddir=$ac_pwd$ac_dir_suffix
1456# for backward compatibility:
1457ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1458
1459case $srcdir in
81ecdfbb 1460 .) # We are building in place.
b7026657 1461 ac_srcdir=.
81ecdfbb
RW
1462 ac_top_srcdir=$ac_top_builddir_sub
1463 ac_abs_top_srcdir=$ac_pwd ;;
1464 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1465 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1466 ac_top_srcdir=$srcdir
1467 ac_abs_top_srcdir=$srcdir ;;
1468 *) # Relative name.
1469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470 ac_top_srcdir=$ac_top_build_prefix$srcdir
1471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fdd6fa61 1472esac
81ecdfbb 1473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fdd6fa61 1474
81ecdfbb
RW
1475 cd "$ac_dir" || { ac_status=$?; continue; }
1476 # Check for guested configure.
1477 if test -f "$ac_srcdir/configure.gnu"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480 elif test -f "$ac_srcdir/configure"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure" --help=recursive
0fda6bd2 1483 else
81ecdfbb
RW
1484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1485 fi || ac_status=$?
1486 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1487 done
1488fi
1489
81ecdfbb 1490test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1491if $ac_init_version; then
1492 cat <<\_ACEOF
6bddc3e8 1493sim configure 0
d0ac1c44 1494generated by GNU Autoconf 2.69
b7026657 1495
d0ac1c44 1496Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1497This configure script is free software; the Free Software Foundation
1498gives unlimited permission to copy, distribute and modify it.
1499_ACEOF
81ecdfbb 1500 exit
b7026657 1501fi
81ecdfbb
RW
1502
1503## ------------------------ ##
1504## Autoconf initialization. ##
1505## ------------------------ ##
1506
1507# ac_fn_c_try_compile LINENO
1508# --------------------------
1509# Try to compile conftest.$ac_ext, and return whether this succeeded.
1510ac_fn_c_try_compile ()
1511{
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 rm -f conftest.$ac_objext
1514 if { { ac_try="$ac_compile"
1515case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518esac
1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520$as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_compile") 2>conftest.err
1522 ac_status=$?
1523 if test -s conftest.err; then
1524 grep -v '^ *+' conftest.err >conftest.er1
1525 cat conftest.er1 >&5
1526 mv -f conftest.er1 conftest.err
1527 fi
1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529 test $ac_status = 0; } && {
1530 test -z "$ac_c_werror_flag" ||
1531 test ! -s conftest.err
1532 } && test -s conftest.$ac_objext; then :
1533 ac_retval=0
1534else
1535 $as_echo "$as_me: failed program was:" >&5
1536sed 's/^/| /' conftest.$ac_ext >&5
1537
1538 ac_retval=1
1539fi
d0ac1c44
SM
1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541 as_fn_set_status $ac_retval
81ecdfbb
RW
1542
1543} # ac_fn_c_try_compile
5e25901f
MF
1544
1545# ac_fn_c_try_cpp LINENO
1546# ----------------------
1547# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1548ac_fn_c_try_cpp ()
1549{
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if { { ac_try="$ac_cpp conftest.$ac_ext"
1552case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } > conftest.i && {
1567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 }; then :
1570 ac_retval=0
1571else
1572 $as_echo "$as_me: failed program was:" >&5
1573sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1
1576fi
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1579
1580} # ac_fn_c_try_cpp
c2783492
MF
1581
1582# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1583# -------------------------------------------------------
1584# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1585# the include files in INCLUDES and setting the cache variable VAR
1586# accordingly.
1587ac_fn_c_check_header_mongrel ()
1588{
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 if eval \${$3+:} false; then :
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592$as_echo_n "checking for $2... " >&6; }
1593if eval \${$3+:} false; then :
1594 $as_echo_n "(cached) " >&6
1595fi
1596eval ac_res=\$$3
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1598$as_echo "$ac_res" >&6; }
1599else
1600 # Is the header compilable?
1601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1602$as_echo_n "checking $2 usability... " >&6; }
1603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604/* end confdefs.h. */
1605$4
1606#include <$2>
1607_ACEOF
1608if ac_fn_c_try_compile "$LINENO"; then :
1609 ac_header_compiler=yes
1610else
1611 ac_header_compiler=no
1612fi
1613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1615$as_echo "$ac_header_compiler" >&6; }
1616
1617# Is the header present?
1618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1619$as_echo_n "checking $2 presence... " >&6; }
1620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621/* end confdefs.h. */
1622#include <$2>
1623_ACEOF
1624if ac_fn_c_try_cpp "$LINENO"; then :
1625 ac_header_preproc=yes
1626else
1627 ac_header_preproc=no
1628fi
1629rm -f conftest.err conftest.i conftest.$ac_ext
1630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1631$as_echo "$ac_header_preproc" >&6; }
1632
1633# So? What about this header?
1634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1635 yes:no: )
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1637$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1639$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1640 ;;
1641 no:yes:* )
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1643$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1645$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1647$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1649$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1651$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1652( $as_echo "## -------------------------------------------------------------------------------------- ##
1653## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1654## -------------------------------------------------------------------------------------- ##"
1655 ) | sed "s/^/$as_me: WARNING: /" >&2
1656 ;;
1657esac
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659$as_echo_n "checking for $2... " >&6; }
1660if eval \${$3+:} false; then :
1661 $as_echo_n "(cached) " >&6
1662else
1663 eval "$3=\$ac_header_compiler"
1664fi
1665eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668fi
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671} # ac_fn_c_check_header_mongrel
1672
1673# ac_fn_c_try_run LINENO
1674# ----------------------
1675# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676# that executables *can* be run.
1677ac_fn_c_try_run ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=$ac_status
1708fi
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_run
1714
1715# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716# -------------------------------------------------------
1717# Tests whether HEADER exists and can be compiled using the include files in
1718# INCLUDES, setting the cache variable VAR accordingly.
1719ac_fn_c_check_header_compile ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h. */
1729$4
1730#include <$2>
1731_ACEOF
1732if ac_fn_c_try_compile "$LINENO"; then :
1733 eval "$3=yes"
1734else
1735 eval "$3=no"
1736fi
1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738fi
1739eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744} # ac_fn_c_check_header_compile
81ecdfbb 1745cat >config.log <<_ACEOF
b7026657
AC
1746This file contains any messages produced by compilers while
1747running configure, to aid debugging if configure makes a mistake.
1748
6bddc3e8 1749It was created by sim $as_me 0, which was
d0ac1c44 1750generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
1751
1752 $ $0 $@
1753
1754_ACEOF
81ecdfbb 1755exec 5>>config.log
b7026657
AC
1756{
1757cat <<_ASUNAME
1758## --------- ##
1759## Platform. ##
1760## --------- ##
1761
1762hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766uname -v = `(uname -v) 2>/dev/null || echo unknown`
1767
1768/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1770
1771/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1772/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1773/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1774/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b7026657
AC
1775/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1776/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1777/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1778
1779_ASUNAME
1780
1781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782for as_dir in $PATH
1783do
1784 IFS=$as_save_IFS
1785 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1786 $as_echo "PATH: $as_dir"
1787 done
1788IFS=$as_save_IFS
b7026657
AC
1789
1790} >&5
1791
1792cat >&5 <<_ACEOF
1793
1794
1795## ----------- ##
1796## Core tests. ##
1797## ----------- ##
1798
1799_ACEOF
1800
1801
1802# Keep a trace of the command line.
1803# Strip out --no-create and --no-recursion so they do not pile up.
1804# Strip out --silent because we don't want to record it for future runs.
1805# Also quote any args containing shell meta-characters.
1806# Make two passes to allow for proper duplicate-argument suppression.
1807ac_configure_args=
1808ac_configure_args0=
1809ac_configure_args1=
b7026657
AC
1810ac_must_keep_next=false
1811for ac_pass in 1 2
1812do
1813 for ac_arg
1814 do
1815 case $ac_arg in
1816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1818 | -silent | --silent | --silen | --sile | --sil)
1819 continue ;;
81ecdfbb
RW
1820 *\'*)
1821 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1822 esac
1823 case $ac_pass in
81ecdfbb 1824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 1825 2)
81ecdfbb 1826 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
1827 if test $ac_must_keep_next = true; then
1828 ac_must_keep_next=false # Got value, back to normal.
1829 else
1830 case $ac_arg in
1831 *=* | --config-cache | -C | -disable-* | --disable-* \
1832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1834 | -with-* | --with-* | -without-* | --without-* | --x)
1835 case "$ac_configure_args0 " in
1836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1837 esac
1838 ;;
1839 -* ) ac_must_keep_next=true ;;
1840 esac
1841 fi
81ecdfbb 1842 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
1843 ;;
1844 esac
1845 done
1846done
81ecdfbb
RW
1847{ ac_configure_args0=; unset ac_configure_args0;}
1848{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
1849
1850# When interrupted or exit'd, cleanup temporary files, and complete
1851# config.log. We remove comments because anyway the quotes in there
1852# would cause problems or look ugly.
81ecdfbb
RW
1853# WARNING: Use '\'' to represent an apostrophe within the trap.
1854# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
1855trap 'exit_status=$?
1856 # Save into config.log some information that might help in debugging.
1857 {
1858 echo
1859
d0ac1c44 1860 $as_echo "## ---------------- ##
b7026657 1861## Cache variables. ##
d0ac1c44 1862## ---------------- ##"
b7026657
AC
1863 echo
1864 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1865(
1866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867 eval ac_val=\$$ac_var
1868 case $ac_val in #(
1869 *${as_nl}*)
1870 case $ac_var in #(
1871 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1872$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873 esac
1874 case $ac_var in #(
1875 _ | IFS | as_nl) ;; #(
1876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877 *) { eval $ac_var=; unset $ac_var;} ;;
1878 esac ;;
1879 esac
1880 done
b7026657 1881 (set) 2>&1 |
81ecdfbb
RW
1882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883 *${as_nl}ac_space=\ *)
b7026657 1884 sed -n \
81ecdfbb
RW
1885 "s/'\''/'\''\\\\'\'''\''/g;
1886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887 ;; #(
b7026657 1888 *)
81ecdfbb 1889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 1890 ;;
81ecdfbb
RW
1891 esac |
1892 sort
1893)
b7026657
AC
1894 echo
1895
d0ac1c44 1896 $as_echo "## ----------------- ##
b7026657 1897## Output variables. ##
d0ac1c44 1898## ----------------- ##"
b7026657
AC
1899 echo
1900 for ac_var in $ac_subst_vars
1901 do
81ecdfbb
RW
1902 eval ac_val=\$$ac_var
1903 case $ac_val in
1904 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 esac
1906 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1907 done | sort
1908 echo
1909
1910 if test -n "$ac_subst_files"; then
d0ac1c44 1911 $as_echo "## ------------------- ##
81ecdfbb 1912## File substitutions. ##
d0ac1c44 1913## ------------------- ##"
b7026657
AC
1914 echo
1915 for ac_var in $ac_subst_files
1916 do
81ecdfbb
RW
1917 eval ac_val=\$$ac_var
1918 case $ac_val in
1919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 esac
1921 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1922 done | sort
1923 echo
1924 fi
1925
1926 if test -s confdefs.h; then
d0ac1c44 1927 $as_echo "## ----------- ##
b7026657 1928## confdefs.h. ##
d0ac1c44 1929## ----------- ##"
b7026657 1930 echo
81ecdfbb 1931 cat confdefs.h
b7026657 1932 echo
0fda6bd2 1933 fi
b7026657 1934 test "$ac_signal" != 0 &&
81ecdfbb
RW
1935 $as_echo "$as_me: caught signal $ac_signal"
1936 $as_echo "$as_me: exit $exit_status"
b7026657 1937 } >&5
81ecdfbb
RW
1938 rm -f core *.core core.conftest.* &&
1939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 1940 exit $exit_status
81ecdfbb 1941' 0
b7026657 1942for ac_signal in 1 2 13 15; do
81ecdfbb 1943 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
1944done
1945ac_signal=0
1946
1947# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1948rm -f -r conftest* confdefs.h
1949
1950$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
1951
1952# Predefined preprocessor variables.
1953
1954cat >>confdefs.h <<_ACEOF
1955#define PACKAGE_NAME "$PACKAGE_NAME"
1956_ACEOF
1957
b7026657
AC
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1960_ACEOF
1961
b7026657
AC
1962cat >>confdefs.h <<_ACEOF
1963#define PACKAGE_VERSION "$PACKAGE_VERSION"
1964_ACEOF
1965
b7026657
AC
1966cat >>confdefs.h <<_ACEOF
1967#define PACKAGE_STRING "$PACKAGE_STRING"
1968_ACEOF
1969
b7026657
AC
1970cat >>confdefs.h <<_ACEOF
1971#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1972_ACEOF
1973
81ecdfbb
RW
1974cat >>confdefs.h <<_ACEOF
1975#define PACKAGE_URL "$PACKAGE_URL"
1976_ACEOF
1977
b7026657
AC
1978
1979# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1980# Prefer an explicitly selected file to automatically selected ones.
1981ac_site_file1=NONE
1982ac_site_file2=NONE
1983if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
1984 # We do not want a PATH search for config.site.
1985 case $CONFIG_SITE in #((
1986 -*) ac_site_file1=./$CONFIG_SITE;;
1987 */*) ac_site_file1=$CONFIG_SITE;;
1988 *) ac_site_file1=./$CONFIG_SITE;;
1989 esac
81ecdfbb
RW
1990elif test "x$prefix" != xNONE; then
1991 ac_site_file1=$prefix/share/config.site
1992 ac_site_file2=$prefix/etc/config.site
1993else
1994 ac_site_file1=$ac_default_prefix/share/config.site
1995 ac_site_file2=$ac_default_prefix/etc/config.site
c906108c 1996fi
81ecdfbb
RW
1997for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1998do
1999 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2000 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2002$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2003 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2004 . "$ac_site_file" \
2005 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2007as_fn_error $? "failed to load site script $ac_site_file
2008See \`config.log' for more details" "$LINENO" 5; }
c906108c
SS
2009 fi
2010done
2011
2012if test -r "$cache_file"; then
d0ac1c44
SM
2013 # Some versions of bash will fail to source /dev/null (special files
2014 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2015 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2017$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2018 case $cache_file in
81ecdfbb
RW
2019 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2020 *) . "./$cache_file";;
b7026657
AC
2021 esac
2022 fi
c906108c 2023else
81ecdfbb
RW
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2025$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657 2026 >$cache_file
c906108c
SS
2027fi
2028
b7026657
AC
2029# Check that the precious variables saved in the cache have kept the same
2030# value.
2031ac_cache_corrupted=false
81ecdfbb 2032for ac_var in $ac_precious_vars; do
b7026657
AC
2033 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2034 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2035 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2036 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2037 case $ac_old_set,$ac_new_set in
2038 set,)
81ecdfbb
RW
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2040$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2041 ac_cache_corrupted=: ;;
2042 ,set)
81ecdfbb
RW
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2044$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2045 ac_cache_corrupted=: ;;
2046 ,);;
2047 *)
2048 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2049 # differences in whitespace do not lead to failure.
2050 ac_old_val_w=`echo x $ac_old_val`
2051 ac_new_val_w=`echo x $ac_new_val`
2052 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2054$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2055 ac_cache_corrupted=:
2056 else
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2058$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2059 eval $ac_var=\$ac_old_val
2060 fi
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2062$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2064$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2065 fi;;
2066 esac
2067 # Pass precious variables to config.status.
2068 if test "$ac_new_set" = set; then
2069 case $ac_new_val in
81ecdfbb 2070 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2071 *) ac_arg=$ac_var=$ac_new_val ;;
2072 esac
2073 case " $ac_configure_args " in
2074 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2075 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657 2076 esac
c906108c 2077 fi
b7026657
AC
2078done
2079if $ac_cache_corrupted; then
81ecdfbb
RW
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2083$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2084 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 2085fi
81ecdfbb
RW
2086## -------------------- ##
2087## Main body of script. ##
2088## -------------------- ##
c906108c 2089
fdd6fa61
AG
2090ac_ext=c
2091ac_cpp='$CPP $CPPFLAGS'
2092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
c906108c
SS
2096
2097
8c379db2
TT
2098
2099
2100
6bddc3e8
MF
2101ac_aux_dir=
2102for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2103 if test -f "$ac_dir/install-sh"; then
2104 ac_aux_dir=$ac_dir
2105 ac_install_sh="$ac_aux_dir/install-sh -c"
2106 break
2107 elif test -f "$ac_dir/install.sh"; then
2108 ac_aux_dir=$ac_dir
2109 ac_install_sh="$ac_aux_dir/install.sh -c"
2110 break
2111 elif test -f "$ac_dir/shtool"; then
2112 ac_aux_dir=$ac_dir
2113 ac_install_sh="$ac_aux_dir/shtool install -c"
2114 break
b7026657
AC
2115 fi
2116done
6bddc3e8
MF
2117if test -z "$ac_aux_dir"; then
2118 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
c906108c
SS
2119fi
2120
6bddc3e8
MF
2121# These three variables are undocumented and unsupported,
2122# and are intended to be withdrawn in a future Autoconf release.
2123# They can cause serious problems if a builder's source tree is in a directory
2124# whose full name contains unusual characters.
2125ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2126ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2127ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
81ecdfbb 2128
6bddc3e8
MF
2129
2130# Make sure we can run config.sub.
2131$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2132 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2133
2134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2135$as_echo_n "checking build system type... " >&6; }
2136if ${ac_cv_build+:} false; then :
81ecdfbb 2137 $as_echo_n "(cached) " >&6
c906108c 2138else
6bddc3e8
MF
2139 ac_build_alias=$build_alias
2140test "x$ac_build_alias" = x &&
2141 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2142test "x$ac_build_alias" = x &&
2143 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2144ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b7026657
AC
2146
2147fi
6bddc3e8
MF
2148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2149$as_echo "$ac_cv_build" >&6; }
2150case $ac_cv_build in
2151*-*-*) ;;
2152*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2153esac
6bddc3e8
MF
2154build=$ac_cv_build
2155ac_save_IFS=$IFS; IFS='-'
2156set x $ac_cv_build
2157shift
2158build_cpu=$1
2159build_vendor=$2
2160shift; shift
2161# Remember, the first character of IFS is used to create $*,
2162# except with old shells:
2163build_os=$*
2164IFS=$ac_save_IFS
2165case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657 2166
6bddc3e8
MF
2167
2168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2169$as_echo_n "checking host system type... " >&6; }
2170if ${ac_cv_host+:} false; then :
81ecdfbb 2171 $as_echo_n "(cached) " >&6
b7026657 2172else
6bddc3e8
MF
2173 if test "x$host_alias" = x; then
2174 ac_cv_host=$ac_cv_build
b7026657 2175else
6bddc3e8
MF
2176 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2177 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b7026657 2178fi
6bddc3e8 2179
fdd6fa61 2180fi
6bddc3e8
MF
2181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2182$as_echo "$ac_cv_host" >&6; }
2183case $ac_cv_host in
2184*-*-*) ;;
2185*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2186esac
2187host=$ac_cv_host
2188ac_save_IFS=$IFS; IFS='-'
2189set x $ac_cv_host
2190shift
2191host_cpu=$1
2192host_vendor=$2
2193shift; shift
2194# Remember, the first character of IFS is used to create $*,
2195# except with old shells:
2196host_os=$*
2197IFS=$ac_save_IFS
2198case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
fdd6fa61 2199
fdd6fa61 2200
6bddc3e8
MF
2201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2202$as_echo_n "checking target system type... " >&6; }
2203if ${ac_cv_target+:} false; then :
81ecdfbb 2204 $as_echo_n "(cached) " >&6
b7026657 2205else
6bddc3e8
MF
2206 if test "x$target_alias" = x; then
2207 ac_cv_target=$ac_cv_host
c906108c 2208else
6bddc3e8
MF
2209 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2210 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2211fi
2212
2213fi
2214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2215$as_echo "$ac_cv_target" >&6; }
2216case $ac_cv_target in
2217*-*-*) ;;
2218*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2219esac
2220target=$ac_cv_target
2221ac_save_IFS=$IFS; IFS='-'
2222set x $ac_cv_target
2223shift
2224target_cpu=$1
2225target_vendor=$2
2226shift; shift
2227# Remember, the first character of IFS is used to create $*,
2228# except with old shells:
2229target_os=$*
2230IFS=$ac_save_IFS
2231case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2232
2233
2234# The aliases save the names the user supplied, while $host etc.
2235# will get canonicalized.
2236test -n "$target_alias" &&
2237 test "$program_prefix$program_suffix$program_transform_name" = \
2238 NONENONEs,x,x, &&
2239 program_prefix=${target_alias}-
c2783492
MF
2240# Expand $ac_aux_dir to an absolute path.
2241am_aux_dir=`cd "$ac_aux_dir" && pwd`
6bddc3e8 2242
c2783492
MF
2243ac_ext=c
2244ac_cpp='$CPP $CPPFLAGS'
2245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2247ac_compiler_gnu=$ac_cv_c_compiler_gnu
2248if test -n "$ac_tool_prefix"; then
2249 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2250set dummy ${ac_tool_prefix}gcc; ac_word=$2
2251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2252$as_echo_n "checking for $ac_word... " >&6; }
2253if ${ac_cv_prog_CC+:} false; then :
2254 $as_echo_n "(cached) " >&6
8c379db2 2255else
c2783492
MF
2256 if test -n "$CC"; then
2257 ac_cv_prog_CC="$CC" # Let the user override the test.
2258else
2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 break 2
2269 fi
2270done
2271 done
2272IFS=$as_save_IFS
8c379db2 2273
c2783492
MF
2274fi
2275fi
2276CC=$ac_cv_prog_CC
2277if test -n "$CC"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2279$as_echo "$CC" >&6; }
8c379db2 2280else
c2783492
MF
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2282$as_echo "no" >&6; }
8c379db2
TT
2283fi
2284
6bddc3e8 2285
c2783492
MF
2286fi
2287if test -z "$ac_cv_prog_CC"; then
2288 ac_ct_CC=$CC
2289 # Extract the first word of "gcc", so it can be a program name with args.
2290set dummy gcc; ac_word=$2
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2292$as_echo_n "checking for $ac_word... " >&6; }
2293if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
2294 $as_echo_n "(cached) " >&6
2295else
c2783492
MF
2296 if test -n "$ac_ct_CC"; then
2297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2298else
2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bddc3e8
MF
2300for as_dir in $PATH
2301do
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
c2783492
MF
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306 ac_cv_prog_ac_ct_CC="gcc"
2307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 break 2
2309 fi
2310done
6bddc3e8
MF
2311 done
2312IFS=$as_save_IFS
2313
6bddc3e8 2314fi
6bddc3e8 2315fi
c2783492
MF
2316ac_ct_CC=$ac_cv_prog_ac_ct_CC
2317if test -n "$ac_ct_CC"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2319$as_echo "$ac_ct_CC" >&6; }
6bddc3e8 2320else
c2783492
MF
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2322$as_echo "no" >&6; }
6bddc3e8
MF
2323fi
2324
c2783492
MF
2325 if test "x$ac_ct_CC" = x; then
2326 CC=""
2327 else
2328 case $cross_compiling:$ac_tool_warned in
2329yes:)
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2332ac_tool_warned=yes ;;
2333esac
2334 CC=$ac_ct_CC
2335 fi
6bddc3e8 2336else
c2783492 2337 CC="$ac_cv_prog_CC"
6bddc3e8
MF
2338fi
2339
c2783492
MF
2340if test -z "$CC"; then
2341 if test -n "$ac_tool_prefix"; then
2342 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2343set dummy ${ac_tool_prefix}cc; ac_word=$2
6bddc3e8
MF
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2345$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2346if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2347 $as_echo_n "(cached) " >&6
2348else
c2783492
MF
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8
MF
2351else
2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 2359 ac_cv_prog_CC="${ac_tool_prefix}cc"
6bddc3e8
MF
2360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 break 2
2362 fi
2363done
2364 done
2365IFS=$as_save_IFS
2366
2367fi
2368fi
c2783492
MF
2369CC=$ac_cv_prog_CC
2370if test -n "$CC"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2372$as_echo "$CC" >&6; }
6bddc3e8
MF
2373else
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2375$as_echo "no" >&6; }
2376fi
2377
2378
c2783492 2379 fi
6bddc3e8 2380fi
c2783492
MF
2381if test -z "$CC"; then
2382 # Extract the first word of "cc", so it can be a program name with args.
2383set dummy cc; ac_word=$2
6bddc3e8
MF
2384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2385$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2386if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2387 $as_echo_n "(cached) " >&6
2388else
c2783492
MF
2389 if test -n "$CC"; then
2390 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8 2391else
c2783492 2392 ac_prog_rejected=no
6bddc3e8
MF
2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394for as_dir in $PATH
2395do
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492
MF
2400 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2401 ac_prog_rejected=yes
2402 continue
2403 fi
2404 ac_cv_prog_CC="cc"
6bddc3e8
MF
2405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
2407 fi
2408done
2409 done
2410IFS=$as_save_IFS
2411
c2783492
MF
2412if test $ac_prog_rejected = yes; then
2413 # We found a bogon in the path, so make sure we never use it.
2414 set dummy $ac_cv_prog_CC
2415 shift
2416 if test $# != 0; then
2417 # We chose a different compiler from the bogus one.
2418 # However, it has the same basename, so the bogon will be chosen
2419 # first if we set CC to just the basename; use the full file name.
2420 shift
2421 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2422 fi
6bddc3e8
MF
2423fi
2424fi
c2783492
MF
2425fi
2426CC=$ac_cv_prog_CC
2427if test -n "$CC"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2429$as_echo "$CC" >&6; }
6bddc3e8
MF
2430else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432$as_echo "no" >&6; }
2433fi
2434
6bddc3e8
MF
2435
2436fi
c2783492
MF
2437if test -z "$CC"; then
2438 if test -n "$ac_tool_prefix"; then
2439 for ac_prog in cl.exe
2440 do
2441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2442set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444$as_echo_n "checking for $ac_word... " >&6; }
2445if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2446 $as_echo_n "(cached) " >&6
2447else
c2783492
MF
2448 if test -n "$CC"; then
2449 ac_cv_prog_CC="$CC" # Let the user override the test.
2450else
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
6bddc3e8
MF
2453do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
c2783492
MF
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2461 fi
2462done
6bddc3e8
MF
2463 done
2464IFS=$as_save_IFS
2465
2466fi
6bddc3e8 2467fi
c2783492
MF
2468CC=$ac_cv_prog_CC
2469if test -n "$CC"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2471$as_echo "$CC" >&6; }
2472else
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474$as_echo "no" >&6; }
2475fi
6bddc3e8 2476
c2783492
MF
2477
2478 test -n "$CC" && break
2479 done
2480fi
2481if test -z "$CC"; then
2482 ac_ct_CC=$CC
2483 for ac_prog in cl.exe
6bddc3e8
MF
2484do
2485 # Extract the first word of "$ac_prog", so it can be a program name with args.
2486set dummy $ac_prog; ac_word=$2
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2489if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
2490 $as_echo_n "(cached) " >&6
2491else
c2783492
MF
2492 if test -n "$ac_ct_CC"; then
2493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6bddc3e8
MF
2494else
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 2502 ac_cv_prog_ac_ct_CC="$ac_prog"
6bddc3e8
MF
2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2505 fi
2506done
2507 done
2508IFS=$as_save_IFS
2509
2510fi
2511fi
c2783492
MF
2512ac_ct_CC=$ac_cv_prog_ac_ct_CC
2513if test -n "$ac_ct_CC"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2515$as_echo "$ac_ct_CC" >&6; }
6bddc3e8
MF
2516else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518$as_echo "no" >&6; }
2519fi
2520
2521
c2783492 2522 test -n "$ac_ct_CC" && break
6bddc3e8
MF
2523done
2524
c2783492
MF
2525 if test "x$ac_ct_CC" = x; then
2526 CC=""
2527 else
2528 case $cross_compiling:$ac_tool_warned in
2529yes:)
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2532ac_tool_warned=yes ;;
6bddc3e8 2533esac
c2783492 2534 CC=$ac_ct_CC
6bddc3e8
MF
2535 fi
2536fi
2537
6bddc3e8
MF
2538fi
2539
2540
c2783492
MF
2541test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543as_fn_error $? "no acceptable C compiler found in \$PATH
2544See \`config.log' for more details" "$LINENO" 5; }
6bddc3e8 2545
c2783492
MF
2546# Provide some information about the compiler.
2547$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2548set X $ac_compile
2549ac_compiler=$2
2550for ac_option in --version -v -V -qversion; do
2551 { { ac_try="$ac_compiler $ac_option >&5"
2552case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2555esac
2556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2557$as_echo "$ac_try_echo"; } >&5
2558 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2559 ac_status=$?
2560 if test -s conftest.err; then
2561 sed '10a\
2562... rest of stderr output deleted ...
2563 10q' conftest.err >conftest.er1
2564 cat conftest.er1 >&5
2565 fi
2566 rm -f conftest.er1 conftest.err
2567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2568 test $ac_status = 0; }
2569done
6bddc3e8 2570
c2783492
MF
2571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572/* end confdefs.h. */
6bddc3e8 2573
c2783492
MF
2574int
2575main ()
2576{
6bddc3e8 2577
c2783492
MF
2578 ;
2579 return 0;
2580}
6bddc3e8 2581_ACEOF
c2783492
MF
2582ac_clean_files_save=$ac_clean_files
2583ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2584# Try to create an executable without -o first, disregard a.out.
2585# It will help us diagnose broken compilers, and finding out an intuition
2586# of exeext.
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2588$as_echo_n "checking whether the C compiler works... " >&6; }
2589ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6bddc3e8 2590
c2783492
MF
2591# The possible output files:
2592ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6bddc3e8 2593
c2783492
MF
2594ac_rmfiles=
2595for ac_file in $ac_files
2596do
2597 case $ac_file in
2598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2599 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2600 esac
2601done
2602rm -f $ac_rmfiles
81ecdfbb
RW
2603
2604if { { ac_try="$ac_link_default"
2605case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608esac
2609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610$as_echo "$ac_try_echo"; } >&5
2611 (eval "$ac_link_default") 2>&5
b7026657 2612 ac_status=$?
81ecdfbb
RW
2613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2614 test $ac_status = 0; }; then :
2615 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2616# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2617# in a Makefile. We should not override ac_cv_exeext if it was cached,
2618# so that the user can short-circuit this test for compilers unknown to
2619# Autoconf.
2620for ac_file in $ac_files ''
b7026657
AC
2621do
2622 test -f "$ac_file" || continue
2623 case $ac_file in
81ecdfbb 2624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
2625 ;;
2626 [ab].out )
2627 # We found the default executable, but exeext='' is most
2628 # certainly right.
2629 break;;
2630 *.* )
81ecdfbb
RW
2631 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2632 then :; else
2633 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2634 fi
2635 # We set ac_cv_exeext here because the later test for it is not
2636 # safe: cross compilers may not add the suffix if given an `-o'
2637 # argument, so we may need to know it at that point already.
2638 # Even if this section looks crufty: it has the advantage of
2639 # actually working.
b7026657
AC
2640 break;;
2641 * )
2642 break;;
2643 esac
2644done
81ecdfbb
RW
2645test "$ac_cv_exeext" = no && ac_cv_exeext=
2646
b7026657 2647else
81ecdfbb
RW
2648 ac_file=''
2649fi
81ecdfbb 2650if test -z "$ac_file"; then :
d0ac1c44
SM
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652$as_echo "no" >&6; }
2653$as_echo "$as_me: failed program was:" >&5
b7026657
AC
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
81ecdfbb
RW
2656{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2658as_fn_error 77 "C compiler cannot create executables
2659See \`config.log' for more details" "$LINENO" 5; }
2660else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2662$as_echo "yes" >&6; }
b7026657 2663fi
d0ac1c44
SM
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2665$as_echo_n "checking for C compiler default output file name... " >&6; }
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2667$as_echo "$ac_file" >&6; }
b7026657 2668ac_exeext=$ac_cv_exeext
b7026657 2669
d0ac1c44 2670rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b7026657 2671ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2673$as_echo_n "checking for suffix of executables... " >&6; }
2674if { { ac_try="$ac_link"
2675case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678esac
2679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2680$as_echo "$ac_try_echo"; } >&5
2681 (eval "$ac_link") 2>&5
b7026657 2682 ac_status=$?
81ecdfbb
RW
2683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2684 test $ac_status = 0; }; then :
b7026657
AC
2685 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2686# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2687# work properly (i.e., refer to `conftest.exe'), while it won't with
2688# `rm'.
2689for ac_file in conftest.exe conftest conftest.*; do
2690 test -f "$ac_file" || continue
2691 case $ac_file in
81ecdfbb 2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 2693 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
2694 break;;
2695 * ) break;;
2696 esac
2697done
c906108c 2698else
81ecdfbb
RW
2699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2701as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2702See \`config.log' for more details" "$LINENO" 5; }
c906108c 2703fi
d0ac1c44 2704rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2706$as_echo "$ac_cv_exeext" >&6; }
b7026657
AC
2707
2708rm -f conftest.$ac_ext
2709EXEEXT=$ac_cv_exeext
2710ac_exeext=$EXEEXT
d0ac1c44
SM
2711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712/* end confdefs.h. */
2713#include <stdio.h>
2714int
2715main ()
2716{
2717FILE *f = fopen ("conftest.out", "w");
2718 return ferror (f) || fclose (f) != 0;
2719
2720 ;
2721 return 0;
2722}
2723_ACEOF
2724ac_clean_files="$ac_clean_files conftest.out"
2725# Check that the compiler produces executables we can run. If not, either
2726# the compiler is broken, or we cross compile.
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2728$as_echo_n "checking whether we are cross compiling... " >&6; }
2729if test "$cross_compiling" != yes; then
2730 { { ac_try="$ac_link"
2731case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
2735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2736$as_echo "$ac_try_echo"; } >&5
2737 (eval "$ac_link") 2>&5
2738 ac_status=$?
2739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2740 test $ac_status = 0; }
2741 if { ac_try='./conftest$ac_cv_exeext'
2742 { { case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747$as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_try") 2>&5
2749 ac_status=$?
2750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2751 test $ac_status = 0; }; }; then
2752 cross_compiling=no
2753 else
2754 if test "$cross_compiling" = maybe; then
2755 cross_compiling=yes
2756 else
2757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2759as_fn_error $? "cannot run C compiled programs.
2760If you meant to cross compile, use \`--host'.
2761See \`config.log' for more details" "$LINENO" 5; }
2762 fi
2763 fi
2764fi
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2766$as_echo "$cross_compiling" >&6; }
2767
2768rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2769ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2771$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2772if ${ac_cv_objext+:} false; then :
81ecdfbb 2773 $as_echo_n "(cached) " >&6
b7026657 2774else
81ecdfbb 2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
2776/* end confdefs.h. */
2777
2778int
2779main ()
2780{
2781
2782 ;
2783 return 0;
2784}
2785_ACEOF
2786rm -f conftest.o conftest.obj
81ecdfbb
RW
2787if { { ac_try="$ac_compile"
2788case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791esac
2792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2793$as_echo "$ac_try_echo"; } >&5
2794 (eval "$ac_compile") 2>&5
b7026657 2795 ac_status=$?
81ecdfbb
RW
2796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2797 test $ac_status = 0; }; then :
2798 for ac_file in conftest.o conftest.obj conftest.*; do
2799 test -f "$ac_file" || continue;
b7026657 2800 case $ac_file in
81ecdfbb 2801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
2802 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2803 break;;
2804 esac
2805done
2806else
81ecdfbb 2807 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
2808sed 's/^/| /' conftest.$ac_ext >&5
2809
81ecdfbb
RW
2810{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2812as_fn_error $? "cannot compute suffix of object files: cannot compile
2813See \`config.log' for more details" "$LINENO" 5; }
c906108c 2814fi
b7026657
AC
2815rm -f conftest.$ac_cv_objext conftest.$ac_ext
2816fi
81ecdfbb
RW
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2818$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
2819OBJEXT=$ac_cv_objext
2820ac_objext=$OBJEXT
81ecdfbb
RW
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2822$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2823if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 2824 $as_echo_n "(cached) " >&6
b7026657 2825else
81ecdfbb 2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
2827/* end confdefs.h. */
2828
2829int
2830main ()
2831{
2832#ifndef __GNUC__
2833 choke me
2834#endif
c906108c 2835
b7026657
AC
2836 ;
2837 return 0;
2838}
2839_ACEOF
81ecdfbb 2840if ac_fn_c_try_compile "$LINENO"; then :
b7026657 2841 ac_compiler_gnu=yes
c906108c 2842else
81ecdfbb 2843 ac_compiler_gnu=no
c906108c 2844fi
81ecdfbb 2845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 2846ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 2847
b7026657 2848fi
81ecdfbb
RW
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2850$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2851if test $ac_compiler_gnu = yes; then
2852 GCC=yes
2853else
2854 GCC=
2855fi
b7026657
AC
2856ac_test_CFLAGS=${CFLAGS+set}
2857ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2859$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 2860if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb 2861 $as_echo_n "(cached) " >&6
c906108c 2862else
81ecdfbb
RW
2863 ac_save_c_werror_flag=$ac_c_werror_flag
2864 ac_c_werror_flag=yes
2865 ac_cv_prog_cc_g=no
2866 CFLAGS="-g"
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
2868/* end confdefs.h. */
2869
2870int
2871main ()
2872{
2873
2874 ;
2875 return 0;
2876}
2877_ACEOF
81ecdfbb 2878if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
2879 ac_cv_prog_cc_g=yes
2880else
81ecdfbb
RW
2881 CFLAGS=""
2882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883/* end confdefs.h. */
2884
2885int
2886main ()
2887{
2888
2889 ;
2890 return 0;
2891}
2892_ACEOF
2893if ac_fn_c_try_compile "$LINENO"; then :
2894
2895else
2896 ac_c_werror_flag=$ac_save_c_werror_flag
2897 CFLAGS="-g"
2898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2899/* end confdefs.h. */
2900
2901int
2902main ()
2903{
c906108c 2904
81ecdfbb
RW
2905 ;
2906 return 0;
2907}
2908_ACEOF
2909if ac_fn_c_try_compile "$LINENO"; then :
2910 ac_cv_prog_cc_g=yes
2911fi
2912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2913fi
81ecdfbb 2914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 2915fi
81ecdfbb
RW
2916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2917 ac_c_werror_flag=$ac_save_c_werror_flag
2918fi
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2920$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 2921if test "$ac_test_CFLAGS" = set; then
b7026657 2922 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2923elif test $ac_cv_prog_cc_g = yes; then
2924 if test "$GCC" = yes; then
2925 CFLAGS="-g -O2"
2926 else
2927 CFLAGS="-g"
2928 fi
2929else
2930 if test "$GCC" = yes; then
2931 CFLAGS="-O2"
2932 else
2933 CFLAGS=
2934 fi
2935fi
81ecdfbb
RW
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2937$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 2938if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 2939 $as_echo_n "(cached) " >&6
b7026657 2940else
81ecdfbb 2941 ac_cv_prog_cc_c89=no
b7026657 2942ac_save_CC=$CC
81ecdfbb 2943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
2944/* end confdefs.h. */
2945#include <stdarg.h>
2946#include <stdio.h>
d0ac1c44 2947struct stat;
b7026657
AC
2948/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2949struct buf { int x; };
2950FILE * (*rcsopen) (struct buf *, struct stat *, int);
2951static char *e (p, i)
2952 char **p;
2953 int i;
2954{
2955 return p[i];
2956}
2957static char *f (char * (*g) (char **, int), char **p, ...)
2958{
2959 char *s;
2960 va_list v;
2961 va_start (v,p);
2962 s = g (p, va_arg (v,int));
2963 va_end (v);
2964 return s;
2965}
2966
2967/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2968 function prototypes and stuff, but not '\xHH' hex character constants.
2969 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 2970 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
2971 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2972 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 2973 that's true only with -std. */
b7026657
AC
2974int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2975
81ecdfbb
RW
2976/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2977 inside strings and character constants. */
2978#define FOO(x) 'x'
2979int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2980
b7026657
AC
2981int test (int i, double x);
2982struct s1 {int (*f) (int a);};
2983struct s2 {int (*f) (double a);};
2984int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2985int argc;
2986char **argv;
2987int
2988main ()
2989{
2990return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2991 ;
2992 return 0;
2993}
2994_ACEOF
81ecdfbb
RW
2995for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2996 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
2997do
2998 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
2999 if ac_fn_c_try_compile "$LINENO"; then :
3000 ac_cv_prog_cc_c89=$ac_arg
b7026657 3001fi
81ecdfbb
RW
3002rm -f core conftest.err conftest.$ac_objext
3003 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 3004done
81ecdfbb 3005rm -f conftest.$ac_ext
b7026657
AC
3006CC=$ac_save_CC
3007
3008fi
81ecdfbb
RW
3009# AC_CACHE_VAL
3010case "x$ac_cv_prog_cc_c89" in
3011 x)
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3013$as_echo "none needed" >&6; } ;;
3014 xno)
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3016$as_echo "unsupported" >&6; } ;;
b7026657 3017 *)
81ecdfbb
RW
3018 CC="$CC $ac_cv_prog_cc_c89"
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3020$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 3021esac
81ecdfbb 3022if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 3023
fdd6fa61
AG
3024fi
3025
fdd6fa61
AG
3026ac_ext=c
3027ac_cpp='$CPP $CPPFLAGS'
3028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031
c2783492
MF
3032ac_ext=c
3033ac_cpp='$CPP $CPPFLAGS'
3034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3038$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3039if ${am_cv_prog_cc_c_o+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041else
3042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043/* end confdefs.h. */
3044
3045int
3046main ()
3047{
3048
3049 ;
3050 return 0;
3051}
3052_ACEOF
3053 # Make sure it works both with $CC and with simple cc.
3054 # Following AC_PROG_CC_C_O, we do the test twice because some
3055 # compilers refuse to overwrite an existing .o file with -o,
3056 # though they will create one.
3057 am_cv_prog_cc_c_o=yes
3058 for am_i in 1 2; do
3059 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3060 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } \
3064 && test -f conftest2.$ac_objext; then
3065 : OK
3066 else
3067 am_cv_prog_cc_c_o=no
3068 break
3069 fi
3070 done
3071 rm -f core conftest*
3072 unset am_i
3073fi
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3075$as_echo "$am_cv_prog_cc_c_o" >&6; }
3076if test "$am_cv_prog_cc_c_o" != yes; then
3077 # Losing compiler, so override with the script.
3078 # FIXME: It is wrong to rewrite CC.
3079 # But if we don't then we get into trouble of one sort or another.
3080 # A longer-term fix would be to have automake use am__CC in this case,
3081 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3082 CC="$am_aux_dir/compile $CC"
3083fi
3084ac_ext=c
3085ac_cpp='$CPP $CPPFLAGS'
3086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089
3090
3091
3092ac_ext=c
3093ac_cpp='$CPP $CPPFLAGS'
3094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3098$as_echo_n "checking how to run the C preprocessor... " >&6; }
3099# On Suns, sometimes $CPP names a directory.
3100if test -n "$CPP" && test -d "$CPP"; then
3101 CPP=
3102fi
3103if test -z "$CPP"; then
3104 if ${ac_cv_prog_CPP+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106else
3107 # Double quotes because CPP needs to be expanded
3108 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3109 do
3110 ac_preproc_ok=false
3111for ac_c_preproc_warn_flag in '' yes
3112do
3113 # Use a header file that comes with gcc, so configuring glibc
3114 # with a fresh cross-compiler works.
3115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3116 # <limits.h> exists even on freestanding compilers.
3117 # On the NeXT, cc -E runs the code through the compiler's parser,
3118 # not just through cpp. "Syntax error" is here to catch this case.
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120/* end confdefs.h. */
3121#ifdef __STDC__
3122# include <limits.h>
3123#else
3124# include <assert.h>
3125#endif
3126 Syntax error
3127_ACEOF
3128if ac_fn_c_try_cpp "$LINENO"; then :
3129
3130else
3131 # Broken: fails on valid input.
3132continue
3133fi
3134rm -f conftest.err conftest.i conftest.$ac_ext
3135
3136 # OK, works on sane cases. Now check whether nonexistent headers
3137 # can be detected and how.
3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139/* end confdefs.h. */
3140#include <ac_nonexistent.h>
3141_ACEOF
3142if ac_fn_c_try_cpp "$LINENO"; then :
3143 # Broken: success on invalid input.
3144continue
3145else
3146 # Passes both tests.
3147ac_preproc_ok=:
3148break
3149fi
3150rm -f conftest.err conftest.i conftest.$ac_ext
3151
3152done
3153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3154rm -f conftest.i conftest.err conftest.$ac_ext
3155if $ac_preproc_ok; then :
3156 break
3157fi
3158
3159 done
3160 ac_cv_prog_CPP=$CPP
3161
3162fi
3163 CPP=$ac_cv_prog_CPP
3164else
3165 ac_cv_prog_CPP=$CPP
3166fi
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3168$as_echo "$CPP" >&6; }
3169ac_preproc_ok=false
3170for ac_c_preproc_warn_flag in '' yes
3171do
3172 # Use a header file that comes with gcc, so configuring glibc
3173 # with a fresh cross-compiler works.
3174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3175 # <limits.h> exists even on freestanding compilers.
3176 # On the NeXT, cc -E runs the code through the compiler's parser,
3177 # not just through cpp. "Syntax error" is here to catch this case.
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179/* end confdefs.h. */
3180#ifdef __STDC__
3181# include <limits.h>
3182#else
3183# include <assert.h>
3184#endif
3185 Syntax error
3186_ACEOF
3187if ac_fn_c_try_cpp "$LINENO"; then :
3188
3189else
3190 # Broken: fails on valid input.
3191continue
3192fi
3193rm -f conftest.err conftest.i conftest.$ac_ext
3194
3195 # OK, works on sane cases. Now check whether nonexistent headers
3196 # can be detected and how.
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h. */
3199#include <ac_nonexistent.h>
3200_ACEOF
3201if ac_fn_c_try_cpp "$LINENO"; then :
3202 # Broken: success on invalid input.
3203continue
3204else
3205 # Passes both tests.
3206ac_preproc_ok=:
3207break
3208fi
3209rm -f conftest.err conftest.i conftest.$ac_ext
3210
3211done
3212# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3213rm -f conftest.i conftest.err conftest.$ac_ext
3214if $ac_preproc_ok; then :
3215
3216else
3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3220See \`config.log' for more details" "$LINENO" 5; }
3221fi
3222
3223ac_ext=c
3224ac_cpp='$CPP $CPPFLAGS'
3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
3229
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3231$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3232if ${ac_cv_path_GREP+:} false; then :
3233 $as_echo_n "(cached) " >&6
3234else
3235 if test -z "$GREP"; then
3236 ac_path_GREP_found=false
3237 # Loop through the user's path and test for each of PROGNAME-LIST
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3240do
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_prog in grep ggrep; do
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3246 as_fn_executable_p "$ac_path_GREP" || continue
3247# Check for GNU ac_path_GREP and select it if it is found.
3248 # Check for GNU $ac_path_GREP
3249case `"$ac_path_GREP" --version 2>&1` in
3250*GNU*)
3251 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3252*)
3253 ac_count=0
3254 $as_echo_n 0123456789 >"conftest.in"
3255 while :
3256 do
3257 cat "conftest.in" "conftest.in" >"conftest.tmp"
3258 mv "conftest.tmp" "conftest.in"
3259 cp "conftest.in" "conftest.nl"
3260 $as_echo 'GREP' >> "conftest.nl"
3261 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3263 as_fn_arith $ac_count + 1 && ac_count=$as_val
3264 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3265 # Best one so far, save it but keep looking for a better one
3266 ac_cv_path_GREP="$ac_path_GREP"
3267 ac_path_GREP_max=$ac_count
3268 fi
3269 # 10*(2^10) chars as input seems more than enough
3270 test $ac_count -gt 10 && break
3271 done
3272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3273esac
3274
3275 $ac_path_GREP_found && break 3
3276 done
3277 done
3278 done
3279IFS=$as_save_IFS
3280 if test -z "$ac_cv_path_GREP"; then
3281 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3282 fi
3283else
3284 ac_cv_path_GREP=$GREP
3285fi
3286
3287fi
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3289$as_echo "$ac_cv_path_GREP" >&6; }
3290 GREP="$ac_cv_path_GREP"
3291
3292
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3294$as_echo_n "checking for egrep... " >&6; }
3295if ${ac_cv_path_EGREP+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297else
3298 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3299 then ac_cv_path_EGREP="$GREP -E"
3300 else
3301 if test -z "$EGREP"; then
3302 ac_path_EGREP_found=false
3303 # Loop through the user's path and test for each of PROGNAME-LIST
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3306do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_prog in egrep; do
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3312 as_fn_executable_p "$ac_path_EGREP" || continue
3313# Check for GNU ac_path_EGREP and select it if it is found.
3314 # Check for GNU $ac_path_EGREP
3315case `"$ac_path_EGREP" --version 2>&1` in
3316*GNU*)
3317 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3318*)
3319 ac_count=0
3320 $as_echo_n 0123456789 >"conftest.in"
3321 while :
3322 do
3323 cat "conftest.in" "conftest.in" >"conftest.tmp"
3324 mv "conftest.tmp" "conftest.in"
3325 cp "conftest.in" "conftest.nl"
3326 $as_echo 'EGREP' >> "conftest.nl"
3327 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3329 as_fn_arith $ac_count + 1 && ac_count=$as_val
3330 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3331 # Best one so far, save it but keep looking for a better one
3332 ac_cv_path_EGREP="$ac_path_EGREP"
3333 ac_path_EGREP_max=$ac_count
3334 fi
3335 # 10*(2^10) chars as input seems more than enough
3336 test $ac_count -gt 10 && break
3337 done
3338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3339esac
3340
3341 $ac_path_EGREP_found && break 3
3342 done
3343 done
3344 done
3345IFS=$as_save_IFS
3346 if test -z "$ac_cv_path_EGREP"; then
3347 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3348 fi
3349else
3350 ac_cv_path_EGREP=$EGREP
3351fi
3352
3353 fi
3354fi
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3356$as_echo "$ac_cv_path_EGREP" >&6; }
3357 EGREP="$ac_cv_path_EGREP"
3358
3359
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3361$as_echo_n "checking for ANSI C header files... " >&6; }
3362if ${ac_cv_header_stdc+:} false; then :
6bddc3e8
MF
3363 $as_echo_n "(cached) " >&6
3364else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h. */
c2783492
MF
3367#include <stdlib.h>
3368#include <stdarg.h>
3369#include <string.h>
3370#include <float.h>
6bddc3e8
MF
3371
3372int
3373main ()
3374{
3375
3376 ;
3377 return 0;
3378}
3379_ACEOF
c2783492
MF
3380if ac_fn_c_try_compile "$LINENO"; then :
3381 ac_cv_header_stdc=yes
3382else
3383 ac_cv_header_stdc=no
fdd6fa61 3384fi
c2783492 3385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81ecdfbb 3386
c2783492
MF
3387if test $ac_cv_header_stdc = yes; then
3388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390/* end confdefs.h. */
3391#include <string.h>
6bddc3e8 3392
c2783492
MF
3393_ACEOF
3394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3395 $EGREP "memchr" >/dev/null 2>&1; then :
6bddc3e8 3396
c2783492
MF
3397else
3398 ac_cv_header_stdc=no
3399fi
3400rm -f conftest*
6bddc3e8 3401
6bddc3e8 3402fi
81ecdfbb 3403
c2783492
MF
3404if test $ac_cv_header_stdc = yes; then
3405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407/* end confdefs.h. */
3408#include <stdlib.h>
fdd6fa61 3409
c2783492
MF
3410_ACEOF
3411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3412 $EGREP "free" >/dev/null 2>&1; then :
6bddc3e8 3413
c2783492
MF
3414else
3415 ac_cv_header_stdc=no
6bddc3e8 3416fi
c2783492 3417rm -f conftest*
6bddc3e8 3418
6bddc3e8 3419fi
c2783492
MF
3420
3421if test $ac_cv_header_stdc = yes; then
3422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3423 if test "$cross_compiling" = yes; then :
3424 :
6bddc3e8 3425else
c2783492
MF
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h. */
3428#include <ctype.h>
3429#include <stdlib.h>
3430#if ((' ' & 0x0FF) == 0x020)
3431# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3432# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3433#else
3434# define ISLOWER(c) \
3435 (('a' <= (c) && (c) <= 'i') \
3436 || ('j' <= (c) && (c) <= 'r') \
3437 || ('s' <= (c) && (c) <= 'z'))
3438# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3439#endif
3440
3441#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3442int
3443main ()
3444{
3445 int i;
3446 for (i = 0; i < 256; i++)
3447 if (XOR (islower (i), ISLOWER (i))
3448 || toupper (i) != TOUPPER (i))
3449 return 2;
3450 return 0;
3451}
3452_ACEOF
3453if ac_fn_c_try_run "$LINENO"; then :
3454
3455else
3456 ac_cv_header_stdc=no
3457fi
3458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3459 conftest.$ac_objext conftest.beam conftest.$ac_ext
6bddc3e8
MF
3460fi
3461
c2783492
MF
3462fi
3463fi
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3465$as_echo "$ac_cv_header_stdc" >&6; }
3466if test $ac_cv_header_stdc = yes; then
6bddc3e8 3467
c2783492 3468$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6bddc3e8 3469
c2783492 3470fi
6bddc3e8 3471
c2783492
MF
3472# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3473for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3474 inttypes.h stdint.h unistd.h
3475do :
3476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3477ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3478"
3479if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3480 cat >>confdefs.h <<_ACEOF
3481#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3482_ACEOF
3483
3484fi
3485
3486done
3487
3488
3489
3490 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3491if test "x$ac_cv_header_minix_config_h" = xyes; then :
3492 MINIX=yes
fdd6fa61 3493else
c2783492
MF
3494 MINIX=
3495fi
3496
3497
3498 if test "$MINIX" = yes; then
3499
3500$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3501
3502
3503$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3504
3505
3506$as_echo "#define _MINIX 1" >>confdefs.h
6bddc3e8 3507
6bddc3e8 3508 fi
6bddc3e8 3509
6bddc3e8 3510
c2783492
MF
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3512$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3513if ${ac_cv_safe_to_define___extensions__+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515else
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h. */
c906108c 3518
c2783492
MF
3519# define __EXTENSIONS__ 1
3520 $ac_includes_default
3521int
3522main ()
3523{
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
3529if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_cv_safe_to_define___extensions__=yes
6bddc3e8 3531else
c2783492
MF
3532 ac_cv_safe_to_define___extensions__=no
3533fi
3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3535fi
c2783492
MF
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3537$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3538 test $ac_cv_safe_to_define___extensions__ = yes &&
3539 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6bddc3e8 3540
c2783492 3541 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
c906108c 3542
c2783492 3543 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
c906108c 3544
c2783492 3545 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
c906108c 3546
c2783492 3547 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
c906108c 3548
c2783492
MF
3549
3550test "$program_prefix" != NONE &&
3551 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3552# Use a double $ so make ignores it.
3553test "$program_suffix" != NONE &&
3554 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3555# Double any \ or $.
3556# By default was `s,x,x', remove it if useless.
3557ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3558program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3559
3560# Find a good install program. We prefer a C program (faster),
3561# so one script is as good as another. But avoid the broken or
3562# incompatible versions:
3563# SysV /etc/install, /usr/sbin/install
3564# SunOS /usr/etc/install
3565# IRIX /sbin/install
3566# AIX /bin/install
3567# AmigaOS /C/install, which installs bootblocks on floppy discs
3568# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3569# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3570# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3571# OS/2's system install, which has a completely different semantic
3572# ./install, which can be erroneously created by make from ./install.sh.
3573# Reject install programs that cannot install multiple files.
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3575$as_echo_n "checking for a BSD-compatible install... " >&6; }
3576if test -z "$INSTALL"; then
3577if ${ac_cv_path_install+:} false; then :
81ecdfbb 3578 $as_echo_n "(cached) " >&6
c906108c 3579else
c2783492 3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b7026657
AC
3581for as_dir in $PATH
3582do
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
c2783492
MF
3585 # Account for people who put trailing slashes in PATH elements.
3586case $as_dir/ in #((
3587 ./ | .// | /[cC]/* | \
3588 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3589 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3590 /usr/ucb/* ) ;;
3591 *)
3592 # OSF1 and SCO ODT 3.0 have their own names for install.
3593 # Don't use installbsd from OSF since it installs stuff as root
3594 # by default.
3595 for ac_prog in ginstall scoinst install; do
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3598 if test $ac_prog = install &&
3599 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3600 # AIX install. It has an incompatible calling convention.
3601 :
3602 elif test $ac_prog = install &&
3603 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3604 # program-specific install script used by HP pwplus--don't use.
3605 :
3606 else
3607 rm -rf conftest.one conftest.two conftest.dir
3608 echo one > conftest.one
3609 echo two > conftest.two
3610 mkdir conftest.dir
3611 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3612 test -s conftest.one && test -s conftest.two &&
3613 test -s conftest.dir/conftest.one &&
3614 test -s conftest.dir/conftest.two
3615 then
3616 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3617 break 3
3618 fi
3619 fi
3620 fi
3621 done
3622 done
3623 ;;
3624esac
3625
81ecdfbb
RW
3626 done
3627IFS=$as_save_IFS
b7026657 3628
c2783492
MF
3629rm -rf conftest.one conftest.two conftest.dir
3630
c906108c 3631fi
c2783492
MF
3632 if test "${ac_cv_path_install+set}" = set; then
3633 INSTALL=$ac_cv_path_install
3634 else
3635 # As a last resort, use the slow shell script. Don't cache a
3636 # value for INSTALL within a source directory, because that will
3637 # break other packages using the cache if that directory is
3638 # removed, or if the value is a relative name.
3639 INSTALL=$ac_install_sh
3640 fi
c906108c 3641fi
c2783492
MF
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3643$as_echo "$INSTALL" >&6; }
b7026657 3644
c2783492
MF
3645# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3646# It thinks the first close brace ends the variable substitution.
3647test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
81ecdfbb 3648
c2783492
MF
3649test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3650
3651test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3652
3653
3654
3655
3656
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3658$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3659if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 3660 $as_echo_n "(cached) " >&6
b7026657 3661else
c2783492
MF
3662 ac_cv_c_bigendian=unknown
3663 # See if we're dealing with a universal compiler.
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h. */
3666#ifndef __APPLE_CC__
3667 not a universal capable compiler
3668 #endif
3669 typedef int dummy;
c906108c 3670
c2783492
MF
3671_ACEOF
3672if ac_fn_c_try_compile "$LINENO"; then :
3673
3674 # Check for potential -arch flags. It is not universal unless
3675 # there are at least two -arch flags with different values.
3676 ac_arch=
3677 ac_prev=
3678 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3679 if test -n "$ac_prev"; then
3680 case $ac_word in
3681 i?86 | x86_64 | ppc | ppc64)
3682 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3683 ac_arch=$ac_word
3684 else
3685 ac_cv_c_bigendian=universal
3686 break
3687 fi
3688 ;;
3689 esac
3690 ac_prev=
3691 elif test "x$ac_word" = "x-arch"; then
3692 ac_prev=arch
3693 fi
3694 done
b7026657 3695fi
c2783492
MF
3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 if test $ac_cv_c_bigendian = unknown; then
3698 # See if sys/param.h defines the BYTE_ORDER macro.
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h. */
3701#include <sys/types.h>
3702 #include <sys/param.h>
c906108c 3703
c2783492
MF
3704int
3705main ()
3706{
3707#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3708 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3709 && LITTLE_ENDIAN)
3710 bogus endian macros
3711 #endif
3712
3713 ;
3714 return 0;
3715}
3716_ACEOF
3717if ac_fn_c_try_compile "$LINENO"; then :
3718 # It does; now see whether it defined to BIG_ENDIAN or not.
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h. */
3721#include <sys/types.h>
3722 #include <sys/param.h>
3723
3724int
3725main ()
3726{
3727#if BYTE_ORDER != BIG_ENDIAN
3728 not big endian
3729 #endif
3730
3731 ;
3732 return 0;
3733}
3734_ACEOF
3735if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_c_bigendian=yes
b7026657 3737else
c2783492
MF
3738 ac_cv_c_bigendian=no
3739fi
3740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3741fi
c2783492
MF
3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 fi
3744 if test $ac_cv_c_bigendian = unknown; then
3745 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747/* end confdefs.h. */
3748#include <limits.h>
c906108c 3749
c2783492
MF
3750int
3751main ()
3752{
3753#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3754 bogus endian macros
3755 #endif
3756
3757 ;
3758 return 0;
3759}
3760_ACEOF
3761if ac_fn_c_try_compile "$LINENO"; then :
3762 # It does; now see whether it defined to _BIG_ENDIAN or not.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h. */
3765#include <limits.h>
3766
3767int
3768main ()
3769{
3770#ifndef _BIG_ENDIAN
3771 not big endian
3772 #endif
b7026657 3773
c2783492
MF
3774 ;
3775 return 0;
3776}
3777_ACEOF
3778if ac_fn_c_try_compile "$LINENO"; then :
3779 ac_cv_c_bigendian=yes
c906108c 3780else
c2783492 3781 ac_cv_c_bigendian=no
c906108c 3782fi
c2783492
MF
3783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784fi
3785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 fi
3787 if test $ac_cv_c_bigendian = unknown; then
3788 # Compile a test program.
3789 if test "$cross_compiling" = yes; then :
3790 # Try to guess by grepping values from an object file.
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h. */
3793short int ascii_mm[] =
3794 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3795 short int ascii_ii[] =
3796 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3797 int use_ascii (int i) {
3798 return ascii_mm[i] + ascii_ii[i];
3799 }
3800 short int ebcdic_ii[] =
3801 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3802 short int ebcdic_mm[] =
3803 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3804 int use_ebcdic (int i) {
3805 return ebcdic_mm[i] + ebcdic_ii[i];
3806 }
3807 extern int foo;
c906108c 3808
c2783492
MF
3809int
3810main ()
3811{
3812return use_ascii (foo) == use_ebcdic (foo);
3813 ;
3814 return 0;
3815}
3816_ACEOF
3817if ac_fn_c_try_compile "$LINENO"; then :
3818 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3819 ac_cv_c_bigendian=yes
3820 fi
3821 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3822 if test "$ac_cv_c_bigendian" = unknown; then
3823 ac_cv_c_bigendian=no
3824 else
3825 # finding both strings is unlikely to happen, but who knows?
3826 ac_cv_c_bigendian=unknown
3827 fi
3828 fi
b7026657 3829fi
c2783492 3830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3831else
c2783492
MF
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h. */
3834$ac_includes_default
3835int
3836main ()
3837{
3838
3839 /* Are we little or big endian? From Harbison&Steele. */
3840 union
3841 {
3842 long int l;
3843 char c[sizeof (long int)];
3844 } u;
3845 u.l = 1;
3846 return u.c[sizeof (long int) - 1] == 1;
b7026657 3847
c2783492
MF
3848 ;
3849 return 0;
3850}
3851_ACEOF
3852if ac_fn_c_try_run "$LINENO"; then :
3853 ac_cv_c_bigendian=no
3854else
3855 ac_cv_c_bigendian=yes
c906108c 3856fi
c2783492
MF
3857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3858 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 3859fi
c2783492
MF
3860
3861 fi
c906108c 3862fi
c2783492
MF
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3864$as_echo "$ac_cv_c_bigendian" >&6; }
3865 case $ac_cv_c_bigendian in #(
3866 yes)
3867 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3868;; #(
3869 no)
3870 ;; #(
3871 universal)
c906108c 3872
c2783492
MF
3873$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3874
3875 ;; #(
3876 *)
3877 as_fn_error $? "unknown endianness
3878 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3879 esac
3880
3881
3882
3883
3884if test "x$cross_compiling" = "xno"; then
3885 : "${CC_FOR_BUILD:=\$(CC)}"
3886 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
3887 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c906108c 3888else
c2783492
MF
3889 : "${CC_FOR_BUILD:=gcc}"
3890 : "${CFLAGS_FOR_BUILD:=-g -O}"
3891 : "${LDLFAGS_FOR_BUILD:=}"
c906108c
SS
3892fi
3893
3894
c906108c 3895
c2783492
MF
3896
3897
b7026657 3898if test -n "$ac_tool_prefix"; then
c2783492
MF
3899 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3900set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902$as_echo_n "checking for $ac_word... " >&6; }
c2783492 3903if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 3904 $as_echo_n "(cached) " >&6
c906108c 3905else
c2783492
MF
3906 if test -n "$AR"; then
3907 ac_cv_prog_AR="$AR" # Let the user override the test.
c906108c 3908else
b7026657
AC
3909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH
3911do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
81ecdfbb 3914 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 3916 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
3918 break 2
3919 fi
3920done
81ecdfbb
RW
3921 done
3922IFS=$as_save_IFS
b7026657
AC
3923
3924fi
3925fi
c2783492
MF
3926AR=$ac_cv_prog_AR
3927if test -n "$AR"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3929$as_echo "$AR" >&6; }
b7026657 3930else
81ecdfbb
RW
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932$as_echo "no" >&6; }
b7026657
AC
3933fi
3934
81ecdfbb 3935
b7026657 3936fi
c2783492
MF
3937if test -z "$ac_cv_prog_AR"; then
3938 ac_ct_AR=$AR
3939 # Extract the first word of "ar", so it can be a program name with args.
3940set dummy ar; ac_word=$2
81ecdfbb
RW
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942$as_echo_n "checking for $ac_word... " >&6; }
c2783492 3943if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 3944 $as_echo_n "(cached) " >&6
b7026657 3945else
c2783492
MF
3946 if test -n "$ac_ct_AR"; then
3947 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b7026657
AC
3948else
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
81ecdfbb 3954 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 3956 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
3958 break 2
3959 fi
3960done
81ecdfbb
RW
3961 done
3962IFS=$as_save_IFS
b7026657
AC
3963
3964fi
3965fi
c2783492
MF
3966ac_ct_AR=$ac_cv_prog_ac_ct_AR
3967if test -n "$ac_ct_AR"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3969$as_echo "$ac_ct_AR" >&6; }
b7026657 3970else
81ecdfbb
RW
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
c906108c 3973fi
b7026657 3974
c2783492
MF
3975 if test "x$ac_ct_AR" = x; then
3976 AR=""
81ecdfbb
RW
3977 else
3978 case $cross_compiling:$ac_tool_warned in
3979yes:)
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3982ac_tool_warned=yes ;;
3983esac
c2783492 3984 AR=$ac_ct_AR
c906108c 3985 fi
c906108c 3986else
c2783492 3987 AR="$ac_cv_prog_AR"
c906108c
SS
3988fi
3989
c2783492
MF
3990if test -n "$ac_tool_prefix"; then
3991 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3992set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994$as_echo_n "checking for $ac_word... " >&6; }
c2783492 3995if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 3996 $as_echo_n "(cached) " >&6
c906108c 3997else
c2783492
MF
3998 if test -n "$RANLIB"; then
3999 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 4000else
b7026657
AC
4001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002for as_dir in $PATH
4003do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
81ecdfbb 4006 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4008 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4010 break 2
4011 fi
4012done
81ecdfbb
RW
4013 done
4014IFS=$as_save_IFS
b7026657 4015
c906108c
SS
4016fi
4017fi
c2783492
MF
4018RANLIB=$ac_cv_prog_RANLIB
4019if test -n "$RANLIB"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4021$as_echo "$RANLIB" >&6; }
c906108c 4022else
81ecdfbb
RW
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024$as_echo "no" >&6; }
c906108c
SS
4025fi
4026
81ecdfbb 4027
b7026657 4028fi
c2783492
MF
4029if test -z "$ac_cv_prog_RANLIB"; then
4030 ac_ct_RANLIB=$RANLIB
4031 # Extract the first word of "ranlib", so it can be a program name with args.
4032set dummy ranlib; ac_word=$2
81ecdfbb
RW
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4035if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 4036 $as_echo_n "(cached) " >&6
c906108c 4037else
c2783492
MF
4038 if test -n "$ac_ct_RANLIB"; then
4039 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b7026657
AC
4040else
4041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042for as_dir in $PATH
4043do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
81ecdfbb 4046 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4048 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4050 break 2
4051 fi
4052done
81ecdfbb
RW
4053 done
4054IFS=$as_save_IFS
b7026657 4055
c906108c 4056fi
b7026657 4057fi
c2783492
MF
4058ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4059if test -n "$ac_ct_RANLIB"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4061$as_echo "$ac_ct_RANLIB" >&6; }
c906108c 4062else
81ecdfbb
RW
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064$as_echo "no" >&6; }
c906108c 4065fi
b7026657 4066
c2783492
MF
4067 if test "x$ac_ct_RANLIB" = x; then
4068 RANLIB=":"
81ecdfbb
RW
4069 else
4070 case $cross_compiling:$ac_tool_warned in
4071yes:)
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4074ac_tool_warned=yes ;;
4075esac
c2783492 4076 RANLIB=$ac_ct_RANLIB
81ecdfbb 4077 fi
c2783492
MF
4078else
4079 RANLIB="$ac_cv_prog_RANLIB"
4080fi
4081
4082
4083# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4084# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4085# is C99. So handle it ourselves.
4086:
4087C_DIALECT=
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4089$as_echo_n "checking whether C11 is supported by default... " >&6; }
4090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091/* end confdefs.h. */
4092
4093#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4094# error "C11 support not found"
4095#endif
4096
4097_ACEOF
4098if ac_fn_c_try_compile "$LINENO"; then :
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4100$as_echo "yes" >&6; }
4101else
4102
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104$as_echo "no" >&6; }
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4106$as_echo_n "checking for -std=c11 support... " >&6; }
4107 ac_save_CC="$CC"
4108 CC="$CC -std=c11"
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110/* end confdefs.h. */
4111
4112#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4113# error "C11 support not found"
4114#endif
4115
4116_ACEOF
4117if ac_fn_c_try_compile "$LINENO"; then :
4118
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120$as_echo "yes" >&6; }
4121 CC="$ac_save_CC"
4122 C_DIALECT="-std=c11"
4123
4124else
4125 as_fn_error $? "C11 is required" "$LINENO" 5
4126fi
4127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128fi
4129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130
4131
4132
4133
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4135$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4136 # Check whether --enable-maintainer-mode was given.
4137if test "${enable_maintainer_mode+set}" = set; then :
4138 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4139else
4140 USE_MAINTAINER_MODE=no
c906108c
SS
4141fi
4142
c2783492
MF
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4144$as_echo "$USE_MAINTAINER_MODE" >&6; }
4145 if test $USE_MAINTAINER_MODE = yes; then
4146 MAINTAINER_MODE_TRUE=
4147 MAINTAINER_MODE_FALSE='#'
4148else
4149 MAINTAINER_MODE_TRUE='#'
4150 MAINTAINER_MODE_FALSE=
b7026657
AC
4151fi
4152
c2783492 4153 MAINT=$MAINTAINER_MODE_TRUE
b7026657 4154
b7026657 4155
c2783492
MF
4156am__api_version='1.15'
4157
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4159$as_echo_n "checking whether build environment is sane... " >&6; }
4160# Reject unsafe characters in $srcdir or the absolute working directory
4161# name. Accept space and tab only in the latter.
4162am_lf='
4163'
4164case `pwd` in
4165 *[\\\"\#\$\&\'\`$am_lf]*)
4166 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb 4167esac
c2783492
MF
4168case $srcdir in
4169 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4170 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4171esac
4172
4173# Do 'set' in a subshell so we don't clobber the current shell's
4174# arguments. Must try -L first in case configure is actually a
4175# symlink; some systems play weird games with the mod time of symlinks
4176# (eg FreeBSD returns the mod time of the symlink's containing
4177# directory).
4178if (
4179 am_has_slept=no
4180 for am_try in 1 2; do
4181 echo "timestamp, slept: $am_has_slept" > conftest.file
4182 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4183 if test "$*" = "X"; then
4184 # -L didn't work.
4185 set X `ls -t "$srcdir/configure" conftest.file`
4186 fi
4187 if test "$*" != "X $srcdir/configure conftest.file" \
4188 && test "$*" != "X conftest.file $srcdir/configure"; then
4189
4190 # If neither matched, then we have a broken ls. This can happen
4191 # if, for instance, CONFIG_SHELL is bash and it inherits a
4192 # broken ls alias from the environment. This has actually
4193 # happened. Such a system could not be considered "sane".
4194 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4195 alias in your environment" "$LINENO" 5
4196 fi
4197 if test "$2" = conftest.file || test $am_try -eq 2; then
4198 break
4199 fi
4200 # Just in case.
4201 sleep 1
4202 am_has_slept=yes
4203 done
4204 test "$2" = conftest.file
4205 )
4206then
4207 # Ok.
4208 :
4209else
4210 as_fn_error $? "newly created file is older than distributed files!
4211Check your system clock" "$LINENO" 5
4212fi
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4214$as_echo "yes" >&6; }
4215# If we didn't sleep, we still need to ensure time stamps of config.status and
4216# generated files are strictly newer.
4217am_sleep_pid=
4218if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4219 ( sleep 1 ) &
4220 am_sleep_pid=$!
4221fi
4222
4223rm -f conftest.file
4224
4225if test x"${MISSING+set}" != xset; then
4226 case $am_aux_dir in
4227 *\ * | *\ *)
4228 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4229 *)
4230 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4231 esac
4232fi
4233# Use eval to expand $SHELL
4234if eval "$MISSING --is-lightweight"; then
4235 am_missing_run="$MISSING "
4236else
4237 am_missing_run=
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4239$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4240fi
4241
4242if test x"${install_sh+set}" != xset; then
4243 case $am_aux_dir in
4244 *\ * | *\ *)
4245 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4246 *)
4247 install_sh="\${SHELL} $am_aux_dir/install-sh"
4248 esac
4249fi
4250
4251# Installed binaries are usually stripped using 'strip' when the user
4252# run "make install-strip". However 'strip' might not be the right
4253# tool to use in cross-compilation environments, therefore Automake
4254# will honor the 'STRIP' environment variable to overrule this program.
4255if test "$cross_compiling" != no; then
4256 if test -n "$ac_tool_prefix"; then
4257 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4258set dummy ${ac_tool_prefix}strip; ac_word=$2
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260$as_echo_n "checking for $ac_word... " >&6; }
4261if ${ac_cv_prog_STRIP+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263else
4264 if test -n "$STRIP"; then
4265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4266else
4267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 break 2
81ecdfbb 4277 fi
81ecdfbb 4278done
c2783492
MF
4279 done
4280IFS=$as_save_IFS
b7026657 4281
c906108c 4282fi
b7026657 4283fi
c2783492
MF
4284STRIP=$ac_cv_prog_STRIP
4285if test -n "$STRIP"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4287$as_echo "$STRIP" >&6; }
81ecdfbb 4288else
c2783492
MF
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290$as_echo "no" >&6; }
81ecdfbb 4291fi
b7026657 4292
b7026657 4293
c2783492
MF
4294fi
4295if test -z "$ac_cv_prog_STRIP"; then
4296 ac_ct_STRIP=$STRIP
4297 # Extract the first word of "strip", so it can be a program name with args.
4298set dummy strip; ac_word=$2
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4300$as_echo_n "checking for $ac_word... " >&6; }
4301if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4302 $as_echo_n "(cached) " >&6
c906108c 4303else
c2783492
MF
4304 if test -n "$ac_ct_STRIP"; then
4305 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
81ecdfbb 4306else
c2783492
MF
4307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH
4309do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4314 ac_cv_prog_ac_ct_STRIP="strip"
4315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4317 fi
4318done
4319 done
4320IFS=$as_save_IFS
81ecdfbb 4321
81ecdfbb 4322fi
df1756f4 4323fi
c2783492
MF
4324ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4325if test -n "$ac_ct_STRIP"; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4327$as_echo "$ac_ct_STRIP" >&6; }
4328else
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330$as_echo "no" >&6; }
b7026657 4331fi
c2783492
MF
4332
4333 if test "x$ac_ct_STRIP" = x; then
4334 STRIP=":"
c906108c 4335 else
c2783492
MF
4336 case $cross_compiling:$ac_tool_warned in
4337yes:)
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4340ac_tool_warned=yes ;;
4341esac
4342 STRIP=$ac_ct_STRIP
c906108c
SS
4343 fi
4344else
c2783492 4345 STRIP="$ac_cv_prog_STRIP"
c906108c 4346fi
81ecdfbb 4347
b7026657 4348fi
c2783492 4349INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b7026657 4350
c2783492
MF
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4352$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4353if test -z "$MKDIR_P"; then
4354 if ${ac_cv_path_mkdir+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356else
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4359do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_prog in mkdir gmkdir; do
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4365 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4366 'mkdir (GNU coreutils) '* | \
4367 'mkdir (coreutils) '* | \
4368 'mkdir (fileutils) '4.1*)
4369 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4370 break 3;;
4371 esac
4372 done
4373 done
4374 done
4375IFS=$as_save_IFS
b7026657 4376
fdd6fa61
AG
4377fi
4378
c2783492
MF
4379 test -d ./--version && rmdir ./--version
4380 if test "${ac_cv_path_mkdir+set}" = set; then
4381 MKDIR_P="$ac_cv_path_mkdir -p"
4382 else
4383 # As a last resort, use the slow shell script. Don't cache a
4384 # value for MKDIR_P within a source directory, because that will
4385 # break other packages using the cache if that directory is
4386 # removed, or if the value is a relative name.
4387 MKDIR_P="$ac_install_sh -d"
4388 fi
4389fi
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4391$as_echo "$MKDIR_P" >&6; }
c906108c 4392
c2783492
MF
4393for ac_prog in gawk mawk nawk awk
4394do
4395 # Extract the first word of "$ac_prog", so it can be a program name with args.
4396set dummy $ac_prog; ac_word=$2
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398$as_echo_n "checking for $ac_word... " >&6; }
4399if ${ac_cv_prog_AWK+:} false; then :
6bddc3e8
MF
4400 $as_echo_n "(cached) " >&6
4401else
c2783492
MF
4402 if test -n "$AWK"; then
4403 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4404else
4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_prog_AWK="$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416done
6bddc3e8 4417 done
c2783492
MF
4418IFS=$as_save_IFS
4419
6bddc3e8 4420fi
6bddc3e8 4421fi
c2783492
MF
4422AWK=$ac_cv_prog_AWK
4423if test -n "$AWK"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4425$as_echo "$AWK" >&6; }
4426else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428$as_echo "no" >&6; }
4429fi
6bddc3e8
MF
4430
4431
c2783492
MF
4432 test -n "$AWK" && break
4433done
6bddc3e8 4434
c2783492
MF
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4436$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4437set x ${MAKE-make}
4438ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4439if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6bddc3e8
MF
4440 $as_echo_n "(cached) " >&6
4441else
c2783492
MF
4442 cat >conftest.make <<\_ACEOF
4443SHELL = /bin/sh
4444all:
4445 @echo '@@@%%%=$(MAKE)=@@@%%%'
4446_ACEOF
4447# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4448case `${MAKE-make} -f conftest.make 2>/dev/null` in
4449 *@@@%%%=?*=@@@%%%*)
4450 eval ac_cv_prog_make_${ac_make}_set=yes;;
4451 *)
4452 eval ac_cv_prog_make_${ac_make}_set=no;;
4453esac
4454rm -f conftest.make
4455fi
4456if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4458$as_echo "yes" >&6; }
4459 SET_MAKE=
4460else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462$as_echo "no" >&6; }
4463 SET_MAKE="MAKE=${MAKE-make}"
4464fi
6bddc3e8 4465
c2783492
MF
4466rm -rf .tst 2>/dev/null
4467mkdir .tst 2>/dev/null
4468if test -d .tst; then
4469 am__leading_dot=.
4470else
4471 am__leading_dot=_
4472fi
4473rmdir .tst 2>/dev/null
6bddc3e8 4474
c2783492 4475DEPDIR="${am__leading_dot}deps"
6bddc3e8 4476
c2783492 4477ac_config_commands="$ac_config_commands depfiles"
6bddc3e8 4478
c2783492
MF
4479
4480am_make=${MAKE-make}
4481cat > confinc << 'END'
4482am__doit:
4483 @echo this is the am__doit target
4484.PHONY: am__doit
4485END
4486# If we don't find an include directive, just comment out the code.
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4488$as_echo_n "checking for style of include used by $am_make... " >&6; }
4489am__include="#"
4490am__quote=
4491_am_result=none
4492# First try GNU make style include.
4493echo "include confinc" > confmf
4494# Ignore all kinds of additional output from 'make'.
4495case `$am_make -s -f confmf 2> /dev/null` in #(
4496*the\ am__doit\ target*)
4497 am__include=include
4498 am__quote=
4499 _am_result=GNU
4500 ;;
4501esac
4502# Now try BSD make style include.
4503if test "$am__include" = "#"; then
4504 echo '.include "confinc"' > confmf
4505 case `$am_make -s -f confmf 2> /dev/null` in #(
4506 *the\ am__doit\ target*)
4507 am__include=.include
4508 am__quote="\""
4509 _am_result=BSD
4510 ;;
4511 esac
6bddc3e8
MF
4512fi
4513
c2783492
MF
4514
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4516$as_echo "$_am_result" >&6; }
4517rm -f confinc confmf
4518
4519# Check whether --enable-dependency-tracking was given.
4520if test "${enable_dependency_tracking+set}" = set; then :
4521 enableval=$enable_dependency_tracking;
6bddc3e8 4522fi
6bddc3e8 4523
c2783492
MF
4524if test "x$enable_dependency_tracking" != xno; then
4525 am_depcomp="$ac_aux_dir/depcomp"
4526 AMDEPBACKSLASH='\'
4527 am__nodep='_no'
4528fi
4529 if test "x$enable_dependency_tracking" != xno; then
4530 AMDEP_TRUE=
4531 AMDEP_FALSE='#'
6bddc3e8 4532else
c2783492
MF
4533 AMDEP_TRUE='#'
4534 AMDEP_FALSE=
6bddc3e8
MF
4535fi
4536
4537
c2783492
MF
4538# Check whether --enable-silent-rules was given.
4539if test "${enable_silent_rules+set}" = set; then :
4540 enableval=$enable_silent_rules;
5e25901f 4541fi
c2783492
MF
4542
4543case $enable_silent_rules in # (((
4544 yes) AM_DEFAULT_VERBOSITY=0;;
4545 no) AM_DEFAULT_VERBOSITY=1;;
4546 *) AM_DEFAULT_VERBOSITY=1;;
4547esac
4548am_make=${MAKE-make}
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4550$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4551if ${am_cv_make_support_nested_variables+:} false; then :
5e25901f
MF
4552 $as_echo_n "(cached) " >&6
4553else
c2783492
MF
4554 if $as_echo 'TRUE=$(BAR$(V))
4555BAR0=false
4556BAR1=true
4557V=1
4558am__doit:
4559 @$(TRUE)
4560.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4561 am_cv_make_support_nested_variables=yes
5e25901f 4562else
c2783492 4563 am_cv_make_support_nested_variables=no
5e25901f 4564fi
c2783492
MF
4565fi
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4567$as_echo "$am_cv_make_support_nested_variables" >&6; }
4568if test $am_cv_make_support_nested_variables = yes; then
4569 AM_V='$(V)'
4570 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5e25901f 4571else
c2783492
MF
4572 AM_V=$AM_DEFAULT_VERBOSITY
4573 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5e25901f 4574fi
c2783492 4575AM_BACKSLASH='\'
5e25901f 4576
c2783492
MF
4577if test "`cd $srcdir && pwd`" != "`pwd`"; then
4578 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4579 # is not polluted with repeated "-I."
4580 am__isrc=' -I$(srcdir)'
4581 # test to see if srcdir already configured
4582 if test -f $srcdir/config.status; then
4583 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4584 fi
5e25901f
MF
4585fi
4586
c2783492
MF
4587# test whether we have cygpath
4588if test -z "$CYGPATH_W"; then
4589 if (cygpath --version) >/dev/null 2>/dev/null; then
4590 CYGPATH_W='cygpath -w'
4591 else
4592 CYGPATH_W=echo
4593 fi
5e25901f 4594fi
c2783492
MF
4595
4596
4597# Define the identity of the package.
4598 PACKAGE='sim'
4599 VERSION='0'
4600
4601
4602cat >>confdefs.h <<_ACEOF
4603#define PACKAGE "$PACKAGE"
5e25901f 4604_ACEOF
5e25901f 4605
5e25901f 4606
c2783492
MF
4607cat >>confdefs.h <<_ACEOF
4608#define VERSION "$VERSION"
5e25901f 4609_ACEOF
5e25901f 4610
c2783492 4611# Some tools Automake needs.
5e25901f 4612
c2783492
MF
4613ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4614
4615
4616AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4617
4618
4619AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4620
4621
4622AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4623
4624
4625MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4626
4627# For better backward compatibility. To be removed once Automake 1.9.x
4628# dies out for good. For more background, see:
4629# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4630# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4631mkdir_p='$(MKDIR_P)'
4632
4633# We need awk for the "check" target (and possibly the TAP driver). The
4634# system "awk" is bad on some platforms.
4635# Always define AMTAR for backward compatibility. Yes, it's still used
4636# in the wild :-( We should find a proper way to deprecate it ...
4637AMTAR='$${TAR-tar}'
4638
4639
4640# We'll loop over all known methods to create a tar archive until one works.
4641_am_tools='gnutar pax cpio none'
4642
4643am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5e25901f 4644
5e25901f 4645
c906108c 4646
c906108c 4647
c2783492
MF
4648
4649depcc="$CC" am_compiler_list=
4650
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4652$as_echo_n "checking dependency style of $depcc... " >&6; }
4653if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 4654 $as_echo_n "(cached) " >&6
c906108c 4655else
c2783492
MF
4656 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4657 # We make a subdir and do the tests there. Otherwise we can end up
4658 # making bogus files that we don't know about and never remove. For
4659 # instance it was reported that on HP-UX the gcc test will end up
4660 # making a dummy file named 'D' -- because '-MD' means "put the output
4661 # in D".
4662 rm -rf conftest.dir
4663 mkdir conftest.dir
4664 # Copy depcomp to subdir because otherwise we won't find it if we're
4665 # using a relative directory.
4666 cp "$am_depcomp" conftest.dir
4667 cd conftest.dir
4668 # We will build objects and dependencies in a subdirectory because
4669 # it helps to detect inapplicable dependency modes. For instance
4670 # both Tru64's cc and ICC support -MD to output dependencies as a
4671 # side effect of compilation, but ICC will put the dependencies in
4672 # the current directory while Tru64 will put them in the object
4673 # directory.
4674 mkdir sub
4675
4676 am_cv_CC_dependencies_compiler_type=none
4677 if test "$am_compiler_list" = ""; then
4678 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
b7026657 4679 fi
c2783492
MF
4680 am__universal=false
4681 case " $depcc " in #(
4682 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4683 esac
4684
4685 for depmode in $am_compiler_list; do
4686 # Setup a source with many dependencies, because some compilers
4687 # like to wrap large dependency lists on column 80 (with \), and
4688 # we should not choose a depcomp mode which is confused by this.
4689 #
4690 # We need to recreate these files for each test, as the compiler may
4691 # overwrite some of them when testing with obscure command lines.
4692 # This happens at least with the AIX C compiler.
4693 : > sub/conftest.c
4694 for i in 1 2 3 4 5 6; do
4695 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4696 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4697 # Solaris 10 /bin/sh.
4698 echo '/* dummy */' > sub/conftst$i.h
4699 done
4700 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4701
4702 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4703 # mode. It turns out that the SunPro C++ compiler does not properly
4704 # handle '-M -o', and we need to detect this. Also, some Intel
4705 # versions had trouble with output in subdirs.
4706 am__obj=sub/conftest.${OBJEXT-o}
4707 am__minus_obj="-o $am__obj"
4708 case $depmode in
4709 gcc)
4710 # This depmode causes a compiler race in universal mode.
4711 test "$am__universal" = false || continue
4712 ;;
4713 nosideeffect)
4714 # After this tag, mechanisms are not by side-effect, so they'll
4715 # only be used when explicitly requested.
4716 if test "x$enable_dependency_tracking" = xyes; then
4717 continue
4718 else
4719 break
4720 fi
4721 ;;
4722 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4723 # This compiler won't grok '-c -o', but also, the minuso test has
4724 # not run yet. These depmodes are late enough in the game, and
4725 # so weak that their functioning should not be impacted.
4726 am__obj=conftest.${OBJEXT-o}
4727 am__minus_obj=
4728 ;;
4729 none) break ;;
4730 esac
4731 if depmode=$depmode \
4732 source=sub/conftest.c object=$am__obj \
4733 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4734 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4735 >/dev/null 2>conftest.err &&
4736 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4737 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4738 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4739 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4740 # icc doesn't choke on unknown options, it will just issue warnings
4741 # or remarks (even with -Werror). So we grep stderr for any message
4742 # that says an option was ignored or not supported.
4743 # When given -MP, icc 7.0 and 7.1 complain thusly:
4744 # icc: Command line warning: ignoring option '-M'; no argument required
4745 # The diagnosis changed in icc 8.0:
4746 # icc: Command line remark: option '-MP' not supported
4747 if (grep 'ignoring option' conftest.err ||
4748 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4749 am_cv_CC_dependencies_compiler_type=$depmode
4750 break
4751 fi
4752 fi
81ecdfbb 4753 done
b7026657 4754
c2783492
MF
4755 cd ..
4756 rm -rf conftest.dir
b7026657 4757else
c2783492 4758 am_cv_CC_dependencies_compiler_type=none
b7026657
AC
4759fi
4760
4761fi
c2783492
MF
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4763$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4764CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
b7026657 4765
c2783492
MF
4766 if
4767 test "x$enable_dependency_tracking" != xno \
4768 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4769 am__fastdepCC_TRUE=
4770 am__fastdepCC_FALSE='#'
c906108c 4771else
c2783492
MF
4772 am__fastdepCC_TRUE='#'
4773 am__fastdepCC_FALSE=
b7026657
AC
4774fi
4775
c906108c
SS
4776
4777
c2783492
MF
4778# POSIX will say in a future version that running "rm -f" with no argument
4779# is OK; and we want to be able to make that assumption in our Makefile
4780# recipes. So use an aggressive probe to check that the usage we want is
4781# actually supported "in the wild" to an acceptable degree.
4782# See automake bug#10828.
4783# To make any issue more visible, cause the running configure to be aborted
4784# by default if the 'rm' program in use doesn't match our expectations; the
4785# user can still override this though.
4786if rm -f && rm -fr && rm -rf; then : OK; else
4787 cat >&2 <<'END'
4788Oops!
4789
4790Your 'rm' program seems unable to run without file operands specified
4791on the command line, even when the '-f' option is present. This is contrary
4792to the behaviour of most rm programs out there, and not conforming with
4793the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4794
4795Please tell bug-automake@gnu.org about your system, including the value
4796of your $PATH and any error possibly output before this message. This
4797can help us improve future automake versions.
4798
4799END
4800 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4801 echo 'Configuration will proceed anyway, since you have set the' >&2
4802 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4803 echo >&2
5c887dd5 4804 else
c2783492
MF
4805 cat >&2 <<'END'
4806Aborting the configuration process, to ensure you take notice of the issue.
4807
4808You can download and install GNU coreutils to get an 'rm' implementation
4809that behaves properly: <http://www.gnu.org/software/coreutils/>.
4810
4811If you want to complete the configuration process using your problematic
4812'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4813to "yes", and re-run configure.
4814
4815END
4816 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5c887dd5 4817 fi
c906108c
SS
4818fi
4819
4820
4821# If a cpu ever has more than one simulator to choose from, use
4822# --enable-sim=... to choose.
81ecdfbb
RW
4823# Check whether --enable-sim was given.
4824if test "${enable_sim+set}" = set; then :
4825 enableval=$enable_sim; case "${enableval}" in
c906108c 4826yes | no) ;;
d0ac1c44 4827*) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
c906108c 4828esac
81ecdfbb
RW
4829fi
4830
c906108c 4831
119da465 4832if test "${enable_sim}" != no; then
3e8bb3e9
MF
4833 sim_igen=no
4834 case "${target}" in
4835 aarch64*-*-*)
2e8cf49e
NC
4836
4837
4838subdirs="$subdirs aarch64"
fdd6fa61 4839
3e8bb3e9
MF
4840 ;;
4841 arm*-*-*)
4842 subdirs="$subdirs arm"
fdd6fa61 4843
3e8bb3e9
MF
4844 ;;
4845 avr*-*-*)
4846 subdirs="$subdirs avr"
0cd79707 4847
3e8bb3e9
MF
4848 ;;
4849 bfin-*-*)
4850 subdirs="$subdirs bfin"
ddd44b70 4851
3e8bb3e9
MF
4852 ;;
4853 bpf-*-*)
4854 subdirs="$subdirs bpf"
ddd44b70 4855
3e8bb3e9
MF
4856 ;;
4857 cr16*-*-*)
4858 subdirs="$subdirs cr16"
ddd44b70 4859
3e8bb3e9
MF
4860 ;;
4861 cris-*-* | crisv32-*-*)
4862 subdirs="$subdirs cris"
b9249c46 4863
3e8bb3e9
MF
4864 ;;
4865 d10v-*-*)
4866 subdirs="$subdirs d10v"
b9249c46 4867
3e8bb3e9
MF
4868 ;;
4869 frv-*-*)
4870 subdirs="$subdirs frv"
b9249c46 4871
3e8bb3e9
MF
4872 ;;
4873 h8300*-*-*)
4874 subdirs="$subdirs h8300"
119da465 4875
3e8bb3e9
MF
4876 ;;
4877 iq2000-*-*)
4878 subdirs="$subdirs iq2000"
119da465 4879
3e8bb3e9
MF
4880 ;;
4881 lm32-*-*)
4882 subdirs="$subdirs lm32"
119da465 4883
3e8bb3e9
MF
4884 ;;
4885 m32c-*-*)
4886 subdirs="$subdirs m32c"
87326c78 4887
3e8bb3e9
MF
4888 ;;
4889 m32r-*-*)
4890 subdirs="$subdirs m32r"
87326c78 4891
3e8bb3e9
MF
4892 ;;
4893 m68hc11-*-*|m6811-*-*)
4894 subdirs="$subdirs m68hc11"
87326c78 4895
3e8bb3e9
MF
4896 ;;
4897 mcore-*-*)
4898 subdirs="$subdirs mcore"
119da465 4899
3e8bb3e9
MF
4900 ;;
4901 microblaze-*-*)
4902 subdirs="$subdirs microblaze"
119da465 4903
3e8bb3e9
MF
4904 ;;
4905 mips*-*-*)
4906 subdirs="$subdirs mips"
119da465 4907
3e8bb3e9
MF
4908 sim_igen=yes
4909 ;;
4910 mn10300*-*-*)
4911 subdirs="$subdirs mn10300"
119da465 4912
3e8bb3e9
MF
4913 sim_igen=yes
4914 ;;
4915 moxie-*-*)
4916 subdirs="$subdirs moxie"
119da465 4917
3e8bb3e9
MF
4918 ;;
4919 msp430*-*-*)
4920 subdirs="$subdirs msp430"
119da465 4921
3e8bb3e9
MF
4922 ;;
4923 or1k-*-* | or1knd-*-*)
4924 subdirs="$subdirs or1k"
119da465 4925
3e8bb3e9
MF
4926 ;;
4927 pru*-*-*)
4928 subdirs="$subdirs pru"
119da465 4929
3e8bb3e9
MF
4930 ;;
4931 riscv*-*-*)
4932 subdirs="$subdirs riscv"
119da465 4933
3e8bb3e9
MF
4934 ;;
4935 rl78-*-*)
4936 subdirs="$subdirs rl78"
f46e4eb7 4937
3e8bb3e9
MF
4938 ;;
4939 rx-*-*)
4940 subdirs="$subdirs rx"
f46e4eb7 4941
3e8bb3e9
MF
4942 ;;
4943 sh*-*-*)
4944 subdirs="$subdirs sh"
f46e4eb7 4945
3e8bb3e9
MF
4946 ;;
4947 sparc-*-rtems*|sparc-*-elf*)
4948 subdirs="$subdirs erc32"
119da465 4949
3e8bb3e9
MF
4950 ;;
4951 powerpc*-*-*)
4952 subdirs="$subdirs ppc"
119da465 4953
3e8bb3e9
MF
4954 ;;
4955 ft32-*-*)
4956 subdirs="$subdirs ft32"
119da465 4957
3e8bb3e9
MF
4958 ;;
4959 v850*-*-*)
4960 subdirs="$subdirs v850"
119da465 4961
3e8bb3e9
MF
4962 sim_igen=yes
4963 ;;
4964 esac
b6b1c790
MF
4965fi
4966 if test "$sim_igen" = "yes"; then
4967 SIM_ENABLE_IGEN_TRUE=
4968 SIM_ENABLE_IGEN_FALSE='#'
4969else
4970 SIM_ENABLE_IGEN_TRUE='#'
4971 SIM_ENABLE_IGEN_FALSE=
c906108c
SS
4972fi
4973
b6b1c790 4974
6c57b87f 4975ac_config_files="$ac_config_files Makefile"
81ecdfbb 4976
b7026657 4977cat >confcache <<\_ACEOF
c906108c
SS
4978# This file is a shell script that caches the results of configure
4979# tests run on this system so they can be shared between configure
b7026657
AC
4980# scripts and configure runs, see configure's option --config-cache.
4981# It is not useful on other systems. If it contains results you don't
4982# want to keep, you may remove or edit it.
c906108c 4983#
b7026657
AC
4984# config.status only pays attention to the cache file if you give it
4985# the --recheck option to rerun configure.
c906108c 4986#
b7026657
AC
4987# `ac_cv_env_foo' variables (set or unset) will be overridden when
4988# loading this file, other *unset* `ac_cv_foo' will be assigned the
4989# following values.
4990
4991_ACEOF
4992
c906108c
SS
4993# The following way of writing the cache mishandles newlines in values,
4994# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 4995# So, we kill variables containing newlines.
c906108c
SS
4996# Ultrix sh set writes to stderr and can't be redirected directly,
4997# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
4998(
4999 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5000 eval ac_val=\$$ac_var
5001 case $ac_val in #(
5002 *${as_nl}*)
5003 case $ac_var in #(
5004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5005$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5006 esac
5007 case $ac_var in #(
5008 _ | IFS | as_nl) ;; #(
5009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5010 *) { eval $ac_var=; unset $ac_var;} ;;
5011 esac ;;
5012 esac
5013 done
5014
b7026657 5015 (set) 2>&1 |
81ecdfbb
RW
5016 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5017 *${as_nl}ac_space=\ *)
5018 # `set' does not quote correctly, so add quotes: double-quote
5019 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
5020 sed -n \
5021 "s/'/'\\\\''/g;
5022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 5023 ;; #(
b7026657
AC
5024 *)
5025 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 5026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 5027 ;;
81ecdfbb
RW
5028 esac |
5029 sort
5030) |
b7026657 5031 sed '
81ecdfbb 5032 /^ac_cv_env_/b end
b7026657 5033 t clear
81ecdfbb 5034 :clear
b7026657
AC
5035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5036 t end
81ecdfbb
RW
5037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5038 :end' >>confcache
5039if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5040 if test -w "$cache_file"; then
d0ac1c44 5041 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5043$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
5044 if test ! -f "$cache_file" || test -h "$cache_file"; then
5045 cat confcache >"$cache_file"
5046 else
5047 case $cache_file in #(
5048 */* | ?:*)
5049 mv -f confcache "$cache_file"$$ &&
5050 mv -f "$cache_file"$$ "$cache_file" ;; #(
5051 *)
5052 mv -f confcache "$cache_file" ;;
5053 esac
5054 fi
5055 fi
c906108c 5056 else
81ecdfbb
RW
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5058$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
5059 fi
5060fi
5061rm -f confcache
5062
c906108c
SS
5063test "x$prefix" = xNONE && prefix=$ac_default_prefix
5064# Let make expand exec_prefix.
5065test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5066
c906108c
SS
5067# Transform confdefs.h into DEFS.
5068# Protect against shell expansion while executing Makefile rules.
5069# Protect against Makefile macro expansion.
b7026657
AC
5070#
5071# If the first sed substitution is executed (which looks for macros that
81ecdfbb 5072# take arguments), then branch to the quote section. Otherwise,
b7026657 5073# look for a macro that doesn't take arguments.
81ecdfbb
RW
5074ac_script='
5075:mline
5076/\\$/{
5077 N
5078 s,\\\n,,
5079 b mline
5080}
b7026657 5081t clear
81ecdfbb
RW
5082:clear
5083s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
b7026657 5084t quote
81ecdfbb 5085s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
b7026657 5086t quote
81ecdfbb
RW
5087b any
5088:quote
5089s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5090s/\[/\\&/g
5091s/\]/\\&/g
5092s/\$/$$/g
5093H
5094:any
5095${
5096 g
5097 s/^\n//
5098 s/\n/ /g
5099 p
5100}
5101'
5102DEFS=`sed -n "$ac_script" confdefs.h`
b7026657
AC
5103
5104
5105ac_libobjs=
5106ac_ltlibobjs=
d0ac1c44 5107U=
b7026657
AC
5108for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5109 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
5110 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5111 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5112 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5113 # will be set to the directory where LIBOBJS objects are built.
5114 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5115 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
5116done
5117LIBOBJS=$ac_libobjs
c906108c 5118
b7026657
AC
5119LTLIBOBJS=$ac_ltlibobjs
5120
5121
c2783492 5122
8c379db2
TT
5123if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5124 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5125Usually this means the macro was only invoked conditionally." "$LINENO" 5
5126fi
6bddc3e8
MF
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5128$as_echo_n "checking that generated files are newer than configure... " >&6; }
5129 if test -n "$am_sleep_pid"; then
5130 # Hide warnings about reused PIDs.
5131 wait $am_sleep_pid 2>/dev/null
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5134$as_echo "done" >&6; }
6bddc3e8
MF
5135if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5136 as_fn_error $? "conditional \"AMDEP\" was never defined.
5137Usually this means the macro was only invoked conditionally." "$LINENO" 5
5138fi
5139if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5140 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5141Usually this means the macro was only invoked conditionally." "$LINENO" 5
5142fi
c2783492
MF
5143 if test -n "$EXEEXT"; then
5144 am__EXEEXT_TRUE=
5145 am__EXEEXT_FALSE='#'
5146else
5147 am__EXEEXT_TRUE='#'
5148 am__EXEEXT_FALSE=
6bddc3e8 5149fi
b7026657 5150
b6b1c790
MF
5151if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
5152 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
5153Usually this means the macro was only invoked conditionally." "$LINENO" 5
5154fi
c2783492 5155
d0ac1c44 5156: "${CONFIG_STATUS=./config.status}"
81ecdfbb 5157ac_write_fail=0
b7026657
AC
5158ac_clean_files_save=$ac_clean_files
5159ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5161$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5162as_write_fail=0
5163cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
5164#! $SHELL
5165# Generated by $as_me.
c906108c 5166# Run this file to recreate the current configuration.
c906108c 5167# Compiler output produced by configure, useful for debugging
b7026657
AC
5168# configure, is in config.log if it exists.
5169
5170debug=false
5171ac_cs_recheck=false
5172ac_cs_silent=false
b7026657 5173
81ecdfbb
RW
5174SHELL=\${CONFIG_SHELL-$SHELL}
5175export SHELL
5176_ASEOF
5177cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5178## -------------------- ##
5179## M4sh Initialization. ##
5180## -------------------- ##
5181
5182# Be more Bourne compatible
5183DUALCASE=1; export DUALCASE # for MKS sh
5184if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
5185 emulate sh
5186 NULLCMD=:
81ecdfbb 5187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
5188 # is contrary to our usage. Disable this feature.
5189 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
5190 setopt NO_GLOB_SUBST
5191else
5192 case `(set -o) 2>/dev/null` in #(
5193 *posix*) :
5194 set -o posix ;; #(
5195 *) :
5196 ;;
5197esac
b7026657 5198fi
c906108c 5199
81ecdfbb
RW
5200
5201as_nl='
5202'
5203export as_nl
5204# Printing a long string crashes Solaris 7 /usr/bin/printf.
5205as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5206as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5207as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5208# Prefer a ksh shell builtin over an external printf program on Solaris,
5209# but without wasting forks for bash or zsh.
5210if test -z "$BASH_VERSION$ZSH_VERSION" \
5211 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5212 as_echo='print -r --'
5213 as_echo_n='print -rn --'
5214elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5215 as_echo='printf %s\n'
5216 as_echo_n='printf %s'
b7026657 5217else
81ecdfbb
RW
5218 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5219 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5220 as_echo_n='/usr/ucb/echo -n'
5221 else
5222 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5223 as_echo_n_body='eval
5224 arg=$1;
5225 case $arg in #(
5226 *"$as_nl"*)
5227 expr "X$arg" : "X\\(.*\\)$as_nl";
5228 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5229 esac;
5230 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5231 '
5232 export as_echo_n_body
5233 as_echo_n='sh -c $as_echo_n_body as_echo'
5234 fi
5235 export as_echo_body
5236 as_echo='sh -c $as_echo_body as_echo'
5237fi
5238
5239# The user is always right.
5240if test "${PATH_SEPARATOR+set}" != set; then
5241 PATH_SEPARATOR=:
5242 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5243 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5244 PATH_SEPARATOR=';'
5245 }
b7026657
AC
5246fi
5247
5248
81ecdfbb
RW
5249# IFS
5250# We need space, tab and new line, in precisely that order. Quoting is
5251# there to prevent editors from complaining about space-tab.
5252# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5253# splitting by setting IFS to empty value.)
5254IFS=" "" $as_nl"
5255
5256# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 5257as_myself=
81ecdfbb
RW
5258case $0 in #((
5259 *[\\/]* ) as_myself=$0 ;;
5260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5266 done
5267IFS=$as_save_IFS
5268
5269 ;;
5270esac
5271# We did not find ourselves, most probably we were run as `sh COMMAND'
5272# in which case we are not to be found in the path.
5273if test "x$as_myself" = x; then
5274 as_myself=$0
5275fi
5276if test ! -f "$as_myself"; then
5277 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5278 exit 1
5279fi
5280
5281# Unset variables that we do not need and which cause bugs (e.g. in
5282# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5283# suppresses any "Segmentation fault" message there. '((' could
5284# trigger a bug in pdksh 5.2.14.
5285for as_var in BASH_ENV ENV MAIL MAILPATH
5286do eval test x\${$as_var+set} = xset \
5287 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5288done
b7026657
AC
5289PS1='$ '
5290PS2='> '
5291PS4='+ '
5292
5293# NLS nuisances.
81ecdfbb
RW
5294LC_ALL=C
5295export LC_ALL
5296LANGUAGE=C
5297export LANGUAGE
5298
5299# CDPATH.
5300(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5301
5302
d0ac1c44
SM
5303# as_fn_error STATUS ERROR [LINENO LOG_FD]
5304# ----------------------------------------
81ecdfbb
RW
5305# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5306# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 5307# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
5308as_fn_error ()
5309{
d0ac1c44
SM
5310 as_status=$1; test $as_status -eq 0 && as_status=1
5311 if test "$4"; then
5312 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5313 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 5314 fi
d0ac1c44 5315 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
5316 as_fn_exit $as_status
5317} # as_fn_error
c906108c 5318
81ecdfbb
RW
5319
5320# as_fn_set_status STATUS
5321# -----------------------
5322# Set $? to STATUS, without forking.
5323as_fn_set_status ()
5324{
5325 return $1
5326} # as_fn_set_status
5327
5328# as_fn_exit STATUS
5329# -----------------
5330# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5331as_fn_exit ()
5332{
5333 set +e
5334 as_fn_set_status $1
5335 exit $1
5336} # as_fn_exit
5337
5338# as_fn_unset VAR
5339# ---------------
5340# Portably unset VAR.
5341as_fn_unset ()
5342{
5343 { eval $1=; unset $1;}
5344}
5345as_unset=as_fn_unset
5346# as_fn_append VAR VALUE
5347# ----------------------
5348# Append the text in VALUE to the end of the definition contained in VAR. Take
5349# advantage of any shell optimizations that allow amortized linear growth over
5350# repeated appends, instead of the typical quadratic growth present in naive
5351# implementations.
5352if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5353 eval 'as_fn_append ()
5354 {
5355 eval $1+=\$2
5356 }'
5357else
5358 as_fn_append ()
5359 {
5360 eval $1=\$$1\$2
5361 }
5362fi # as_fn_append
5363
5364# as_fn_arith ARG...
5365# ------------------
5366# Perform arithmetic evaluation on the ARGs, and store the result in the
5367# global $as_val. Take advantage of shells that can avoid forks. The arguments
5368# must be portable across $(()) and expr.
5369if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5370 eval 'as_fn_arith ()
5371 {
5372 as_val=$(( $* ))
5373 }'
5374else
5375 as_fn_arith ()
5376 {
5377 as_val=`expr "$@" || test $? -eq 1`
5378 }
5379fi # as_fn_arith
5380
5381
5382if expr a : '\(a\)' >/dev/null 2>&1 &&
5383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
5384 as_expr=expr
5385else
5386 as_expr=false
5387fi
c906108c 5388
81ecdfbb 5389if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
5390 as_basename=basename
5391else
5392 as_basename=false
5393fi
c906108c 5394
81ecdfbb
RW
5395if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5396 as_dirname=dirname
5397else
5398 as_dirname=false
5399fi
c906108c 5400
81ecdfbb 5401as_me=`$as_basename -- "$0" ||
b7026657
AC
5402$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5403 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
5404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5405$as_echo X/"$0" |
5406 sed '/^.*\/\([^/][^/]*\)\/*$/{
5407 s//\1/
5408 q
5409 }
5410 /^X\/\(\/\/\)$/{
5411 s//\1/
5412 q
5413 }
5414 /^X\/\(\/\).*/{
5415 s//\1/
5416 q
5417 }
5418 s/.*/./; q'`
b7026657 5419
fdd6fa61
AG
5420# Avoid depending upon Character Ranges.
5421as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5422as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5423as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5424as_cr_digits='0123456789'
5425as_cr_alnum=$as_cr_Letters$as_cr_digits
5426
81ecdfbb
RW
5427ECHO_C= ECHO_N= ECHO_T=
5428case `echo -n x` in #(((((
5429-n*)
5430 case `echo 'xy\c'` in
5431 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5432 xy) ECHO_C='\c';;
5433 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5434 ECHO_T=' ';;
5435 esac;;
5436*)
5437 ECHO_N='-n';;
b7026657
AC
5438esac
5439
81ecdfbb
RW
5440rm -f conf$$ conf$$.exe conf$$.file
5441if test -d conf$$.dir; then
5442 rm -f conf$$.dir/conf$$.file
b7026657 5443else
81ecdfbb
RW
5444 rm -f conf$$.dir
5445 mkdir conf$$.dir 2>/dev/null
b7026657 5446fi
81ecdfbb
RW
5447if (echo >conf$$.file) 2>/dev/null; then
5448 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 5449 as_ln_s='ln -s'
81ecdfbb
RW
5450 # ... but there are two gotchas:
5451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 5453 # In both cases, we have to default to `cp -pR'.
81ecdfbb 5454 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 5455 as_ln_s='cp -pR'
81ecdfbb
RW
5456 elif ln conf$$.file conf$$ 2>/dev/null; then
5457 as_ln_s=ln
5458 else
d0ac1c44 5459 as_ln_s='cp -pR'
fdd6fa61 5460 fi
b7026657 5461else
d0ac1c44 5462 as_ln_s='cp -pR'
b7026657 5463fi
81ecdfbb
RW
5464rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5465rmdir conf$$.dir 2>/dev/null
5466
5467
5468# as_fn_mkdir_p
5469# -------------
5470# Create "$as_dir" as a directory, including parents if necessary.
5471as_fn_mkdir_p ()
5472{
b7026657 5473
81ecdfbb
RW
5474 case $as_dir in #(
5475 -*) as_dir=./$as_dir;;
5476 esac
5477 test -d "$as_dir" || eval $as_mkdir_p || {
5478 as_dirs=
5479 while :; do
5480 case $as_dir in #(
5481 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5482 *) as_qdir=$as_dir;;
5483 esac
5484 as_dirs="'$as_qdir' $as_dirs"
5485 as_dir=`$as_dirname -- "$as_dir" ||
5486$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5487 X"$as_dir" : 'X\(//\)[^/]' \| \
5488 X"$as_dir" : 'X\(//\)$' \| \
5489 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5490$as_echo X"$as_dir" |
5491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5492 s//\1/
5493 q
5494 }
5495 /^X\(\/\/\)[^/].*/{
5496 s//\1/
5497 q
5498 }
5499 /^X\(\/\/\)$/{
5500 s//\1/
5501 q
5502 }
5503 /^X\(\/\).*/{
5504 s//\1/
5505 q
5506 }
5507 s/.*/./; q'`
5508 test -d "$as_dir" && break
5509 done
5510 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 5511 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
5512
5513
5514} # as_fn_mkdir_p
b7026657 5515if mkdir -p . 2>/dev/null; then
81ecdfbb 5516 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
5517else
5518 test -d ./-p && rmdir ./-p
5519 as_mkdir_p=false
5520fi
5521
d0ac1c44
SM
5522
5523# as_fn_executable_p FILE
5524# -----------------------
5525# Test if FILE is an executable regular file.
5526as_fn_executable_p ()
5527{
5528 test -f "$1" && test -x "$1"
5529} # as_fn_executable_p
5530as_test_x='test -x'
5531as_executable_p=as_fn_executable_p
b7026657
AC
5532
5533# Sed expression to map a string onto a valid CPP name.
5534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5535
5536# Sed expression to map a string onto a valid variable name.
5537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5538
5539
b7026657 5540exec 6>&1
81ecdfbb
RW
5541## ----------------------------------- ##
5542## Main body of $CONFIG_STATUS script. ##
5543## ----------------------------------- ##
5544_ASEOF
5545test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5546
5547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5548# Save the log message, to keep $0 and so on meaningful, and to
b7026657 5549# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
5550# values after options handling.
5551ac_log="
6bddc3e8 5552This file was extended by sim $as_me 0, which was
d0ac1c44 5553generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
5554
5555 CONFIG_FILES = $CONFIG_FILES
5556 CONFIG_HEADERS = $CONFIG_HEADERS
5557 CONFIG_LINKS = $CONFIG_LINKS
5558 CONFIG_COMMANDS = $CONFIG_COMMANDS
5559 $ $0 $@
5560
81ecdfbb
RW
5561on `(hostname || uname -n) 2>/dev/null | sed 1q`
5562"
5563
b7026657
AC
5564_ACEOF
5565
81ecdfbb
RW
5566case $ac_config_files in *"
5567"*) set x $ac_config_files; shift; ac_config_files=$*;;
5568esac
b7026657 5569
fdd6fa61 5570
fdd6fa61 5571
81ecdfbb
RW
5572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5573# Files that config.status was made for.
5574config_files="$ac_config_files"
6bddc3e8 5575config_commands="$ac_config_commands"
b7026657 5576
81ecdfbb 5577_ACEOF
fdd6fa61 5578
81ecdfbb 5579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 5580ac_cs_usage="\
81ecdfbb
RW
5581\`$as_me' instantiates files and other configuration actions
5582from templates according to the current configuration. Unless the files
5583and actions are specified as TAGs, all are instantiated by default.
b7026657 5584
81ecdfbb 5585Usage: $0 [OPTION]... [TAG]...
b7026657
AC
5586
5587 -h, --help print this help, then exit
81ecdfbb 5588 -V, --version print version number and configuration settings, then exit
d0ac1c44 5589 --config print configuration, then exit
81ecdfbb
RW
5590 -q, --quiet, --silent
5591 do not print progress messages
b7026657
AC
5592 -d, --debug don't remove temporary files
5593 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
5594 --file=FILE[:TEMPLATE]
5595 instantiate the configuration file FILE
b7026657
AC
5596
5597Configuration files:
5598$config_files
5599
6bddc3e8
MF
5600Configuration commands:
5601$config_commands
5602
5603Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
5604sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
fdd6fa61 5605
81ecdfbb
RW
5606_ACEOF
5607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 5608ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657 5609ac_cs_version="\\
6bddc3e8 5610sim config.status 0
d0ac1c44
SM
5611configured by $0, generated by GNU Autoconf 2.69,
5612 with options \\"\$ac_cs_config\\"
b7026657 5613
d0ac1c44 5614Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
5615This config.status script is free software; the Free Software Foundation
5616gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
5617
5618ac_pwd='$ac_pwd'
5619srcdir='$srcdir'
5620INSTALL='$INSTALL'
6bddc3e8
MF
5621MKDIR_P='$MKDIR_P'
5622AWK='$AWK'
81ecdfbb 5623test -n "\$AWK" || AWK=awk
b7026657
AC
5624_ACEOF
5625
81ecdfbb
RW
5626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5627# The default lists apply if the user does not specify any file.
b7026657
AC
5628ac_need_defaults=:
5629while test $# != 0
5630do
5631 case $1 in
d0ac1c44 5632 --*=?*)
81ecdfbb
RW
5633 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5634 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
5635 ac_shift=:
5636 ;;
d0ac1c44
SM
5637 --*=)
5638 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5639 ac_optarg=
5640 ac_shift=:
5641 ;;
81ecdfbb 5642 *)
b7026657
AC
5643 ac_option=$1
5644 ac_optarg=$2
5645 ac_shift=shift
5646 ;;
b7026657
AC
5647 esac
5648
5649 case $ac_option in
5650 # Handling of the options.
b7026657
AC
5651 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5652 ac_cs_recheck=: ;;
81ecdfbb
RW
5653 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5654 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
5655 --config | --confi | --conf | --con | --co | --c )
5656 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 5657 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
5658 debug=: ;;
5659 --file | --fil | --fi | --f )
5660 $ac_shift
81ecdfbb
RW
5661 case $ac_optarg in
5662 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 5663 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
5664 esac
5665 as_fn_append CONFIG_FILES " '$ac_optarg'"
fdd6fa61 5666 ac_need_defaults=false;;
81ecdfbb
RW
5667 --he | --h | --help | --hel | -h )
5668 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
5669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5670 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5671 ac_cs_silent=: ;;
5672
5673 # This is an error.
d0ac1c44 5674 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 5675Try \`$0 --help' for more information." ;;
b7026657 5676
81ecdfbb
RW
5677 *) as_fn_append ac_config_targets " $1"
5678 ac_need_defaults=false ;;
b7026657
AC
5679
5680 esac
5681 shift
c906108c 5682done
b7026657
AC
5683
5684ac_configure_extra_args=
5685
5686if $ac_cs_silent; then
5687 exec 6>/dev/null
5688 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 5689fi
c906108c 5690
b7026657 5691_ACEOF
81ecdfbb 5692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 5693if \$ac_cs_recheck; then
d0ac1c44 5694 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
5695 shift
5696 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5697 CONFIG_SHELL='$SHELL'
5698 export CONFIG_SHELL
5699 exec "\$@"
b7026657 5700fi
c906108c 5701
b7026657 5702_ACEOF
81ecdfbb
RW
5703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5704exec 5>>config.log
5705{
5706 echo
5707 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5708## Running $as_me. ##
5709_ASBOX
5710 $as_echo "$ac_log"
5711} >&5
b7026657 5712
81ecdfbb
RW
5713_ACEOF
5714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bddc3e8
MF
5715#
5716# INIT-COMMANDS
5717#
5718AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5719
81ecdfbb 5720_ACEOF
b7026657 5721
81ecdfbb 5722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
df1756f4 5723
81ecdfbb 5724# Handling of arguments.
b7026657
AC
5725for ac_config_target in $ac_config_targets
5726do
81ecdfbb 5727 case $ac_config_target in
6bddc3e8 5728 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb
RW
5729 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5730
d0ac1c44 5731 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 5732 esac
b7026657 5733done
c906108c 5734
81ecdfbb 5735
b7026657
AC
5736# If the user did not use the arguments to specify the items to instantiate,
5737# then the envvar interface is used. Set only those that are not.
5738# We use the long form for the default assignment because of an extremely
5739# bizarre bug on SunOS 4.1.3.
5740if $ac_need_defaults; then
5741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6bddc3e8 5742 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b7026657 5743fi
c906108c 5744
b7026657 5745# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 5746# simply because there is no reason against having it here, and in addition,
b7026657 5747# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
5748# Hook for its removal unless debugging.
5749# Note that there is a small window in which the directory will not be cleaned:
5750# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
5751$debug ||
5752{
d0ac1c44 5753 tmp= ac_tmp=
81ecdfbb 5754 trap 'exit_status=$?
d0ac1c44
SM
5755 : "${ac_tmp:=$tmp}"
5756 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
5757' 0
5758 trap 'as_fn_exit 1' 1 2 13 15
b7026657 5759}
b7026657
AC
5760# Create a (secure) tmp directory for tmp files.
5761
5762{
81ecdfbb 5763 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 5764 test -d "$tmp"
b7026657
AC
5765} ||
5766{
81ecdfbb
RW
5767 tmp=./conf$$-$RANDOM
5768 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
5769} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5770ac_tmp=$tmp
81ecdfbb
RW
5771
5772# Set up the scripts for CONFIG_FILES section.
5773# No need to generate them if there are no CONFIG_FILES.
5774# This happens for instance with `./config.status config.h'.
5775if test -n "$CONFIG_FILES"; then
5776
5777
5778ac_cr=`echo X | tr X '\015'`
5779# On cygwin, bash can eat \r inside `` if the user requested igncr.
5780# But we know of no other shell where ac_cr would be empty at this
5781# point, so we can use a bashism as a fallback.
5782if test "x$ac_cr" = x; then
5783 eval ac_cr=\$\'\\r\'
5784fi
5785ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5786if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 5787 ac_cs_awk_cr='\\r'
81ecdfbb
RW
5788else
5789 ac_cs_awk_cr=$ac_cr
5790fi
5791
d0ac1c44 5792echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
5793_ACEOF
5794
5795
5796{
5797 echo "cat >conf$$subs.awk <<_ACEOF" &&
5798 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5799 echo "_ACEOF"
5800} >conf$$subs.sh ||
d0ac1c44
SM
5801 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5802ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
5803ac_delim='%!_!# '
5804for ac_last_try in false false false false false :; do
5805 . ./conf$$subs.sh ||
d0ac1c44 5806 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
5807
5808 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5809 if test $ac_delim_n = $ac_delim_num; then
5810 break
5811 elif $ac_last_try; then
d0ac1c44 5812 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
5813 else
5814 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5815 fi
5816done
5817rm -f conf$$subs.sh
5818
5819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 5820cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
5821_ACEOF
5822sed -n '
5823h
5824s/^/S["/; s/!.*/"]=/
5825p
5826g
5827s/^[^!]*!//
5828:repl
5829t repl
5830s/'"$ac_delim"'$//
5831t delim
5832:nl
5833h
d0ac1c44 5834s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
5835t more1
5836s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5837p
5838n
5839b repl
5840:more1
5841s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5842p
5843g
5844s/.\{148\}//
5845t nl
5846:delim
5847h
d0ac1c44 5848s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
5849t more2
5850s/["\\]/\\&/g; s/^/"/; s/$/"/
5851p
5852b
5853:more2
5854s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5855p
5856g
5857s/.\{148\}//
5858t delim
5859' <conf$$subs.awk | sed '
5860/^[^""]/{
5861 N
5862 s/\n//
5863}
5864' >>$CONFIG_STATUS || ac_write_fail=1
5865rm -f conf$$subs.awk
5866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5867_ACAWK
d0ac1c44 5868cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
5869 for (key in S) S_is_set[key] = 1
5870 FS = "\a"
5871
5872}
b7026657 5873{
81ecdfbb
RW
5874 line = $ 0
5875 nfields = split(line, field, "@")
5876 substed = 0
5877 len = length(field[1])
5878 for (i = 2; i < nfields; i++) {
5879 key = field[i]
5880 keylen = length(key)
5881 if (S_is_set[key]) {
5882 value = S[key]
5883 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5884 len += length(value) + length(field[++i])
5885 substed = 1
5886 } else
5887 len += 1 + keylen
5888 }
5889
5890 print line
b7026657
AC
5891}
5892
81ecdfbb
RW
5893_ACAWK
5894_ACEOF
5895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5896if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5897 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5898else
5899 cat
d0ac1c44
SM
5900fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5901 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
fdd6fa61
AG
5902_ACEOF
5903
d0ac1c44
SM
5904# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5905# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
5906# trailing colons and then remove the whole line if VPATH becomes empty
5907# (actually we leave an empty line to preserve line numbers).
5908if test "x$srcdir" = x.; then
d0ac1c44
SM
5909 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5910h
5911s///
5912s/^/:/
5913s/[ ]*$/:/
5914s/:\$(srcdir):/:/g
5915s/:\${srcdir}:/:/g
5916s/:@srcdir@:/:/g
5917s/^:*//
81ecdfbb 5918s/:*$//
d0ac1c44
SM
5919x
5920s/\(=[ ]*\).*/\1/
5921G
5922s/\n//
81ecdfbb
RW
5923s/^[^=]*=[ ]*$//
5924}'
5925fi
fdd6fa61 5926
81ecdfbb
RW
5927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5928fi # test -n "$CONFIG_FILES"
b7026657 5929
b7026657 5930
6bddc3e8 5931eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
81ecdfbb
RW
5932shift
5933for ac_tag
5934do
5935 case $ac_tag in
5936 :[FHLC]) ac_mode=$ac_tag; continue;;
5937 esac
5938 case $ac_mode$ac_tag in
5939 :[FHL]*:*);;
d0ac1c44 5940 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
5941 :[FH]-) ac_tag=-:-;;
5942 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5943 esac
5944 ac_save_IFS=$IFS
5945 IFS=:
5946 set x $ac_tag
5947 IFS=$ac_save_IFS
5948 shift
5949 ac_file=$1
5950 shift
b7026657 5951
81ecdfbb
RW
5952 case $ac_mode in
5953 :L) ac_source=$1;;
5954 :[FH])
5955 ac_file_inputs=
5956 for ac_f
5957 do
5958 case $ac_f in
d0ac1c44 5959 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
5960 *) # Look for the file first in the build tree, then in the source tree
5961 # (if the path is not absolute). The absolute path cannot be DOS-style,
5962 # because $ac_f cannot contain `:'.
5963 test -f "$ac_f" ||
5964 case $ac_f in
5965 [\\/$]*) false;;
5966 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5967 esac ||
d0ac1c44 5968 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
5969 esac
5970 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5971 as_fn_append ac_file_inputs " '$ac_f'"
5972 done
5973
5974 # Let's still pretend it is `configure' which instantiates (i.e., don't
5975 # use $as_me), people would be surprised to read:
5976 # /* config.h. Generated by config.status. */
5977 configure_input='Generated from '`
5978 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5979 `' by configure.'
5980 if test x"$ac_file" != x-; then
5981 configure_input="$ac_file. $configure_input"
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5983$as_echo "$as_me: creating $ac_file" >&6;}
fdd6fa61 5984 fi
81ecdfbb
RW
5985 # Neutralize special characters interpreted by sed in replacement strings.
5986 case $configure_input in #(
5987 *\&* | *\|* | *\\* )
5988 ac_sed_conf_input=`$as_echo "$configure_input" |
5989 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5990 *) ac_sed_conf_input=$configure_input;;
5991 esac
df1756f4 5992
81ecdfbb 5993 case $ac_tag in
d0ac1c44
SM
5994 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
5996 esac
5997 ;;
df1756f4
TG
5998 esac
5999
81ecdfbb 6000 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
6001$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6002 X"$ac_file" : 'X\(//\)[^/]' \| \
6003 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
6004 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6005$as_echo X"$ac_file" |
6006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6007 s//\1/
6008 q
6009 }
6010 /^X\(\/\/\)[^/].*/{
6011 s//\1/
6012 q
6013 }
6014 /^X\(\/\/\)$/{
6015 s//\1/
6016 q
6017 }
6018 /^X\(\/\).*/{
6019 s//\1/
6020 q
6021 }
6022 s/.*/./; q'`
6023 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
6024 ac_builddir=.
6025
81ecdfbb
RW
6026case "$ac_dir" in
6027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6028*)
6029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6030 # A ".." for each directory in $ac_dir_suffix.
6031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6032 case $ac_top_builddir_sub in
6033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6035 esac ;;
6036esac
6037ac_abs_top_builddir=$ac_pwd
6038ac_abs_builddir=$ac_pwd$ac_dir_suffix
6039# for backward compatibility:
6040ac_top_builddir=$ac_top_build_prefix
b7026657
AC
6041
6042case $srcdir in
81ecdfbb 6043 .) # We are building in place.
b7026657 6044 ac_srcdir=.
81ecdfbb
RW
6045 ac_top_srcdir=$ac_top_builddir_sub
6046 ac_abs_top_srcdir=$ac_pwd ;;
6047 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 6048 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
6049 ac_top_srcdir=$srcdir
6050 ac_abs_top_srcdir=$srcdir ;;
6051 *) # Relative name.
6052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6053 ac_top_srcdir=$ac_top_build_prefix$srcdir
6054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 6055esac
81ecdfbb 6056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 6057
b7026657 6058
81ecdfbb
RW
6059 case $ac_mode in
6060 :F)
6061 #
6062 # CONFIG_FILE
6063 #
c906108c 6064
b7026657
AC
6065 case $INSTALL in
6066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 6067 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 6068 esac
6bddc3e8
MF
6069 ac_MKDIR_P=$MKDIR_P
6070 case $MKDIR_P in
6071 [\\/$]* | ?:[\\/]* ) ;;
6072 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6073 esac
81ecdfbb 6074_ACEOF
c906108c 6075
81ecdfbb
RW
6076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6077# If the template does not know about datarootdir, expand it.
6078# FIXME: This hack should be removed a few years after 2.60.
6079ac_datarootdir_hack=; ac_datarootdir_seen=
6080ac_sed_dataroot='
6081/datarootdir/ {
6082 p
6083 q
6084}
6085/@datadir@/p
6086/@docdir@/p
6087/@infodir@/p
6088/@localedir@/p
6089/@mandir@/p'
6090case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6091*datarootdir*) ac_datarootdir_seen=yes;;
6092*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6094$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6095_ACEOF
6096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6097 ac_datarootdir_hack='
6098 s&@datadir@&$datadir&g
6099 s&@docdir@&$docdir&g
6100 s&@infodir@&$infodir&g
6101 s&@localedir@&$localedir&g
6102 s&@mandir@&$mandir&g
6103 s&\\\${datarootdir}&$datarootdir&g' ;;
6104esac
b7026657 6105_ACEOF
81ecdfbb
RW
6106
6107# Neutralize VPATH when `$srcdir' = `.'.
6108# Shell code in configure.ac might set extrasub.
6109# FIXME: do we really want to maintain this feature?
6110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6111ac_sed_extra="$ac_vpsub
b7026657
AC
6112$extrasub
6113_ACEOF
81ecdfbb 6114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
6115:t
6116/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
6117s|@configure_input@|$ac_sed_conf_input|;t t
6118s&@top_builddir@&$ac_top_builddir_sub&;t t
6119s&@top_build_prefix@&$ac_top_build_prefix&;t t
6120s&@srcdir@&$ac_srcdir&;t t
6121s&@abs_srcdir@&$ac_abs_srcdir&;t t
6122s&@top_srcdir@&$ac_top_srcdir&;t t
6123s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6124s&@builddir@&$ac_builddir&;t t
6125s&@abs_builddir@&$ac_abs_builddir&;t t
6126s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6127s&@INSTALL@&$ac_INSTALL&;t t
6bddc3e8 6128s&@MKDIR_P@&$ac_MKDIR_P&;t t
81ecdfbb
RW
6129$ac_datarootdir_hack
6130"
d0ac1c44
SM
6131eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6132 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
6133
6134test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
6135 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6136 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6137 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 6139which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 6140$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 6141which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 6142
d0ac1c44 6143 rm -f "$ac_tmp/stdin"
81ecdfbb 6144 case $ac_file in
d0ac1c44
SM
6145 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6146 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 6147 esac \
d0ac1c44 6148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 6149 ;;
df1756f4 6150
df1756f4 6151
6bddc3e8
MF
6152 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6153$as_echo "$as_me: executing $ac_file commands" >&6;}
6154 ;;
6155 esac
6156
c906108c 6157
6bddc3e8
MF
6158 case $ac_file$ac_mode in
6159 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6160 # Older Autoconf quotes --file arguments for eval, but not when files
6161 # are listed without --file. Let's play safe and only enable the eval
6162 # if we detect the quoting.
6163 case $CONFIG_FILES in
6164 *\'*) eval set x "$CONFIG_FILES" ;;
6165 *) set x $CONFIG_FILES ;;
81ecdfbb 6166 esac
6bddc3e8
MF
6167 shift
6168 for mf
6169 do
6170 # Strip MF so we end up with the name of the file.
6171 mf=`echo "$mf" | sed -e 's/:.*$//'`
6172 # Check whether this is an Automake generated Makefile or not.
6173 # We used to match only the files named 'Makefile.in', but
6174 # some people rename them; so instead we look at the file content.
6175 # Grep'ing the first line is not enough: some people post-process
6176 # each Makefile.in and add a new line on top of each file to say so.
6177 # Grep'ing the whole file is not good either: AIX grep has a line
6178 # limit of 2048, but all sed's we know have understand at least 4000.
6179 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6180 dirpart=`$as_dirname -- "$mf" ||
6181$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6182 X"$mf" : 'X\(//\)[^/]' \| \
6183 X"$mf" : 'X\(//\)$' \| \
6184 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6185$as_echo X"$mf" |
6186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6187 s//\1/
6188 q
6189 }
6190 /^X\(\/\/\)[^/].*/{
6191 s//\1/
6192 q
6193 }
6194 /^X\(\/\/\)$/{
6195 s//\1/
6196 q
6197 }
6198 /^X\(\/\).*/{
6199 s//\1/
6200 q
6201 }
6202 s/.*/./; q'`
6203 else
6204 continue
6205 fi
6206 # Extract the definition of DEPDIR, am__include, and am__quote
6207 # from the Makefile without running 'make'.
6208 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6209 test -z "$DEPDIR" && continue
6210 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6211 test -z "$am__include" && continue
6212 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6213 # Find all dependency output files, they are included files with
6214 # $(DEPDIR) in their names. We invoke sed twice because it is the
6215 # simplest approach to changing $(DEPDIR) to its actual value in the
6216 # expansion.
6217 for file in `sed -n "
6218 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6219 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
6220 # Make sure the directory exists.
6221 test -f "$dirpart/$file" && continue
6222 fdir=`$as_dirname -- "$file" ||
6223$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6224 X"$file" : 'X\(//\)[^/]' \| \
6225 X"$file" : 'X\(//\)$' \| \
6226 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6227$as_echo X"$file" |
6228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6229 s//\1/
6230 q
6231 }
6232 /^X\(\/\/\)[^/].*/{
6233 s//\1/
6234 q
6235 }
6236 /^X\(\/\/\)$/{
6237 s//\1/
6238 q
6239 }
6240 /^X\(\/\).*/{
6241 s//\1/
6242 q
6243 }
6244 s/.*/./; q'`
6245 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6246 # echo "creating $dirpart/$file"
6247 echo '# dummy' > "$dirpart/$file"
6248 done
6249 done
6250}
6251 ;;
81ecdfbb 6252
6bddc3e8 6253 esac
81ecdfbb
RW
6254done # for ac_tag
6255
6256
6257as_fn_exit 0
b7026657 6258_ACEOF
b7026657
AC
6259ac_clean_files=$ac_clean_files_save
6260
81ecdfbb 6261test $ac_write_fail = 0 ||
d0ac1c44 6262 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 6263
b7026657
AC
6264
6265# configure is writing to config.log, and then calls config.status.
6266# config.status does its own redirection, appending to config.log.
6267# Unfortunately, on DOS this fails, as config.log is still kept open
6268# by configure, so config.status won't be able to write to it; its
6269# output is simply discarded. So we exec the FD to /dev/null,
6270# effectively closing config.log, so it can be properly (re)opened and
6271# appended to by config.status. When coming back to configure, we
6272# need to make the FD available again.
6273if test "$no_create" != yes; then
6274 ac_cs_success=:
6275 ac_config_status_args=
6276 test "$silent" = yes &&
6277 ac_config_status_args="$ac_config_status_args --quiet"
6278 exec 5>/dev/null
6279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6280 exec 5>>config.log
6281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6282 # would make configure fail if this is the last instruction.
d0ac1c44 6283 $ac_cs_success || as_fn_exit 1
b7026657 6284fi
c906108c 6285
b7026657 6286#
81ecdfbb 6287# CONFIG_SUBDIRS section.
b7026657 6288#
c906108c
SS
6289if test "$no_recursion" != yes; then
6290
81ecdfbb
RW
6291 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6292 # so they do not pile up.
c906108c
SS
6293 ac_sub_configure_args=
6294 ac_prev=
d6416cdc
RW
6295 eval "set x $ac_configure_args"
6296 shift
6297 for ac_arg
6298 do
c906108c
SS
6299 if test -n "$ac_prev"; then
6300 ac_prev=
6301 continue
6302 fi
b7026657 6303 case $ac_arg in
c906108c
SS
6304 -cache-file | --cache-file | --cache-fil | --cache-fi \
6305 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6306 ac_prev=cache_file ;;
6307 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
b7026657
AC
6308 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6309 | --c=*)
6310 ;;
6311 --config-cache | -C)
c906108c
SS
6312 ;;
6313 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6314 ac_prev=srcdir ;;
6315 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6316 ;;
b7026657
AC
6317 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6318 ac_prev=prefix ;;
6319 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6320 ;;
81ecdfbb
RW
6321 --disable-option-checking)
6322 ;;
d6416cdc
RW
6323 *)
6324 case $ac_arg in
81ecdfbb 6325 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 6326 esac
81ecdfbb 6327 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
c906108c
SS
6328 esac
6329 done
6330
b7026657
AC
6331 # Always prepend --prefix to ensure using the same prefix
6332 # in subdir configurations.
d6416cdc
RW
6333 ac_arg="--prefix=$prefix"
6334 case $ac_arg in
81ecdfbb 6335 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 6336 esac
81ecdfbb
RW
6337 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
6338
6339 # Pass --silent
6340 if test "$silent" = yes; then
6341 ac_sub_configure_args="--silent $ac_sub_configure_args"
6342 fi
6343
6344 # Always prepend --disable-option-checking to silence warnings, since
6345 # different subdirs can have different --enable and --with options.
6346 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
b7026657
AC
6347
6348 ac_popdir=`pwd`
6349 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
6350
6351 # Do not complain, so a configure script can configure whichever
6352 # parts of a large source tree are present.
d6416cdc 6353 test -d "$srcdir/$ac_dir" || continue
fdd6fa61 6354
81ecdfbb
RW
6355 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6357 $as_echo "$ac_msg" >&6
6358 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
6359 ac_builddir=.
6360
81ecdfbb
RW
6361case "$ac_dir" in
6362.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6363*)
6364 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6365 # A ".." for each directory in $ac_dir_suffix.
6366 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6367 case $ac_top_builddir_sub in
6368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6370 esac ;;
6371esac
6372ac_abs_top_builddir=$ac_pwd
6373ac_abs_builddir=$ac_pwd$ac_dir_suffix
6374# for backward compatibility:
6375ac_top_builddir=$ac_top_build_prefix
c906108c 6376
b7026657 6377case $srcdir in
81ecdfbb 6378 .) # We are building in place.
b7026657 6379 ac_srcdir=.
81ecdfbb
RW
6380 ac_top_srcdir=$ac_top_builddir_sub
6381 ac_abs_top_srcdir=$ac_pwd ;;
6382 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 6383 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
6384 ac_top_srcdir=$srcdir
6385 ac_abs_top_srcdir=$srcdir ;;
6386 *) # Relative name.
6387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6388 ac_top_srcdir=$ac_top_build_prefix$srcdir
6389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 6390esac
81ecdfbb 6391ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
c906108c 6392
c906108c 6393
d6416cdc 6394 cd "$ac_dir"
c906108c
SS
6395
6396 # Check for guested configure; otherwise get Cygnus style configure.
d6416cdc
RW
6397 if test -f "$ac_srcdir/configure.gnu"; then
6398 ac_sub_configure=$ac_srcdir/configure.gnu
6399 elif test -f "$ac_srcdir/configure"; then
6400 ac_sub_configure=$ac_srcdir/configure
6401 elif test -f "$ac_srcdir/configure.in"; then
6402 # This should be Cygnus configure.
6403 ac_sub_configure=$ac_aux_dir/configure
c906108c 6404 else
81ecdfbb
RW
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
6406$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
6407 ac_sub_configure=
6408 fi
6409
6410 # The recursion is here.
6411 if test -n "$ac_sub_configure"; then
c906108c 6412 # Make the cache file name correct relative to the subdirectory.
b7026657
AC
6413 case $cache_file in
6414 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
81ecdfbb
RW
6415 *) # Relative name.
6416 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
c906108c 6417 esac
c906108c 6418
81ecdfbb
RW
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6420$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 6421 # The eval makes quoting arguments work.
d6416cdc
RW
6422 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6423 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
d0ac1c44 6424 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
c906108c
SS
6425 fi
6426
d6416cdc 6427 cd "$ac_popdir"
c906108c
SS
6428 done
6429fi
81ecdfbb
RW
6430if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6432$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6433fi
c906108c 6434