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