]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/erc32/configure
sim: drop configure scripts for simple ports
[thirdparty/binutils-gdb.git] / sim / erc32 / 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
b5689863 199test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
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"
81ecdfbb
RW
586ac_subst_vars='LTLIBOBJS
587LIBOBJS
36bb57e4
MF
588SIM_COMMON_BUILD_FALSE
589SIM_COMMON_BUILD_TRUE
760b3e8b 590sim_reserved_bits
760b3e8b
MF
591sim_default_model
592sim_scache
593sim_float
760b3e8b 594sim_bitsize
81ecdfbb 595cgen_breaks
2694bce9 596READLINE_CFLAGS
81ecdfbb
RW
597READLINE
598TERMCAP
d3562f83
MF
599EGREP
600GREP
601CPP
bc56166f
MF
602OBJEXT
603EXEEXT
604ac_ct_CC
605CPPFLAGS
606LDFLAGS
607CFLAGS
608CC
81ecdfbb
RW
609target_alias
610host_alias
611build_alias
612LIBS
613ECHO_T
614ECHO_N
615ECHO_C
616DEFS
617mandir
618localedir
619libdir
620psdir
621pdfdir
622dvidir
623htmldir
624infodir
625docdir
626oldincludedir
627includedir
628localstatedir
629sharedstatedir
630sysconfdir
631datadir
632datarootdir
633libexecdir
634sbindir
635bindir
636program_transform_name
637prefix
638exec_prefix
639PACKAGE_URL
640PACKAGE_BUGREPORT
641PACKAGE_STRING
642PACKAGE_VERSION
643PACKAGE_TARNAME
644PACKAGE_NAME
645PATH_SEPARATOR
be0387ee 646SHELL'
b7026657 647ac_subst_files=''
81ecdfbb
RW
648ac_user_opts='
649enable_option_checking
81ecdfbb
RW
650'
651 ac_precious_vars='build_alias
652host_alias
653target_alias
654CC
655CFLAGS
656LDFLAGS
657LIBS
658CPPFLAGS
659CPP'
660
c906108c
SS
661
662# Initialize some variables set by options.
b7026657
AC
663ac_init_help=
664ac_init_version=false
81ecdfbb
RW
665ac_unrecognized_opts=
666ac_unrecognized_sep=
c906108c
SS
667# The variables have the same names as the options, with
668# dashes changed to underlines.
b7026657 669cache_file=/dev/null
c906108c 670exec_prefix=NONE
c906108c 671no_create=
c906108c
SS
672no_recursion=
673prefix=NONE
674program_prefix=NONE
675program_suffix=NONE
676program_transform_name=s,x,x,
677silent=
678site=
679srcdir=
c906108c
SS
680verbose=
681x_includes=NONE
682x_libraries=NONE
b7026657
AC
683
684# Installation directory options.
685# These are left unexpanded so users can "make install exec_prefix=/foo"
686# and all the variables that are supposed to be based on exec_prefix
687# by default will actually change.
688# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 689# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
690bindir='${exec_prefix}/bin'
691sbindir='${exec_prefix}/sbin'
692libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
693datarootdir='${prefix}/share'
694datadir='${datarootdir}'
c906108c
SS
695sysconfdir='${prefix}/etc'
696sharedstatedir='${prefix}/com'
697localstatedir='${prefix}/var'
c906108c
SS
698includedir='${prefix}/include'
699oldincludedir='/usr/include'
81ecdfbb
RW
700docdir='${datarootdir}/doc/${PACKAGE}'
701infodir='${datarootdir}/info'
702htmldir='${docdir}'
703dvidir='${docdir}'
704pdfdir='${docdir}'
705psdir='${docdir}'
706libdir='${exec_prefix}/lib'
707localedir='${datarootdir}/locale'
708mandir='${datarootdir}/man'
c906108c 709
c906108c 710ac_prev=
81ecdfbb 711ac_dashdash=
c906108c
SS
712for ac_option
713do
c906108c
SS
714 # If the previous option needs an argument, assign it.
715 if test -n "$ac_prev"; then
81ecdfbb 716 eval $ac_prev=\$ac_option
c906108c
SS
717 ac_prev=
718 continue
719 fi
720
81ecdfbb 721 case $ac_option in
d0ac1c44
SM
722 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
723 *=) ac_optarg= ;;
724 *) ac_optarg=yes ;;
81ecdfbb 725 esac
c906108c
SS
726
727 # Accept the important Cygnus configure options, so we can diagnose typos.
728
81ecdfbb
RW
729 case $ac_dashdash$ac_option in
730 --)
731 ac_dashdash=yes ;;
c906108c
SS
732
733 -bindir | --bindir | --bindi | --bind | --bin | --bi)
734 ac_prev=bindir ;;
735 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 736 bindir=$ac_optarg ;;
c906108c
SS
737
738 -build | --build | --buil | --bui | --bu)
b7026657 739 ac_prev=build_alias ;;
c906108c 740 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 741 build_alias=$ac_optarg ;;
c906108c
SS
742
743 -cache-file | --cache-file | --cache-fil | --cache-fi \
744 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
745 ac_prev=cache_file ;;
746 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
747 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
748 cache_file=$ac_optarg ;;
749
750 --config-cache | -C)
751 cache_file=config.cache ;;
c906108c 752
81ecdfbb 753 -datadir | --datadir | --datadi | --datad)
c906108c 754 ac_prev=datadir ;;
81ecdfbb 755 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 756 datadir=$ac_optarg ;;
c906108c 757
81ecdfbb
RW
758 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
759 | --dataroo | --dataro | --datar)
760 ac_prev=datarootdir ;;
761 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
762 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
763 datarootdir=$ac_optarg ;;
764
c906108c 765 -disable-* | --disable-*)
81ecdfbb 766 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 767 # Reject names that are not valid shell variable names.
81ecdfbb 768 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 769 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
770 ac_useropt_orig=$ac_useropt
771 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
772 case $ac_user_opts in
773 *"
774"enable_$ac_useropt"
775"*) ;;
776 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
777 ac_unrecognized_sep=', ';;
778 esac
779 eval enable_$ac_useropt=no ;;
780
781 -docdir | --docdir | --docdi | --doc | --do)
782 ac_prev=docdir ;;
783 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
784 docdir=$ac_optarg ;;
785
786 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
787 ac_prev=dvidir ;;
788 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
789 dvidir=$ac_optarg ;;
c906108c
SS
790
791 -enable-* | --enable-*)
81ecdfbb 792 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 793 # Reject names that are not valid shell variable names.
81ecdfbb 794 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 795 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
796 ac_useropt_orig=$ac_useropt
797 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
798 case $ac_user_opts in
799 *"
800"enable_$ac_useropt"
801"*) ;;
802 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
803 ac_unrecognized_sep=', ';;
c906108c 804 esac
81ecdfbb 805 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
806
807 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
808 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
809 | --exec | --exe | --ex)
810 ac_prev=exec_prefix ;;
811 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
812 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
813 | --exec=* | --exe=* | --ex=*)
b7026657 814 exec_prefix=$ac_optarg ;;
c906108c
SS
815
816 -gas | --gas | --ga | --g)
817 # Obsolete; use --with-gas.
818 with_gas=yes ;;
819
b7026657
AC
820 -help | --help | --hel | --he | -h)
821 ac_init_help=long ;;
822 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
823 ac_init_help=recursive ;;
824 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
825 ac_init_help=short ;;
c906108c
SS
826
827 -host | --host | --hos | --ho)
b7026657 828 ac_prev=host_alias ;;
c906108c 829 -host=* | --host=* | --hos=* | --ho=*)
b7026657 830 host_alias=$ac_optarg ;;
c906108c 831
81ecdfbb
RW
832 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
833 ac_prev=htmldir ;;
834 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
835 | --ht=*)
836 htmldir=$ac_optarg ;;
837
c906108c
SS
838 -includedir | --includedir | --includedi | --included | --include \
839 | --includ | --inclu | --incl | --inc)
840 ac_prev=includedir ;;
841 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
842 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 843 includedir=$ac_optarg ;;
c906108c
SS
844
845 -infodir | --infodir | --infodi | --infod | --info | --inf)
846 ac_prev=infodir ;;
847 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 848 infodir=$ac_optarg ;;
c906108c
SS
849
850 -libdir | --libdir | --libdi | --libd)
851 ac_prev=libdir ;;
852 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 853 libdir=$ac_optarg ;;
c906108c
SS
854
855 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
856 | --libexe | --libex | --libe)
857 ac_prev=libexecdir ;;
858 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
859 | --libexe=* | --libex=* | --libe=*)
b7026657 860 libexecdir=$ac_optarg ;;
c906108c 861
81ecdfbb
RW
862 -localedir | --localedir | --localedi | --localed | --locale)
863 ac_prev=localedir ;;
864 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
865 localedir=$ac_optarg ;;
866
c906108c 867 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 868 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
869 ac_prev=localstatedir ;;
870 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 871 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 872 localstatedir=$ac_optarg ;;
c906108c
SS
873
874 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
875 ac_prev=mandir ;;
876 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 877 mandir=$ac_optarg ;;
c906108c
SS
878
879 -nfp | --nfp | --nf)
880 # Obsolete; use --without-fp.
881 with_fp=no ;;
882
883 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 884 | --no-cr | --no-c | -n)
c906108c
SS
885 no_create=yes ;;
886
887 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
888 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
889 no_recursion=yes ;;
890
891 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
892 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
893 | --oldin | --oldi | --old | --ol | --o)
894 ac_prev=oldincludedir ;;
895 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
896 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
897 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 898 oldincludedir=$ac_optarg ;;
c906108c
SS
899
900 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
901 ac_prev=prefix ;;
902 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 903 prefix=$ac_optarg ;;
c906108c
SS
904
905 -program-prefix | --program-prefix | --program-prefi | --program-pref \
906 | --program-pre | --program-pr | --program-p)
907 ac_prev=program_prefix ;;
908 -program-prefix=* | --program-prefix=* | --program-prefi=* \
909 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 910 program_prefix=$ac_optarg ;;
c906108c
SS
911
912 -program-suffix | --program-suffix | --program-suffi | --program-suff \
913 | --program-suf | --program-su | --program-s)
914 ac_prev=program_suffix ;;
915 -program-suffix=* | --program-suffix=* | --program-suffi=* \
916 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 917 program_suffix=$ac_optarg ;;
c906108c
SS
918
919 -program-transform-name | --program-transform-name \
920 | --program-transform-nam | --program-transform-na \
921 | --program-transform-n | --program-transform- \
922 | --program-transform | --program-transfor \
923 | --program-transfo | --program-transf \
924 | --program-trans | --program-tran \
925 | --progr-tra | --program-tr | --program-t)
926 ac_prev=program_transform_name ;;
927 -program-transform-name=* | --program-transform-name=* \
928 | --program-transform-nam=* | --program-transform-na=* \
929 | --program-transform-n=* | --program-transform-=* \
930 | --program-transform=* | --program-transfor=* \
931 | --program-transfo=* | --program-transf=* \
932 | --program-trans=* | --program-tran=* \
933 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 934 program_transform_name=$ac_optarg ;;
c906108c 935
81ecdfbb
RW
936 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
937 ac_prev=pdfdir ;;
938 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
939 pdfdir=$ac_optarg ;;
940
941 -psdir | --psdir | --psdi | --psd | --ps)
942 ac_prev=psdir ;;
943 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
944 psdir=$ac_optarg ;;
945
c906108c
SS
946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
947 | -silent | --silent | --silen | --sile | --sil)
948 silent=yes ;;
949
950 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
951 ac_prev=sbindir ;;
952 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
953 | --sbi=* | --sb=*)
b7026657 954 sbindir=$ac_optarg ;;
c906108c
SS
955
956 -sharedstatedir | --sharedstatedir | --sharedstatedi \
957 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
958 | --sharedst | --shareds | --shared | --share | --shar \
959 | --sha | --sh)
960 ac_prev=sharedstatedir ;;
961 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
962 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
963 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
964 | --sha=* | --sh=*)
b7026657 965 sharedstatedir=$ac_optarg ;;
c906108c
SS
966
967 -site | --site | --sit)
968 ac_prev=site ;;
969 -site=* | --site=* | --sit=*)
b7026657 970 site=$ac_optarg ;;
eb2d80b4 971
c906108c
SS
972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
973 ac_prev=srcdir ;;
974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 975 srcdir=$ac_optarg ;;
c906108c
SS
976
977 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
978 | --syscon | --sysco | --sysc | --sys | --sy)
979 ac_prev=sysconfdir ;;
980 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
981 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 982 sysconfdir=$ac_optarg ;;
c906108c
SS
983
984 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 985 ac_prev=target_alias ;;
c906108c 986 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 987 target_alias=$ac_optarg ;;
c906108c
SS
988
989 -v | -verbose | --verbose | --verbos | --verbo | --verb)
990 verbose=yes ;;
991
b7026657
AC
992 -version | --version | --versio | --versi | --vers | -V)
993 ac_init_version=: ;;
c906108c
SS
994
995 -with-* | --with-*)
81ecdfbb 996 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 997 # Reject names that are not valid shell variable names.
81ecdfbb 998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 999 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004"with_$ac_useropt"
1005"*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
c906108c 1008 esac
81ecdfbb 1009 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1010
1011 -without-* | --without-*)
81ecdfbb 1012 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1013 # Reject names that are not valid shell variable names.
81ecdfbb 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1015 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020"with_$ac_useropt"
1021"*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval with_$ac_useropt=no ;;
c906108c
SS
1026
1027 --x)
1028 # Obsolete; use --with-x.
1029 with_x=yes ;;
1030
1031 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1032 | --x-incl | --x-inc | --x-in | --x-i)
1033 ac_prev=x_includes ;;
1034 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1035 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1036 x_includes=$ac_optarg ;;
c906108c
SS
1037
1038 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1039 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1040 ac_prev=x_libraries ;;
1041 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1042 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1043 x_libraries=$ac_optarg ;;
c906108c 1044
d0ac1c44
SM
1045 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1046Try \`$0 --help' for more information"
c906108c
SS
1047 ;;
1048
b7026657
AC
1049 *=*)
1050 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1051 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1052 case $ac_envvar in #(
1053 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1054 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1055 esac
1056 eval $ac_envvar=\$ac_optarg
b7026657
AC
1057 export $ac_envvar ;;
1058
c906108c 1059 *)
b7026657 1060 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1061 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1062 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1063 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1064 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1065 ;;
1066
1067 esac
1068done
1069
1070if test -n "$ac_prev"; then
b7026657 1071 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1072 as_fn_error $? "missing argument to $ac_option"
c906108c 1073fi
c906108c 1074
81ecdfbb
RW
1075if test -n "$ac_unrecognized_opts"; then
1076 case $enable_option_checking in
1077 no) ;;
d0ac1c44 1078 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1079 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1080 esac
81ecdfbb 1081fi
c906108c 1082
81ecdfbb
RW
1083# Check all directory arguments for consistency.
1084for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085 datadir sysconfdir sharedstatedir localstatedir includedir \
1086 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087 libdir localedir mandir
c906108c 1088do
81ecdfbb
RW
1089 eval ac_val=\$$ac_var
1090 # Remove trailing slashes.
1091 case $ac_val in
1092 */ )
1093 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1094 eval $ac_var=\$ac_val;;
1095 esac
1096 # Be sure to have absolute directory names.
b7026657 1097 case $ac_val in
81ecdfbb
RW
1098 [\\/$]* | ?:[\\/]* ) continue;;
1099 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1100 esac
d0ac1c44 1101 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1102done
1103
b7026657
AC
1104# There might be people who depend on the old broken behavior: `$host'
1105# used to hold the argument of --host etc.
1106# FIXME: To remove some day.
1107build=$build_alias
1108host=$host_alias
1109target=$target_alias
1110
1111# FIXME: To remove some day.
1112if test "x$host_alias" != x; then
1113 if test "x$build_alias" = x; then
1114 cross_compiling=maybe
b7026657
AC
1115 elif test "x$build_alias" != "x$host_alias"; then
1116 cross_compiling=yes
1117 fi
1118fi
c906108c 1119
b7026657
AC
1120ac_tool_prefix=
1121test -n "$host_alias" && ac_tool_prefix=$host_alias-
1122
1123test "$silent" = yes && exec 6>/dev/null
c906108c 1124
c906108c 1125
81ecdfbb
RW
1126ac_pwd=`pwd` && test -n "$ac_pwd" &&
1127ac_ls_di=`ls -di .` &&
1128ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1129 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1130test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1131 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1132
1133
c906108c
SS
1134# Find the source files, if location was not specified.
1135if test -z "$srcdir"; then
1136 ac_srcdir_defaulted=yes
81ecdfbb
RW
1137 # Try the directory containing this script, then the parent directory.
1138 ac_confdir=`$as_dirname -- "$as_myself" ||
1139$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1140 X"$as_myself" : 'X\(//\)[^/]' \| \
1141 X"$as_myself" : 'X\(//\)$' \| \
1142 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1143$as_echo X"$as_myself" |
1144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1145 s//\1/
1146 q
1147 }
1148 /^X\(\/\/\)[^/].*/{
1149 s//\1/
1150 q
1151 }
1152 /^X\(\/\/\)$/{
1153 s//\1/
1154 q
1155 }
1156 /^X\(\/\).*/{
1157 s//\1/
1158 q
1159 }
1160 s/.*/./; q'`
c906108c 1161 srcdir=$ac_confdir
81ecdfbb 1162 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1163 srcdir=..
1164 fi
1165else
1166 ac_srcdir_defaulted=no
1167fi
81ecdfbb
RW
1168if test ! -r "$srcdir/$ac_unique_file"; then
1169 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1170 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1171fi
1172ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1173ac_abs_confdir=`(
d0ac1c44 1174 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1175 pwd)`
1176# When building in place, set srcdir=.
1177if test "$ac_abs_confdir" = "$ac_pwd"; then
1178 srcdir=.
1179fi
1180# Remove unnecessary trailing slashes from srcdir.
1181# Double slashes in file names in object file debugging info
1182# mess up M-x gdb in Emacs.
1183case $srcdir in
1184*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1185esac
1186for ac_var in $ac_precious_vars; do
1187 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1188 eval ac_env_${ac_var}_value=\$${ac_var}
1189 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1190 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1191done
c906108c 1192
b7026657
AC
1193#
1194# Report the --help message.
1195#
1196if test "$ac_init_help" = "long"; then
1197 # Omit some internal or obsolete options to make the list less imposing.
1198 # This message is too long to be a string in the A/UX 3.1 sh.
1199 cat <<_ACEOF
1200\`configure' configures this package to adapt to many kinds of systems.
c906108c 1201
b7026657 1202Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1203
b7026657
AC
1204To assign environment variables (e.g., CC, CFLAGS...), specify them as
1205VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1206
b7026657 1207Defaults for the options are specified in brackets.
c906108c 1208
b7026657
AC
1209Configuration:
1210 -h, --help display this help and exit
1211 --help=short display options specific to this package
1212 --help=recursive display the short help of all the included packages
1213 -V, --version display version information and exit
d0ac1c44 1214 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1215 --cache-file=FILE cache test results in FILE [disabled]
1216 -C, --config-cache alias for \`--cache-file=config.cache'
1217 -n, --no-create do not create output files
1218 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1219
b7026657
AC
1220Installation directories:
1221 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1222 [$ac_default_prefix]
b7026657 1223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1224 [PREFIX]
c906108c 1225
b7026657
AC
1226By default, \`make install' will install all the files in
1227\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1228an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1229for instance \`--prefix=\$HOME'.
c906108c 1230
b7026657
AC
1231For better control, use the options below.
1232
1233Fine tuning of the installation directories:
81ecdfbb
RW
1234 --bindir=DIR user executables [EPREFIX/bin]
1235 --sbindir=DIR system admin executables [EPREFIX/sbin]
1236 --libexecdir=DIR program executables [EPREFIX/libexec]
1237 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1238 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1239 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1240 --libdir=DIR object code libraries [EPREFIX/lib]
1241 --includedir=DIR C header files [PREFIX/include]
1242 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1243 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1244 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1245 --infodir=DIR info documentation [DATAROOTDIR/info]
1246 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1247 --mandir=DIR man documentation [DATAROOTDIR/man]
1248 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1249 --htmldir=DIR html documentation [DOCDIR]
1250 --dvidir=DIR dvi documentation [DOCDIR]
1251 --pdfdir=DIR pdf documentation [DOCDIR]
1252 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1253_ACEOF
1254
1255 cat <<\_ACEOF
b7026657 1256_ACEOF
c906108c 1257fi
b7026657
AC
1258
1259if test -n "$ac_init_help"; then
1260
1261 cat <<\_ACEOF
1262
b7026657
AC
1263Some influential environment variables:
1264 CC C compiler command
1265 CFLAGS C compiler flags
1266 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1267 nonstandard directory <lib dir>
81ecdfbb 1268 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1269 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1270 you have headers in a nonstandard directory <include dir>
b7026657
AC
1271 CPP C preprocessor
1272
1273Use these variables to override the choices made by `configure' or to help
1274it to find libraries and programs with nonstandard names/locations.
1275
81ecdfbb 1276Report bugs to the package provider.
b7026657 1277_ACEOF
81ecdfbb 1278ac_status=$?
c906108c
SS
1279fi
1280
b7026657
AC
1281if test "$ac_init_help" = "recursive"; then
1282 # If there are subdirs, report their specific --help.
b7026657 1283 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1284 test -d "$ac_dir" ||
1285 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1286 continue
b7026657 1287 ac_builddir=.
c906108c 1288
81ecdfbb
RW
1289case "$ac_dir" in
1290.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1291*)
1292 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1293 # A ".." for each directory in $ac_dir_suffix.
1294 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1295 case $ac_top_builddir_sub in
1296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1298 esac ;;
1299esac
1300ac_abs_top_builddir=$ac_pwd
1301ac_abs_builddir=$ac_pwd$ac_dir_suffix
1302# for backward compatibility:
1303ac_top_builddir=$ac_top_build_prefix
c906108c 1304
b7026657 1305case $srcdir in
81ecdfbb 1306 .) # We are building in place.
b7026657 1307 ac_srcdir=.
81ecdfbb
RW
1308 ac_top_srcdir=$ac_top_builddir_sub
1309 ac_abs_top_srcdir=$ac_pwd ;;
1310 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1311 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1312 ac_top_srcdir=$srcdir
1313 ac_abs_top_srcdir=$srcdir ;;
1314 *) # Relative name.
1315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1316 ac_top_srcdir=$ac_top_build_prefix$srcdir
1317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1318esac
81ecdfbb
RW
1319ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1320
1321 cd "$ac_dir" || { ac_status=$?; continue; }
1322 # Check for guested configure.
1323 if test -f "$ac_srcdir/configure.gnu"; then
1324 echo &&
1325 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1326 elif test -f "$ac_srcdir/configure"; then
1327 echo &&
1328 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1329 else
81ecdfbb
RW
1330 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1331 fi || ac_status=$?
1332 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1333 done
1334fi
1335
81ecdfbb 1336test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1337if $ac_init_version; then
1338 cat <<\_ACEOF
81ecdfbb 1339configure
d0ac1c44 1340generated by GNU Autoconf 2.69
b7026657 1341
d0ac1c44 1342Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1343This configure script is free software; the Free Software Foundation
1344gives unlimited permission to copy, distribute and modify it.
1345_ACEOF
81ecdfbb 1346 exit
b7026657 1347fi
b7026657 1348
81ecdfbb
RW
1349## ------------------------ ##
1350## Autoconf initialization. ##
1351## ------------------------ ##
b7026657 1352
81ecdfbb
RW
1353# ac_fn_c_try_compile LINENO
1354# --------------------------
1355# Try to compile conftest.$ac_ext, and return whether this succeeded.
1356ac_fn_c_try_compile ()
b7026657 1357{
81ecdfbb
RW
1358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1359 rm -f conftest.$ac_objext
1360 if { { ac_try="$ac_compile"
1361case "(($ac_try" in
1362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1363 *) ac_try_echo=$ac_try;;
1364esac
1365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1366$as_echo "$ac_try_echo"; } >&5
1367 (eval "$ac_compile") 2>conftest.err
1368 ac_status=$?
1369 if test -s conftest.err; then
1370 grep -v '^ *+' conftest.err >conftest.er1
1371 cat conftest.er1 >&5
1372 mv -f conftest.er1 conftest.err
1373 fi
1374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1375 test $ac_status = 0; } && {
1376 test -z "$ac_c_werror_flag" ||
1377 test ! -s conftest.err
1378 } && test -s conftest.$ac_objext; then :
1379 ac_retval=0
1380else
1381 $as_echo "$as_me: failed program was:" >&5
1382sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1383
81ecdfbb
RW
1384 ac_retval=1
1385fi
d0ac1c44
SM
1386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1387 as_fn_set_status $ac_retval
b7026657 1388
81ecdfbb 1389} # ac_fn_c_try_compile
b7026657 1390
81ecdfbb
RW
1391# ac_fn_c_try_cpp LINENO
1392# ----------------------
1393# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1394ac_fn_c_try_cpp ()
1395{
1396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1397 if { { ac_try="$ac_cpp conftest.$ac_ext"
1398case "(($ac_try" in
1399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1400 *) ac_try_echo=$ac_try;;
1401esac
1402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1403$as_echo "$ac_try_echo"; } >&5
1404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1405 ac_status=$?
1406 if test -s conftest.err; then
1407 grep -v '^ *+' conftest.err >conftest.er1
1408 cat conftest.er1 >&5
1409 mv -f conftest.er1 conftest.err
1410 fi
1411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1412 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1414 test ! -s conftest.err
1415 }; then :
1416 ac_retval=0
1417else
1418 $as_echo "$as_me: failed program was:" >&5
1419sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1420
81ecdfbb
RW
1421 ac_retval=1
1422fi
d0ac1c44
SM
1423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1424 as_fn_set_status $ac_retval
b7026657 1425
81ecdfbb 1426} # ac_fn_c_try_cpp
b7026657 1427
81ecdfbb
RW
1428# ac_fn_c_try_link LINENO
1429# -----------------------
1430# Try to link conftest.$ac_ext, and return whether this succeeded.
1431ac_fn_c_try_link ()
1432{
1433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434 rm -f conftest.$ac_objext conftest$ac_exeext
1435 if { { ac_try="$ac_link"
1436case "(($ac_try" in
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1439esac
1440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441$as_echo "$ac_try_echo"; } >&5
1442 (eval "$ac_link") 2>conftest.err
1443 ac_status=$?
1444 if test -s conftest.err; then
1445 grep -v '^ *+' conftest.err >conftest.er1
1446 cat conftest.er1 >&5
1447 mv -f conftest.er1 conftest.err
1448 fi
1449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450 test $ac_status = 0; } && {
1451 test -z "$ac_c_werror_flag" ||
1452 test ! -s conftest.err
1453 } && test -s conftest$ac_exeext && {
1454 test "$cross_compiling" = yes ||
d0ac1c44 1455 test -x conftest$ac_exeext
81ecdfbb
RW
1456 }; then :
1457 ac_retval=0
1458else
1459 $as_echo "$as_me: failed program was:" >&5
1460sed 's/^/| /' conftest.$ac_ext >&5
1461
1462 ac_retval=1
1463fi
1464 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1465 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1466 # interfere with the next link command; also delete a directory that is
1467 # left behind by Apple's compiler. We do this before executing the actions.
1468 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1470 as_fn_set_status $ac_retval
81ecdfbb
RW
1471
1472} # ac_fn_c_try_link
81ecdfbb
RW
1473cat >config.log <<_ACEOF
1474This file contains any messages produced by compilers while
1475running configure, to aid debugging if configure makes a mistake.
1476
1477It was created by $as_me, which was
d0ac1c44 1478generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1479
1480 $ $0 $@
1481
1482_ACEOF
1483exec 5>>config.log
1484{
1485cat <<_ASUNAME
1486## --------- ##
1487## Platform. ##
1488## --------- ##
1489
1490hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1491uname -m = `(uname -m) 2>/dev/null || echo unknown`
1492uname -r = `(uname -r) 2>/dev/null || echo unknown`
1493uname -s = `(uname -s) 2>/dev/null || echo unknown`
1494uname -v = `(uname -v) 2>/dev/null || echo unknown`
1495
1496/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1497/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1498
1499/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1500/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1501/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1502/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1503/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1504/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1505/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1506
1507_ASUNAME
1508
1509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510for as_dir in $PATH
1511do
1512 IFS=$as_save_IFS
1513 test -z "$as_dir" && as_dir=.
1514 $as_echo "PATH: $as_dir"
1515 done
1516IFS=$as_save_IFS
1517
1518} >&5
1519
1520cat >&5 <<_ACEOF
b7026657
AC
1521
1522
1523## ----------- ##
1524## Core tests. ##
1525## ----------- ##
1526
1527_ACEOF
1528
1529
1530# Keep a trace of the command line.
1531# Strip out --no-create and --no-recursion so they do not pile up.
1532# Strip out --silent because we don't want to record it for future runs.
1533# Also quote any args containing shell meta-characters.
1534# Make two passes to allow for proper duplicate-argument suppression.
1535ac_configure_args=
1536ac_configure_args0=
1537ac_configure_args1=
b7026657
AC
1538ac_must_keep_next=false
1539for ac_pass in 1 2
1540do
1541 for ac_arg
1542 do
1543 case $ac_arg in
1544 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1546 | -silent | --silent | --silen | --sile | --sil)
1547 continue ;;
81ecdfbb
RW
1548 *\'*)
1549 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1550 esac
1551 case $ac_pass in
81ecdfbb 1552 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 1553 2)
81ecdfbb 1554 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
1555 if test $ac_must_keep_next = true; then
1556 ac_must_keep_next=false # Got value, back to normal.
1557 else
1558 case $ac_arg in
1559 *=* | --config-cache | -C | -disable-* | --disable-* \
1560 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1561 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1562 | -with-* | --with-* | -without-* | --without-* | --x)
1563 case "$ac_configure_args0 " in
1564 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1565 esac
1566 ;;
1567 -* ) ac_must_keep_next=true ;;
1568 esac
1569 fi
81ecdfbb 1570 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
1571 ;;
1572 esac
1573 done
1574done
81ecdfbb
RW
1575{ ac_configure_args0=; unset ac_configure_args0;}
1576{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
1577
1578# When interrupted or exit'd, cleanup temporary files, and complete
1579# config.log. We remove comments because anyway the quotes in there
1580# would cause problems or look ugly.
81ecdfbb
RW
1581# WARNING: Use '\'' to represent an apostrophe within the trap.
1582# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
1583trap 'exit_status=$?
1584 # Save into config.log some information that might help in debugging.
1585 {
1586 echo
1587
d0ac1c44 1588 $as_echo "## ---------------- ##
b7026657 1589## Cache variables. ##
d0ac1c44 1590## ---------------- ##"
b7026657
AC
1591 echo
1592 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1593(
1594 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1595 eval ac_val=\$$ac_var
1596 case $ac_val in #(
1597 *${as_nl}*)
1598 case $ac_var in #(
1599 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1600$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1601 esac
1602 case $ac_var in #(
1603 _ | IFS | as_nl) ;; #(
1604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1605 *) { eval $ac_var=; unset $ac_var;} ;;
1606 esac ;;
1607 esac
1608 done
b7026657 1609 (set) 2>&1 |
81ecdfbb
RW
1610 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1611 *${as_nl}ac_space=\ *)
b7026657 1612 sed -n \
81ecdfbb
RW
1613 "s/'\''/'\''\\\\'\'''\''/g;
1614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1615 ;; #(
b7026657 1616 *)
81ecdfbb 1617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 1618 ;;
81ecdfbb
RW
1619 esac |
1620 sort
1621)
b7026657
AC
1622 echo
1623
d0ac1c44 1624 $as_echo "## ----------------- ##
b7026657 1625## Output variables. ##
d0ac1c44 1626## ----------------- ##"
b7026657
AC
1627 echo
1628 for ac_var in $ac_subst_vars
1629 do
81ecdfbb
RW
1630 eval ac_val=\$$ac_var
1631 case $ac_val in
1632 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633 esac
1634 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1635 done | sort
1636 echo
1637
1638 if test -n "$ac_subst_files"; then
d0ac1c44 1639 $as_echo "## ------------------- ##
81ecdfbb 1640## File substitutions. ##
d0ac1c44 1641## ------------------- ##"
b7026657
AC
1642 echo
1643 for ac_var in $ac_subst_files
1644 do
81ecdfbb
RW
1645 eval ac_val=\$$ac_var
1646 case $ac_val in
1647 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 esac
1649 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1650 done | sort
1651 echo
1652 fi
1653
1654 if test -s confdefs.h; then
d0ac1c44 1655 $as_echo "## ----------- ##
b7026657 1656## confdefs.h. ##
d0ac1c44 1657## ----------- ##"
b7026657 1658 echo
81ecdfbb 1659 cat confdefs.h
b7026657
AC
1660 echo
1661 fi
1662 test "$ac_signal" != 0 &&
81ecdfbb
RW
1663 $as_echo "$as_me: caught signal $ac_signal"
1664 $as_echo "$as_me: exit $exit_status"
b7026657 1665 } >&5
81ecdfbb
RW
1666 rm -f core *.core core.conftest.* &&
1667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 1668 exit $exit_status
81ecdfbb 1669' 0
b7026657 1670for ac_signal in 1 2 13 15; do
81ecdfbb 1671 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
1672done
1673ac_signal=0
1674
1675# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1676rm -f -r conftest* confdefs.h
1677
1678$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
1679
1680# Predefined preprocessor variables.
1681
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_NAME "$PACKAGE_NAME"
1684_ACEOF
1685
b7026657
AC
1686cat >>confdefs.h <<_ACEOF
1687#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1688_ACEOF
1689
b7026657
AC
1690cat >>confdefs.h <<_ACEOF
1691#define PACKAGE_VERSION "$PACKAGE_VERSION"
1692_ACEOF
1693
b7026657
AC
1694cat >>confdefs.h <<_ACEOF
1695#define PACKAGE_STRING "$PACKAGE_STRING"
1696_ACEOF
1697
b7026657
AC
1698cat >>confdefs.h <<_ACEOF
1699#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1700_ACEOF
1701
81ecdfbb
RW
1702cat >>confdefs.h <<_ACEOF
1703#define PACKAGE_URL "$PACKAGE_URL"
1704_ACEOF
1705
b7026657
AC
1706
1707# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1708# Prefer an explicitly selected file to automatically selected ones.
1709ac_site_file1=NONE
1710ac_site_file2=NONE
1711if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
1712 # We do not want a PATH search for config.site.
1713 case $CONFIG_SITE in #((
1714 -*) ac_site_file1=./$CONFIG_SITE;;
1715 */*) ac_site_file1=$CONFIG_SITE;;
1716 *) ac_site_file1=./$CONFIG_SITE;;
1717 esac
81ecdfbb
RW
1718elif test "x$prefix" != xNONE; then
1719 ac_site_file1=$prefix/share/config.site
1720 ac_site_file2=$prefix/etc/config.site
1721else
1722 ac_site_file1=$ac_default_prefix/share/config.site
1723 ac_site_file2=$ac_default_prefix/etc/config.site
1724fi
1725for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1726do
1727 test "x$ac_site_file" = xNONE && continue
d0ac1c44 1728 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1730$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 1731 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
1732 . "$ac_site_file" \
1733 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1735as_fn_error $? "failed to load site script $ac_site_file
1736See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
1737 fi
1738done
1739
1740if test -r "$cache_file"; then
d0ac1c44
SM
1741 # Some versions of bash will fail to source /dev/null (special files
1742 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1743 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1745$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 1746 case $cache_file in
81ecdfbb
RW
1747 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1748 *) . "./$cache_file";;
b7026657
AC
1749 esac
1750 fi
1751else
81ecdfbb
RW
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1753$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
1754 >$cache_file
1755fi
1756
1757# Check that the precious variables saved in the cache have kept the same
1758# value.
1759ac_cache_corrupted=false
81ecdfbb 1760for ac_var in $ac_precious_vars; do
b7026657
AC
1761 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1762 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
1763 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1764 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
1765 case $ac_old_set,$ac_new_set in
1766 set,)
81ecdfbb
RW
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1768$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
1769 ac_cache_corrupted=: ;;
1770 ,set)
81ecdfbb
RW
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1772$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
1773 ac_cache_corrupted=: ;;
1774 ,);;
1775 *)
1776 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
1777 # differences in whitespace do not lead to failure.
1778 ac_old_val_w=`echo x $ac_old_val`
1779 ac_new_val_w=`echo x $ac_new_val`
1780 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1782$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1783 ac_cache_corrupted=:
1784 else
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1786$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1787 eval $ac_var=\$ac_old_val
1788 fi
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1790$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1792$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
1793 fi;;
1794 esac
1795 # Pass precious variables to config.status.
1796 if test "$ac_new_set" = set; then
1797 case $ac_new_val in
81ecdfbb 1798 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1799 *) ac_arg=$ac_var=$ac_new_val ;;
1800 esac
1801 case " $ac_configure_args " in
1802 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 1803 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
1804 esac
1805 fi
1806done
1807if $ac_cache_corrupted; then
81ecdfbb
RW
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1811$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 1812 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 1813fi
81ecdfbb
RW
1814## -------------------- ##
1815## Main body of script. ##
1816## -------------------- ##
b7026657
AC
1817
1818ac_ext=c
1819ac_cpp='$CPP $CPPFLAGS'
1820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823
1824
6bb11ab3
L
1825
1826
bc56166f 1827# In the Cygwin environment, we need some additional flags.
6bb11ab3
L
1828ac_ext=c
1829ac_cpp='$CPP $CPPFLAGS'
1830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833if test -n "$ac_tool_prefix"; then
1834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1835set dummy ${ac_tool_prefix}gcc; ac_word=$2
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1837$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1838if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
1839 $as_echo_n "(cached) " >&6
1840else
1841 if test -n "$CC"; then
1842 ac_cv_prog_CC="$CC" # Let the user override the test.
1843else
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
1849 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 break 2
1854 fi
1855done
1856 done
1857IFS=$as_save_IFS
1858
1859fi
1860fi
1861CC=$ac_cv_prog_CC
1862if test -n "$CC"; then
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1864$as_echo "$CC" >&6; }
1865else
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1867$as_echo "no" >&6; }
1868fi
1869
1870
1871fi
1872if test -z "$ac_cv_prog_CC"; then
1873 ac_ct_CC=$CC
1874 # Extract the first word of "gcc", so it can be a program name with args.
1875set dummy gcc; ac_word=$2
1876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1877$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1878if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
1879 $as_echo_n "(cached) " >&6
1880else
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883else
1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1891 ac_cv_prog_ac_ct_CC="gcc"
1892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1894 fi
1895done
1896 done
1897IFS=$as_save_IFS
1898
1899fi
1900fi
1901ac_ct_CC=$ac_cv_prog_ac_ct_CC
1902if test -n "$ac_ct_CC"; then
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1904$as_echo "$ac_ct_CC" >&6; }
1905else
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1907$as_echo "no" >&6; }
1908fi
1909
1910 if test "x$ac_ct_CC" = x; then
1911 CC=""
1912 else
1913 case $cross_compiling:$ac_tool_warned in
1914yes:)
1915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1917ac_tool_warned=yes ;;
1918esac
1919 CC=$ac_ct_CC
1920 fi
1921else
1922 CC="$ac_cv_prog_CC"
1923fi
1924
1925if test -z "$CC"; then
1926 if test -n "$ac_tool_prefix"; then
1927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1928set dummy ${ac_tool_prefix}cc; ac_word=$2
1929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1930$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1931if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
1932 $as_echo_n "(cached) " >&6
1933else
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1936else
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1944 ac_cv_prog_CC="${ac_tool_prefix}cc"
1945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 break 2
1947 fi
1948done
1949 done
1950IFS=$as_save_IFS
1951
1952fi
1953fi
1954CC=$ac_cv_prog_CC
1955if test -n "$CC"; then
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1957$as_echo "$CC" >&6; }
1958else
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1960$as_echo "no" >&6; }
1961fi
1962
1963
1964 fi
1965fi
1966if test -z "$CC"; then
1967 # Extract the first word of "cc", so it can be a program name with args.
1968set dummy cc; ac_word=$2
1969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1970$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 1971if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
1972 $as_echo_n "(cached) " >&6
1973else
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1976else
1977 ac_prog_rejected=no
1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979for as_dir in $PATH
1980do
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 1984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
1985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1986 ac_prog_rejected=yes
1987 continue
1988 fi
1989 ac_cv_prog_CC="cc"
1990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 break 2
1992 fi
1993done
1994 done
1995IFS=$as_save_IFS
1996
1997if test $ac_prog_rejected = yes; then
1998 # We found a bogon in the path, so make sure we never use it.
1999 set dummy $ac_cv_prog_CC
2000 shift
2001 if test $# != 0; then
2002 # We chose a different compiler from the bogus one.
2003 # However, it has the same basename, so the bogon will be chosen
2004 # first if we set CC to just the basename; use the full file name.
2005 shift
2006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2007 fi
2008fi
2009fi
2010fi
2011CC=$ac_cv_prog_CC
2012if test -n "$CC"; then
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2014$as_echo "$CC" >&6; }
2015else
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2017$as_echo "no" >&6; }
2018fi
2019
2020
2021fi
2022if test -z "$CC"; then
2023 if test -n "$ac_tool_prefix"; then
2024 for ac_prog in cl.exe
2025 do
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2029$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2030if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2031 $as_echo_n "(cached) " >&6
2032else
2033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
2035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2046 fi
2047done
2048 done
2049IFS=$as_save_IFS
2050
2051fi
2052fi
2053CC=$ac_cv_prog_CC
2054if test -n "$CC"; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2056$as_echo "$CC" >&6; }
2057else
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2059$as_echo "no" >&6; }
2060fi
2061
2062
2063 test -n "$CC" && break
2064 done
2065fi
2066if test -z "$CC"; then
2067 ac_ct_CC=$CC
2068 for ac_prog in cl.exe
2069do
2070 # Extract the first word of "$ac_prog", so it can be a program name with args.
2071set dummy $ac_prog; ac_word=$2
2072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2073$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2074if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2075 $as_echo_n "(cached) " >&6
2076else
2077 if test -n "$ac_ct_CC"; then
2078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2079else
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083 IFS=$as_save_IFS
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2087 ac_cv_prog_ac_ct_CC="$ac_prog"
2088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 break 2
2090 fi
2091done
2092 done
2093IFS=$as_save_IFS
2094
2095fi
2096fi
2097ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098if test -n "$ac_ct_CC"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2100$as_echo "$ac_ct_CC" >&6; }
2101else
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2103$as_echo "no" >&6; }
2104fi
2105
2106
2107 test -n "$ac_ct_CC" && break
2108done
2109
2110 if test "x$ac_ct_CC" = x; then
2111 CC=""
2112 else
2113 case $cross_compiling:$ac_tool_warned in
2114yes:)
2115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2117ac_tool_warned=yes ;;
2118esac
2119 CC=$ac_ct_CC
2120 fi
2121fi
2122
2123fi
2124
2125
2126test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2128as_fn_error $? "no acceptable C compiler found in \$PATH
2129See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2130
2131# Provide some information about the compiler.
2132$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2133set X $ac_compile
2134ac_compiler=$2
2135for ac_option in --version -v -V -qversion; do
2136 { { ac_try="$ac_compiler $ac_option >&5"
2137case "(($ac_try" in
2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139 *) ac_try_echo=$ac_try;;
2140esac
2141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2142$as_echo "$ac_try_echo"; } >&5
2143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2144 ac_status=$?
2145 if test -s conftest.err; then
2146 sed '10a\
2147... rest of stderr output deleted ...
2148 10q' conftest.err >conftest.er1
2149 cat conftest.er1 >&5
6bb11ab3 2150 fi
d0ac1c44 2151 rm -f conftest.er1 conftest.err
6bb11ab3
L
2152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153 test $ac_status = 0; }
2154done
2155
2156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h. */
2158
2159int
2160main ()
2161{
2162
2163 ;
2164 return 0;
2165}
2166_ACEOF
2167ac_clean_files_save=$ac_clean_files
d0ac1c44 2168ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
2169# Try to create an executable without -o first, disregard a.out.
2170# It will help us diagnose broken compilers, and finding out an intuition
2171# of exeext.
d0ac1c44
SM
2172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2173$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
2174ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2175
2176# The possible output files:
2177ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2178
2179ac_rmfiles=
2180for ac_file in $ac_files
2181do
2182 case $ac_file in
2183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2185 esac
2186done
2187rm -f $ac_rmfiles
2188
2189if { { ac_try="$ac_link_default"
2190case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193esac
2194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195$as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_link_default") 2>&5
2197 ac_status=$?
2198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199 test $ac_status = 0; }; then :
2200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2201# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2202# in a Makefile. We should not override ac_cv_exeext if it was cached,
2203# so that the user can short-circuit this test for compilers unknown to
2204# Autoconf.
2205for ac_file in $ac_files ''
2206do
2207 test -f "$ac_file" || continue
2208 case $ac_file in
2209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2210 ;;
2211 [ab].out )
2212 # We found the default executable, but exeext='' is most
2213 # certainly right.
2214 break;;
2215 *.* )
2216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2217 then :; else
2218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2219 fi
2220 # We set ac_cv_exeext here because the later test for it is not
2221 # safe: cross compilers may not add the suffix if given an `-o'
2222 # argument, so we may need to know it at that point already.
2223 # Even if this section looks crufty: it has the advantage of
2224 # actually working.
2225 break;;
2226 * )
2227 break;;
2228 esac
2229done
2230test "$ac_cv_exeext" = no && ac_cv_exeext=
2231
2232else
2233 ac_file=''
2234fi
6bb11ab3 2235if test -z "$ac_file"; then :
d0ac1c44
SM
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2237$as_echo "no" >&6; }
2238$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
2239sed 's/^/| /' conftest.$ac_ext >&5
2240
2241{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2243as_fn_error 77 "C compiler cannot create executables
2244See \`config.log' for more details" "$LINENO" 5; }
2245else
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2247$as_echo "yes" >&6; }
6bb11ab3 2248fi
d0ac1c44
SM
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2250$as_echo_n "checking for C compiler default output file name... " >&6; }
2251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2252$as_echo "$ac_file" >&6; }
6bb11ab3
L
2253ac_exeext=$ac_cv_exeext
2254
d0ac1c44 2255rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 2256ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2258$as_echo_n "checking for suffix of executables... " >&6; }
2259if { { ac_try="$ac_link"
2260case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2263esac
2264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265$as_echo "$ac_try_echo"; } >&5
2266 (eval "$ac_link") 2>&5
2267 ac_status=$?
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; }; then :
2270 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2271# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2272# work properly (i.e., refer to `conftest.exe'), while it won't with
2273# `rm'.
2274for ac_file in conftest.exe conftest conftest.*; do
2275 test -f "$ac_file" || continue
2276 case $ac_file in
2277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2278 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279 break;;
2280 * ) break;;
2281 esac
2282done
2283else
2284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2286as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2287See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 2288fi
d0ac1c44 2289rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
2290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2291$as_echo "$ac_cv_exeext" >&6; }
2292
2293rm -f conftest.$ac_ext
2294EXEEXT=$ac_cv_exeext
2295ac_exeext=$EXEEXT
d0ac1c44
SM
2296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297/* end confdefs.h. */
2298#include <stdio.h>
2299int
2300main ()
2301{
2302FILE *f = fopen ("conftest.out", "w");
2303 return ferror (f) || fclose (f) != 0;
2304
2305 ;
2306 return 0;
2307}
2308_ACEOF
2309ac_clean_files="$ac_clean_files conftest.out"
2310# Check that the compiler produces executables we can run. If not, either
2311# the compiler is broken, or we cross compile.
2312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2313$as_echo_n "checking whether we are cross compiling... " >&6; }
2314if test "$cross_compiling" != yes; then
2315 { { ac_try="$ac_link"
2316case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2319esac
2320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2321$as_echo "$ac_try_echo"; } >&5
2322 (eval "$ac_link") 2>&5
2323 ac_status=$?
2324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2325 test $ac_status = 0; }
2326 if { ac_try='./conftest$ac_cv_exeext'
2327 { { case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2330esac
2331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332$as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_try") 2>&5
2334 ac_status=$?
2335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2336 test $ac_status = 0; }; }; then
2337 cross_compiling=no
2338 else
2339 if test "$cross_compiling" = maybe; then
2340 cross_compiling=yes
2341 else
2342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344as_fn_error $? "cannot run C compiled programs.
2345If you meant to cross compile, use \`--host'.
2346See \`config.log' for more details" "$LINENO" 5; }
2347 fi
2348 fi
2349fi
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2351$as_echo "$cross_compiling" >&6; }
2352
2353rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2354ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2356$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2357if ${ac_cv_objext+:} false; then :
6bb11ab3
L
2358 $as_echo_n "(cached) " >&6
2359else
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361/* end confdefs.h. */
2362
2363int
2364main ()
2365{
2366
2367 ;
2368 return 0;
2369}
2370_ACEOF
2371rm -f conftest.o conftest.obj
2372if { { ac_try="$ac_compile"
2373case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376esac
2377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378$as_echo "$ac_try_echo"; } >&5
2379 (eval "$ac_compile") 2>&5
2380 ac_status=$?
2381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2382 test $ac_status = 0; }; then :
2383 for ac_file in conftest.o conftest.obj conftest.*; do
2384 test -f "$ac_file" || continue;
2385 case $ac_file in
2386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2388 break;;
2389 esac
2390done
2391else
2392 $as_echo "$as_me: failed program was:" >&5
2393sed 's/^/| /' conftest.$ac_ext >&5
2394
2395{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2397as_fn_error $? "cannot compute suffix of object files: cannot compile
2398See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2399fi
2400rm -f conftest.$ac_cv_objext conftest.$ac_ext
2401fi
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2403$as_echo "$ac_cv_objext" >&6; }
2404OBJEXT=$ac_cv_objext
2405ac_objext=$OBJEXT
2406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2407$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2408if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
2409 $as_echo_n "(cached) " >&6
2410else
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412/* end confdefs.h. */
2413
2414int
2415main ()
2416{
2417#ifndef __GNUC__
2418 choke me
2419#endif
2420
2421 ;
2422 return 0;
2423}
2424_ACEOF
2425if ac_fn_c_try_compile "$LINENO"; then :
2426 ac_compiler_gnu=yes
2427else
2428 ac_compiler_gnu=no
2429fi
2430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432
2433fi
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2435$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2436if test $ac_compiler_gnu = yes; then
2437 GCC=yes
2438else
2439 GCC=
2440fi
2441ac_test_CFLAGS=${CFLAGS+set}
2442ac_save_CFLAGS=$CFLAGS
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2444$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 2445if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
2446 $as_echo_n "(cached) " >&6
2447else
2448 ac_save_c_werror_flag=$ac_c_werror_flag
2449 ac_c_werror_flag=yes
2450 ac_cv_prog_cc_g=no
2451 CFLAGS="-g"
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453/* end confdefs.h. */
2454
2455int
2456main ()
2457{
2458
2459 ;
2460 return 0;
2461}
2462_ACEOF
2463if ac_fn_c_try_compile "$LINENO"; then :
2464 ac_cv_prog_cc_g=yes
2465else
2466 CFLAGS=""
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468/* end confdefs.h. */
2469
2470int
2471main ()
2472{
2473
2474 ;
2475 return 0;
2476}
2477_ACEOF
2478if ac_fn_c_try_compile "$LINENO"; then :
2479
2480else
2481 ac_c_werror_flag=$ac_save_c_werror_flag
2482 CFLAGS="-g"
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484/* end confdefs.h. */
2485
2486int
2487main ()
2488{
2489
2490 ;
2491 return 0;
2492}
2493_ACEOF
2494if ac_fn_c_try_compile "$LINENO"; then :
2495 ac_cv_prog_cc_g=yes
2496fi
2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498fi
2499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500fi
2501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502 ac_c_werror_flag=$ac_save_c_werror_flag
2503fi
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2505$as_echo "$ac_cv_prog_cc_g" >&6; }
2506if test "$ac_test_CFLAGS" = set; then
2507 CFLAGS=$ac_save_CFLAGS
2508elif test $ac_cv_prog_cc_g = yes; then
2509 if test "$GCC" = yes; then
2510 CFLAGS="-g -O2"
2511 else
2512 CFLAGS="-g"
2513 fi
2514else
2515 if test "$GCC" = yes; then
2516 CFLAGS="-O2"
2517 else
2518 CFLAGS=
2519 fi
2520fi
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2522$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 2523if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
2524 $as_echo_n "(cached) " >&6
2525else
2526 ac_cv_prog_cc_c89=no
2527ac_save_CC=$CC
2528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529/* end confdefs.h. */
2530#include <stdarg.h>
2531#include <stdio.h>
d0ac1c44 2532struct stat;
6bb11ab3
L
2533/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2534struct buf { int x; };
2535FILE * (*rcsopen) (struct buf *, struct stat *, int);
2536static char *e (p, i)
2537 char **p;
2538 int i;
2539{
2540 return p[i];
2541}
2542static char *f (char * (*g) (char **, int), char **p, ...)
2543{
2544 char *s;
2545 va_list v;
2546 va_start (v,p);
2547 s = g (p, va_arg (v,int));
2548 va_end (v);
2549 return s;
2550}
2551
2552/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2553 function prototypes and stuff, but not '\xHH' hex character constants.
2554 These don't provoke an error unfortunately, instead are silently treated
2555 as 'x'. The following induces an error, until -std is added to get
2556 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2557 array size at least. It's necessary to write '\x00'==0 to get something
2558 that's true only with -std. */
2559int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2560
2561/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2562 inside strings and character constants. */
2563#define FOO(x) 'x'
2564int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2565
2566int test (int i, double x);
2567struct s1 {int (*f) (int a);};
2568struct s2 {int (*f) (double a);};
2569int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2570int argc;
2571char **argv;
2572int
2573main ()
2574{
2575return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2576 ;
2577 return 0;
2578}
2579_ACEOF
2580for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2581 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2582do
2583 CC="$ac_save_CC $ac_arg"
2584 if ac_fn_c_try_compile "$LINENO"; then :
2585 ac_cv_prog_cc_c89=$ac_arg
2586fi
2587rm -f core conftest.err conftest.$ac_objext
2588 test "x$ac_cv_prog_cc_c89" != "xno" && break
2589done
2590rm -f conftest.$ac_ext
2591CC=$ac_save_CC
2592
2593fi
2594# AC_CACHE_VAL
2595case "x$ac_cv_prog_cc_c89" in
2596 x)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2598$as_echo "none needed" >&6; } ;;
2599 xno)
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2601$as_echo "unsupported" >&6; } ;;
2602 *)
2603 CC="$CC $ac_cv_prog_cc_c89"
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2605$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2606esac
2607if test "x$ac_cv_prog_cc_c89" != xno; then :
2608
2609fi
2610
2611ac_ext=c
2612ac_cpp='$CPP $CPPFLAGS'
2613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615ac_compiler_gnu=$ac_cv_c_compiler_gnu
2616
d3562f83
MF
2617
2618ac_ext=c
2619ac_cpp='$CPP $CPPFLAGS'
2620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2624$as_echo_n "checking how to run the C preprocessor... " >&6; }
2625# On Suns, sometimes $CPP names a directory.
2626if test -n "$CPP" && test -d "$CPP"; then
2627 CPP=
2628fi
2629if test -z "$CPP"; then
2630 if ${ac_cv_prog_CPP+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632else
2633 # Double quotes because CPP needs to be expanded
2634 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2635 do
2636 ac_preproc_ok=false
2637for ac_c_preproc_warn_flag in '' yes
2638do
2639 # Use a header file that comes with gcc, so configuring glibc
2640 # with a fresh cross-compiler works.
2641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2642 # <limits.h> exists even on freestanding compilers.
2643 # On the NeXT, cc -E runs the code through the compiler's parser,
2644 # not just through cpp. "Syntax error" is here to catch this case.
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646/* end confdefs.h. */
2647#ifdef __STDC__
2648# include <limits.h>
2649#else
2650# include <assert.h>
2651#endif
2652 Syntax error
2653_ACEOF
2654if ac_fn_c_try_cpp "$LINENO"; then :
2655
2656else
2657 # Broken: fails on valid input.
2658continue
2659fi
2660rm -f conftest.err conftest.i conftest.$ac_ext
2661
2662 # OK, works on sane cases. Now check whether nonexistent headers
2663 # can be detected and how.
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665/* end confdefs.h. */
2666#include <ac_nonexistent.h>
2667_ACEOF
2668if ac_fn_c_try_cpp "$LINENO"; then :
2669 # Broken: success on invalid input.
2670continue
2671else
2672 # Passes both tests.
2673ac_preproc_ok=:
2674break
2675fi
2676rm -f conftest.err conftest.i conftest.$ac_ext
2677
2678done
2679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2680rm -f conftest.i conftest.err conftest.$ac_ext
2681if $ac_preproc_ok; then :
2682 break
2683fi
2684
2685 done
2686 ac_cv_prog_CPP=$CPP
2687
2688fi
2689 CPP=$ac_cv_prog_CPP
2690else
2691 ac_cv_prog_CPP=$CPP
2692fi
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2694$as_echo "$CPP" >&6; }
2695ac_preproc_ok=false
2696for ac_c_preproc_warn_flag in '' yes
2697do
2698 # Use a header file that comes with gcc, so configuring glibc
2699 # with a fresh cross-compiler works.
2700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2701 # <limits.h> exists even on freestanding compilers.
2702 # On the NeXT, cc -E runs the code through the compiler's parser,
2703 # not just through cpp. "Syntax error" is here to catch this case.
2704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2705/* end confdefs.h. */
2706#ifdef __STDC__
2707# include <limits.h>
2708#else
2709# include <assert.h>
2710#endif
2711 Syntax error
2712_ACEOF
2713if ac_fn_c_try_cpp "$LINENO"; then :
2714
2715else
2716 # Broken: fails on valid input.
2717continue
2718fi
2719rm -f conftest.err conftest.i conftest.$ac_ext
2720
2721 # OK, works on sane cases. Now check whether nonexistent headers
2722 # can be detected and how.
2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2724/* end confdefs.h. */
2725#include <ac_nonexistent.h>
2726_ACEOF
2727if ac_fn_c_try_cpp "$LINENO"; then :
2728 # Broken: success on invalid input.
2729continue
2730else
2731 # Passes both tests.
2732ac_preproc_ok=:
2733break
b5689863 2734fi
d3562f83 2735rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3 2736
d3562f83
MF
2737done
2738# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2739rm -f conftest.i conftest.err conftest.$ac_ext
2740if $ac_preproc_ok; then :
6bb11ab3 2741
d3562f83
MF
2742else
2743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2746See \`config.log' for more details" "$LINENO" 5; }
b5689863 2747fi
6bb11ab3 2748
d3562f83
MF
2749ac_ext=c
2750ac_cpp='$CPP $CPPFLAGS'
2751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753ac_compiler_gnu=$ac_cv_c_compiler_gnu
6bb11ab3 2754
6bb11ab3 2755
d3562f83
MF
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2757$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2758if ${ac_cv_path_GREP+:} false; then :
2759 $as_echo_n "(cached) " >&6
b5689863 2760else
d3562f83
MF
2761 if test -z "$GREP"; then
2762 ac_path_GREP_found=false
2763 # Loop through the user's path and test for each of PROGNAME-LIST
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2766do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_prog in grep ggrep; do
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2772 as_fn_executable_p "$ac_path_GREP" || continue
2773# Check for GNU ac_path_GREP and select it if it is found.
2774 # Check for GNU $ac_path_GREP
2775case `"$ac_path_GREP" --version 2>&1` in
2776*GNU*)
2777 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2778*)
2779 ac_count=0
2780 $as_echo_n 0123456789 >"conftest.in"
2781 while :
2782 do
2783 cat "conftest.in" "conftest.in" >"conftest.tmp"
2784 mv "conftest.tmp" "conftest.in"
2785 cp "conftest.in" "conftest.nl"
2786 $as_echo 'GREP' >> "conftest.nl"
2787 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2789 as_fn_arith $ac_count + 1 && ac_count=$as_val
2790 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2791 # Best one so far, save it but keep looking for a better one
2792 ac_cv_path_GREP="$ac_path_GREP"
2793 ac_path_GREP_max=$ac_count
b5689863 2794 fi
d3562f83
MF
2795 # 10*(2^10) chars as input seems more than enough
2796 test $ac_count -gt 10 && break
b5689863 2797 done
d3562f83
MF
2798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2799esac
6bb11ab3 2800
d3562f83
MF
2801 $ac_path_GREP_found && break 3
2802 done
2803 done
2804 done
2805IFS=$as_save_IFS
2806 if test -z "$ac_cv_path_GREP"; then
2807 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2808 fi
2809else
2810 ac_cv_path_GREP=$GREP
2811fi
5912fadd 2812
b5689863 2813fi
d3562f83
MF
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
2815$as_echo "$ac_cv_path_GREP" >&6; }
2816 GREP="$ac_cv_path_GREP"
b5bd9624 2817
c906108c 2818
d3562f83
MF
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
2820$as_echo_n "checking for egrep... " >&6; }
2821if ${ac_cv_path_EGREP+:} false; then :
2822 $as_echo_n "(cached) " >&6
31e6ad7d 2823else
d3562f83
MF
2824 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2825 then ac_cv_path_EGREP="$GREP -E"
2826 else
2827 if test -z "$EGREP"; then
2828 ac_path_EGREP_found=false
2829 # Loop through the user's path and test for each of PROGNAME-LIST
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_prog in egrep; do
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2838 as_fn_executable_p "$ac_path_EGREP" || continue
2839# Check for GNU ac_path_EGREP and select it if it is found.
2840 # Check for GNU $ac_path_EGREP
2841case `"$ac_path_EGREP" --version 2>&1` in
2842*GNU*)
2843 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2844*)
2845 ac_count=0
2846 $as_echo_n 0123456789 >"conftest.in"
2847 while :
2848 do
2849 cat "conftest.in" "conftest.in" >"conftest.tmp"
2850 mv "conftest.tmp" "conftest.in"
2851 cp "conftest.in" "conftest.nl"
2852 $as_echo 'EGREP' >> "conftest.nl"
2853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2855 as_fn_arith $ac_count + 1 && ac_count=$as_val
2856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2857 # Best one so far, save it but keep looking for a better one
2858 ac_cv_path_EGREP="$ac_path_EGREP"
2859 ac_path_EGREP_max=$ac_count
2860 fi
2861 # 10*(2^10) chars as input seems more than enough
2862 test $ac_count -gt 10 && break
2863 done
2864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2865esac
31e6ad7d 2866
d3562f83
MF
2867 $ac_path_EGREP_found && break 3
2868 done
2869 done
2870 done
2871IFS=$as_save_IFS
2872 if test -z "$ac_cv_path_EGREP"; then
2873 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2874 fi
c906108c 2875else
d3562f83 2876 ac_cv_path_EGREP=$EGREP
81ecdfbb 2877fi
c906108c 2878
d3562f83 2879 fi
347fe5bb 2880fi
d3562f83
MF
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
2882$as_echo "$ac_cv_path_EGREP" >&6; }
2883 EGREP="$ac_cv_path_EGREP"
347fe5bb
MF
2884
2885
81ecdfbb
RW
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
2887$as_echo_n "checking for cygwin... " >&6; }
d0ac1c44 2888if ${sim_cv_os_cygwin+:} false; then :
81ecdfbb 2889 $as_echo_n "(cached) " >&6
b7026657 2890else
81ecdfbb 2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
2892/* end confdefs.h. */
2893
2894#ifdef __CYGWIN__
2895lose
2896#endif
2897_ACEOF
2898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 2899 $EGREP "lose" >/dev/null 2>&1; then :
b7026657
AC
2900 sim_cv_os_cygwin=yes
2901else
2902 sim_cv_os_cygwin=no
2903fi
2904rm -f conftest*
2905
2906fi
81ecdfbb
RW
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
2908$as_echo "$sim_cv_os_cygwin" >&6; }
b7026657 2909
c1230d1b
JS
2910# Keep in sync with gdb's configure.ac list.
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
b909d38d 2912$as_echo_n "checking for library containing tgetent... " >&6; }
d0ac1c44 2913if ${ac_cv_search_tgetent+:} false; then :
81ecdfbb 2914 $as_echo_n "(cached) " >&6
b7026657 2915else
b909d38d 2916 ac_func_search_save_LIBS=$LIBS
81ecdfbb 2917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
2918/* end confdefs.h. */
2919
b909d38d
MF
2920/* Override any GCC internal prototype to avoid an error.
2921 Use char because int might match the return type of a GCC
2922 builtin and then its argument prototype would still apply. */
2923#ifdef __cplusplus
2924extern "C"
2925#endif
2926char tgetent ();
b7026657
AC
2927int
2928main ()
2929{
b909d38d 2930return tgetent ();
b7026657
AC
2931 ;
2932 return 0;
2933}
2934_ACEOF
b909d38d
MF
2935for ac_lib in '' termcap tinfo curses ncurses; do
2936 if test -z "$ac_lib"; then
2937 ac_res="none required"
2938 else
2939 ac_res=-l$ac_lib
2940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2941 fi
2942 if ac_fn_c_try_link "$LINENO"; then :
2943 ac_cv_search_tgetent=$ac_res
b7026657 2944fi
81ecdfbb 2945rm -f core conftest.err conftest.$ac_objext \
b909d38d 2946 conftest$ac_exeext
d0ac1c44 2947 if ${ac_cv_search_tgetent+:} false; then :
b909d38d 2948 break
b7026657 2949fi
b909d38d 2950done
d0ac1c44 2951if ${ac_cv_search_tgetent+:} false; then :
b909d38d
MF
2952
2953else
2954 ac_cv_search_tgetent=no
2955fi
2956rm conftest.$ac_ext
2957LIBS=$ac_func_search_save_LIBS
2958fi
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
2960$as_echo "$ac_cv_search_tgetent" >&6; }
2961ac_res=$ac_cv_search_tgetent
2962if test "$ac_res" != no; then :
2963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2964 TERMCAP=$ac_cv_search_tgetent
b7026657
AC
2965else
2966 TERMCAP=""
2967fi
2968
c1230d1b
JS
2969if test x$sim_cv_os_cygwin = xyes; then
2970 TERMCAP="${TERMCAP} -luser32"
b7026657
AC
2971fi
2972
2973
70a9be63
HPN
2974# We prefer the in-tree readline. Top-level dependencies make sure
2975# src/readline (if it's there) is configured before src/sim.
2976if test -r ../../readline/Makefile; then
53e123a5 2977 READLINE=../../readline/readline/libreadline.a
2694bce9 2978 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
70a9be63 2979else
81ecdfbb
RW
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
2981$as_echo_n "checking for readline in -lreadline... " >&6; }
d0ac1c44 2982if ${ac_cv_lib_readline_readline+:} false; then :
81ecdfbb 2983 $as_echo_n "(cached) " >&6
70a9be63
HPN
2984else
2985 ac_check_lib_save_LIBS=$LIBS
2986LIBS="-lreadline $TERMCAP $LIBS"
81ecdfbb 2987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70a9be63
HPN
2988/* end confdefs.h. */
2989
81ecdfbb
RW
2990/* Override any GCC internal prototype to avoid an error.
2991 Use char because int might match the return type of a GCC
2992 builtin and then its argument prototype would still apply. */
70a9be63
HPN
2993#ifdef __cplusplus
2994extern "C"
2995#endif
70a9be63
HPN
2996char readline ();
2997int
2998main ()
2999{
81ecdfbb 3000return readline ();
70a9be63
HPN
3001 ;
3002 return 0;
3003}
3004_ACEOF
81ecdfbb 3005if ac_fn_c_try_link "$LINENO"; then :
70a9be63
HPN
3006 ac_cv_lib_readline_readline=yes
3007else
81ecdfbb 3008 ac_cv_lib_readline_readline=no
70a9be63 3009fi
81ecdfbb
RW
3010rm -f core conftest.err conftest.$ac_objext \
3011 conftest$ac_exeext conftest.$ac_ext
70a9be63
HPN
3012LIBS=$ac_check_lib_save_LIBS
3013fi
81ecdfbb
RW
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
3015$as_echo "$ac_cv_lib_readline_readline" >&6; }
d0ac1c44 3016if test "x$ac_cv_lib_readline_readline" = xyes; then :
70a9be63
HPN
3017 READLINE=-lreadline
3018else
d0ac1c44 3019 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
70a9be63
HPN
3020fi
3021
2694bce9 3022 READLINE_CFLAGS=
70a9be63
HPN
3023fi
3024
b7026657 3025
b7026657
AC
3026cgen_breaks=""
3027if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
3028cgen_breaks="break cgen_rtx_error";
3029fi
3030
81ecdfbb 3031ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 3032
81ecdfbb 3033ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 3034
81ecdfbb 3035ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 3036
81ecdfbb 3037ac_config_commands="$ac_config_commands Makefile"
38f48d72 3038
81ecdfbb 3039ac_config_commands="$ac_config_commands stamp-h"
38f48d72 3040
760b3e8b
MF
3041
3042
3043
3044
3045
3046
3047
36bb57e4
MF
3048SIM_COMMON_BUILD_TRUE='#'
3049SIM_COMMON_BUILD_FALSE=
3050
3051
3052
b7026657
AC
3053cat >confcache <<\_ACEOF
3054# This file is a shell script that caches the results of configure
3055# tests run on this system so they can be shared between configure
3056# scripts and configure runs, see configure's option --config-cache.
3057# It is not useful on other systems. If it contains results you don't
3058# want to keep, you may remove or edit it.
3059#
3060# config.status only pays attention to the cache file if you give it
3061# the --recheck option to rerun configure.
3062#
3063# `ac_cv_env_foo' variables (set or unset) will be overridden when
3064# loading this file, other *unset* `ac_cv_foo' will be assigned the
3065# following values.
3066
3067_ACEOF
3068
3069# The following way of writing the cache mishandles newlines in values,
3070# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 3071# So, we kill variables containing newlines.
b7026657
AC
3072# Ultrix sh set writes to stderr and can't be redirected directly,
3073# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
3074(
3075 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3076 eval ac_val=\$$ac_var
3077 case $ac_val in #(
3078 *${as_nl}*)
3079 case $ac_var in #(
3080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3081$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3082 esac
3083 case $ac_var in #(
3084 _ | IFS | as_nl) ;; #(
3085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3086 *) { eval $ac_var=; unset $ac_var;} ;;
3087 esac ;;
3088 esac
3089 done
3090
b7026657 3091 (set) 2>&1 |
81ecdfbb
RW
3092 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3093 *${as_nl}ac_space=\ *)
3094 # `set' does not quote correctly, so add quotes: double-quote
3095 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
3096 sed -n \
3097 "s/'/'\\\\''/g;
3098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 3099 ;; #(
b7026657
AC
3100 *)
3101 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 3102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 3103 ;;
81ecdfbb
RW
3104 esac |
3105 sort
3106) |
b7026657 3107 sed '
81ecdfbb 3108 /^ac_cv_env_/b end
b7026657 3109 t clear
81ecdfbb 3110 :clear
b7026657
AC
3111 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3112 t end
81ecdfbb
RW
3113 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3114 :end' >>confcache
3115if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3116 if test -w "$cache_file"; then
d0ac1c44 3117 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3119$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
3120 if test ! -f "$cache_file" || test -h "$cache_file"; then
3121 cat confcache >"$cache_file"
3122 else
3123 case $cache_file in #(
3124 */* | ?:*)
3125 mv -f confcache "$cache_file"$$ &&
3126 mv -f "$cache_file"$$ "$cache_file" ;; #(
3127 *)
3128 mv -f confcache "$cache_file" ;;
3129 esac
3130 fi
3131 fi
b7026657 3132 else
81ecdfbb
RW
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3134$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b7026657
AC
3135 fi
3136fi
3137rm -f confcache
3138
3139test "x$prefix" = xNONE && prefix=$ac_default_prefix
3140# Let make expand exec_prefix.
3141test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3142
52d37d2c
MF
3143# Transform confdefs.h into DEFS.
3144# Protect against shell expansion while executing Makefile rules.
3145# Protect against Makefile macro expansion.
3146#
3147# If the first sed substitution is executed (which looks for macros that
3148# take arguments), then branch to the quote section. Otherwise,
3149# look for a macro that doesn't take arguments.
3150ac_script='
3151:mline
3152/\\$/{
3153 N
3154 s,\\\n,,
3155 b mline
3156}
3157t clear
3158:clear
3159s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3160t quote
3161s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3162t quote
3163b any
3164:quote
3165s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3166s/\[/\\&/g
3167s/\]/\\&/g
3168s/\$/$$/g
3169H
3170:any
3171${
3172 g
3173 s/^\n//
3174 s/\n/ /g
3175 p
3176}
3177'
3178DEFS=`sed -n "$ac_script" confdefs.h`
3179
b7026657
AC
3180
3181ac_libobjs=
3182ac_ltlibobjs=
d0ac1c44 3183U=
b7026657
AC
3184for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3185 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
3186 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3187 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3188 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3189 # will be set to the directory where LIBOBJS objects are built.
3190 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3191 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
3192done
3193LIBOBJS=$ac_libobjs
3194
3195LTLIBOBJS=$ac_ltlibobjs
3196
3197
3198
d0ac1c44 3199: "${CONFIG_STATUS=./config.status}"
81ecdfbb 3200ac_write_fail=0
b7026657
AC
3201ac_clean_files_save=$ac_clean_files
3202ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3204$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3205as_write_fail=0
3206cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
3207#! $SHELL
3208# Generated by $as_me.
3209# Run this file to recreate the current configuration.
3210# Compiler output produced by configure, useful for debugging
3211# configure, is in config.log if it exists.
3212
3213debug=false
3214ac_cs_recheck=false
3215ac_cs_silent=false
b7026657 3216
81ecdfbb
RW
3217SHELL=\${CONFIG_SHELL-$SHELL}
3218export SHELL
3219_ASEOF
3220cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3221## -------------------- ##
3222## M4sh Initialization. ##
3223## -------------------- ##
3224
3225# Be more Bourne compatible
3226DUALCASE=1; export DUALCASE # for MKS sh
3227if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
3228 emulate sh
3229 NULLCMD=:
81ecdfbb 3230 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
3231 # is contrary to our usage. Disable this feature.
3232 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
3233 setopt NO_GLOB_SUBST
3234else
3235 case `(set -o) 2>/dev/null` in #(
3236 *posix*) :
3237 set -o posix ;; #(
3238 *) :
3239 ;;
3240esac
b7026657 3241fi
b7026657 3242
81ecdfbb
RW
3243
3244as_nl='
3245'
3246export as_nl
3247# Printing a long string crashes Solaris 7 /usr/bin/printf.
3248as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3249as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3250as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3251# Prefer a ksh shell builtin over an external printf program on Solaris,
3252# but without wasting forks for bash or zsh.
3253if test -z "$BASH_VERSION$ZSH_VERSION" \
3254 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3255 as_echo='print -r --'
3256 as_echo_n='print -rn --'
3257elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3258 as_echo='printf %s\n'
3259 as_echo_n='printf %s'
3260else
3261 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3262 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3263 as_echo_n='/usr/ucb/echo -n'
3264 else
3265 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3266 as_echo_n_body='eval
3267 arg=$1;
3268 case $arg in #(
3269 *"$as_nl"*)
3270 expr "X$arg" : "X\\(.*\\)$as_nl";
3271 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3272 esac;
3273 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3274 '
3275 export as_echo_n_body
3276 as_echo_n='sh -c $as_echo_n_body as_echo'
3277 fi
3278 export as_echo_body
3279 as_echo='sh -c $as_echo_body as_echo'
3280fi
3281
3282# The user is always right.
3283if test "${PATH_SEPARATOR+set}" != set; then
3284 PATH_SEPARATOR=:
3285 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3286 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3287 PATH_SEPARATOR=';'
3288 }
b7026657
AC
3289fi
3290
3291
81ecdfbb
RW
3292# IFS
3293# We need space, tab and new line, in precisely that order. Quoting is
3294# there to prevent editors from complaining about space-tab.
3295# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3296# splitting by setting IFS to empty value.)
3297IFS=" "" $as_nl"
3298
3299# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 3300as_myself=
81ecdfbb
RW
3301case $0 in #((
3302 *[\\/]* ) as_myself=$0 ;;
3303 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3309 done
3310IFS=$as_save_IFS
3311
3312 ;;
3313esac
3314# We did not find ourselves, most probably we were run as `sh COMMAND'
3315# in which case we are not to be found in the path.
3316if test "x$as_myself" = x; then
3317 as_myself=$0
3318fi
3319if test ! -f "$as_myself"; then
3320 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3321 exit 1
3322fi
3323
3324# Unset variables that we do not need and which cause bugs (e.g. in
3325# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3326# suppresses any "Segmentation fault" message there. '((' could
3327# trigger a bug in pdksh 5.2.14.
3328for as_var in BASH_ENV ENV MAIL MAILPATH
3329do eval test x\${$as_var+set} = xset \
3330 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3331done
b7026657
AC
3332PS1='$ '
3333PS2='> '
3334PS4='+ '
3335
3336# NLS nuisances.
81ecdfbb
RW
3337LC_ALL=C
3338export LC_ALL
3339LANGUAGE=C
3340export LANGUAGE
3341
3342# CDPATH.
3343(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3344
3345
d0ac1c44
SM
3346# as_fn_error STATUS ERROR [LINENO LOG_FD]
3347# ----------------------------------------
81ecdfbb
RW
3348# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3349# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 3350# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
3351as_fn_error ()
3352{
d0ac1c44
SM
3353 as_status=$1; test $as_status -eq 0 && as_status=1
3354 if test "$4"; then
3355 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3356 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 3357 fi
d0ac1c44 3358 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
3359 as_fn_exit $as_status
3360} # as_fn_error
3361
3362
3363# as_fn_set_status STATUS
3364# -----------------------
3365# Set $? to STATUS, without forking.
3366as_fn_set_status ()
3367{
3368 return $1
3369} # as_fn_set_status
3370
3371# as_fn_exit STATUS
3372# -----------------
3373# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3374as_fn_exit ()
3375{
3376 set +e
3377 as_fn_set_status $1
3378 exit $1
3379} # as_fn_exit
3380
3381# as_fn_unset VAR
3382# ---------------
3383# Portably unset VAR.
3384as_fn_unset ()
3385{
3386 { eval $1=; unset $1;}
3387}
3388as_unset=as_fn_unset
3389# as_fn_append VAR VALUE
3390# ----------------------
3391# Append the text in VALUE to the end of the definition contained in VAR. Take
3392# advantage of any shell optimizations that allow amortized linear growth over
3393# repeated appends, instead of the typical quadratic growth present in naive
3394# implementations.
3395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3396 eval 'as_fn_append ()
3397 {
3398 eval $1+=\$2
3399 }'
3400else
3401 as_fn_append ()
3402 {
3403 eval $1=\$$1\$2
3404 }
3405fi # as_fn_append
3406
3407# as_fn_arith ARG...
3408# ------------------
3409# Perform arithmetic evaluation on the ARGs, and store the result in the
3410# global $as_val. Take advantage of shells that can avoid forks. The arguments
3411# must be portable across $(()) and expr.
3412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3413 eval 'as_fn_arith ()
3414 {
3415 as_val=$(( $* ))
3416 }'
3417else
3418 as_fn_arith ()
3419 {
3420 as_val=`expr "$@" || test $? -eq 1`
3421 }
3422fi # as_fn_arith
3423
b7026657 3424
81ecdfbb
RW
3425if expr a : '\(a\)' >/dev/null 2>&1 &&
3426 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657 3427 as_expr=expr
c906108c 3428else
b7026657 3429 as_expr=false
c906108c
SS
3430fi
3431
81ecdfbb 3432if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
3433 as_basename=basename
3434else
3435 as_basename=false
3436fi
c906108c 3437
81ecdfbb
RW
3438if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3439 as_dirname=dirname
3440else
3441 as_dirname=false
3442fi
c906108c 3443
81ecdfbb 3444as_me=`$as_basename -- "$0" ||
b7026657
AC
3445$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3446 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
3447 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3448$as_echo X/"$0" |
3449 sed '/^.*\/\([^/][^/]*\)\/*$/{
3450 s//\1/
3451 q
3452 }
3453 /^X\/\(\/\/\)$/{
3454 s//\1/
3455 q
3456 }
3457 /^X\/\(\/\).*/{
3458 s//\1/
3459 q
3460 }
3461 s/.*/./; q'`
c906108c 3462
b7026657
AC
3463# Avoid depending upon Character Ranges.
3464as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3465as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3466as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3467as_cr_digits='0123456789'
3468as_cr_alnum=$as_cr_Letters$as_cr_digits
cd0fc7c3 3469
81ecdfbb
RW
3470ECHO_C= ECHO_N= ECHO_T=
3471case `echo -n x` in #(((((
3472-n*)
3473 case `echo 'xy\c'` in
3474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3475 xy) ECHO_C='\c';;
3476 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3477 ECHO_T=' ';;
3478 esac;;
3479*)
3480 ECHO_N='-n';;
b7026657 3481esac
c906108c 3482
81ecdfbb
RW
3483rm -f conf$$ conf$$.exe conf$$.file
3484if test -d conf$$.dir; then
3485 rm -f conf$$.dir/conf$$.file
c906108c 3486else
81ecdfbb
RW
3487 rm -f conf$$.dir
3488 mkdir conf$$.dir 2>/dev/null
c906108c 3489fi
81ecdfbb
RW
3490if (echo >conf$$.file) 2>/dev/null; then
3491 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 3492 as_ln_s='ln -s'
81ecdfbb
RW
3493 # ... but there are two gotchas:
3494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 3496 # In both cases, we have to default to `cp -pR'.
81ecdfbb 3497 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 3498 as_ln_s='cp -pR'
81ecdfbb
RW
3499 elif ln conf$$.file conf$$ 2>/dev/null; then
3500 as_ln_s=ln
3501 else
d0ac1c44 3502 as_ln_s='cp -pR'
b7026657 3503 fi
7a292a7a 3504else
d0ac1c44 3505 as_ln_s='cp -pR'
b7026657 3506fi
81ecdfbb
RW
3507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3508rmdir conf$$.dir 2>/dev/null
3509
7a292a7a 3510
81ecdfbb
RW
3511# as_fn_mkdir_p
3512# -------------
3513# Create "$as_dir" as a directory, including parents if necessary.
3514as_fn_mkdir_p ()
3515{
3516
3517 case $as_dir in #(
3518 -*) as_dir=./$as_dir;;
3519 esac
3520 test -d "$as_dir" || eval $as_mkdir_p || {
3521 as_dirs=
3522 while :; do
3523 case $as_dir in #(
3524 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3525 *) as_qdir=$as_dir;;
3526 esac
3527 as_dirs="'$as_qdir' $as_dirs"
3528 as_dir=`$as_dirname -- "$as_dir" ||
3529$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3530 X"$as_dir" : 'X\(//\)[^/]' \| \
3531 X"$as_dir" : 'X\(//\)$' \| \
3532 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3533$as_echo X"$as_dir" |
3534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3535 s//\1/
3536 q
3537 }
3538 /^X\(\/\/\)[^/].*/{
3539 s//\1/
3540 q
3541 }
3542 /^X\(\/\/\)$/{
3543 s//\1/
3544 q
3545 }
3546 /^X\(\/\).*/{
3547 s//\1/
3548 q
3549 }
3550 s/.*/./; q'`
3551 test -d "$as_dir" && break
3552 done
3553 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 3554 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
3555
3556
3557} # as_fn_mkdir_p
b7026657 3558if mkdir -p . 2>/dev/null; then
81ecdfbb 3559 as_mkdir_p='mkdir -p "$as_dir"'
7a292a7a 3560else
b7026657
AC
3561 test -d ./-p && rmdir ./-p
3562 as_mkdir_p=false
7a292a7a 3563fi
7a292a7a 3564
d0ac1c44
SM
3565
3566# as_fn_executable_p FILE
3567# -----------------------
3568# Test if FILE is an executable regular file.
3569as_fn_executable_p ()
3570{
3571 test -f "$1" && test -x "$1"
3572} # as_fn_executable_p
3573as_test_x='test -x'
3574as_executable_p=as_fn_executable_p
7a292a7a 3575
b7026657
AC
3576# Sed expression to map a string onto a valid CPP name.
3577as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7a292a7a 3578
b7026657
AC
3579# Sed expression to map a string onto a valid variable name.
3580as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3581
3582
b7026657 3583exec 6>&1
81ecdfbb
RW
3584## ----------------------------------- ##
3585## Main body of $CONFIG_STATUS script. ##
3586## ----------------------------------- ##
3587_ASEOF
3588test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3589
3590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3591# Save the log message, to keep $0 and so on meaningful, and to
b7026657 3592# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
3593# values after options handling.
3594ac_log="
b7026657 3595This file was extended by $as_me, which was
d0ac1c44 3596generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
3597
3598 CONFIG_FILES = $CONFIG_FILES
3599 CONFIG_HEADERS = $CONFIG_HEADERS
3600 CONFIG_LINKS = $CONFIG_LINKS
3601 CONFIG_COMMANDS = $CONFIG_COMMANDS
3602 $ $0 $@
3603
81ecdfbb
RW
3604on `(hostname || uname -n) 2>/dev/null | sed 1q`
3605"
3606
b7026657
AC
3607_ACEOF
3608
81ecdfbb
RW
3609case $ac_config_files in *"
3610"*) set x $ac_config_files; shift; ac_config_files=$*;;
3611esac
c906108c 3612
b7026657 3613
c906108c 3614
81ecdfbb
RW
3615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3616# Files that config.status was made for.
3617config_files="$ac_config_files"
81ecdfbb 3618config_commands="$ac_config_commands"
c906108c 3619
81ecdfbb 3620_ACEOF
c906108c 3621
81ecdfbb 3622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 3623ac_cs_usage="\
81ecdfbb
RW
3624\`$as_me' instantiates files and other configuration actions
3625from templates according to the current configuration. Unless the files
3626and actions are specified as TAGs, all are instantiated by default.
c906108c 3627
81ecdfbb 3628Usage: $0 [OPTION]... [TAG]...
c906108c 3629
b7026657 3630 -h, --help print this help, then exit
81ecdfbb 3631 -V, --version print version number and configuration settings, then exit
d0ac1c44 3632 --config print configuration, then exit
81ecdfbb
RW
3633 -q, --quiet, --silent
3634 do not print progress messages
b7026657
AC
3635 -d, --debug don't remove temporary files
3636 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
3637 --file=FILE[:TEMPLATE]
3638 instantiate the configuration file FILE
379832de 3639
b7026657
AC
3640Configuration files:
3641$config_files
3642
b7026657
AC
3643Configuration commands:
3644$config_commands
3645
81ecdfbb 3646Report bugs to the package provider."
b7026657 3647
81ecdfbb
RW
3648_ACEOF
3649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 3650ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
3651ac_cs_version="\\
3652config.status
d0ac1c44
SM
3653configured by $0, generated by GNU Autoconf 2.69,
3654 with options \\"\$ac_cs_config\\"
b7026657 3655
d0ac1c44 3656Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
3657This config.status script is free software; the Free Software Foundation
3658gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
3659
3660ac_pwd='$ac_pwd'
3661srcdir='$srcdir'
81ecdfbb 3662test -n "\$AWK" || AWK=awk
b7026657
AC
3663_ACEOF
3664
81ecdfbb
RW
3665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3666# The default lists apply if the user does not specify any file.
b7026657
AC
3667ac_need_defaults=:
3668while test $# != 0
3669do
3670 case $1 in
d0ac1c44 3671 --*=?*)
81ecdfbb
RW
3672 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3673 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657 3674 ac_shift=:
c906108c 3675 ;;
d0ac1c44
SM
3676 --*=)
3677 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3678 ac_optarg=
3679 ac_shift=:
3680 ;;
81ecdfbb 3681 *)
b7026657
AC
3682 ac_option=$1
3683 ac_optarg=$2
3684 ac_shift=shift
c906108c 3685 ;;
b7026657 3686 esac
c906108c 3687
b7026657
AC
3688 case $ac_option in
3689 # Handling of the options.
b7026657
AC
3690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3691 ac_cs_recheck=: ;;
81ecdfbb
RW
3692 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3693 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
3694 --config | --confi | --conf | --con | --co | --c )
3695 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 3696 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
3697 debug=: ;;
3698 --file | --fil | --fi | --f )
3699 $ac_shift
81ecdfbb
RW
3700 case $ac_optarg in
3701 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 3702 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
3703 esac
3704 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657 3705 ac_need_defaults=false;;
52d37d2c 3706 --he | --h | --help | --hel | -h )
81ecdfbb 3707 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
3708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3709 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3710 ac_cs_silent=: ;;
c906108c 3711
b7026657 3712 # This is an error.
d0ac1c44 3713 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 3714Try \`$0 --help' for more information." ;;
c906108c 3715
81ecdfbb
RW
3716 *) as_fn_append ac_config_targets " $1"
3717 ac_need_defaults=false ;;
b7026657
AC
3718
3719 esac
3720 shift
3721done
3722
3723ac_configure_extra_args=
3724
3725if $ac_cs_silent; then
3726 exec 6>/dev/null
3727 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
3728fi
3729
b7026657 3730_ACEOF
81ecdfbb 3731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 3732if \$ac_cs_recheck; then
d0ac1c44 3733 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
3734 shift
3735 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3736 CONFIG_SHELL='$SHELL'
3737 export CONFIG_SHELL
3738 exec "\$@"
b7026657 3739fi
c906108c 3740
b7026657 3741_ACEOF
81ecdfbb
RW
3742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3743exec 5>>config.log
3744{
3745 echo
3746 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3747## Running $as_me. ##
3748_ASBOX
3749 $as_echo "$ac_log"
3750} >&5
c906108c 3751
81ecdfbb
RW
3752_ACEOF
3753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3754_ACEOF
c906108c 3755
81ecdfbb 3756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c906108c 3757
81ecdfbb 3758# Handling of arguments.
b7026657 3759for ac_config_target in $ac_config_targets
c906108c 3760do
81ecdfbb 3761 case $ac_config_target in
81ecdfbb
RW
3762 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
3763 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
3764 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
3765 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
3766 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
3767
d0ac1c44 3768 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
3769 esac
3770done
3771
81ecdfbb 3772
b7026657
AC
3773# If the user did not use the arguments to specify the items to instantiate,
3774# then the envvar interface is used. Set only those that are not.
3775# We use the long form for the default assignment because of an extremely
3776# bizarre bug on SunOS 4.1.3.
3777if $ac_need_defaults; then
3778 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
b7026657
AC
3779 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3780fi
3781
3782# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 3783# simply because there is no reason against having it here, and in addition,
b7026657 3784# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
3785# Hook for its removal unless debugging.
3786# Note that there is a small window in which the directory will not be cleaned:
3787# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
3788$debug ||
3789{
d0ac1c44 3790 tmp= ac_tmp=
81ecdfbb 3791 trap 'exit_status=$?
d0ac1c44
SM
3792 : "${ac_tmp:=$tmp}"
3793 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
3794' 0
3795 trap 'as_fn_exit 1' 1 2 13 15
b7026657 3796}
b7026657
AC
3797# Create a (secure) tmp directory for tmp files.
3798
3799{
81ecdfbb 3800 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 3801 test -d "$tmp"
b7026657
AC
3802} ||
3803{
81ecdfbb
RW
3804 tmp=./conf$$-$RANDOM
3805 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
3806} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3807ac_tmp=$tmp
c906108c 3808
81ecdfbb
RW
3809# Set up the scripts for CONFIG_FILES section.
3810# No need to generate them if there are no CONFIG_FILES.
3811# This happens for instance with `./config.status config.h'.
3812if test -n "$CONFIG_FILES"; then
c906108c 3813
c906108c 3814
81ecdfbb
RW
3815ac_cr=`echo X | tr X '\015'`
3816# On cygwin, bash can eat \r inside `` if the user requested igncr.
3817# But we know of no other shell where ac_cr would be empty at this
3818# point, so we can use a bashism as a fallback.
3819if test "x$ac_cr" = x; then
3820 eval ac_cr=\$\'\\r\'
3821fi
3822ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3823if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 3824 ac_cs_awk_cr='\\r'
81ecdfbb
RW
3825else
3826 ac_cs_awk_cr=$ac_cr
3827fi
b7026657 3828
d0ac1c44 3829echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b7026657
AC
3830_ACEOF
3831
81ecdfbb
RW
3832
3833{
3834 echo "cat >conf$$subs.awk <<_ACEOF" &&
3835 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3836 echo "_ACEOF"
3837} >conf$$subs.sh ||
d0ac1c44
SM
3838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3839ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
3840ac_delim='%!_!# '
3841for ac_last_try in false false false false false :; do
3842 . ./conf$$subs.sh ||
d0ac1c44 3843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
3844
3845 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3846 if test $ac_delim_n = $ac_delim_num; then
3847 break
3848 elif $ac_last_try; then
d0ac1c44 3849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
3850 else
3851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 3852 fi
81ecdfbb
RW
3853done
3854rm -f conf$$subs.sh
c906108c 3855
81ecdfbb 3856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 3857cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b7026657 3858_ACEOF
81ecdfbb
RW
3859sed -n '
3860h
3861s/^/S["/; s/!.*/"]=/
3862p
3863g
3864s/^[^!]*!//
3865:repl
3866t repl
3867s/'"$ac_delim"'$//
3868t delim
3869:nl
3870h
d0ac1c44 3871s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
3872t more1
3873s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3874p
3875n
3876b repl
3877:more1
3878s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3879p
3880g
3881s/.\{148\}//
3882t nl
3883:delim
3884h
d0ac1c44 3885s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
3886t more2
3887s/["\\]/\\&/g; s/^/"/; s/$/"/
3888p
3889b
3890:more2
3891s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3892p
3893g
3894s/.\{148\}//
3895t delim
3896' <conf$$subs.awk | sed '
3897/^[^""]/{
3898 N
3899 s/\n//
3900}
3901' >>$CONFIG_STATUS || ac_write_fail=1
3902rm -f conf$$subs.awk
3903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3904_ACAWK
d0ac1c44 3905cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
3906 for (key in S) S_is_set[key] = 1
3907 FS = "\a"
b7026657 3908
81ecdfbb
RW
3909}
3910{
3911 line = $ 0
3912 nfields = split(line, field, "@")
3913 substed = 0
3914 len = length(field[1])
3915 for (i = 2; i < nfields; i++) {
3916 key = field[i]
3917 keylen = length(key)
3918 if (S_is_set[key]) {
3919 value = S[key]
3920 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3921 len += length(value) + length(field[++i])
3922 substed = 1
3923 } else
3924 len += 1 + keylen
3925 }
3926
3927 print line
3928}
b7026657 3929
81ecdfbb
RW
3930_ACAWK
3931_ACEOF
3932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3933if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3934 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 3935else
81ecdfbb 3936 cat
d0ac1c44
SM
3937fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3938 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 3939_ACEOF
c906108c 3940
d0ac1c44
SM
3941# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3942# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
3943# trailing colons and then remove the whole line if VPATH becomes empty
3944# (actually we leave an empty line to preserve line numbers).
3945if test "x$srcdir" = x.; then
d0ac1c44
SM
3946 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3947h
3948s///
3949s/^/:/
3950s/[ ]*$/:/
3951s/:\$(srcdir):/:/g
3952s/:\${srcdir}:/:/g
3953s/:@srcdir@:/:/g
3954s/^:*//
81ecdfbb 3955s/:*$//
d0ac1c44
SM
3956x
3957s/\(=[ ]*\).*/\1/
3958G
3959s/\n//
81ecdfbb
RW
3960s/^[^=]*=[ ]*$//
3961}'
3962fi
c906108c 3963
81ecdfbb
RW
3964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3965fi # test -n "$CONFIG_FILES"
c906108c 3966
81ecdfbb 3967
52d37d2c 3968eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
81ecdfbb
RW
3969shift
3970for ac_tag
3971do
3972 case $ac_tag in
3973 :[FHLC]) ac_mode=$ac_tag; continue;;
3974 esac
3975 case $ac_mode$ac_tag in
3976 :[FHL]*:*);;
d0ac1c44 3977 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
3978 :[FH]-) ac_tag=-:-;;
3979 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
c906108c 3980 esac
81ecdfbb
RW
3981 ac_save_IFS=$IFS
3982 IFS=:
3983 set x $ac_tag
3984 IFS=$ac_save_IFS
3985 shift
3986 ac_file=$1
3987 shift
c906108c 3988
81ecdfbb
RW
3989 case $ac_mode in
3990 :L) ac_source=$1;;
3991 :[FH])
3992 ac_file_inputs=
3993 for ac_f
3994 do
3995 case $ac_f in
d0ac1c44 3996 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
3997 *) # Look for the file first in the build tree, then in the source tree
3998 # (if the path is not absolute). The absolute path cannot be DOS-style,
3999 # because $ac_f cannot contain `:'.
4000 test -f "$ac_f" ||
4001 case $ac_f in
4002 [\\/$]*) false;;
4003 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4004 esac ||
d0ac1c44 4005 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 4006 esac
81ecdfbb
RW
4007 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4008 as_fn_append ac_file_inputs " '$ac_f'"
4009 done
b7026657 4010
81ecdfbb
RW
4011 # Let's still pretend it is `configure' which instantiates (i.e., don't
4012 # use $as_me), people would be surprised to read:
4013 # /* config.h. Generated by config.status. */
4014 configure_input='Generated from '`
4015 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4016 `' by configure.'
4017 if test x"$ac_file" != x-; then
4018 configure_input="$ac_file. $configure_input"
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4020$as_echo "$as_me: creating $ac_file" >&6;}
4021 fi
4022 # Neutralize special characters interpreted by sed in replacement strings.
4023 case $configure_input in #(
4024 *\&* | *\|* | *\\* )
4025 ac_sed_conf_input=`$as_echo "$configure_input" |
4026 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4027 *) ac_sed_conf_input=$configure_input;;
4028 esac
b7026657 4029
81ecdfbb 4030 case $ac_tag in
d0ac1c44
SM
4031 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
4033 esac
4034 ;;
4035 esac
b7026657 4036
81ecdfbb 4037 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
4038$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4039 X"$ac_file" : 'X\(//\)[^/]' \| \
4040 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
4041 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4042$as_echo X"$ac_file" |
4043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4044 s//\1/
4045 q
4046 }
4047 /^X\(\/\/\)[^/].*/{
4048 s//\1/
4049 q
4050 }
4051 /^X\(\/\/\)$/{
4052 s//\1/
4053 q
4054 }
4055 /^X\(\/\).*/{
4056 s//\1/
4057 q
4058 }
4059 s/.*/./; q'`
4060 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
4061 ac_builddir=.
4062
81ecdfbb
RW
4063case "$ac_dir" in
4064.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4065*)
4066 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4067 # A ".." for each directory in $ac_dir_suffix.
4068 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4069 case $ac_top_builddir_sub in
4070 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4071 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4072 esac ;;
4073esac
4074ac_abs_top_builddir=$ac_pwd
4075ac_abs_builddir=$ac_pwd$ac_dir_suffix
4076# for backward compatibility:
4077ac_top_builddir=$ac_top_build_prefix
b7026657
AC
4078
4079case $srcdir in
81ecdfbb 4080 .) # We are building in place.
b7026657 4081 ac_srcdir=.
81ecdfbb
RW
4082 ac_top_srcdir=$ac_top_builddir_sub
4083 ac_abs_top_srcdir=$ac_pwd ;;
4084 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 4085 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
4086 ac_top_srcdir=$srcdir
4087 ac_abs_top_srcdir=$srcdir ;;
4088 *) # Relative name.
4089 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4090 ac_top_srcdir=$ac_top_build_prefix$srcdir
4091 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 4092esac
81ecdfbb 4093ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 4094
c906108c 4095
81ecdfbb
RW
4096 case $ac_mode in
4097 :F)
4098 #
4099 # CONFIG_FILE
4100 #
b7026657 4101
81ecdfbb 4102_ACEOF
c906108c 4103
81ecdfbb
RW
4104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4105# If the template does not know about datarootdir, expand it.
4106# FIXME: This hack should be removed a few years after 2.60.
4107ac_datarootdir_hack=; ac_datarootdir_seen=
4108ac_sed_dataroot='
4109/datarootdir/ {
4110 p
4111 q
4112}
4113/@datadir@/p
4114/@docdir@/p
4115/@infodir@/p
4116/@localedir@/p
4117/@mandir@/p'
4118case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4119*datarootdir*) ac_datarootdir_seen=yes;;
4120*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4122$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4123_ACEOF
4124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4125 ac_datarootdir_hack='
4126 s&@datadir@&$datadir&g
4127 s&@docdir@&$docdir&g
4128 s&@infodir@&$infodir&g
4129 s&@localedir@&$localedir&g
4130 s&@mandir@&$mandir&g
4131 s&\\\${datarootdir}&$datarootdir&g' ;;
4132esac
b7026657 4133_ACEOF
b7026657 4134
81ecdfbb
RW
4135# Neutralize VPATH when `$srcdir' = `.'.
4136# Shell code in configure.ac might set extrasub.
4137# FIXME: do we really want to maintain this feature?
4138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4139ac_sed_extra="$ac_vpsub
4140$extrasub
4141_ACEOF
4142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4143:t
4144/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4145s|@configure_input@|$ac_sed_conf_input|;t t
4146s&@top_builddir@&$ac_top_builddir_sub&;t t
4147s&@top_build_prefix@&$ac_top_build_prefix&;t t
4148s&@srcdir@&$ac_srcdir&;t t
4149s&@abs_srcdir@&$ac_abs_srcdir&;t t
4150s&@top_srcdir@&$ac_top_srcdir&;t t
4151s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4152s&@builddir@&$ac_builddir&;t t
4153s&@abs_builddir@&$ac_abs_builddir&;t t
4154s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
81ecdfbb
RW
4155$ac_datarootdir_hack
4156"
d0ac1c44
SM
4157eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4158 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
4159
4160test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
4161 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4162 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4163 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 4165which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 4166$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 4167which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 4168
d0ac1c44 4169 rm -f "$ac_tmp/stdin"
81ecdfbb 4170 case $ac_file in
d0ac1c44
SM
4171 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4172 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 4173 esac \
d0ac1c44 4174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 4175 ;;
52d37d2c 4176
b7026657 4177
81ecdfbb
RW
4178 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4179$as_echo "$as_me: executing $ac_file commands" >&6;}
4180 ;;
4181 esac
b7026657
AC
4182
4183
81ecdfbb
RW
4184 case $ac_file$ac_mode in
4185 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
4186 rm -f Makesim1.tmp Makesim2.tmp Makefile
4187 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4188 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4189 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
4190 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4191 <Makefile.sim >Makefile
38f48d72 4192 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 4193 ;;
81ecdfbb
RW
4194 "stamp-h":C) echo > stamp-h ;;
4195
b7026657 4196 esac
81ecdfbb 4197done # for ac_tag
c906108c 4198
b7026657 4199
81ecdfbb 4200as_fn_exit 0
b7026657 4201_ACEOF
b7026657
AC
4202ac_clean_files=$ac_clean_files_save
4203
81ecdfbb 4204test $ac_write_fail = 0 ||
d0ac1c44 4205 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 4206
b7026657
AC
4207
4208# configure is writing to config.log, and then calls config.status.
4209# config.status does its own redirection, appending to config.log.
4210# Unfortunately, on DOS this fails, as config.log is still kept open
4211# by configure, so config.status won't be able to write to it; its
4212# output is simply discarded. So we exec the FD to /dev/null,
4213# effectively closing config.log, so it can be properly (re)opened and
4214# appended to by config.status. When coming back to configure, we
4215# need to make the FD available again.
4216if test "$no_create" != yes; then
4217 ac_cs_success=:
4218 ac_config_status_args=
4219 test "$silent" = yes &&
4220 ac_config_status_args="$ac_config_status_args --quiet"
4221 exec 5>/dev/null
4222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4223 exec 5>>config.log
4224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4225 # would make configure fail if this is the last instruction.
d0ac1c44 4226 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
4227fi
4228if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4230$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 4231fi
c906108c
SS
4232
4233