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