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