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