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