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