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