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