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