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