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