]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/ppc/configure
sim: drop unused SIM_AC_OPTION_PACKAGES
[thirdparty/binutils-gdb.git] / sim / ppc / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
b7026657 8#
b7026657
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c906108c 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b7026657 31fi
c906108c 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
b7026657 79fi
c906108c
SS
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
b7026657
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
c906108c 124
b7026657 125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
b7026657 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
c906108c 356
81ecdfbb
RW
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
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
c906108c 379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
c906108c 385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c906108c 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
b7026657
AC
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c906108c 410
b7026657
AC
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
c906108c 417
c906108c 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
b7026657 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
b7026657 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 436 t loop
81ecdfbb 437 s/-\n.*//
b7026657 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657
AC
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
b7026657
AC
446 # Exit status is that of the last command.
447 exit
448}
c906108c 449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
b7026657 461esac
c906108c 462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
b7026657 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
b7026657 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
b7026657 483 fi
b7026657
AC
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c906108c 489
b7026657 490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
c906108c 496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c906108c 519
b7026657
AC
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 522
b7026657
AC
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
c906108c 528
b7026657
AC
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 533
c906108c 534#
b7026657 535# Initializations.
c906108c 536#
b7026657 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
b7026657 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
b7026657
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
b7026657
AC
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
b7026657
AC
553
554ac_unique_file="Makefile.in"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
81ecdfbb 558#ifdef HAVE_SYS_TYPES_H
b7026657
AC
559# include <sys/types.h>
560#endif
81ecdfbb 561#ifdef HAVE_SYS_STAT_H
b7026657
AC
562# include <sys/stat.h>
563#endif
81ecdfbb 564#ifdef STDC_HEADERS
b7026657
AC
565# include <stdlib.h>
566# include <stddef.h>
567#else
81ecdfbb 568# ifdef HAVE_STDLIB_H
b7026657
AC
569# include <stdlib.h>
570# endif
571#endif
81ecdfbb
RW
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
81ecdfbb 578#ifdef HAVE_STRINGS_H
b7026657
AC
579# include <strings.h>
580#endif
81ecdfbb 581#ifdef HAVE_INTTYPES_H
b7026657 582# include <inttypes.h>
b7026657 583#endif
81ecdfbb
RW
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
b7026657
AC
588# include <unistd.h>
589#endif"
c906108c 590
81ecdfbb
RW
591ac_subst_vars='LTLIBOBJS
592sim_fpu
593sim_fpu_cflags
594sim_targ_vals
595sim_callback
596sim_devzero
597sim_termio
598sim_stdio
599sim_model_issue
600sim_model
601sim_monitor
602sim_reserved
603sim_trace
604sim_timebase
605sim_env
606sim_hostbitsize
607sim_igen_smp
9bbf6f91 608sim_hostendian
81ecdfbb
RW
609sim_pk_obj
610sim_pk_src
611sim_hw_obj
612sim_hw_src
613sim_icache
614sim_filter
615sim_jump
616sim_decode_mechanism
617sim_dup
618sim_switch
619sim_opcode
620sim_config
621sim_line_nr
622sim_warnings
81ecdfbb
RW
623RANLIB
624AR
625HDEFINES
626CFLAGS_FOR_BUILD
627CC_FOR_BUILD
628LIBOBJS
aadc9410
MF
629zlibinc
630zlibdir
81ecdfbb
RW
631target_os
632target_vendor
633target_cpu
634target
635host_os
636host_vendor
637host_cpu
638host
639build_os
640build_vendor
641build_cpu
642build
643REPORT_BUGS_TEXI
644REPORT_BUGS_TO
645PKGVERSION
646EGREP
647GREP
648CPP
649CATOBJEXT
650GENCAT
651INSTOBJEXT
652DATADIRNAME
653CATALOGS
654POSUB
655GMSGFMT
656XGETTEXT
657INCINTL
658LIBINTL_DEP
659LIBINTL
660USE_NLS
661OBJEXT
662EXEEXT
663ac_ct_CC
664CPPFLAGS
665LDFLAGS
666CFLAGS
667CC
668INSTALL_DATA
669INSTALL_SCRIPT
670INSTALL_PROGRAM
6ffe910a
MF
671WERROR_CFLAGS
672WARN_CFLAGS
673sim_xor_endian
6ffe910a
MF
674sim_smp
675sim_reserved_bits
6ffe910a
MF
676sim_inline
677sim_hw
678sim_hw_objs
679sim_hw_cflags
680sim_default_model
681sim_scache
682sim_float
6ffe910a
MF
683sim_endian
684sim_bitsize
685sim_assert
686sim_alignment
687sim_environment
81ecdfbb
RW
688target_alias
689host_alias
690build_alias
691LIBS
692ECHO_T
693ECHO_N
694ECHO_C
695DEFS
696mandir
697localedir
698libdir
699psdir
700pdfdir
701dvidir
702htmldir
703infodir
704docdir
705oldincludedir
706includedir
707localstatedir
708sharedstatedir
709sysconfdir
710datadir
711datarootdir
712libexecdir
713sbindir
714bindir
715program_transform_name
716prefix
717exec_prefix
718PACKAGE_URL
719PACKAGE_BUGREPORT
720PACKAGE_STRING
721PACKAGE_VERSION
722PACKAGE_TARNAME
723PACKAGE_NAME
724PATH_SEPARATOR
6ffe910a 725SHELL'
b7026657 726ac_subst_files=''
81ecdfbb
RW
727ac_user_opts='
728enable_option_checking
729enable_sim_alignment
730enable_sim_assert
731enable_sim_bitsize
81ecdfbb
RW
732enable_sim_config
733enable_sim_decode_mechanism
734enable_sim_default_model
735enable_sim_duplicate
736enable_sim_endian
737enable_sim_env
738enable_sim_filter
739enable_sim_float
740enable_sim_hardware
741enable_sim_hostbitsize
742enable_sim_hostendian
743enable_sim_icache
744enable_sim_inline
745enable_sim_jump
746enable_sim_line_nr
747enable_sim_model
748enable_sim_model_issue
749enable_sim_monitor
750enable_sim_opcode
751enable_sim_packages
81ecdfbb
RW
752enable_sim_reserved_bits
753enable_sim_smp
81ecdfbb
RW
754enable_sim_stdio
755enable_sim_switch
756enable_sim_timebase
757enable_sim_trace
758enable_sim_warnings
759enable_sim_xor_endian
760with_pkgversion
761with_bugurl
aadc9410 762with_system_zlib
2974be62 763enable_plugins
81ecdfbb
RW
764'
765 ac_precious_vars='build_alias
766host_alias
767target_alias
768CC
769CFLAGS
770LDFLAGS
771LIBS
772CPPFLAGS
773CPP'
774
c906108c
SS
775
776# Initialize some variables set by options.
b7026657
AC
777ac_init_help=
778ac_init_version=false
81ecdfbb
RW
779ac_unrecognized_opts=
780ac_unrecognized_sep=
c906108c
SS
781# The variables have the same names as the options, with
782# dashes changed to underlines.
b7026657 783cache_file=/dev/null
c906108c 784exec_prefix=NONE
c906108c 785no_create=
c906108c
SS
786no_recursion=
787prefix=NONE
788program_prefix=NONE
789program_suffix=NONE
790program_transform_name=s,x,x,
791silent=
792site=
793srcdir=
c906108c
SS
794verbose=
795x_includes=NONE
796x_libraries=NONE
b7026657
AC
797
798# Installation directory options.
799# These are left unexpanded so users can "make install exec_prefix=/foo"
800# and all the variables that are supposed to be based on exec_prefix
801# by default will actually change.
802# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 803# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
804bindir='${exec_prefix}/bin'
805sbindir='${exec_prefix}/sbin'
806libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
807datarootdir='${prefix}/share'
808datadir='${datarootdir}'
c906108c
SS
809sysconfdir='${prefix}/etc'
810sharedstatedir='${prefix}/com'
811localstatedir='${prefix}/var'
c906108c
SS
812includedir='${prefix}/include'
813oldincludedir='/usr/include'
81ecdfbb
RW
814docdir='${datarootdir}/doc/${PACKAGE}'
815infodir='${datarootdir}/info'
816htmldir='${docdir}'
817dvidir='${docdir}'
818pdfdir='${docdir}'
819psdir='${docdir}'
820libdir='${exec_prefix}/lib'
821localedir='${datarootdir}/locale'
822mandir='${datarootdir}/man'
c906108c 823
c906108c 824ac_prev=
81ecdfbb 825ac_dashdash=
c906108c
SS
826for ac_option
827do
c906108c
SS
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
81ecdfbb 830 eval $ac_prev=\$ac_option
c906108c
SS
831 ac_prev=
832 continue
833 fi
834
81ecdfbb
RW
835 case $ac_option in
836 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 *) ac_optarg=yes ;;
838 esac
c906108c
SS
839
840 # Accept the important Cygnus configure options, so we can diagnose typos.
841
81ecdfbb
RW
842 case $ac_dashdash$ac_option in
843 --)
844 ac_dashdash=yes ;;
c906108c
SS
845
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 ac_prev=bindir ;;
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 849 bindir=$ac_optarg ;;
c906108c
SS
850
851 -build | --build | --buil | --bui | --bu)
b7026657 852 ac_prev=build_alias ;;
c906108c 853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 854 build_alias=$ac_optarg ;;
c906108c
SS
855
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
861 cache_file=$ac_optarg ;;
862
863 --config-cache | -C)
864 cache_file=config.cache ;;
c906108c 865
81ecdfbb 866 -datadir | --datadir | --datadi | --datad)
c906108c 867 ac_prev=datadir ;;
81ecdfbb 868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 869 datadir=$ac_optarg ;;
c906108c 870
81ecdfbb
RW
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
877
c906108c 878 -disable-* | --disable-*)
81ecdfbb 879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 880 # Reject names that are not valid shell variable names.
81ecdfbb
RW
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
886 *"
887"enable_$ac_useropt"
888"*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=no ;;
893
894 -docdir | --docdir | --docdi | --doc | --do)
895 ac_prev=docdir ;;
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 docdir=$ac_optarg ;;
898
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 ac_prev=dvidir ;;
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 dvidir=$ac_optarg ;;
c906108c
SS
903
904 -enable-* | --enable-*)
81ecdfbb 905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 906 # Reject names that are not valid shell variable names.
81ecdfbb
RW
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913"enable_$ac_useropt"
914"*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
c906108c 917 esac
81ecdfbb 918 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
919
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
b7026657 927 exec_prefix=$ac_optarg ;;
c906108c
SS
928
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
931 with_gas=yes ;;
932
b7026657
AC
933 -help | --help | --hel | --he | -h)
934 ac_init_help=long ;;
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
c906108c
SS
939
940 -host | --host | --hos | --ho)
b7026657 941 ac_prev=host_alias ;;
c906108c 942 -host=* | --host=* | --hos=* | --ho=*)
b7026657 943 host_alias=$ac_optarg ;;
c906108c 944
81ecdfbb
RW
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 ac_prev=htmldir ;;
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 | --ht=*)
949 htmldir=$ac_optarg ;;
950
c906108c
SS
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 956 includedir=$ac_optarg ;;
c906108c
SS
957
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 ac_prev=infodir ;;
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 961 infodir=$ac_optarg ;;
c906108c
SS
962
963 -libdir | --libdir | --libdi | --libd)
964 ac_prev=libdir ;;
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 966 libdir=$ac_optarg ;;
c906108c
SS
967
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
b7026657 973 libexecdir=$ac_optarg ;;
c906108c 974
81ecdfbb
RW
975 -localedir | --localedir | --localedi | --localed | --locale)
976 ac_prev=localedir ;;
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
979
c906108c 980 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 981 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 985 localstatedir=$ac_optarg ;;
c906108c
SS
986
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 ac_prev=mandir ;;
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 990 mandir=$ac_optarg ;;
c906108c
SS
991
992 -nfp | --nfp | --nf)
993 # Obsolete; use --without-fp.
994 with_fp=no ;;
995
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 997 | --no-cr | --no-c | -n)
c906108c
SS
998 no_create=yes ;;
999
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 no_recursion=yes ;;
1003
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1011 oldincludedir=$ac_optarg ;;
c906108c
SS
1012
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 ac_prev=prefix ;;
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1016 prefix=$ac_optarg ;;
c906108c
SS
1017
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1023 program_prefix=$ac_optarg ;;
c906108c
SS
1024
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1030 program_suffix=$ac_optarg ;;
c906108c
SS
1031
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1047 program_transform_name=$ac_optarg ;;
c906108c 1048
81ecdfbb
RW
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 ac_prev=pdfdir ;;
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1053
1054 -psdir | --psdir | --psdi | --psd | --ps)
1055 ac_prev=psdir ;;
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 psdir=$ac_optarg ;;
1058
c906108c
SS
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 silent=yes ;;
1062
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 ac_prev=sbindir ;;
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 | --sbi=* | --sb=*)
b7026657 1067 sbindir=$ac_optarg ;;
c906108c
SS
1068
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1072 | --sha | --sh)
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 | --sha=* | --sh=*)
b7026657 1078 sharedstatedir=$ac_optarg ;;
c906108c
SS
1079
1080 -site | --site | --sit)
1081 ac_prev=site ;;
1082 -site=* | --site=* | --sit=*)
b7026657 1083 site=$ac_optarg ;;
eb2d80b4 1084
c906108c
SS
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 ac_prev=srcdir ;;
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1088 srcdir=$ac_optarg ;;
c906108c
SS
1089
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1095 sysconfdir=$ac_optarg ;;
c906108c
SS
1096
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1098 ac_prev=target_alias ;;
c906108c 1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1100 target_alias=$ac_optarg ;;
c906108c
SS
1101
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 verbose=yes ;;
1104
b7026657
AC
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
c906108c
SS
1107
1108 -with-* | --with-*)
81ecdfbb 1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1110 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117"with_$ac_useropt"
1118"*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
c906108c 1121 esac
81ecdfbb 1122 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1123
1124 -without-* | --without-*)
81ecdfbb 1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1126 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133"with_$ac_useropt"
1134"*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=no ;;
c906108c
SS
1139
1140 --x)
1141 # Obsolete; use --with-x.
1142 with_x=yes ;;
1143
1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145 | --x-incl | --x-inc | --x-in | --x-i)
1146 ac_prev=x_includes ;;
1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1149 x_includes=$ac_optarg ;;
c906108c
SS
1150
1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153 ac_prev=x_libraries ;;
1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1156 x_libraries=$ac_optarg ;;
c906108c 1157
81ecdfbb
RW
1158 -*) as_fn_error "unrecognized option: \`$ac_option'
1159Try \`$0 --help' for more information."
c906108c
SS
1160 ;;
1161
b7026657
AC
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1165 case $ac_envvar in #(
1166 '' | [0-9]* | *[!_$as_cr_alnum]* )
1167 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1168 esac
1169 eval $ac_envvar=\$ac_optarg
b7026657
AC
1170 export $ac_envvar ;;
1171
c906108c 1172 *)
b7026657 1173 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b7026657 1177 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1178 ;;
1179
1180 esac
1181done
1182
1183if test -n "$ac_prev"; then
b7026657 1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1185 as_fn_error "missing argument to $ac_option"
c906108c 1186fi
c906108c 1187
81ecdfbb
RW
1188if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1190 no) ;;
1191 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1193 esac
81ecdfbb 1194fi
c906108c 1195
81ecdfbb
RW
1196# Check all directory arguments for consistency.
1197for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir
c906108c 1201do
81ecdfbb
RW
1202 eval ac_val=\$$ac_var
1203 # Remove trailing slashes.
1204 case $ac_val in
1205 */ )
1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207 eval $ac_var=\$ac_val;;
1208 esac
1209 # Be sure to have absolute directory names.
b7026657 1210 case $ac_val in
81ecdfbb
RW
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1213 esac
81ecdfbb 1214 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1215done
1216
b7026657
AC
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
81ecdfbb 1228 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b7026657
AC
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
c906108c 1234
b7026657
AC
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
c906108c 1239
c906108c 1240
81ecdfbb
RW
1241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 as_fn_error "working directory cannot be determined"
1245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 as_fn_error "pwd does not report name of working directory"
1247
1248
c906108c
SS
1249# Find the source files, if location was not specified.
1250if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
81ecdfbb
RW
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258$as_echo X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\).*/{
1272 s//\1/
1273 q
1274 }
1275 s/.*/./; q'`
c906108c 1276 srcdir=$ac_confdir
81ecdfbb 1277 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1278 srcdir=..
1279 fi
1280else
1281 ac_srcdir_defaulted=no
1282fi
81ecdfbb
RW
1283if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1286fi
1287ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288ac_abs_confdir=`(
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1290 pwd)`
1291# When building in place, set srcdir=.
1292if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 srcdir=.
1294fi
1295# Remove unnecessary trailing slashes from srcdir.
1296# Double slashes in file names in object file debugging info
1297# mess up M-x gdb in Emacs.
1298case $srcdir in
1299*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300esac
1301for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306done
c906108c 1307
b7026657
AC
1308#
1309# Report the --help message.
1310#
1311if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1314 cat <<_ACEOF
1315\`configure' configures this package to adapt to many kinds of systems.
c906108c 1316
b7026657 1317Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1318
b7026657
AC
1319To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1321
b7026657 1322Defaults for the options are specified in brackets.
c906108c 1323
b7026657
AC
1324Configuration:
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334
b7026657
AC
1335Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1337 [$ac_default_prefix]
b7026657 1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1339 [PREFIX]
c906108c 1340
b7026657
AC
1341By default, \`make install' will install all the files in
1342\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344for instance \`--prefix=\$HOME'.
c906108c 1345
b7026657 1346For better control, use the options below.
c906108c 1347
b7026657 1348Fine tuning of the installation directories:
81ecdfbb
RW
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1368_ACEOF
1369
1370 cat <<\_ACEOF
1371
1372Program names:
1373 --program-prefix=PREFIX prepend PREFIX to installed program names
1374 --program-suffix=SUFFIX append SUFFIX to installed program names
1375 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1381_ACEOF
c906108c 1382fi
c906108c 1383
b7026657 1384if test -n "$ac_init_help"; then
c906108c 1385
b7026657 1386 cat <<\_ACEOF
cd0fc7c3 1387
b7026657 1388Optional Features:
81ecdfbb 1389 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b7026657
AC
1392 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1393 --enable-sim-assert Specify whether to perform random assertions.
1394 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
b7026657
AC
1395 --enable-sim-config=file Override default config file
1396 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1397 --enable-sim-default-model=which Specify default PowerPC to model.
1398 --enable-sim-duplicate Expand (duplicate) semantic functions.
1399 --enable-sim-endian=endian Specify target byte endian orientation.
1400 --enable-sim-env=env Specify target environment (operating, virtual, user).
1401 --enable-sim-filter=rule Specify filter rules.
1402 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
1403 --enable-sim-hardware=list Specify the hardware to be included in the build.
1404 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
1405 --enable-sim-hostendian=end Specify host byte endian orientation.
1406 --enable-sim-icache=size Specify instruction-decode cache size and type.
1407 --enable-sim-inline=inlines Specify which functions should be inlined.
1408 --enable-sim-jump Jump between semantic code (instead of call/return).
1409 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
1410 --enable-sim-model=which Specify PowerPC to model.
1411 --enable-sim-model-issue Specify whether to simulate model specific actions
1412 --enable-sim-monitor=mon Specify whether to enable monitoring events.
1413 --enable-sim-opcode=which Override default opcode lookup.
1414 --enable-sim-packages=list Specify the packages to be included in the build.
b7026657
AC
1415 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
1416 --enable-sim-smp=n Specify number of processors to configure for.
b7026657
AC
1417 --enable-sim-stdio Specify whether to use stdio for console input/output.
1418 --enable-sim-switch Use a switch instead of a table for instruction call.
1419 --enable-sim-timebase Specify whether the PPC timebase is supported.
1420 --enable-sim-trace Specify whether tracing is supported.
1421 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
1422 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
2974be62 1423 --enable-plugins Enable support for plugins
b7026657 1424
6efef468
JM
1425Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1429 --with-bugurl=URL Direct users to URL to report a bug
aadc9410 1430 --with-system-zlib use installed libz
6efef468 1431
b7026657
AC
1432Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
81ecdfbb
RW
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
b7026657
AC
1440 CPP C preprocessor
1441
1442Use these variables to override the choices made by `configure' or to help
1443it to find libraries and programs with nonstandard names/locations.
1444
81ecdfbb 1445Report bugs to the package provider.
b7026657 1446_ACEOF
81ecdfbb 1447ac_status=$?
b7026657
AC
1448fi
1449
1450if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
b7026657 1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
b7026657
AC
1456 ac_builddir=.
1457
81ecdfbb
RW
1458case "$ac_dir" in
1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460*)
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468esac
1469ac_abs_top_builddir=$ac_pwd
1470ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471# for backward compatibility:
1472ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1473
1474case $srcdir in
81ecdfbb 1475 .) # We are building in place.
b7026657 1476 ac_srcdir=.
81ecdfbb
RW
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1480 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1487esac
81ecdfbb
RW
1488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1498 else
81ecdfbb
RW
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1502 done
1503fi
1504
81ecdfbb 1505test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1506if $ac_init_version; then
1507 cat <<\_ACEOF
81ecdfbb
RW
1508configure
1509generated by GNU Autoconf 2.64
b7026657 1510
81ecdfbb 1511Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
1512This configure script is free software; the Free Software Foundation
1513gives unlimited permission to copy, distribute and modify it.
1514_ACEOF
81ecdfbb 1515 exit
b7026657 1516fi
b7026657 1517
81ecdfbb
RW
1518## ------------------------ ##
1519## Autoconf initialization. ##
1520## ------------------------ ##
b7026657 1521
81ecdfbb
RW
1522# ac_fn_c_try_compile LINENO
1523# --------------------------
1524# Try to compile conftest.$ac_ext, and return whether this succeeded.
1525ac_fn_c_try_compile ()
b7026657 1526{
81ecdfbb
RW
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1530case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533esac
1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535$as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1542 fi
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1548 ac_retval=0
1549else
1550 $as_echo "$as_me: failed program was:" >&5
1551sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1552
81ecdfbb
RW
1553 ac_retval=1
1554fi
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 return $ac_retval
b7026657 1557
81ecdfbb 1558} # ac_fn_c_try_compile
b7026657 1559
81ecdfbb
RW
1560# ac_fn_c_try_run LINENO
1561# ----------------------
1562# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1563# that executables *can* be run.
1564ac_fn_c_try_run ()
1565{
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_link"
1568case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_link") 2>&5
1575 ac_status=$?
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1578 { { case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_try") 2>&5
1585 ac_status=$?
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; }; }; then :
1588 ac_retval=0
1589else
1590 $as_echo "$as_me: program exited with status $ac_status" >&5
1591 $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1593
81ecdfbb
RW
1594 ac_retval=$ac_status
1595fi
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 return $ac_retval
b7026657 1599
81ecdfbb 1600} # ac_fn_c_try_run
b7026657 1601
81ecdfbb
RW
1602# ac_fn_c_try_cpp LINENO
1603# ----------------------
1604# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605ac_fn_c_try_cpp ()
1606{
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1609case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612esac
1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614$as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1621 fi
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } >/dev/null && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 }; then :
1627 ac_retval=0
1628else
1629 $as_echo "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1
1633fi
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 return $ac_retval
1636
1637} # ac_fn_c_try_cpp
1638
1639# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640# -------------------------------------------------------
1641# Tests whether HEADER exists and can be compiled using the include files in
1642# INCLUDES, setting the cache variable VAR accordingly.
1643ac_fn_c_check_header_compile ()
1644{
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647$as_echo_n "checking for $2... " >&6; }
1648if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1649 $as_echo_n "(cached) " >&6
1650else
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652/* end confdefs.h. */
1653$4
1654#include <$2>
1655_ACEOF
1656if ac_fn_c_try_compile "$LINENO"; then :
1657 eval "$3=yes"
1658else
1659 eval "$3=no"
1660fi
1661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662fi
1663eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665$as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667
1668} # ac_fn_c_check_header_compile
1669
1670# ac_fn_c_try_link LINENO
1671# -----------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_link ()
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 $as_test_x conftest$ac_exeext
1698 }; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712 return $ac_retval
1713
1714} # ac_fn_c_try_link
1715
81ecdfbb
RW
1716# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1717# ----------------------------------------------------
1718# Tries to find if the field MEMBER exists in type AGGR, after including
1719# INCLUDES, setting cache variable VAR accordingly.
1720ac_fn_c_check_member ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1724$as_echo_n "checking for $2.$3... " >&6; }
1725if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1726 $as_echo_n "(cached) " >&6
1727else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h. */
1730$5
1731int
1732main ()
1733{
1734static $2 ac_aggr;
1735if (ac_aggr.$3)
1736return 0;
1737 ;
1738 return 0;
1739}
1740_ACEOF
1741if ac_fn_c_try_compile "$LINENO"; then :
1742 eval "$4=yes"
1743else
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h. */
1746$5
1747int
1748main ()
1749{
1750static $2 ac_aggr;
1751if (sizeof ac_aggr.$3)
1752return 0;
1753 ;
1754 return 0;
1755}
1756_ACEOF
1757if ac_fn_c_try_compile "$LINENO"; then :
1758 eval "$4=yes"
1759else
1760 eval "$4=no"
1761fi
1762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763fi
1764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765fi
1766eval ac_res=\$$4
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770
1771} # ac_fn_c_check_member
1772
1773# ac_fn_c_check_decl LINENO SYMBOL VAR
1774# ------------------------------------
1775# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1776ac_fn_c_check_decl ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6ffe910a
MF
1779 as_decl_name=`echo $2|sed 's/ *(.*//'`
1780 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1782$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1783if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1785else
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h. */
1788$4
1789int
1790main ()
1791{
6ffe910a
MF
1792#ifndef $as_decl_name
1793#ifdef __cplusplus
1794 (void) $as_decl_use;
1795#else
1796 (void) $as_decl_name;
1797#endif
81ecdfbb
RW
1798#endif
1799
1800 ;
1801 return 0;
1802}
1803_ACEOF
1804if ac_fn_c_try_compile "$LINENO"; then :
1805 eval "$3=yes"
1806else
1807 eval "$3=no"
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810fi
1811eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813$as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815
1816} # ac_fn_c_check_decl
1817
1818# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1819# -------------------------------------------
1820# Tests whether TYPE exists after having included INCLUDES, setting cache
1821# variable VAR accordingly.
1822ac_fn_c_check_type ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826$as_echo_n "checking for $2... " >&6; }
1827if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1828 $as_echo_n "(cached) " >&6
1829else
1830 eval "$3=no"
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h. */
1833$4
1834int
1835main ()
1836{
1837if (sizeof ($2))
1838 return 0;
1839 ;
1840 return 0;
1841}
1842_ACEOF
1843if ac_fn_c_try_compile "$LINENO"; then :
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h. */
1846$4
1847int
1848main ()
1849{
1850if (sizeof (($2)))
1851 return 0;
1852 ;
1853 return 0;
1854}
1855_ACEOF
1856if ac_fn_c_try_compile "$LINENO"; then :
1857
1858else
1859 eval "$3=yes"
1860fi
1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862fi
1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864fi
1865eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869
1870} # ac_fn_c_check_type
1871
1872# ac_fn_c_check_func LINENO FUNC VAR
1873# ----------------------------------
1874# Tests whether FUNC exists, setting the cache variable VAR accordingly
1875ac_fn_c_check_func ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879$as_echo_n "checking for $2... " >&6; }
1880if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1881 $as_echo_n "(cached) " >&6
1882else
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h. */
1885/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1887#define $2 innocuous_$2
1888
1889/* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $2 (); below.
1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892 <limits.h> exists even on freestanding compilers. */
1893
1894#ifdef __STDC__
1895# include <limits.h>
1896#else
1897# include <assert.h>
1898#endif
1899
1900#undef $2
1901
1902/* Override any GCC internal prototype to avoid an error.
1903 Use char because int might match the return type of a GCC
1904 builtin and then its argument prototype would still apply. */
1905#ifdef __cplusplus
1906extern "C"
1907#endif
1908char $2 ();
1909/* The GNU C library defines this for functions which it implements
1910 to always fail with ENOSYS. Some functions are actually named
1911 something starting with __ and the normal name is an alias. */
1912#if defined __stub_$2 || defined __stub___$2
1913choke me
1914#endif
1915
1916int
1917main ()
1918{
1919return $2 ();
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_link "$LINENO"; then :
1925 eval "$3=yes"
1926else
1927 eval "$3=no"
1928fi
1929rm -f core conftest.err conftest.$ac_objext \
1930 conftest$ac_exeext conftest.$ac_ext
1931fi
1932eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934$as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936
1937} # ac_fn_c_check_func
aadc9410
MF
1938
1939# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1940# -------------------------------------------------------
1941# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1942# the include files in INCLUDES and setting the cache variable VAR
1943# accordingly.
1944ac_fn_c_check_header_mongrel ()
1945{
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949$as_echo_n "checking for $2... " >&6; }
1950if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 $as_echo_n "(cached) " >&6
1952fi
1953eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956else
1957 # Is the header compilable?
1958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1959$as_echo_n "checking $2 usability... " >&6; }
1960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961/* end confdefs.h. */
1962$4
1963#include <$2>
1964_ACEOF
1965if ac_fn_c_try_compile "$LINENO"; then :
1966 ac_header_compiler=yes
1967else
1968 ac_header_compiler=no
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1972$as_echo "$ac_header_compiler" >&6; }
1973
1974# Is the header present?
1975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1976$as_echo_n "checking $2 presence... " >&6; }
1977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h. */
1979#include <$2>
1980_ACEOF
1981if ac_fn_c_try_cpp "$LINENO"; then :
1982 ac_header_preproc=yes
1983else
1984 ac_header_preproc=no
1985fi
1986rm -f conftest.err conftest.$ac_ext
1987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1988$as_echo "$ac_header_preproc" >&6; }
1989
1990# So? What about this header?
1991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1992 yes:no: )
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1994$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 ;;
1998 no:yes:* )
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2000$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2002$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2004$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2006$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2008$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2009 ;;
2010esac
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012$as_echo_n "checking for $2... " >&6; }
2013if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014 $as_echo_n "(cached) " >&6
2015else
2016 eval "$3=\$ac_header_compiler"
2017fi
2018eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020$as_echo "$ac_res" >&6; }
2021fi
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023
2024} # ac_fn_c_check_header_mongrel
81ecdfbb
RW
2025cat >config.log <<_ACEOF
2026This file contains any messages produced by compilers while
2027running configure, to aid debugging if configure makes a mistake.
2028
2029It was created by $as_me, which was
2030generated by GNU Autoconf 2.64. Invocation command line was
2031
2032 $ $0 $@
2033
2034_ACEOF
2035exec 5>>config.log
2036{
2037cat <<_ASUNAME
2038## --------- ##
2039## Platform. ##
2040## --------- ##
2041
2042hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2043uname -m = `(uname -m) 2>/dev/null || echo unknown`
2044uname -r = `(uname -r) 2>/dev/null || echo unknown`
2045uname -s = `(uname -s) 2>/dev/null || echo unknown`
2046uname -v = `(uname -v) 2>/dev/null || echo unknown`
2047
2048/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2049/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2050
2051/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2052/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2053/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2054/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2055/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2056/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2057/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2058
2059_ASUNAME
2060
2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062for as_dir in $PATH
2063do
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 $as_echo "PATH: $as_dir"
2067 done
2068IFS=$as_save_IFS
2069
2070} >&5
2071
2072cat >&5 <<_ACEOF
b7026657
AC
2073
2074
2075## ----------- ##
2076## Core tests. ##
2077## ----------- ##
2078
2079_ACEOF
2080
2081
2082# Keep a trace of the command line.
2083# Strip out --no-create and --no-recursion so they do not pile up.
2084# Strip out --silent because we don't want to record it for future runs.
2085# Also quote any args containing shell meta-characters.
2086# Make two passes to allow for proper duplicate-argument suppression.
2087ac_configure_args=
2088ac_configure_args0=
2089ac_configure_args1=
b7026657
AC
2090ac_must_keep_next=false
2091for ac_pass in 1 2
2092do
2093 for ac_arg
2094 do
2095 case $ac_arg in
2096 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2098 | -silent | --silent | --silen | --sile | --sil)
2099 continue ;;
81ecdfbb
RW
2100 *\'*)
2101 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2102 esac
2103 case $ac_pass in
81ecdfbb 2104 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2105 2)
81ecdfbb 2106 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2107 if test $ac_must_keep_next = true; then
2108 ac_must_keep_next=false # Got value, back to normal.
2109 else
2110 case $ac_arg in
2111 *=* | --config-cache | -C | -disable-* | --disable-* \
2112 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2113 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2114 | -with-* | --with-* | -without-* | --without-* | --x)
2115 case "$ac_configure_args0 " in
2116 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2117 esac
2118 ;;
2119 -* ) ac_must_keep_next=true ;;
2120 esac
2121 fi
81ecdfbb 2122 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2123 ;;
2124 esac
2125 done
2126done
81ecdfbb
RW
2127{ ac_configure_args0=; unset ac_configure_args0;}
2128{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2129
2130# When interrupted or exit'd, cleanup temporary files, and complete
2131# config.log. We remove comments because anyway the quotes in there
2132# would cause problems or look ugly.
81ecdfbb
RW
2133# WARNING: Use '\'' to represent an apostrophe within the trap.
2134# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2135trap 'exit_status=$?
2136 # Save into config.log some information that might help in debugging.
2137 {
2138 echo
2139
2140 cat <<\_ASBOX
2141## ---------------- ##
2142## Cache variables. ##
2143## ---------------- ##
2144_ASBOX
2145 echo
2146 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2147(
2148 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2149 eval ac_val=\$$ac_var
2150 case $ac_val in #(
2151 *${as_nl}*)
2152 case $ac_var in #(
2153 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2154$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2155 esac
2156 case $ac_var in #(
2157 _ | IFS | as_nl) ;; #(
2158 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2159 *) { eval $ac_var=; unset $ac_var;} ;;
2160 esac ;;
2161 esac
2162 done
b7026657 2163 (set) 2>&1 |
81ecdfbb
RW
2164 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2165 *${as_nl}ac_space=\ *)
b7026657 2166 sed -n \
81ecdfbb
RW
2167 "s/'\''/'\''\\\\'\'''\''/g;
2168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2169 ;; #(
b7026657 2170 *)
81ecdfbb 2171 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2172 ;;
81ecdfbb
RW
2173 esac |
2174 sort
2175)
b7026657
AC
2176 echo
2177
2178 cat <<\_ASBOX
2179## ----------------- ##
2180## Output variables. ##
2181## ----------------- ##
2182_ASBOX
2183 echo
2184 for ac_var in $ac_subst_vars
2185 do
81ecdfbb
RW
2186 eval ac_val=\$$ac_var
2187 case $ac_val in
2188 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 esac
2190 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2191 done | sort
2192 echo
2193
2194 if test -n "$ac_subst_files"; then
2195 cat <<\_ASBOX
81ecdfbb
RW
2196## ------------------- ##
2197## File substitutions. ##
2198## ------------------- ##
b7026657
AC
2199_ASBOX
2200 echo
2201 for ac_var in $ac_subst_files
2202 do
81ecdfbb
RW
2203 eval ac_val=\$$ac_var
2204 case $ac_val in
2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206 esac
2207 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2208 done | sort
2209 echo
2210 fi
2211
2212 if test -s confdefs.h; then
2213 cat <<\_ASBOX
2214## ----------- ##
2215## confdefs.h. ##
2216## ----------- ##
2217_ASBOX
2218 echo
81ecdfbb 2219 cat confdefs.h
b7026657
AC
2220 echo
2221 fi
2222 test "$ac_signal" != 0 &&
81ecdfbb
RW
2223 $as_echo "$as_me: caught signal $ac_signal"
2224 $as_echo "$as_me: exit $exit_status"
b7026657 2225 } >&5
81ecdfbb
RW
2226 rm -f core *.core core.conftest.* &&
2227 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2228 exit $exit_status
81ecdfbb 2229' 0
b7026657 2230for ac_signal in 1 2 13 15; do
81ecdfbb 2231 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2232done
2233ac_signal=0
2234
2235# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2236rm -f -r conftest* confdefs.h
2237
2238$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2239
2240# Predefined preprocessor variables.
2241
2242cat >>confdefs.h <<_ACEOF
2243#define PACKAGE_NAME "$PACKAGE_NAME"
2244_ACEOF
2245
b7026657
AC
2246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2248_ACEOF
2249
b7026657
AC
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_VERSION "$PACKAGE_VERSION"
2252_ACEOF
2253
b7026657
AC
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_STRING "$PACKAGE_STRING"
2256_ACEOF
2257
b7026657
AC
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2260_ACEOF
2261
81ecdfbb
RW
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_URL "$PACKAGE_URL"
2264_ACEOF
2265
b7026657
AC
2266
2267# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2268# Prefer an explicitly selected file to automatically selected ones.
2269ac_site_file1=NONE
2270ac_site_file2=NONE
2271if test -n "$CONFIG_SITE"; then
2272 ac_site_file1=$CONFIG_SITE
2273elif test "x$prefix" != xNONE; then
2274 ac_site_file1=$prefix/share/config.site
2275 ac_site_file2=$prefix/etc/config.site
2276else
2277 ac_site_file1=$ac_default_prefix/share/config.site
2278 ac_site_file2=$ac_default_prefix/etc/config.site
2279fi
2280for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2281do
2282 test "x$ac_site_file" = xNONE && continue
b7026657 2283 if test -r "$ac_site_file"; then
81ecdfbb
RW
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2285$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657
AC
2286 sed 's/^/| /' "$ac_site_file" >&5
2287 . "$ac_site_file"
2288 fi
2289done
2290
2291if test -r "$cache_file"; then
2292 # Some versions of bash will fail to source /dev/null (special
2293 # files actually), so we avoid doing that.
2294 if test -f "$cache_file"; then
81ecdfbb
RW
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2296$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2297 case $cache_file in
81ecdfbb
RW
2298 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2299 *) . "./$cache_file";;
b7026657
AC
2300 esac
2301 fi
2302else
81ecdfbb
RW
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2304$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2305 >$cache_file
2306fi
2307
2308# Check that the precious variables saved in the cache have kept the same
2309# value.
2310ac_cache_corrupted=false
81ecdfbb 2311for ac_var in $ac_precious_vars; do
b7026657
AC
2312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2313 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2314 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2315 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2316 case $ac_old_set,$ac_new_set in
2317 set,)
81ecdfbb
RW
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2319$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2320 ac_cache_corrupted=: ;;
2321 ,set)
81ecdfbb
RW
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2323$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2324 ac_cache_corrupted=: ;;
2325 ,);;
2326 *)
2327 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2328 # differences in whitespace do not lead to failure.
2329 ac_old_val_w=`echo x $ac_old_val`
2330 ac_new_val_w=`echo x $ac_new_val`
2331 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2333$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2334 ac_cache_corrupted=:
2335 else
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2337$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2338 eval $ac_var=\$ac_old_val
2339 fi
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2341$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2343$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2344 fi;;
2345 esac
2346 # Pass precious variables to config.status.
2347 if test "$ac_new_set" = set; then
2348 case $ac_new_val in
81ecdfbb 2349 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2350 *) ac_arg=$ac_var=$ac_new_val ;;
2351 esac
2352 case " $ac_configure_args " in
2353 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2354 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2355 esac
2356 fi
2357done
2358if $ac_cache_corrupted; then
81ecdfbb
RW
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2362$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2363 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2364fi
81ecdfbb
RW
2365## -------------------- ##
2366## Main body of script. ##
2367## -------------------- ##
b7026657
AC
2368
2369ac_ext=c
2370ac_cpp='$CPP $CPPFLAGS'
2371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374
6ffe910a
MF
2375
2376# This file contains common code used by all simulators.
2377#
2378# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2379# directory. It is intended to be invoked before any target specific stuff.
2380# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2381# It is intended to be invoked last.
2382#
306f4178 2383# The simulator's configure.ac should look like:
6ffe910a
MF
2384#
2385# dnl Process this file with autoconf to produce a configure script.
2386# AC_PREREQ(2.64)dnl
2387# AC_INIT(Makefile.in)
2388# sinclude(../common/aclocal.m4)
2389#
2390# SIM_AC_COMMON
2391#
2392# ... target specific stuff ...
2393#
2394# SIM_AC_OUTPUT
2395
2396# Include global overrides and fixes for Autoconf.
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423# _AC_CHECK_DECL_BODY
2424# -------------------
2425# Shell function body for AC_CHECK_DECL.
2426# _AC_CHECK_DECL_BODY
2427
2428# _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2429# INCLUDES)
2430# -------------------------------------------------------------
2431# Helper to AC_CHECK_DECLS, which generates the check for a single
2432# SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2433# ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
6bb11ab3
L
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
6bb11ab3
L
2445# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2446#
2447# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2448# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2449# Written by Gordon Matzigkeit, 1996
2450#
2451# This file is free software; the Free Software Foundation gives
2452# unlimited permission to copy and/or distribute it, with or without
2453# modifications, as long as this notice is preserved.
2454
2455
2456
2457# serial 56 LT_INIT
2458
2459
2460# LT_PREREQ(VERSION)
2461# ------------------
2462# Complain and exit if this libtool version is less that VERSION.
2463
2464
2465
2466# _LT_CHECK_BUILDDIR
2467# ------------------
2468# Complain if the absolute build directory name contains unusual characters
2469
2470
2471
2472# LT_INIT([OPTIONS])
2473# ------------------
2474# LT_INIT
2475
2476# Old names:
2477# This is what autoupdate's m4 run will expand. It fires
2478# the warning (with _au_warn_XXX), outputs it into the
2479# updated configure.ac (with AC_DIAGNOSE), and then outputs
2480# the replacement expansion.
2481
2482
2483# This is an auxiliary macro that is also run when
2484# autoupdate runs m4. It simply calls m4_warning, but
2485# we need a wrapper so that each warning is emitted only
2486# once. We break the quoting in m4_warning's argument in
2487# order to expand this macro's arguments, not AU_DEFUN's.
2488
2489
2490# Finally, this is the expansion that is picked up by
2491# autoconf. It tells the user to run autoupdate, and
2492# then outputs the replacement expansion. We do not care
2493# about autoupdate's warning because that contains
2494# information on what to do *after* running autoupdate.
2495
2496# This is what autoupdate's m4 run will expand. It fires
2497# the warning (with _au_warn_XXX), outputs it into the
2498# updated configure.ac (with AC_DIAGNOSE), and then outputs
2499# the replacement expansion.
2500
2501
2502# This is an auxiliary macro that is also run when
2503# autoupdate runs m4. It simply calls m4_warning, but
2504# we need a wrapper so that each warning is emitted only
2505# once. We break the quoting in m4_warning's argument in
2506# order to expand this macro's arguments, not AU_DEFUN's.
2507
2508
2509# Finally, this is the expansion that is picked up by
2510# autoconf. It tells the user to run autoupdate, and
2511# then outputs the replacement expansion. We do not care
2512# about autoupdate's warning because that contains
2513# information on what to do *after* running autoupdate.
2514
2515
2516
2517# _LT_CC_BASENAME(CC)
2518# -------------------
2519# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2520
2521
2522
2523# _LT_FILEUTILS_DEFAULTS
2524# ----------------------
2525# It is okay to use these file commands and assume they have been set
2526# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2527# _LT_FILEUTILS_DEFAULTS
2528
2529
2530# _LT_SETUP
2531# ---------
2532# _LT_SETUP
2533
2534
2535# _LT_PREPARE_SED_QUOTE_VARS
2536# --------------------------
2537# Define a few sed substitution that help us do robust quoting.
2538
2539
2540# _LT_PROG_LTMAIN
2541# ---------------
2542# Note that this code is called both from `configure', and `config.status'
2543# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2544# `config.status' has no value for ac_aux_dir unless we are using Automake,
2545# so we pass a copy along to make sure it has a sensible value anyway.
2546# _LT_PROG_LTMAIN
2547
2548
2549## ------------------------------------- ##
2550## Accumulate code for creating libtool. ##
2551## ------------------------------------- ##
2552
2553# So that we can recreate a full libtool script including additional
2554# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2555# in macros and then make a single call at the end using the `libtool'
2556# label.
2557
2558
2559# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2560# ----------------------------------------
2561# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2562
2563
2564# Initialize.
2565
2566
2567
2568# _LT_CONFIG_LIBTOOL([COMMANDS])
2569# ------------------------------
2570# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2571
2572
2573# Initialize.
2574
2575
2576
2577# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2578# -----------------------------------------------------
2579
2580
2581
2582# _LT_FORMAT_COMMENT([COMMENT])
2583# -----------------------------
2584# Add leading comment marks to the start of each line, and a trailing
2585# full-stop to the whole comment if one is not present already.
2586
2587
2588
2589
2590## ------------------------ ##
2591## FIXME: Eliminate VARNAME ##
2592## ------------------------ ##
2593
2594
2595# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2596# -------------------------------------------------------------------
2597# CONFIGNAME is the name given to the value in the libtool script.
2598# VARNAME is the (base) name used in the configure script.
2599# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2600# VARNAME. Any other value will be used directly.
2601
2602
2603
2604# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2605# --------------------------------------------------------
2606
2607
2608
2609# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2610# ------------------------------------------------
2611
2612
2613
2614# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2615# ---------------------------------------------------------
2616
2617
2618
2619# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2620# --------------------------------------------------
2621
2622
2623
2624# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2625# ---------------------------------------------------
2626
2627
2628
2629# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2630# ---------------------------------------------------
2631
2632
2633
2634
2635# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2636# ------------------------------------------------
2637
2638
2639
2640
2641# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2642# ------------------------------------
2643# Quote a variable value, and forward it to `config.status' so that its
2644# declaration there will have the same value as in `configure'. VARNAME
2645# must have a single quote delimited value for this to work.
2646
2647
2648
2649# _LT_CONFIG_STATUS_DECLARATIONS
2650# ------------------------------
2651# We delimit libtool config variables with single quotes, so when
2652# we write them to config.status, we have to be sure to quote all
2653# embedded single quotes properly. In configure, this macro expands
2654# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2655#
2656# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2657
2658
2659
2660# _LT_LIBTOOL_TAGS
2661# ----------------
2662# Output comment and list of tags supported by the script
2663
2664
2665
2666# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2667# -----------------------------------
2668# Extract the dictionary values for VARNAME (optionally with TAG) and
2669# expand to a commented shell variable setting:
2670#
2671# # Some comment about what VAR is for.
2672# visible_name=$lt_internal_name
2673
2674
2675
2676# _LT_LIBTOOL_CONFIG_VARS
2677# -----------------------
2678# Produce commented declarations of non-tagged libtool config variables
2679# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2680# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2681# section) are produced by _LT_LIBTOOL_TAG_VARS.
2682
2683
2684
2685# _LT_LIBTOOL_TAG_VARS(TAG)
2686# -------------------------
2687
2688
2689
2690# _LT_TAGVAR(VARNAME, [TAGNAME])
2691# ------------------------------
2692
2693
2694
2695# _LT_CONFIG_COMMANDS
2696# -------------------
2697# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2698# variables for single and double quote escaping we saved from calls
2699# to _LT_DECL, we can put quote escaped variables declarations
2700# into `config.status', and then the shell code to quote escape them in
2701# for loops in `config.status'. Finally, any additional code accumulated
2702# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2703#_LT_CONFIG_COMMANDS
2704
2705
2706# Initialize.
2707
2708
2709# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2710# ------------------------------------
2711# Generate a child script FILE with all initialization necessary to
2712# reuse the environment learned by the parent script, and make the
2713# file executable. If COMMENT is supplied, it is inserted after the
2714# `#!' sequence but before initialization text begins. After this
2715# macro, additional text can be appended to FILE to form the body of
2716# the child script. The macro ends with non-zero status if the
2717# file could not be fully written (such as if the disk is full).
2718# _LT_GENERATED_FILE_INIT
2719
2720# LT_OUTPUT
2721# ---------
2722# This macro allows early generation of the libtool script (before
2723# AC_OUTPUT is called), incase it is used in configure for compilation
2724# tests.
2725# LT_OUTPUT
2726
2727
2728# _LT_CONFIG(TAG)
2729# ---------------
2730# If TAG is the built-in tag, create an initial libtool script with a
2731# default configuration from the untagged config vars. Otherwise add code
2732# to config.status for appending the configuration named by TAG from the
2733# matching tagged config vars.
2734# _LT_CONFIG
2735
2736
2737# LT_SUPPORTED_TAG(TAG)
2738# ---------------------
2739# Trace this macro to discover what tags are supported by the libtool
2740# --tag option, using:
2741# autoconf --trace 'LT_SUPPORTED_TAG:$1'
2742
2743
2744
2745# C support is built-in for now
2746
2747
2748
2749
2750# LT_LANG(LANG)
2751# -------------
2752# Enable libtool support for the given language if not already enabled.
2753# LT_LANG
2754
2755
2756# _LT_LANG(LANGNAME)
2757# ------------------
2758# _LT_LANG
2759
2760
2761# _LT_LANG_DEFAULT_CONFIG
2762# -----------------------
2763# _LT_LANG_DEFAULT_CONFIG
2764
2765# Obsolete macros:
2766# This is what autoupdate's m4 run will expand. It fires
2767# the warning (with _au_warn_XXX), outputs it into the
2768# updated configure.ac (with AC_DIAGNOSE), and then outputs
2769# the replacement expansion.
2770
2771
2772# This is an auxiliary macro that is also run when
2773# autoupdate runs m4. It simply calls m4_warning, but
2774# we need a wrapper so that each warning is emitted only
2775# once. We break the quoting in m4_warning's argument in
2776# order to expand this macro's arguments, not AU_DEFUN's.
2777
2778
2779# Finally, this is the expansion that is picked up by
2780# autoconf. It tells the user to run autoupdate, and
2781# then outputs the replacement expansion. We do not care
2782# about autoupdate's warning because that contains
2783# information on what to do *after* running autoupdate.
2784
2785# This is what autoupdate's m4 run will expand. It fires
2786# the warning (with _au_warn_XXX), outputs it into the
2787# updated configure.ac (with AC_DIAGNOSE), and then outputs
2788# the replacement expansion.
2789
2790
2791# This is an auxiliary macro that is also run when
2792# autoupdate runs m4. It simply calls m4_warning, but
2793# we need a wrapper so that each warning is emitted only
2794# once. We break the quoting in m4_warning's argument in
2795# order to expand this macro's arguments, not AU_DEFUN's.
2796
2797
2798# Finally, this is the expansion that is picked up by
2799# autoconf. It tells the user to run autoupdate, and
2800# then outputs the replacement expansion. We do not care
2801# about autoupdate's warning because that contains
2802# information on what to do *after* running autoupdate.
2803
2804# This is what autoupdate's m4 run will expand. It fires
2805# the warning (with _au_warn_XXX), outputs it into the
2806# updated configure.ac (with AC_DIAGNOSE), and then outputs
2807# the replacement expansion.
2808
2809
2810# This is an auxiliary macro that is also run when
2811# autoupdate runs m4. It simply calls m4_warning, but
2812# we need a wrapper so that each warning is emitted only
2813# once. We break the quoting in m4_warning's argument in
2814# order to expand this macro's arguments, not AU_DEFUN's.
2815
2816
2817# Finally, this is the expansion that is picked up by
2818# autoconf. It tells the user to run autoupdate, and
2819# then outputs the replacement expansion. We do not care
2820# about autoupdate's warning because that contains
2821# information on what to do *after* running autoupdate.
2822
2823# This is what autoupdate's m4 run will expand. It fires
2824# the warning (with _au_warn_XXX), outputs it into the
2825# updated configure.ac (with AC_DIAGNOSE), and then outputs
2826# the replacement expansion.
2827
2828
2829# This is an auxiliary macro that is also run when
2830# autoupdate runs m4. It simply calls m4_warning, but
2831# we need a wrapper so that each warning is emitted only
2832# once. We break the quoting in m4_warning's argument in
2833# order to expand this macro's arguments, not AU_DEFUN's.
2834
2835
2836# Finally, this is the expansion that is picked up by
2837# autoconf. It tells the user to run autoupdate, and
2838# then outputs the replacement expansion. We do not care
2839# about autoupdate's warning because that contains
2840# information on what to do *after* running autoupdate.
2841
2842# This is what autoupdate's m4 run will expand. It fires
2843# the warning (with _au_warn_XXX), outputs it into the
2844# updated configure.ac (with AC_DIAGNOSE), and then outputs
2845# the replacement expansion.
2846
2847
2848# This is an auxiliary macro that is also run when
2849# autoupdate runs m4. It simply calls m4_warning, but
2850# we need a wrapper so that each warning is emitted only
2851# once. We break the quoting in m4_warning's argument in
2852# order to expand this macro's arguments, not AU_DEFUN's.
2853
2854
2855# Finally, this is the expansion that is picked up by
2856# autoconf. It tells the user to run autoupdate, and
2857# then outputs the replacement expansion. We do not care
2858# about autoupdate's warning because that contains
2859# information on what to do *after* running autoupdate.
2860
2861
2862
2863# _LT_TAG_COMPILER
2864# ----------------
2865# _LT_TAG_COMPILER
2866
2867
2868# _LT_COMPILER_BOILERPLATE
2869# ------------------------
2870# Check for compiler boilerplate output or warnings with
2871# the simple compiler test code.
2872# _LT_COMPILER_BOILERPLATE
2873
2874
2875# _LT_LINKER_BOILERPLATE
2876# ----------------------
2877# Check for linker boilerplate output or warnings with
2878# the simple link test code.
2879# _LT_LINKER_BOILERPLATE
2880
2881# _LT_REQUIRED_DARWIN_CHECKS
2882# -------------------------
2883
2884
2885
2886# _LT_DARWIN_LINKER_FEATURES
2887# --------------------------
2888# Checks for linker and compiler features on darwin
2889
2890
2891# _LT_SYS_MODULE_PATH_AIX
2892# -----------------------
2893# Links a minimal program and checks the executable
2894# for the system default hardcoded library path. In most cases,
2895# this is /usr/lib:/lib, but when the MPI compilers are used
2896# the location of the communication and MPI libs are included too.
2897# If we don't find anything, use the default library path according
2898# to the aix ld manual.
2899# _LT_SYS_MODULE_PATH_AIX
2900
2901
2902# _LT_SHELL_INIT(ARG)
2903# -------------------
2904# _LT_SHELL_INIT
2905
2906
2907
2908# _LT_PROG_ECHO_BACKSLASH
2909# -----------------------
2910# Find how we can fake an echo command that does not interpret backslash.
2911# In particular, with Autoconf 2.60 or later we add some code to the start
2912# of the generated configure script which will find a shell with a builtin
2913# printf (which we can use as an echo command).
2914# _LT_PROG_ECHO_BACKSLASH
2915
2916
2917# _LT_ENABLE_LOCK
2918# ---------------
2919# _LT_ENABLE_LOCK
2920
2921
2922# _LT_CMD_OLD_ARCHIVE
2923# -------------------
2924# _LT_CMD_OLD_ARCHIVE
2925
2926
2927# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2928# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2929# ----------------------------------------------------------------
2930# Check whether the given compiler option works
2931# _LT_COMPILER_OPTION
2932
2933# Old name:
2934# This is what autoupdate's m4 run will expand. It fires
2935# the warning (with _au_warn_XXX), outputs it into the
2936# updated configure.ac (with AC_DIAGNOSE), and then outputs
2937# the replacement expansion.
2938
2939
2940# This is an auxiliary macro that is also run when
2941# autoupdate runs m4. It simply calls m4_warning, but
2942# we need a wrapper so that each warning is emitted only
2943# once. We break the quoting in m4_warning's argument in
2944# order to expand this macro's arguments, not AU_DEFUN's.
2945
2946
2947# Finally, this is the expansion that is picked up by
2948# autoconf. It tells the user to run autoupdate, and
2949# then outputs the replacement expansion. We do not care
2950# about autoupdate's warning because that contains
2951# information on what to do *after* running autoupdate.
2952
2953
2954
2955# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2956# [ACTION-SUCCESS], [ACTION-FAILURE])
2957# ----------------------------------------------------
2958# Check whether the given linker option works
2959# _LT_LINKER_OPTION
2960
2961# Old name:
2962# This is what autoupdate's m4 run will expand. It fires
2963# the warning (with _au_warn_XXX), outputs it into the
2964# updated configure.ac (with AC_DIAGNOSE), and then outputs
2965# the replacement expansion.
2966
2967
2968# This is an auxiliary macro that is also run when
2969# autoupdate runs m4. It simply calls m4_warning, but
2970# we need a wrapper so that each warning is emitted only
2971# once. We break the quoting in m4_warning's argument in
2972# order to expand this macro's arguments, not AU_DEFUN's.
2973
2974
2975# Finally, this is the expansion that is picked up by
2976# autoconf. It tells the user to run autoupdate, and
2977# then outputs the replacement expansion. We do not care
2978# about autoupdate's warning because that contains
2979# information on what to do *after* running autoupdate.
2980
2981
2982
2983# LT_CMD_MAX_LEN
2984#---------------
2985# LT_CMD_MAX_LEN
2986
2987# Old name:
2988# This is what autoupdate's m4 run will expand. It fires
2989# the warning (with _au_warn_XXX), outputs it into the
2990# updated configure.ac (with AC_DIAGNOSE), and then outputs
2991# the replacement expansion.
2992
2993
2994# This is an auxiliary macro that is also run when
2995# autoupdate runs m4. It simply calls m4_warning, but
2996# we need a wrapper so that each warning is emitted only
2997# once. We break the quoting in m4_warning's argument in
2998# order to expand this macro's arguments, not AU_DEFUN's.
2999
3000
3001# Finally, this is the expansion that is picked up by
3002# autoconf. It tells the user to run autoupdate, and
3003# then outputs the replacement expansion. We do not care
3004# about autoupdate's warning because that contains
3005# information on what to do *after* running autoupdate.
3006
3007
3008
3009# _LT_HEADER_DLFCN
3010# ----------------
3011# _LT_HEADER_DLFCN
3012
3013
3014# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3015# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3016# ----------------------------------------------------------------
3017# _LT_TRY_DLOPEN_SELF
3018
3019
3020# LT_SYS_DLOPEN_SELF
3021# ------------------
3022# LT_SYS_DLOPEN_SELF
3023
3024# Old name:
3025# This is what autoupdate's m4 run will expand. It fires
3026# the warning (with _au_warn_XXX), outputs it into the
3027# updated configure.ac (with AC_DIAGNOSE), and then outputs
3028# the replacement expansion.
3029
3030
3031# This is an auxiliary macro that is also run when
3032# autoupdate runs m4. It simply calls m4_warning, but
3033# we need a wrapper so that each warning is emitted only
3034# once. We break the quoting in m4_warning's argument in
3035# order to expand this macro's arguments, not AU_DEFUN's.
3036
3037
3038# Finally, this is the expansion that is picked up by
3039# autoconf. It tells the user to run autoupdate, and
3040# then outputs the replacement expansion. We do not care
3041# about autoupdate's warning because that contains
3042# information on what to do *after* running autoupdate.
3043
3044
3045
3046# _LT_COMPILER_C_O([TAGNAME])
3047# ---------------------------
3048# Check to see if options -c and -o are simultaneously supported by compiler.
3049# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3050# _LT_COMPILER_C_O
3051
3052
3053# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3054# ----------------------------------
3055# Check to see if we can do hard links to lock some files if needed
3056# _LT_COMPILER_FILE_LOCKS
3057
3058
3059# _LT_CHECK_OBJDIR
3060# ----------------
3061# _LT_CHECK_OBJDIR
3062
3063
3064# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3065# --------------------------------------
3066# Check hardcoding attributes.
3067# _LT_LINKER_HARDCODE_LIBPATH
3068
3069
3070# _LT_CMD_STRIPLIB
3071# ----------------
3072# _LT_CMD_STRIPLIB
3073
3074
3075# _LT_SYS_DYNAMIC_LINKER([TAG])
3076# -----------------------------
3077# PORTME Fill in your ld.so characteristics
3078# _LT_SYS_DYNAMIC_LINKER
3079
3080
3081# _LT_PATH_TOOL_PREFIX(TOOL)
3082# --------------------------
3083# find a file program which can recognize shared library
3084# _LT_PATH_TOOL_PREFIX
3085
3086# Old name:
3087# This is what autoupdate's m4 run will expand. It fires
3088# the warning (with _au_warn_XXX), outputs it into the
3089# updated configure.ac (with AC_DIAGNOSE), and then outputs
3090# the replacement expansion.
3091
3092
3093# This is an auxiliary macro that is also run when
3094# autoupdate runs m4. It simply calls m4_warning, but
3095# we need a wrapper so that each warning is emitted only
3096# once. We break the quoting in m4_warning's argument in
3097# order to expand this macro's arguments, not AU_DEFUN's.
3098
3099
3100# Finally, this is the expansion that is picked up by
3101# autoconf. It tells the user to run autoupdate, and
3102# then outputs the replacement expansion. We do not care
3103# about autoupdate's warning because that contains
3104# information on what to do *after* running autoupdate.
3105
3106
3107
3108# _LT_PATH_MAGIC
3109# --------------
3110# find a file program which can recognize a shared library
3111# _LT_PATH_MAGIC
3112
3113
3114# LT_PATH_LD
3115# ----------
3116# find the pathname to the GNU or non-GNU linker
3117# LT_PATH_LD
3118
3119# Old names:
3120# This is what autoupdate's m4 run will expand. It fires
3121# the warning (with _au_warn_XXX), outputs it into the
3122# updated configure.ac (with AC_DIAGNOSE), and then outputs
3123# the replacement expansion.
3124
3125
3126# This is an auxiliary macro that is also run when
3127# autoupdate runs m4. It simply calls m4_warning, but
3128# we need a wrapper so that each warning is emitted only
3129# once. We break the quoting in m4_warning's argument in
3130# order to expand this macro's arguments, not AU_DEFUN's.
3131
3132
3133# Finally, this is the expansion that is picked up by
3134# autoconf. It tells the user to run autoupdate, and
3135# then outputs the replacement expansion. We do not care
3136# about autoupdate's warning because that contains
3137# information on what to do *after* running autoupdate.
3138
3139# This is what autoupdate's m4 run will expand. It fires
3140# the warning (with _au_warn_XXX), outputs it into the
3141# updated configure.ac (with AC_DIAGNOSE), and then outputs
3142# the replacement expansion.
3143
3144
3145# This is an auxiliary macro that is also run when
3146# autoupdate runs m4. It simply calls m4_warning, but
3147# we need a wrapper so that each warning is emitted only
3148# once. We break the quoting in m4_warning's argument in
3149# order to expand this macro's arguments, not AU_DEFUN's.
3150
3151
3152# Finally, this is the expansion that is picked up by
3153# autoconf. It tells the user to run autoupdate, and
3154# then outputs the replacement expansion. We do not care
3155# about autoupdate's warning because that contains
3156# information on what to do *after* running autoupdate.
3157
3158
3159
3160# _LT_PATH_LD_GNU
3161#- --------------
3162# _LT_PATH_LD_GNU
3163
3164
3165# _LT_CMD_RELOAD
3166# --------------
3167# find reload flag for linker
3168# -- PORTME Some linkers may need a different reload flag.
3169# _LT_CMD_RELOAD
3170
3171
3172# _LT_CHECK_MAGIC_METHOD
3173# ----------------------
3174# how to check for library dependencies
3175# -- PORTME fill in with the dynamic library characteristics
3176# _LT_CHECK_MAGIC_METHOD
3177
3178
3179# LT_PATH_NM
3180# ----------
3181# find the pathname to a BSD- or MS-compatible name lister
3182# LT_PATH_NM
3183
3184# Old names:
3185# This is what autoupdate's m4 run will expand. It fires
3186# the warning (with _au_warn_XXX), outputs it into the
3187# updated configure.ac (with AC_DIAGNOSE), and then outputs
3188# the replacement expansion.
3189
3190
3191# This is an auxiliary macro that is also run when
3192# autoupdate runs m4. It simply calls m4_warning, but
3193# we need a wrapper so that each warning is emitted only
3194# once. We break the quoting in m4_warning's argument in
3195# order to expand this macro's arguments, not AU_DEFUN's.
3196
3197
3198# Finally, this is the expansion that is picked up by
3199# autoconf. It tells the user to run autoupdate, and
3200# then outputs the replacement expansion. We do not care
3201# about autoupdate's warning because that contains
3202# information on what to do *after* running autoupdate.
3203
3204# This is what autoupdate's m4 run will expand. It fires
3205# the warning (with _au_warn_XXX), outputs it into the
3206# updated configure.ac (with AC_DIAGNOSE), and then outputs
3207# the replacement expansion.
3208
3209
3210# This is an auxiliary macro that is also run when
3211# autoupdate runs m4. It simply calls m4_warning, but
3212# we need a wrapper so that each warning is emitted only
3213# once. We break the quoting in m4_warning's argument in
3214# order to expand this macro's arguments, not AU_DEFUN's.
3215
3216
3217# Finally, this is the expansion that is picked up by
3218# autoconf. It tells the user to run autoupdate, and
3219# then outputs the replacement expansion. We do not care
3220# about autoupdate's warning because that contains
3221# information on what to do *after* running autoupdate.
3222
3223
3224
3225# LT_LIB_M
3226# --------
3227# check for math library
3228# LT_LIB_M
3229
3230# Old name:
3231# This is what autoupdate's m4 run will expand. It fires
3232# the warning (with _au_warn_XXX), outputs it into the
3233# updated configure.ac (with AC_DIAGNOSE), and then outputs
3234# the replacement expansion.
3235
3236
3237# This is an auxiliary macro that is also run when
3238# autoupdate runs m4. It simply calls m4_warning, but
3239# we need a wrapper so that each warning is emitted only
3240# once. We break the quoting in m4_warning's argument in
3241# order to expand this macro's arguments, not AU_DEFUN's.
3242
3243
3244# Finally, this is the expansion that is picked up by
3245# autoconf. It tells the user to run autoupdate, and
3246# then outputs the replacement expansion. We do not care
3247# about autoupdate's warning because that contains
3248# information on what to do *after* running autoupdate.
3249
3250
3251
3252# _LT_COMPILER_NO_RTTI([TAGNAME])
3253# -------------------------------
3254# _LT_COMPILER_NO_RTTI
3255
3256
3257# _LT_CMD_GLOBAL_SYMBOLS
3258# ----------------------
3259 # _LT_CMD_GLOBAL_SYMBOLS
3260
3261
3262# _LT_COMPILER_PIC([TAGNAME])
3263# ---------------------------
3264# _LT_COMPILER_PIC
3265
3266
3267# _LT_LINKER_SHLIBS([TAGNAME])
3268# ----------------------------
3269# See if the linker supports building shared libraries.
3270# _LT_LINKER_SHLIBS
3271
3272
3273# _LT_LANG_C_CONFIG([TAG])
3274# ------------------------
3275# Ensure that the configuration variables for a C compiler are suitably
3276# defined. These variables are subsequently used by _LT_CONFIG to write
3277# the compiler configuration to `libtool'.
3278# _LT_LANG_C_CONFIG
3279
3280
3281# _LT_LANG_CXX_CONFIG([TAG])
3282# --------------------------
3283# Ensure that the configuration variables for a C++ compiler are suitably
3284# defined. These variables are subsequently used by _LT_CONFIG to write
3285# the compiler configuration to `libtool'.
3286# _LT_LANG_CXX_CONFIG
3287
3288
3289# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3290# ---------------------------------
3291# Figure out "hidden" library dependencies from verbose
3292# compiler output when linking a shared library.
3293# Parse the compiler output and extract the necessary
3294# objects, libraries and library flags.
3295# _LT_SYS_HIDDEN_LIBDEPS
3296
3297
3298# _LT_LANG_F77_CONFIG([TAG])
3299# --------------------------
3300# Ensure that the configuration variables for a Fortran 77 compiler are
3301# suitably defined. These variables are subsequently used by _LT_CONFIG
3302# to write the compiler configuration to `libtool'.
3303# _LT_LANG_F77_CONFIG
3304
3305
3306# _LT_LANG_FC_CONFIG([TAG])
3307# -------------------------
3308# Ensure that the configuration variables for a Fortran compiler are
3309# suitably defined. These variables are subsequently used by _LT_CONFIG
3310# to write the compiler configuration to `libtool'.
3311# _LT_LANG_FC_CONFIG
3312
3313
3314# _LT_LANG_GCJ_CONFIG([TAG])
3315# --------------------------
3316# Ensure that the configuration variables for the GNU Java Compiler compiler
3317# are suitably defined. These variables are subsequently used by _LT_CONFIG
3318# to write the compiler configuration to `libtool'.
3319# _LT_LANG_GCJ_CONFIG
3320
3321
3322# _LT_LANG_RC_CONFIG([TAG])
3323# -------------------------
3324# Ensure that the configuration variables for the Windows resource compiler
3325# are suitably defined. These variables are subsequently used by _LT_CONFIG
3326# to write the compiler configuration to `libtool'.
3327# _LT_LANG_RC_CONFIG
3328
3329
3330# LT_PROG_GCJ
3331# -----------
3332
3333
3334# Old name:
3335# This is what autoupdate's m4 run will expand. It fires
3336# the warning (with _au_warn_XXX), outputs it into the
3337# updated configure.ac (with AC_DIAGNOSE), and then outputs
3338# the replacement expansion.
3339
3340
3341# This is an auxiliary macro that is also run when
3342# autoupdate runs m4. It simply calls m4_warning, but
3343# we need a wrapper so that each warning is emitted only
3344# once. We break the quoting in m4_warning's argument in
3345# order to expand this macro's arguments, not AU_DEFUN's.
3346
3347
3348# Finally, this is the expansion that is picked up by
3349# autoconf. It tells the user to run autoupdate, and
3350# then outputs the replacement expansion. We do not care
3351# about autoupdate's warning because that contains
3352# information on what to do *after* running autoupdate.
3353
3354
3355
3356# LT_PROG_RC
3357# ----------
3358
3359
3360# Old name:
3361# This is what autoupdate's m4 run will expand. It fires
3362# the warning (with _au_warn_XXX), outputs it into the
3363# updated configure.ac (with AC_DIAGNOSE), and then outputs
3364# the replacement expansion.
3365
3366
3367# This is an auxiliary macro that is also run when
3368# autoupdate runs m4. It simply calls m4_warning, but
3369# we need a wrapper so that each warning is emitted only
3370# once. We break the quoting in m4_warning's argument in
3371# order to expand this macro's arguments, not AU_DEFUN's.
3372
3373
3374# Finally, this is the expansion that is picked up by
3375# autoconf. It tells the user to run autoupdate, and
3376# then outputs the replacement expansion. We do not care
3377# about autoupdate's warning because that contains
3378# information on what to do *after* running autoupdate.
3379
3380
3381
3382# _LT_DECL_EGREP
3383# --------------
3384# If we don't have a new enough Autoconf to choose the best grep
3385# available, choose the one first in the user's PATH.
3386
3387
3388
3389# _LT_DECL_OBJDUMP
3390# --------------
3391# If we don't have a new enough Autoconf to choose the best objdump
3392# available, choose the one first in the user's PATH.
3393
3394
3395
3396# _LT_DECL_SED
3397# ------------
3398# Check for a fully-functional sed program, that truncates
3399# as few characters as possible. Prefer GNU sed if found.
3400# _LT_DECL_SED
3401
3402#m4_ifndef
3403
3404# Old name:
3405# This is what autoupdate's m4 run will expand. It fires
3406# the warning (with _au_warn_XXX), outputs it into the
3407# updated configure.ac (with AC_DIAGNOSE), and then outputs
3408# the replacement expansion.
3409
3410
3411# This is an auxiliary macro that is also run when
3412# autoupdate runs m4. It simply calls m4_warning, but
3413# we need a wrapper so that each warning is emitted only
3414# once. We break the quoting in m4_warning's argument in
3415# order to expand this macro's arguments, not AU_DEFUN's.
3416
3417
3418# Finally, this is the expansion that is picked up by
3419# autoconf. It tells the user to run autoupdate, and
3420# then outputs the replacement expansion. We do not care
3421# about autoupdate's warning because that contains
3422# information on what to do *after* running autoupdate.
3423
3424
3425
3426# _LT_CHECK_SHELL_FEATURES
3427# ------------------------
3428# Find out whether the shell is Bourne or XSI compatible,
3429# or has some other useful features.
3430# _LT_CHECK_SHELL_FEATURES
3431
3432
3433# _LT_PROG_XSI_SHELLFNS
3434# ---------------------
3435# Bourne and XSI compatible variants of some useful shell functions.
3436
3437
3438# Helper functions for option handling. -*- Autoconf -*-
3439#
3440# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3441# Inc.
3442# Written by Gary V. Vaughan, 2004
3443#
3444# This file is free software; the Free Software Foundation gives
3445# unlimited permission to copy and/or distribute it, with or without
3446# modifications, as long as this notice is preserved.
3447
3448# serial 6 ltoptions.m4
3449
3450# This is to help aclocal find these macros, as it can't see m4_define.
3451
3452
3453
3454# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3455# ------------------------------------------
3456
3457
3458
3459# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3460# ---------------------------------------
3461# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3462# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3463# saved as a flag.
3464
3465
3466
3467# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3468# ------------------------------------------------------------
3469# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3470
3471
3472
3473# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3474# -------------------------------------------------------
3475# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3476# are set.
3477
3478
3479
3480# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3481# ----------------------------------------
3482# OPTION-LIST is a space-separated list of Libtool options associated
3483# with MACRO-NAME. If any OPTION has a matching handler declared with
3484# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3485# the unknown option and exit.
3486# _LT_SET_OPTIONS
3487
3488
3489## --------------------------------- ##
3490## Macros to handle LT_INIT options. ##
3491## --------------------------------- ##
3492
3493# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3494# -----------------------------------------
3495
3496
3497
3498# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3499# -----------------------------------------------
3500# LT_OPTION_DEFINE
3501
3502
3503# dlopen
3504# ------
3505
3506
3507# This is what autoupdate's m4 run will expand. It fires
3508# the warning (with _au_warn_XXX), outputs it into the
3509# updated configure.ac (with AC_DIAGNOSE), and then outputs
3510# the replacement expansion.
3511
3512
3513# This is an auxiliary macro that is also run when
3514# autoupdate runs m4. It simply calls m4_warning, but
3515# we need a wrapper so that each warning is emitted only
3516# once. We break the quoting in m4_warning's argument in
3517# order to expand this macro's arguments, not AU_DEFUN's.
3518
3519
3520# Finally, this is the expansion that is picked up by
3521# autoconf. It tells the user to run autoupdate, and
3522# then outputs the replacement expansion. We do not care
3523# about autoupdate's warning because that contains
3524# information on what to do *after* running autoupdate.
3525
3526
3527
3528
3529# win32-dll
3530# ---------
3531# Declare package support for building win32 dll's.
3532# win32-dll
3533
3534# This is what autoupdate's m4 run will expand. It fires
3535# the warning (with _au_warn_XXX), outputs it into the
3536# updated configure.ac (with AC_DIAGNOSE), and then outputs
3537# the replacement expansion.
3538
3539
3540# This is an auxiliary macro that is also run when
3541# autoupdate runs m4. It simply calls m4_warning, but
3542# we need a wrapper so that each warning is emitted only
3543# once. We break the quoting in m4_warning's argument in
3544# order to expand this macro's arguments, not AU_DEFUN's.
3545
3546
3547# Finally, this is the expansion that is picked up by
3548# autoconf. It tells the user to run autoupdate, and
3549# then outputs the replacement expansion. We do not care
3550# about autoupdate's warning because that contains
3551# information on what to do *after* running autoupdate.
3552
3553
3554
3555
3556# _LT_ENABLE_SHARED([DEFAULT])
3557# ----------------------------
3558# implement the --enable-shared flag, and supports the `shared' and
3559# `disable-shared' LT_INIT options.
3560# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3561# _LT_ENABLE_SHARED
3562
3563
3564
3565
3566# Old names:
3567
3568
3569
3570
3571# This is what autoupdate's m4 run will expand. It fires
3572# the warning (with _au_warn_XXX), outputs it into the
3573# updated configure.ac (with AC_DIAGNOSE), and then outputs
3574# the replacement expansion.
3575
3576
3577# This is an auxiliary macro that is also run when
3578# autoupdate runs m4. It simply calls m4_warning, but
3579# we need a wrapper so that each warning is emitted only
3580# once. We break the quoting in m4_warning's argument in
3581# order to expand this macro's arguments, not AU_DEFUN's.
3582
3583
3584# Finally, this is the expansion that is picked up by
3585# autoconf. It tells the user to run autoupdate, and
3586# then outputs the replacement expansion. We do not care
3587# about autoupdate's warning because that contains
3588# information on what to do *after* running autoupdate.
3589
3590# This is what autoupdate's m4 run will expand. It fires
3591# the warning (with _au_warn_XXX), outputs it into the
3592# updated configure.ac (with AC_DIAGNOSE), and then outputs
3593# the replacement expansion.
3594
3595
3596# This is an auxiliary macro that is also run when
3597# autoupdate runs m4. It simply calls m4_warning, but
3598# we need a wrapper so that each warning is emitted only
3599# once. We break the quoting in m4_warning's argument in
3600# order to expand this macro's arguments, not AU_DEFUN's.
3601
3602
3603# Finally, this is the expansion that is picked up by
3604# autoconf. It tells the user to run autoupdate, and
3605# then outputs the replacement expansion. We do not care
3606# about autoupdate's warning because that contains
3607# information on what to do *after* running autoupdate.
3608
3609
3610
3611
3612
3613# _LT_ENABLE_STATIC([DEFAULT])
3614# ----------------------------
3615# implement the --enable-static flag, and support the `static' and
3616# `disable-static' LT_INIT options.
3617# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3618# _LT_ENABLE_STATIC
3619
3620
3621
3622
3623# Old names:
3624
3625
3626
3627
3628# This is what autoupdate's m4 run will expand. It fires
3629# the warning (with _au_warn_XXX), outputs it into the
3630# updated configure.ac (with AC_DIAGNOSE), and then outputs
3631# the replacement expansion.
3632
3633
3634# This is an auxiliary macro that is also run when
3635# autoupdate runs m4. It simply calls m4_warning, but
3636# we need a wrapper so that each warning is emitted only
3637# once. We break the quoting in m4_warning's argument in
3638# order to expand this macro's arguments, not AU_DEFUN's.
3639
3640
3641# Finally, this is the expansion that is picked up by
3642# autoconf. It tells the user to run autoupdate, and
3643# then outputs the replacement expansion. We do not care
3644# about autoupdate's warning because that contains
3645# information on what to do *after* running autoupdate.
3646
3647# This is what autoupdate's m4 run will expand. It fires
3648# the warning (with _au_warn_XXX), outputs it into the
3649# updated configure.ac (with AC_DIAGNOSE), and then outputs
3650# the replacement expansion.
3651
3652
3653# This is an auxiliary macro that is also run when
3654# autoupdate runs m4. It simply calls m4_warning, but
3655# we need a wrapper so that each warning is emitted only
3656# once. We break the quoting in m4_warning's argument in
3657# order to expand this macro's arguments, not AU_DEFUN's.
3658
3659
3660# Finally, this is the expansion that is picked up by
3661# autoconf. It tells the user to run autoupdate, and
3662# then outputs the replacement expansion. We do not care
3663# about autoupdate's warning because that contains
3664# information on what to do *after* running autoupdate.
3665
3666
3667
3668
3669
3670# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3671# ----------------------------------
3672# implement the --enable-fast-install flag, and support the `fast-install'
3673# and `disable-fast-install' LT_INIT options.
3674# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3675# _LT_ENABLE_FAST_INSTALL
3676
3677
3678
3679
3680# Old names:
3681# This is what autoupdate's m4 run will expand. It fires
3682# the warning (with _au_warn_XXX), outputs it into the
3683# updated configure.ac (with AC_DIAGNOSE), and then outputs
3684# the replacement expansion.
3685
3686
3687# This is an auxiliary macro that is also run when
3688# autoupdate runs m4. It simply calls m4_warning, but
3689# we need a wrapper so that each warning is emitted only
3690# once. We break the quoting in m4_warning's argument in
3691# order to expand this macro's arguments, not AU_DEFUN's.
3692
3693
3694# Finally, this is the expansion that is picked up by
3695# autoconf. It tells the user to run autoupdate, and
3696# then outputs the replacement expansion. We do not care
3697# about autoupdate's warning because that contains
3698# information on what to do *after* running autoupdate.
3699
3700
3701# This is what autoupdate's m4 run will expand. It fires
3702# the warning (with _au_warn_XXX), outputs it into the
3703# updated configure.ac (with AC_DIAGNOSE), and then outputs
3704# the replacement expansion.
3705
3706
3707# This is an auxiliary macro that is also run when
3708# autoupdate runs m4. It simply calls m4_warning, but
3709# we need a wrapper so that each warning is emitted only
3710# once. We break the quoting in m4_warning's argument in
3711# order to expand this macro's arguments, not AU_DEFUN's.
3712
3713
3714# Finally, this is the expansion that is picked up by
3715# autoconf. It tells the user to run autoupdate, and
3716# then outputs the replacement expansion. We do not care
3717# about autoupdate's warning because that contains
3718# information on what to do *after* running autoupdate.
3719
3720
3721
3722
3723# _LT_WITH_PIC([MODE])
3724# --------------------
3725# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3726# LT_INIT options.
3727# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3728# _LT_WITH_PIC
3729
3730
3731
3732
3733# Old name:
3734# This is what autoupdate's m4 run will expand. It fires
3735# the warning (with _au_warn_XXX), outputs it into the
3736# updated configure.ac (with AC_DIAGNOSE), and then outputs
3737# the replacement expansion.
3738
3739
3740# This is an auxiliary macro that is also run when
3741# autoupdate runs m4. It simply calls m4_warning, but
3742# we need a wrapper so that each warning is emitted only
3743# once. We break the quoting in m4_warning's argument in
3744# order to expand this macro's arguments, not AU_DEFUN's.
3745
3746
3747# Finally, this is the expansion that is picked up by
3748# autoconf. It tells the user to run autoupdate, and
3749# then outputs the replacement expansion. We do not care
3750# about autoupdate's warning because that contains
3751# information on what to do *after* running autoupdate.
3752
3753
3754
3755## ----------------- ##
3756## LTDL_INIT Options ##
3757## ----------------- ##
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3769#
3770# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3771# Written by Gary V. Vaughan, 2004
3772#
3773# This file is free software; the Free Software Foundation gives
3774# unlimited permission to copy and/or distribute it, with or without
3775# modifications, as long as this notice is preserved.
3776
3777# serial 6 ltsugar.m4
3778
3779# This is to help aclocal find these macros, as it can't see m4_define.
3780
3781
3782
3783# lt_join(SEP, ARG1, [ARG2...])
3784# -----------------------------
3785# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3786# associated separator.
3787# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3788# versions in m4sugar had bugs.
3789
3790
3791
3792
3793# lt_car(LIST)
3794# lt_cdr(LIST)
3795# ------------
3796# Manipulate m4 lists.
3797# These macros are necessary as long as will still need to support
3798# Autoconf-2.59 which quotes differently.
3799
3800
3801
3802
3803
3804# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3805# ------------------------------------------
3806# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3807# Note that neither SEPARATOR nor STRING are expanded; they are appended
3808# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3809# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3810# than defined and empty).
3811#
3812# This macro is needed until we can rely on Autoconf 2.62, since earlier
3813# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3814
3815
3816
3817
3818# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3819# ----------------------------------------------------------
3820# Produce a SEP delimited list of all paired combinations of elements of
3821# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3822# has the form PREFIXmINFIXSUFFIXn.
3823# Needed until we can rely on m4_combine added in Autoconf 2.62.
3824
3825
3826
3827# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3828# -----------------------------------------------------------------------
3829# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3830# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3831
3832
3833
3834# lt_dict_add(DICT, KEY, VALUE)
3835# -----------------------------
3836
3837
3838
3839# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3840# --------------------------------------------
3841
3842
3843
3844# lt_dict_fetch(DICT, KEY, [SUBKEY])
3845# ----------------------------------
3846
3847
3848
3849# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3850# -----------------------------------------------------------------
3851
3852
3853
3854# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3855# --------------------------------------------------------------
3856
3857
3858# ltversion.m4 -- version numbers -*- Autoconf -*-
3859#
3860# Copyright (C) 2004 Free Software Foundation, Inc.
3861# Written by Scott James Remnant, 2004
3862#
3863# This file is free software; the Free Software Foundation gives
3864# unlimited permission to copy and/or distribute it, with or without
3865# modifications, as long as this notice is preserved.
3866
3867# Generated from ltversion.in.
3868
3869# serial 3134 ltversion.m4
3870# This file is part of GNU Libtool
3871
3872
3873
3874
3875
3876
3877# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3878#
3879# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3880# Written by Scott James Remnant, 2004.
3881#
3882# This file is free software; the Free Software Foundation gives
3883# unlimited permission to copy and/or distribute it, with or without
3884# modifications, as long as this notice is preserved.
3885
3886# serial 4 lt~obsolete.m4
3887
3888# These exist entirely to fool aclocal when bootstrapping libtool.
3889#
3890# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3891# which have later been changed to m4_define as they aren't part of the
3892# exported API, or moved to Autoconf or Automake where they belong.
3893#
3894# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3895# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3896# using a macro with the same name in our local m4/libtool.m4 it'll
3897# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3898# and doesn't know about Autoconf macros at all.)
3899#
3900# So we provide this file, which has a silly filename so it's always
3901# included after everything else. This provides aclocal with the
3902# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3903# because those macros already exist, or will be overwritten later.
3904# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3905#
3906# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3907# Yes, that means every name once taken will need to remain here until
3908# we give up compatibility with versions before 1.7, at which point
3909# we need to keep only those names which we still refer to.
3910
3911# This is to help aclocal find these macros, as it can't see m4_define.
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
6ffe910a
MF
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
5f3ef9d0
JB
3976## -*- Autoconf -*-
3977
3978# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3979# Free Software Foundation, Inc.
3980#
3981# This file is free software; the Free Software Foundation
3982# gives unlimited permission to copy and/or distribute it,
3983# with or without modifications, as long as this notice is preserved.
3984
3985# serial 8
3986
3987# Based on depend.m4 from automake 1.9, modified for standalone use in
3988# an environment where GNU make is required.
3989
3990# ZW_PROG_COMPILER_DEPENDENCIES
3991# -----------------------------
3992# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3993# sets fooDEPMODE accordingly. Cache-variable compatible with
3994# original; not side-effect compatible. As the users of this macro
3995# may require accurate dependencies for correct builds, it does *not*
3996# honor --disable-dependency-checking, and failure to detect a usable
3997# method is an error. depcomp is assumed to be located in
3998# $ac_aux_dir.
3999#
4000# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
4001
4002
4003
4004# AM_SET_DEPDIR
4005# -------------
4006# Choose a directory name for dependency files.
4007
4008
4009# ZW_CREATE_DEPDIR
4010# ----------------
4011# As AM_SET_DEPDIR, but also create the directory at config.status time.
4012
4013
6ffe910a
MF
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
6ffe910a
MF
4053
4054
4055
4056
4057
6ffe910a
MF
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
6ffe910a
MF
4077
4078
4079
4080
4081
4082# intl sister-directory configuration rules.
4083#
4084
4085# The idea behind this macro is that there's no need to repeat all the
4086# autoconf probes done by the intl directory - it's already done them
4087# for us. In fact, there's no need even to look at the cache for the
4088# answers. All we need to do is nab a few pieces of information.
4089# The intl directory is set up to make this easy, by generating a
4090# small file which can be sourced as a shell script; then we produce
4091# the necessary substitutions and definitions for this directory.
4092
4093
4094
4095# Autoconf M4 include file defining utility macros for complex Canadian
4096# cross builds.
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106####
4107# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4108# or AC_INIT.
4109# These demand that AC_CANONICAL_SYSTEM be called beforehand.
4110
4111####
4112# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4113# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4114
4115
4116####
4117# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4118# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4119
4120
4121
4122# Backported from Autoconf 2.5x; can go away when and if
4123# we switch. Put the OS path separator in $PATH_SEPARATOR.
4124
4125
4126
4127
4128# ACX_HAVE_GCC_FOR_TARGET
4129# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4130
4131
4132# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4133# Searching for installed target binutils. We need to take extra care,
4134# else we may find the wrong assembler, linker, etc., and lose.
4135#
4136# First try --with-build-time-tools, if specified.
4137#
4138# For build != host, we ask the installed GCC for the name of the tool it
4139# uses, and accept it if it is an absolute path. This is because the
4140# only good choice for a compiler is the same GCC version that is being
4141# installed (or we couldn't make target libraries), and we assume that
4142# on the host system we'll have not only the same GCC version, but also
4143# the same binutils version.
4144#
4145# For build == host, search the same directories that the installed
4146# compiler will search. We used to do this for the assembler, linker,
4147# and nm only; for simplicity of configuration, however, we extend this
4148# criterion to tools (such as ar and ranlib) that are never invoked by
4149# the compiler, to avoid mismatches.
4150#
4151# Also note we have to check MD_EXEC_PREFIX before checking the user's path
4152# if build == target. This makes the most sense only when bootstrapping,
4153# but we also do so when build != host. In this case, we hope that the
4154# build and host systems will have similar contents of MD_EXEC_PREFIX.
4155#
4156# If we do not find a suitable binary, then try the user's path.
4157
4158
4159###
4160# AC_PROG_CPP_WERROR
4161# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4162# triggers warnings from the preprocessor. Will be in autoconf 2.58.
4163# For now, using this also overrides header checks to use only the
4164# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4165# bit harder from here).
4166# Eventually autoconf will default to checking headers with the compiler
4167# instead, and we'll have to do this differently.
4168
4169# AC_PROG_CPP_WERROR
4170
4171# Test for GNAT.
5f3ef9d0
JB
4172# We require the gnatbind & gnatmake programs, as well as a compiler driver
4173# that understands Ada. We use the user's CC setting, already found, and
4174# possibly add $1 to the command-line parameters.
6ffe910a
MF
4175#
4176# Sets the shell variable have_gnat to yes or no as appropriate, and
4177# substitutes GNATBIND and GNATMAKE.
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
b7026657
AC
4198
4199
b7026657
AC
4200
4201
4202
4203ac_aux_dir=
81ecdfbb
RW
4204for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4205 for ac_t in install-sh install.sh shtool; do
4206 if test -f "$ac_dir/$ac_t"; then
4207 ac_aux_dir=$ac_dir
4208 ac_install_sh="$ac_aux_dir/$ac_t -c"
4209 break 2
4210 fi
4211 done
b7026657
AC
4212done
4213if test -z "$ac_aux_dir"; then
81ecdfbb 4214 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b7026657 4215fi
81ecdfbb
RW
4216
4217# These three variables are undocumented and unsupported,
4218# and are intended to be withdrawn in a future Autoconf release.
4219# They can cause serious problems if a builder's source tree is in a directory
4220# whose full name contains unusual characters.
4221ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4222ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4223ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4224
b7026657
AC
4225
4226# Find a good install program. We prefer a C program (faster),
4227# so one script is as good as another. But avoid the broken or
4228# incompatible versions:
4229# SysV /etc/install, /usr/sbin/install
4230# SunOS /usr/etc/install
4231# IRIX /sbin/install
4232# AIX /bin/install
4233# AmigaOS /C/install, which installs bootblocks on floppy discs
4234# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4235# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4236# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4237# OS/2's system install, which has a completely different semantic
4238# ./install, which can be erroneously created by make from ./install.sh.
81ecdfbb
RW
4239# Reject install programs that cannot install multiple files.
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4241$as_echo_n "checking for a BSD-compatible install... " >&6; }
b7026657 4242if test -z "$INSTALL"; then
81ecdfbb
RW
4243if test "${ac_cv_path_install+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
b7026657
AC
4245else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4251 # Account for people who put trailing slashes in PATH elements.
4252case $as_dir/ in #((
4253 ./ | .// | /[cC]/* | \
b7026657 4254 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 4255 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b7026657
AC
4256 /usr/ucb/* ) ;;
4257 *)
4258 # OSF1 and SCO ODT 3.0 have their own names for install.
4259 # Don't use installbsd from OSF since it installs stuff as root
4260 # by default.
4261 for ac_prog in ginstall scoinst install; do
4262 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 4263 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b7026657
AC
4264 if test $ac_prog = install &&
4265 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4266 # AIX install. It has an incompatible calling convention.
4267 :
4268 elif test $ac_prog = install &&
4269 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4270 # program-specific install script used by HP pwplus--don't use.
4271 :
4272 else
81ecdfbb
RW
4273 rm -rf conftest.one conftest.two conftest.dir
4274 echo one > conftest.one
4275 echo two > conftest.two
4276 mkdir conftest.dir
4277 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4278 test -s conftest.one && test -s conftest.two &&
4279 test -s conftest.dir/conftest.one &&
4280 test -s conftest.dir/conftest.two
4281 then
4282 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4283 break 3
4284 fi
b7026657
AC
4285 fi
4286 fi
4287 done
4288 done
4289 ;;
4290esac
b7026657 4291
81ecdfbb
RW
4292 done
4293IFS=$as_save_IFS
4294
4295rm -rf conftest.one conftest.two conftest.dir
b7026657
AC
4296
4297fi
4298 if test "${ac_cv_path_install+set}" = set; then
4299 INSTALL=$ac_cv_path_install
4300 else
81ecdfbb
RW
4301 # As a last resort, use the slow shell script. Don't cache a
4302 # value for INSTALL within a source directory, because that will
b7026657 4303 # break other packages using the cache if that directory is
81ecdfbb 4304 # removed, or if the value is a relative name.
b7026657
AC
4305 INSTALL=$ac_install_sh
4306 fi
4307fi
81ecdfbb
RW
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4309$as_echo "$INSTALL" >&6; }
b7026657
AC
4310
4311# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4312# It thinks the first close brace ends the variable substitution.
4313test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4314
4315test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4316
4317test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4318
4319ac_ext=c
4320ac_cpp='$CPP $CPPFLAGS'
4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324if test -n "$ac_tool_prefix"; then
4325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4326set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328$as_echo_n "checking for $ac_word... " >&6; }
4329if test "${ac_cv_prog_CC+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
c906108c
SS
4331else
4332 if test -n "$CC"; then
4333 ac_cv_prog_CC="$CC" # Let the user override the test.
4334else
b7026657
AC
4335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336for as_dir in $PATH
4337do
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4344 break 2
4345 fi
4346done
81ecdfbb
RW
4347 done
4348IFS=$as_save_IFS
b7026657 4349
c906108c
SS
4350fi
4351fi
b7026657 4352CC=$ac_cv_prog_CC
c906108c 4353if test -n "$CC"; then
81ecdfbb
RW
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4355$as_echo "$CC" >&6; }
b7026657 4356else
81ecdfbb
RW
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358$as_echo "no" >&6; }
b7026657
AC
4359fi
4360
81ecdfbb 4361
b7026657
AC
4362fi
4363if test -z "$ac_cv_prog_CC"; then
4364 ac_ct_CC=$CC
4365 # Extract the first word of "gcc", so it can be a program name with args.
4366set dummy gcc; ac_word=$2
81ecdfbb
RW
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368$as_echo_n "checking for $ac_word... " >&6; }
4369if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
b7026657
AC
4371else
4372 if test -n "$ac_ct_CC"; then
4373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4374else
4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4382 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4384 break 2
4385 fi
4386done
81ecdfbb
RW
4387 done
4388IFS=$as_save_IFS
b7026657
AC
4389
4390fi
4391fi
4392ac_ct_CC=$ac_cv_prog_ac_ct_CC
4393if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4395$as_echo "$ac_ct_CC" >&6; }
c906108c 4396else
81ecdfbb
RW
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398$as_echo "no" >&6; }
b7026657
AC
4399fi
4400
81ecdfbb
RW
4401 if test "x$ac_ct_CC" = x; then
4402 CC=""
4403 else
4404 case $cross_compiling:$ac_tool_warned in
4405yes:)
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4408ac_tool_warned=yes ;;
4409esac
4410 CC=$ac_ct_CC
4411 fi
b7026657
AC
4412else
4413 CC="$ac_cv_prog_CC"
c906108c
SS
4414fi
4415
4416if test -z "$CC"; then
81ecdfbb
RW
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b7026657 4419set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421$as_echo_n "checking for $ac_word... " >&6; }
4422if test "${ac_cv_prog_CC+set}" = set; then :
4423 $as_echo_n "(cached) " >&6
b7026657
AC
4424else
4425 if test -n "$CC"; then
4426 ac_cv_prog_CC="$CC" # Let the user override the test.
4427else
4428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4435 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4437 break 2
4438 fi
4439done
81ecdfbb
RW
4440 done
4441IFS=$as_save_IFS
b7026657
AC
4442
4443fi
4444fi
4445CC=$ac_cv_prog_CC
4446if test -n "$CC"; then
81ecdfbb
RW
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4448$as_echo "$CC" >&6; }
b7026657 4449else
81ecdfbb
RW
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451$as_echo "no" >&6; }
b7026657
AC
4452fi
4453
b7026657 4454
81ecdfbb 4455 fi
b7026657
AC
4456fi
4457if test -z "$CC"; then
4458 # Extract the first word of "cc", so it can be a program name with args.
4459set dummy cc; ac_word=$2
81ecdfbb
RW
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461$as_echo_n "checking for $ac_word... " >&6; }
4462if test "${ac_cv_prog_CC+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
c906108c
SS
4464else
4465 if test -n "$CC"; then
4466 ac_cv_prog_CC="$CC" # Let the user override the test.
4467else
c906108c 4468 ac_prog_rejected=no
b7026657
AC
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
4476 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4477 ac_prog_rejected=yes
4478 continue
4479 fi
4480 ac_cv_prog_CC="cc"
81ecdfbb 4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4482 break 2
4483 fi
4484done
81ecdfbb
RW
4485 done
4486IFS=$as_save_IFS
b7026657 4487
c906108c
SS
4488if test $ac_prog_rejected = yes; then
4489 # We found a bogon in the path, so make sure we never use it.
4490 set dummy $ac_cv_prog_CC
4491 shift
b7026657 4492 if test $# != 0; then
c906108c
SS
4493 # We chose a different compiler from the bogus one.
4494 # However, it has the same basename, so the bogon will be chosen
4495 # first if we set CC to just the basename; use the full file name.
4496 shift
b7026657 4497 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
4498 fi
4499fi
4500fi
4501fi
b7026657 4502CC=$ac_cv_prog_CC
c906108c 4503if test -n "$CC"; then
81ecdfbb
RW
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4505$as_echo "$CC" >&6; }
c906108c 4506else
81ecdfbb
RW
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508$as_echo "no" >&6; }
c906108c
SS
4509fi
4510
81ecdfbb 4511
b7026657
AC
4512fi
4513if test -z "$CC"; then
4514 if test -n "$ac_tool_prefix"; then
81ecdfbb 4515 for ac_prog in cl.exe
b7026657
AC
4516 do
4517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4518set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520$as_echo_n "checking for $ac_word... " >&6; }
4521if test "${ac_cv_prog_CC+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
c906108c
SS
4523else
4524 if test -n "$CC"; then
4525 ac_cv_prog_CC="$CC" # Let the user override the test.
4526else
b7026657
AC
4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4534 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4536 break 2
4537 fi
4538done
81ecdfbb
RW
4539 done
4540IFS=$as_save_IFS
b7026657
AC
4541
4542fi
4543fi
4544CC=$ac_cv_prog_CC
4545if test -n "$CC"; then
81ecdfbb
RW
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4547$as_echo "$CC" >&6; }
b7026657 4548else
81ecdfbb
RW
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550$as_echo "no" >&6; }
b7026657
AC
4551fi
4552
81ecdfbb 4553
b7026657
AC
4554 test -n "$CC" && break
4555 done
4556fi
4557if test -z "$CC"; then
4558 ac_ct_CC=$CC
81ecdfbb 4559 for ac_prog in cl.exe
b7026657
AC
4560do
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564$as_echo_n "checking for $ac_word... " >&6; }
4565if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
b7026657
AC
4567else
4568 if test -n "$ac_ct_CC"; then
4569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4578 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4580 break 2
4581 fi
4582done
81ecdfbb
RW
4583 done
4584IFS=$as_save_IFS
b7026657
AC
4585
4586fi
4587fi
4588ac_ct_CC=$ac_cv_prog_ac_ct_CC
4589if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4591$as_echo "$ac_ct_CC" >&6; }
b7026657 4592else
81ecdfbb
RW
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594$as_echo "no" >&6; }
b7026657
AC
4595fi
4596
81ecdfbb 4597
b7026657
AC
4598 test -n "$ac_ct_CC" && break
4599done
4600
81ecdfbb
RW
4601 if test "x$ac_ct_CC" = x; then
4602 CC=""
4603 else
4604 case $cross_compiling:$ac_tool_warned in
4605yes:)
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4608ac_tool_warned=yes ;;
4609esac
4610 CC=$ac_ct_CC
4611 fi
b7026657
AC
4612fi
4613
4614fi
4615
4616
81ecdfbb
RW
4617test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4619as_fn_error "no acceptable C compiler found in \$PATH
4620See \`config.log' for more details." "$LINENO" 5; }
b7026657
AC
4621
4622# Provide some information about the compiler.
81ecdfbb
RW
4623$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4624set X $ac_compile
4625ac_compiler=$2
4626for ac_option in --version -v -V -qversion; do
4627 { { ac_try="$ac_compiler $ac_option >&5"
4628case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631esac
4632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4633$as_echo "$ac_try_echo"; } >&5
4634 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b7026657 4635 ac_status=$?
81ecdfbb
RW
4636 if test -s conftest.err; then
4637 sed '10a\
4638... rest of stderr output deleted ...
4639 10q' conftest.err >conftest.er1
4640 cat conftest.er1 >&5
4641 rm -f conftest.er1 conftest.err
4642 fi
4643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4644 test $ac_status = 0; }
4645done
b7026657 4646
81ecdfbb 4647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4648/* end confdefs.h. */
4649
4650int
4651main ()
4652{
4653
4654 ;
4655 return 0;
4656}
4657_ACEOF
4658ac_clean_files_save=$ac_clean_files
81ecdfbb 4659ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b7026657
AC
4660# Try to create an executable without -o first, disregard a.out.
4661# It will help us diagnose broken compilers, and finding out an intuition
4662# of exeext.
81ecdfbb
RW
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4664$as_echo_n "checking for C compiler default output file name... " >&6; }
4665ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4666
4667# The possible output files:
4668ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4669
4670ac_rmfiles=
4671for ac_file in $ac_files
4672do
4673 case $ac_file in
4674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4675 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4676 esac
4677done
4678rm -f $ac_rmfiles
4679
4680if { { ac_try="$ac_link_default"
4681case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4684esac
4685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4686$as_echo "$ac_try_echo"; } >&5
4687 (eval "$ac_link_default") 2>&5
4688 ac_status=$?
4689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690 test $ac_status = 0; }; then :
4691 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4692# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4693# in a Makefile. We should not override ac_cv_exeext if it was cached,
4694# so that the user can short-circuit this test for compilers unknown to
4695# Autoconf.
4696for ac_file in $ac_files ''
b7026657
AC
4697do
4698 test -f "$ac_file" || continue
4699 case $ac_file in
81ecdfbb 4700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
4701 ;;
4702 [ab].out )
4703 # We found the default executable, but exeext='' is most
4704 # certainly right.
4705 break;;
4706 *.* )
81ecdfbb
RW
4707 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4708 then :; else
4709 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4710 fi
4711 # We set ac_cv_exeext here because the later test for it is not
4712 # safe: cross compilers may not add the suffix if given an `-o'
4713 # argument, so we may need to know it at that point already.
4714 # Even if this section looks crufty: it has the advantage of
4715 # actually working.
b7026657
AC
4716 break;;
4717 * )
4718 break;;
4719 esac
4720done
81ecdfbb
RW
4721test "$ac_cv_exeext" = no && ac_cv_exeext=
4722
b7026657 4723else
81ecdfbb
RW
4724 ac_file=''
4725fi
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4727$as_echo "$ac_file" >&6; }
4728if test -z "$ac_file"; then :
4729 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
4730sed 's/^/| /' conftest.$ac_ext >&5
4731
81ecdfbb
RW
4732{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4734{ as_fn_set_status 77
4735as_fn_error "C compiler cannot create executables
4736See \`config.log' for more details." "$LINENO" 5; }; }
b7026657 4737fi
b7026657 4738ac_exeext=$ac_cv_exeext
b7026657 4739
81ecdfbb 4740# Check that the compiler produces executables we can run. If not, either
b7026657 4741# the compiler is broken, or we cross compile.
81ecdfbb
RW
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4743$as_echo_n "checking whether the C compiler works... " >&6; }
b7026657
AC
4744# If not cross compiling, check that we can run a simple program.
4745if test "$cross_compiling" != yes; then
4746 if { ac_try='./$ac_file'
81ecdfbb
RW
4747 { { case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750esac
4751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4752$as_echo "$ac_try_echo"; } >&5
4753 (eval "$ac_try") 2>&5
b7026657 4754 ac_status=$?
81ecdfbb
RW
4755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756 test $ac_status = 0; }; }; then
b7026657
AC
4757 cross_compiling=no
4758 else
4759 if test "$cross_compiling" = maybe; then
4760 cross_compiling=yes
4761 else
81ecdfbb
RW
4762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4764as_fn_error "cannot run C compiled programs.
b7026657 4765If you meant to cross compile, use \`--host'.
81ecdfbb 4766See \`config.log' for more details." "$LINENO" 5; }
c906108c 4767 fi
b7026657 4768 fi
c906108c 4769fi
81ecdfbb
RW
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4771$as_echo "yes" >&6; }
b7026657 4772
81ecdfbb 4773rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b7026657 4774ac_clean_files=$ac_clean_files_save
81ecdfbb 4775# Check that the compiler produces executables we can run. If not, either
b7026657 4776# the compiler is broken, or we cross compile.
81ecdfbb
RW
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4778$as_echo_n "checking whether we are cross compiling... " >&6; }
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4780$as_echo "$cross_compiling" >&6; }
4781
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4783$as_echo_n "checking for suffix of executables... " >&6; }
4784if { { ac_try="$ac_link"
4785case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788esac
4789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4790$as_echo "$ac_try_echo"; } >&5
4791 (eval "$ac_link") 2>&5
b7026657 4792 ac_status=$?
81ecdfbb
RW
4793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4794 test $ac_status = 0; }; then :
b7026657
AC
4795 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4796# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4797# work properly (i.e., refer to `conftest.exe'), while it won't with
4798# `rm'.
4799for ac_file in conftest.exe conftest conftest.*; do
4800 test -f "$ac_file" || continue
4801 case $ac_file in
81ecdfbb 4802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 4803 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
4804 break;;
4805 * ) break;;
4806 esac
4807done
c906108c 4808else
81ecdfbb
RW
4809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4811as_fn_error "cannot compute suffix of executables: cannot compile and link
4812See \`config.log' for more details." "$LINENO" 5; }
c906108c 4813fi
b7026657 4814rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4816$as_echo "$ac_cv_exeext" >&6; }
c906108c 4817
b7026657
AC
4818rm -f conftest.$ac_ext
4819EXEEXT=$ac_cv_exeext
4820ac_exeext=$EXEEXT
81ecdfbb
RW
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4822$as_echo_n "checking for suffix of object files... " >&6; }
4823if test "${ac_cv_objext+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
b7026657 4825else
81ecdfbb 4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4827/* end confdefs.h. */
4828
4829int
4830main ()
4831{
4832
4833 ;
4834 return 0;
4835}
4836_ACEOF
4837rm -f conftest.o conftest.obj
81ecdfbb
RW
4838if { { ac_try="$ac_compile"
4839case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842esac
4843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4844$as_echo "$ac_try_echo"; } >&5
4845 (eval "$ac_compile") 2>&5
4846 ac_status=$?
4847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4848 test $ac_status = 0; }; then :
4849 for ac_file in conftest.o conftest.obj conftest.*; do
4850 test -f "$ac_file" || continue;
b7026657 4851 case $ac_file in
81ecdfbb 4852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
4853 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4854 break;;
4855 esac
4856done
c906108c 4857else
81ecdfbb 4858 $as_echo "$as_me: failed program was:" >&5
b7026657 4859sed 's/^/| /' conftest.$ac_ext >&5
c906108c 4860
81ecdfbb
RW
4861{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4863as_fn_error "cannot compute suffix of object files: cannot compile
4864See \`config.log' for more details." "$LINENO" 5; }
c906108c 4865fi
b7026657
AC
4866rm -f conftest.$ac_cv_objext conftest.$ac_ext
4867fi
81ecdfbb
RW
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4869$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
4870OBJEXT=$ac_cv_objext
4871ac_objext=$OBJEXT
81ecdfbb
RW
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4873$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4874if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
c906108c 4876else
81ecdfbb 4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4878/* end confdefs.h. */
4879
4880int
4881main ()
4882{
4883#ifndef __GNUC__
4884 choke me
c906108c 4885#endif
c906108c 4886
b7026657
AC
4887 ;
4888 return 0;
4889}
4890_ACEOF
81ecdfbb 4891if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
4892 ac_compiler_gnu=yes
4893else
81ecdfbb 4894 ac_compiler_gnu=no
b7026657 4895fi
81ecdfbb 4896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
4897ac_cv_c_compiler_gnu=$ac_compiler_gnu
4898
4899fi
81ecdfbb
RW
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4901$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4902if test $ac_compiler_gnu = yes; then
4903 GCC=yes
4904else
4905 GCC=
4906fi
b7026657
AC
4907ac_test_CFLAGS=${CFLAGS+set}
4908ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4910$as_echo_n "checking whether $CC accepts -g... " >&6; }
4911if test "${ac_cv_prog_cc_g+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913else
4914 ac_save_c_werror_flag=$ac_c_werror_flag
4915 ac_c_werror_flag=yes
4916 ac_cv_prog_cc_g=no
4917 CFLAGS="-g"
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4919/* end confdefs.h. */
c906108c 4920
b7026657
AC
4921int
4922main ()
4923{
c906108c 4924
b7026657
AC
4925 ;
4926 return 0;
4927}
4928_ACEOF
81ecdfbb 4929if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4930 ac_cv_prog_cc_g=yes
4931else
81ecdfbb
RW
4932 CFLAGS=""
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934/* end confdefs.h. */
4935
4936int
4937main ()
4938{
4939
4940 ;
4941 return 0;
4942}
4943_ACEOF
4944if ac_fn_c_try_compile "$LINENO"; then :
4945
4946else
4947 ac_c_werror_flag=$ac_save_c_werror_flag
4948 CFLAGS="-g"
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950/* end confdefs.h. */
4951
4952int
4953main ()
4954{
c906108c 4955
81ecdfbb
RW
4956 ;
4957 return 0;
4958}
4959_ACEOF
4960if ac_fn_c_try_compile "$LINENO"; then :
4961 ac_cv_prog_cc_g=yes
4962fi
4963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964fi
4965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4966fi
81ecdfbb
RW
4967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 ac_c_werror_flag=$ac_save_c_werror_flag
b7026657 4969fi
81ecdfbb
RW
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4971$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 4972if test "$ac_test_CFLAGS" = set; then
b7026657 4973 CFLAGS=$ac_save_CFLAGS
c906108c
SS
4974elif test $ac_cv_prog_cc_g = yes; then
4975 if test "$GCC" = yes; then
4976 CFLAGS="-g -O2"
4977 else
4978 CFLAGS="-g"
4979 fi
4980else
4981 if test "$GCC" = yes; then
4982 CFLAGS="-O2"
4983 else
4984 CFLAGS=
4985 fi
4986fi
81ecdfbb
RW
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4988$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4989if test "${ac_cv_prog_cc_c89+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
b7026657 4991else
81ecdfbb 4992 ac_cv_prog_cc_c89=no
b7026657 4993ac_save_CC=$CC
81ecdfbb 4994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4995/* end confdefs.h. */
4996#include <stdarg.h>
4997#include <stdio.h>
4998#include <sys/types.h>
4999#include <sys/stat.h>
5000/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5001struct buf { int x; };
5002FILE * (*rcsopen) (struct buf *, struct stat *, int);
5003static char *e (p, i)
5004 char **p;
5005 int i;
5006{
5007 return p[i];
5008}
5009static char *f (char * (*g) (char **, int), char **p, ...)
5010{
5011 char *s;
5012 va_list v;
5013 va_start (v,p);
5014 s = g (p, va_arg (v,int));
5015 va_end (v);
5016 return s;
5017}
c906108c 5018
b7026657
AC
5019/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5020 function prototypes and stuff, but not '\xHH' hex character constants.
5021 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 5022 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
5023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5024 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 5025 that's true only with -std. */
b7026657
AC
5026int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5027
81ecdfbb
RW
5028/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5029 inside strings and character constants. */
5030#define FOO(x) 'x'
5031int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5032
b7026657
AC
5033int test (int i, double x);
5034struct s1 {int (*f) (int a);};
5035struct s2 {int (*f) (double a);};
5036int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5037int argc;
5038char **argv;
5039int
5040main ()
5041{
5042return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5043 ;
5044 return 0;
5045}
5046_ACEOF
81ecdfbb
RW
5047for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5048 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
5049do
5050 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
5051 if ac_fn_c_try_compile "$LINENO"; then :
5052 ac_cv_prog_cc_c89=$ac_arg
b7026657 5053fi
81ecdfbb
RW
5054rm -f core conftest.err conftest.$ac_objext
5055 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 5056done
81ecdfbb 5057rm -f conftest.$ac_ext
b7026657 5058CC=$ac_save_CC
c906108c 5059
c906108c 5060fi
81ecdfbb
RW
5061# AC_CACHE_VAL
5062case "x$ac_cv_prog_cc_c89" in
5063 x)
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5065$as_echo "none needed" >&6; } ;;
5066 xno)
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5068$as_echo "unsupported" >&6; } ;;
b7026657 5069 *)
81ecdfbb
RW
5070 CC="$CC $ac_cv_prog_cc_c89"
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5072$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 5073esac
81ecdfbb 5074if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 5075
c906108c 5076fi
b7026657 5077
b7026657
AC
5078ac_ext=c
5079ac_cpp='$CPP $CPPFLAGS'
5080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083
5084
5085# Put a plausible default for CC_FOR_BUILD in Makefile.
5086if test "x$cross_compiling" = "xno"; then
5087 CC_FOR_BUILD='$(CC)'
c906108c 5088else
b7026657 5089 CC_FOR_BUILD=gcc
c906108c 5090fi
4b164edf 5091CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
c906108c 5092
b7026657 5093ALL_LINGUAS=
20e95c23
DJ
5094# If we haven't got the data from the intl directory,
5095# assume NLS is disabled.
5096USE_NLS=no
5097LIBINTL=
5098LIBINTL_DEP=
5099INCINTL=
5100XGETTEXT=
5101GMSGFMT=
5102POSUB=
e85e3205 5103
29035cbe
NH
5104if test -f ../../intl/config.intl; then
5105 . ../../intl/config.intl
20e95c23 5106fi
81ecdfbb
RW
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5108$as_echo_n "checking whether NLS is requested... " >&6; }
20e95c23 5109if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
c906108c 5112else
81ecdfbb
RW
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5114$as_echo "yes" >&6; }
c906108c 5115
81ecdfbb 5116$as_echo "#define ENABLE_NLS 1" >>confdefs.h
20e95c23
DJ
5117
5118
81ecdfbb
RW
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5120$as_echo_n "checking for catalogs to be installed... " >&6; }
20e95c23
DJ
5121 # Look for .po and .gmo files in the source directory.
5122 CATALOGS=
5123 XLINGUAS=
5124 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5125 # If there aren't any .gmo files the shell will give us the
5126 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5127 # weeded out.
5128 case "$cat" in *\**)
5129 continue;;
5130 esac
5131 # The quadruple backslash is collapsed to a double backslash
5132 # by the backticks, then collapsed again by the double quotes,
5133 # leaving us with one backslash in the sed expression (right
5134 # before the dot that mustn't act as a wildcard).
5135 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5136 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5137 # The user is allowed to set LINGUAS to a list of languages to
5138 # install catalogs for. If it's empty that means "all of them."
5139 if test "x$LINGUAS" = x; then
5140 CATALOGS="$CATALOGS $cat"
5141 XLINGUAS="$XLINGUAS $lang"
5142 else
5143 case "$LINGUAS" in *$lang*)
5144 CATALOGS="$CATALOGS $cat"
5145 XLINGUAS="$XLINGUAS $lang"
5146 ;;
5147 esac
5148 fi
5149 done
5150 LINGUAS="$XLINGUAS"
81ecdfbb
RW
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5152$as_echo "$LINGUAS" >&6; }
20e95c23
DJ
5153
5154
5155 DATADIRNAME=share
5156
5157 INSTOBJEXT=.mo
5158
5159 GENCAT=gencat
5160
5161 CATOBJEXT=.gmo
b7026657 5162
c906108c 5163fi
20e95c23
DJ
5164
5165
81ecdfbb
RW
5166# Check whether --enable-sim-alignment was given.
5167if test "${enable_sim_alignment+set}" = set; then :
5168 enableval=$enable_sim_alignment; case "${enableval}" in
20e95c23
DJ
5169 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
5170 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
5171 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
81ecdfbb 5172 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
20e95c23
DJ
5173esac
5174if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
5175 echo "Setting alignment flags = $sim_alignment" 6>&1
c906108c 5176fi
c906108c 5177else
20e95c23 5178 sim_alignment=""
81ecdfbb 5179fi
20e95c23 5180
81ecdfbb
RW
5181
5182# Check whether --enable-sim-assert was given.
5183if test "${enable_sim_assert+set}" = set; then :
5184 enableval=$enable_sim_assert; case "${enableval}" in
20e95c23
DJ
5185 yes) sim_assert="-DWITH_ASSERT=1";;
5186 no) sim_assert="-DWITH_ASSERT=0";;
81ecdfbb 5187 *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
20e95c23
DJ
5188esac
5189if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
5190 echo "Setting assert flags = $sim_assert" 6>&1
b7026657 5191fi
20e95c23
DJ
5192else
5193 sim_assert=""
81ecdfbb 5194fi
b7026657 5195
81ecdfbb
RW
5196
5197# Check whether --enable-sim-bitsize was given.
5198if test "${enable_sim_bitsize+set}" = set; then :
5199 enableval=$enable_sim_bitsize; case "${enableval}" in
20e95c23 5200 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
81ecdfbb 5201 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
20e95c23
DJ
5202esac
5203if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5204 echo "Setting bitsize flags = $sim_bitsize" 6>&1
c906108c 5205fi
b7026657 5206else
20e95c23 5207 sim_bitsize=""
81ecdfbb 5208fi
20e95c23 5209
81ecdfbb 5210
81ecdfbb
RW
5211# Check whether --enable-sim-config was given.
5212if test "${enable_sim_config+set}" = set; then :
5213 enableval=$enable_sim_config; case "${enableval}" in
5214 yes|no) as_fn_error "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
20e95c23
DJ
5215 *) if test -f "${srcdir}/${enableval}"; then
5216 sim_config="${enableval}";
5217 elif test -f "${srcdir}/${enableval}-config.h"; then
5218 sim_config="${enableval}-config.h"
5219 else
81ecdfbb 5220 as_fn_error "\"Config file $enableval was not found\"" "$LINENO" 5;
20e95c23
DJ
5221 sim_config=std-config.h
5222 fi;;
5223esac
5224if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
5225 echo "Setting config flags = $sim_config" 6>&1
b7026657 5226fi
b7026657 5227else
20e95c23
DJ
5228 sim_config="std-config.h"
5229if test x"$silent" != x"yes"; then
5230 echo "Setting config flags = $sim_config" 6>&1
b7026657 5231fi
81ecdfbb
RW
5232fi
5233
c906108c 5234
81ecdfbb
RW
5235# Check whether --enable-sim-decode-mechanism was given.
5236if test "${enable_sim_decode_mechanism+set}" = set; then :
5237 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
5238 yes|no) as_fn_error "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
20e95c23 5239 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
81ecdfbb 5240 *) as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
20e95c23
DJ
5241 sim_decode_mechanism="switch";;
5242esac
5243if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
5244 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
5245fi
b7026657 5246else
20e95c23
DJ
5247 sim_decode_mechanism=""
5248if test x"$silent" != x"yes"; then
5249 echo "Setting decode mechanism flags = $sim_decode_mechanism"
b7026657 5250fi
81ecdfbb
RW
5251fi
5252
b7026657 5253
81ecdfbb
RW
5254# Check whether --enable-sim-default-model was given.
5255if test "${enable_sim_default_model+set}" = set; then :
5256 enableval=$enable_sim_default_model; case "${enableval}" in
5257 yes|no) as_fn_error "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
20e95c23
DJ
5258 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
5259esac
5260if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5261 echo "Setting default-model flags = $sim_default_model" 6>&1
5262fi
5263else
5264 sim_default_model=""
81ecdfbb
RW
5265fi
5266
b7026657 5267
81ecdfbb
RW
5268# Check whether --enable-sim-duplicate was given.
5269if test "${enable_sim_duplicate+set}" = set; then :
5270 enableval=$enable_sim_duplicate; case "${enableval}" in
20e95c23
DJ
5271 yes) sim_dup="-E";;
5272 no) sim_dup="";;
81ecdfbb 5273 *) as_fn_error "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
20e95c23
DJ
5274esac
5275if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
5276 echo "Setting duplicate flags = $sim_dup" 6>&1
5277fi
b7026657 5278else
20e95c23
DJ
5279 sim_dup="-E"
5280if test x"$silent" != x"yes"; then
5281 echo "Setting duplicate flags = $sim_dup" 6>&1
5282fi
81ecdfbb
RW
5283fi
5284
20e95c23 5285
81ecdfbb
RW
5286# Check whether --enable-sim-endian was given.
5287if test "${enable_sim_endian+set}" = set; then :
5288 enableval=$enable_sim_endian; case "${enableval}" in
20e95c23
DJ
5289 yes) case "$target" in
5290 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5291 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5292 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5293 esac;;
5294 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5295 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5296 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
81ecdfbb 5297 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
20e95c23
DJ
5298esac
5299if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5300 echo "Setting endian flags = $sim_endian" 6>&1
5301fi
5302else
5303 sim_endian=""
81ecdfbb
RW
5304fi
5305
20e95c23 5306
81ecdfbb
RW
5307# Check whether --enable-sim-env was given.
5308if test "${enable_sim_env+set}" = set; then :
5309 enableval=$enable_sim_env; case "${enableval}" in
20e95c23
DJ
5310 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5311 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5312 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5313 no) sim_env="-DWITH_ENVIRONMENT=0";;
81ecdfbb 5314 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-env\"" "$LINENO" 5; sim_env="";;
20e95c23
DJ
5315esac
5316if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
5317 echo "Setting env flags = $sim_env" 6>&1
5318fi
5319else
5320 sim_env=""
81ecdfbb
RW
5321fi
5322
5323
5324# Check whether --enable-sim-filter was given.
5325if test "${enable_sim_filter+set}" = set; then :
5326 enableval=$enable_sim_filter; case "${enableval}" in
5327 yes) as_fn_error "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
20e95c23
DJ
5328 no) sim_filter="";;
5329 *) sim_filter="-F $enableval";;
5330esac
5331if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
5332 echo "Setting filter flags = $sim_filter" 6>&1
5333fi
5334else
5335 sim_filter="-F 32,f,o"
5336if test x"$silent" != x"yes"; then
5337 echo "Setting filter flags = $sim_filter" 6>&1
5338fi
81ecdfbb 5339fi
20e95c23 5340
81ecdfbb
RW
5341
5342# Check whether --enable-sim-float was given.
5343if test "${enable_sim_float+set}" = set; then :
5344 enableval=$enable_sim_float; case "${enableval}" in
20e95c23
DJ
5345 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5346 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5347 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5348 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
81ecdfbb 5349 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
20e95c23
DJ
5350esac
5351if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5352 echo "Setting float flags = $sim_float" 6>&1
5353fi
5354else
5355
5356case "${target}" in
5357 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5358 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5359 *) sim_float=""
5360esac
5361
81ecdfbb
RW
5362fi
5363
20e95c23 5364
81ecdfbb
RW
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
5366$as_echo_n "checking if union semun defined... " >&6; }
5367if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
00a0b122 5369else
81ecdfbb 5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
5371/* end confdefs.h. */
5372
5373#include <sys/types.h>
5374#include <sys/ipc.h>
5375#include <sys/sem.h>
5376int
5377main ()
5378{
5379union semun arg ;
5380 ;
5381 return 0;
5382}
5383_ACEOF
81ecdfbb 5384if ac_fn_c_try_compile "$LINENO"; then :
00a0b122
JS
5385 ac_cv_has_union_semun="yes"
5386else
81ecdfbb 5387 ac_cv_has_union_semun="no"
00a0b122 5388fi
81ecdfbb
RW
5389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
5391$as_echo "$ac_cv_has_union_semun" >&6; }
00a0b122
JS
5392
5393fi
81ecdfbb
RW
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
5395$as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
00a0b122
JS
5396
5397
5398if test "$ac_cv_has_union_semun" = "yes"; then
81ecdfbb
RW
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5400$as_echo_n "checking whether System V semaphores are supported... " >&6; }
5401if test "${ac_cv_sysv_sem+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
00a0b122
JS
5403else
5404
81ecdfbb 5405 if test "$cross_compiling" = yes; then :
00a0b122
JS
5406 :
5407else
81ecdfbb 5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
5409/* end confdefs.h. */
5410
5411 #include <sys/types.h>
5412 #include <sys/ipc.h>
5413 #include <sys/sem.h>
5414 int main () {
5415 union semun arg ;
5416
5417 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5418 if (id == -1)
5419 exit(1);
5420 arg.val = 0; /* avoid implicit type cast to union */
5421 if (semctl(id, 0, IPC_RMID, arg) == -1)
5422 exit(1);
5423 exit(0);
5424 }
5425
5426_ACEOF
81ecdfbb 5427if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
5428 ac_cv_sysv_sem="yes"
5429else
81ecdfbb 5430 ac_cv_sysv_sem="no"
00a0b122 5431fi
81ecdfbb
RW
5432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5433 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
5434fi
5435
81ecdfbb 5436
00a0b122 5437fi
81ecdfbb
RW
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5439$as_echo "$ac_cv_sysv_sem" >&6; }
00a0b122 5440else # semun is not defined
81ecdfbb
RW
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5442$as_echo_n "checking whether System V semaphores are supported... " >&6; }
5443if test "${ac_cv_sysv_sem+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
00a0b122
JS
5445else
5446
81ecdfbb 5447 if test "$cross_compiling" = yes; then :
00a0b122
JS
5448 :
5449else
81ecdfbb 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
5451/* end confdefs.h. */
5452
5453 #include <sys/types.h>
5454 #include <sys/ipc.h>
5455 #include <sys/sem.h>
5456 union semun {
5457 int val;
5458 struct semid_ds *buf;
5459 ushort *array;
5460 };
5461 int main () {
5462 union semun arg ;
5463
5464 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5465 if (id == -1)
5466 exit(1);
5467 arg.val = 0; /* avoid implicit type cast to union */
5468 if (semctl(id, 0, IPC_RMID, arg) == -1)
5469 exit(1);
5470 exit(0);
5471 }
5472
5473_ACEOF
81ecdfbb 5474if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
5475 ac_cv_sysv_sem="yes"
5476else
81ecdfbb 5477 ac_cv_sysv_sem="no"
00a0b122 5478fi
81ecdfbb
RW
5479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5480 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
5481fi
5482
81ecdfbb 5483
00a0b122 5484fi
81ecdfbb
RW
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5486$as_echo "$ac_cv_sysv_sem" >&6; }
00a0b122
JS
5487fi
5488
81ecdfbb
RW
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
5490$as_echo_n "checking whether System V shared memory is supported... " >&6; }
5491if test "${ac_cv_sysv_shm+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
00a0b122
JS
5493else
5494
81ecdfbb 5495if test "$cross_compiling" = yes; then :
00a0b122
JS
5496 :
5497else
81ecdfbb 5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
5499/* end confdefs.h. */
5500
5501#include <sys/types.h>
5502#include <sys/ipc.h>
5503#include <sys/shm.h>
5504int main () {
5505 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
5506 if (id == -1)
5507 exit(1);
5508 if (shmctl(id, IPC_RMID, 0) == -1)
5509 exit(1);
5510 exit(0);
5511}
5512
5513_ACEOF
81ecdfbb 5514if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
5515 ac_cv_sysv_shm="yes"
5516else
81ecdfbb 5517 ac_cv_sysv_shm="no"
00a0b122 5518fi
81ecdfbb
RW
5519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5520 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
5521fi
5522
81ecdfbb 5523
00a0b122 5524fi
81ecdfbb
RW
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
5526$as_echo "$ac_cv_sysv_shm" >&6; }
00a0b122
JS
5527
5528if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5529 sim_sysv_ipc_hw=",sem,shm";
5530else
5531 sim_sysv_ipc_hw="";
5532fi
5533
5534if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
bf0275b1
DE
5535
5536$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
5537
00a0b122
JS
5538fi
5539
5540
81ecdfbb
RW
5541# Check whether --enable-sim-hardware was given.
5542if test "${enable_sim_hardware+set}" = set; then :
5543 enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
20e95c23
DJ
5544case "${enableval}" in
5545 yes) ;;
81ecdfbb 5546 no) as_fn_error "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
20e95c23
DJ
5547 ,*) hardware="${hardware}${enableval}";;
5548 *,) hardware="${enableval}${hardware}";;
5549 *) hardware="${enableval}"'';;
5550esac
5551sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5552sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5553if test x"$silent" != x"yes" && test x"$hardware" != x""; then
5554 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5555fi
5556else
00a0b122 5557 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
20e95c23
DJ
5558sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5559sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5560if test x"$silent" != x"yes"; then
5561 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5562fi
81ecdfbb
RW
5563fi
5564
5565# Check whether --enable-sim-hostbitsize was given.
5566if test "${enable_sim_hostbitsize+set}" = set; then :
5567 enableval=$enable_sim_hostbitsize; case "${enableval}" in
20e95c23 5568 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
81ecdfbb 5569 *) as_fn_error "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
20e95c23
DJ
5570esac
5571if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
5572 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
5573fi
5574else
5575 sim_hostbitsize=""
20e95c23 5576fi
b7026657 5577
20e95c23 5578
20e95c23
DJ
5579ac_ext=c
5580ac_cpp='$CPP $CPPFLAGS'
5581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5585$as_echo_n "checking how to run the C preprocessor... " >&6; }
20e95c23
DJ
5586# On Suns, sometimes $CPP names a directory.
5587if test -n "$CPP" && test -d "$CPP"; then
5588 CPP=
5589fi
5590if test -z "$CPP"; then
81ecdfbb
RW
5591 if test "${ac_cv_prog_CPP+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
c906108c 5593else
20e95c23
DJ
5594 # Double quotes because CPP needs to be expanded
5595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5596 do
81ecdfbb
RW
5597 ac_preproc_ok=false
5598for ac_c_preproc_warn_flag in '' yes
5599do
5600 # Use a header file that comes with gcc, so configuring glibc
5601 # with a fresh cross-compiler works.
5602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5603 # <limits.h> exists even on freestanding compilers.
5604 # On the NeXT, cc -E runs the code through the compiler's parser,
5605 # not just through cpp. "Syntax error" is here to catch this case.
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20e95c23 5607/* end confdefs.h. */
81ecdfbb
RW
5608#ifdef __STDC__
5609# include <limits.h>
20e95c23 5610#else
81ecdfbb 5611# include <assert.h>
20e95c23 5612#endif
81ecdfbb 5613 Syntax error
20e95c23 5614_ACEOF
81ecdfbb 5615if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 5616
81ecdfbb
RW
5617else
5618 # Broken: fails on valid input.
5619continue
b7026657 5620fi
81ecdfbb 5621rm -f conftest.err conftest.$ac_ext
b7026657 5622
81ecdfbb
RW
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20e95c23 5626/* end confdefs.h. */
81ecdfbb 5627#include <ac_nonexistent.h>
20e95c23 5628_ACEOF
81ecdfbb
RW
5629if ac_fn_c_try_cpp "$LINENO"; then :
5630 # Broken: success on invalid input.
5631continue
20e95c23 5632else
81ecdfbb
RW
5633 # Passes both tests.
5634ac_preproc_ok=:
5635break
20e95c23 5636fi
81ecdfbb 5637rm -f conftest.err conftest.$ac_ext
058ad269 5638
20e95c23 5639done
81ecdfbb
RW
5640# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5641rm -f conftest.err conftest.$ac_ext
5642if $ac_preproc_ok; then :
5643 break
35689115 5644fi
35689115 5645
81ecdfbb
RW
5646 done
5647 ac_cv_prog_CPP=$CPP
35689115
HPN
5648
5649fi
81ecdfbb
RW
5650 CPP=$ac_cv_prog_CPP
5651else
5652 ac_cv_prog_CPP=$CPP
35689115 5653fi
81ecdfbb
RW
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5655$as_echo "$CPP" >&6; }
5656ac_preproc_ok=false
5657for ac_c_preproc_warn_flag in '' yes
35689115 5658do
81ecdfbb
RW
5659 # Use a header file that comes with gcc, so configuring glibc
5660 # with a fresh cross-compiler works.
5661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5662 # <limits.h> exists even on freestanding compilers.
5663 # On the NeXT, cc -E runs the code through the compiler's parser,
5664 # not just through cpp. "Syntax error" is here to catch this case.
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35689115 5666/* end confdefs.h. */
81ecdfbb
RW
5667#ifdef __STDC__
5668# include <limits.h>
5669#else
5670# include <assert.h>
5671#endif
5672 Syntax error
35689115 5673_ACEOF
81ecdfbb 5674if ac_fn_c_try_cpp "$LINENO"; then :
35689115 5675
81ecdfbb
RW
5676else
5677 # Broken: fails on valid input.
5678continue
35689115 5679fi
81ecdfbb 5680rm -f conftest.err conftest.$ac_ext
35689115 5681
81ecdfbb
RW
5682 # OK, works on sane cases. Now check whether nonexistent headers
5683 # can be detected and how.
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35689115 5685/* end confdefs.h. */
81ecdfbb 5686#include <ac_nonexistent.h>
35689115 5687_ACEOF
81ecdfbb
RW
5688if ac_fn_c_try_cpp "$LINENO"; then :
5689 # Broken: success on invalid input.
5690continue
35689115 5691else
81ecdfbb
RW
5692 # Passes both tests.
5693ac_preproc_ok=:
5694break
35689115 5695fi
81ecdfbb 5696rm -f conftest.err conftest.$ac_ext
35689115 5697
81ecdfbb
RW
5698done
5699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35689115 5700rm -f conftest.err conftest.$ac_ext
81ecdfbb 5701if $ac_preproc_ok; then :
35689115 5702
35689115 5703else
81ecdfbb
RW
5704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5706as_fn_error "C preprocessor \"$CPP\" fails sanity check
5707See \`config.log' for more details." "$LINENO" 5; }
35689115 5708fi
35689115 5709
81ecdfbb
RW
5710ac_ext=c
5711ac_cpp='$CPP $CPPFLAGS'
5712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5714ac_compiler_gnu=$ac_cv_c_compiler_gnu
35689115 5715
35689115 5716
81ecdfbb
RW
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5718$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5719if test "${ac_cv_path_GREP+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5721else
5722 if test -z "$GREP"; then
5723 ac_path_GREP_found=false
5724 # Loop through the user's path and test for each of PROGNAME-LIST
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5727do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_prog in grep ggrep; do
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5733 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5734# Check for GNU ac_path_GREP and select it if it is found.
5735 # Check for GNU $ac_path_GREP
5736case `"$ac_path_GREP" --version 2>&1` in
5737*GNU*)
5738 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5739*)
5740 ac_count=0
5741 $as_echo_n 0123456789 >"conftest.in"
5742 while :
5743 do
5744 cat "conftest.in" "conftest.in" >"conftest.tmp"
5745 mv "conftest.tmp" "conftest.in"
5746 cp "conftest.in" "conftest.nl"
5747 $as_echo 'GREP' >> "conftest.nl"
5748 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5750 as_fn_arith $ac_count + 1 && ac_count=$as_val
5751 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5752 # Best one so far, save it but keep looking for a better one
5753 ac_cv_path_GREP="$ac_path_GREP"
5754 ac_path_GREP_max=$ac_count
5755 fi
5756 # 10*(2^10) chars as input seems more than enough
5757 test $ac_count -gt 10 && break
5758 done
5759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5760esac
35689115 5761
81ecdfbb
RW
5762 $ac_path_GREP_found && break 3
5763 done
5764 done
5765 done
5766IFS=$as_save_IFS
5767 if test -z "$ac_cv_path_GREP"; then
5768 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5769 fi
5770else
5771 ac_cv_path_GREP=$GREP
35689115
HPN
5772fi
5773
81ecdfbb
RW
5774fi
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5776$as_echo "$ac_cv_path_GREP" >&6; }
5777 GREP="$ac_cv_path_GREP"
35689115 5778
35689115 5779
81ecdfbb
RW
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5781$as_echo_n "checking for egrep... " >&6; }
5782if test "${ac_cv_path_EGREP+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5784else
5785 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5786 then ac_cv_path_EGREP="$GREP -E"
5787 else
5788 if test -z "$EGREP"; then
5789 ac_path_EGREP_found=false
5790 # Loop through the user's path and test for each of PROGNAME-LIST
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5793do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_prog in egrep; do
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5799 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5800# Check for GNU ac_path_EGREP and select it if it is found.
5801 # Check for GNU $ac_path_EGREP
5802case `"$ac_path_EGREP" --version 2>&1` in
5803*GNU*)
5804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5805*)
5806 ac_count=0
5807 $as_echo_n 0123456789 >"conftest.in"
5808 while :
5809 do
5810 cat "conftest.in" "conftest.in" >"conftest.tmp"
5811 mv "conftest.tmp" "conftest.in"
5812 cp "conftest.in" "conftest.nl"
5813 $as_echo 'EGREP' >> "conftest.nl"
5814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5816 as_fn_arith $ac_count + 1 && ac_count=$as_val
5817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5818 # Best one so far, save it but keep looking for a better one
5819 ac_cv_path_EGREP="$ac_path_EGREP"
5820 ac_path_EGREP_max=$ac_count
5821 fi
5822 # 10*(2^10) chars as input seems more than enough
5823 test $ac_count -gt 10 && break
5824 done
5825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
35689115
HPN
5826esac
5827
81ecdfbb
RW
5828 $ac_path_EGREP_found && break 3
5829 done
5830 done
5831 done
5832IFS=$as_save_IFS
5833 if test -z "$ac_cv_path_EGREP"; then
5834 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5835 fi
5836else
5837 ac_cv_path_EGREP=$EGREP
5838fi
5839
5840 fi
5841fi
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5843$as_echo "$ac_cv_path_EGREP" >&6; }
5844 EGREP="$ac_cv_path_EGREP"
35689115
HPN
5845
5846
81ecdfbb
RW
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5848$as_echo_n "checking for ANSI C header files... " >&6; }
5849if test "${ac_cv_header_stdc+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5851else
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h. */
5854#include <stdlib.h>
5855#include <stdarg.h>
5856#include <string.h>
5857#include <float.h>
c906108c 5858
b7026657
AC
5859int
5860main ()
5861{
81ecdfbb 5862
b7026657
AC
5863 ;
5864 return 0;
5865}
5866_ACEOF
81ecdfbb
RW
5867if ac_fn_c_try_compile "$LINENO"; then :
5868 ac_cv_header_stdc=yes
b7026657 5869else
81ecdfbb
RW
5870 ac_cv_header_stdc=no
5871fi
5872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 5873
81ecdfbb
RW
5874if test $ac_cv_header_stdc = yes; then
5875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5877/* end confdefs.h. */
81ecdfbb
RW
5878#include <string.h>
5879
b7026657 5880_ACEOF
81ecdfbb
RW
5881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5882 $EGREP "memchr" >/dev/null 2>&1; then :
b7026657 5883
81ecdfbb
RW
5884else
5885 ac_cv_header_stdc=no
b7026657 5886fi
81ecdfbb 5887rm -f conftest*
b7026657 5888
81ecdfbb 5889fi
b7026657 5890
81ecdfbb
RW
5891if test $ac_cv_header_stdc = yes; then
5892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894/* end confdefs.h. */
5895#include <stdlib.h>
b7026657 5896
b7026657 5897_ACEOF
81ecdfbb
RW
5898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899 $EGREP "free" >/dev/null 2>&1; then :
c906108c 5900
81ecdfbb
RW
5901else
5902 ac_cv_header_stdc=no
c906108c 5903fi
81ecdfbb 5904rm -f conftest*
c906108c 5905
81ecdfbb 5906fi
c906108c 5907
81ecdfbb
RW
5908if test $ac_cv_header_stdc = yes; then
5909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5910 if test "$cross_compiling" = yes; then :
5911 :
b7026657 5912else
81ecdfbb 5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5914/* end confdefs.h. */
81ecdfbb
RW
5915#include <ctype.h>
5916#include <stdlib.h>
5917#if ((' ' & 0x0FF) == 0x020)
5918# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5919# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5920#else
5921# define ISLOWER(c) \
5922 (('a' <= (c) && (c) <= 'i') \
5923 || ('j' <= (c) && (c) <= 'r') \
5924 || ('s' <= (c) && (c) <= 'z'))
5925# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5926#endif
b7026657 5927
81ecdfbb 5928#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
5929int
5930main ()
5931{
81ecdfbb
RW
5932 int i;
5933 for (i = 0; i < 256; i++)
5934 if (XOR (islower (i), ISLOWER (i))
5935 || toupper (i) != TOUPPER (i))
5936 return 2;
b7026657
AC
5937 return 0;
5938}
5939_ACEOF
81ecdfbb 5940if ac_fn_c_try_run "$LINENO"; then :
b7026657 5941
81ecdfbb
RW
5942else
5943 ac_cv_header_stdc=no
5944fi
5945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5946 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 5947fi
81ecdfbb 5948
b7026657 5949fi
b7026657 5950fi
81ecdfbb
RW
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5952$as_echo "$ac_cv_header_stdc" >&6; }
5953if test $ac_cv_header_stdc = yes; then
b7026657 5954
81ecdfbb 5955$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b7026657 5956
81ecdfbb 5957fi
b7026657 5958
81ecdfbb
RW
5959# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5960for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5961 inttypes.h stdint.h unistd.h
5962do :
5963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5964ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5965"
5966eval as_val=\$$as_ac_Header
5967 if test "x$as_val" = x""yes; then :
5968 cat >>confdefs.h <<_ACEOF
5969#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b7026657 5970_ACEOF
c906108c 5971
c906108c
SS
5972fi
5973
81ecdfbb
RW
5974done
5975
b7026657 5976
81ecdfbb
RW
5977# Check whether --enable-sim-hostendian was given.
5978if test "${enable_sim_hostendian+set}" = set; then :
5979 enableval=$enable_sim_hostendian; case "${enableval}" in
5980 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
5981 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
5982 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
5983 *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
5984esac
5985if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
5986 echo "Setting hostendian flags = $sim_hostendian" 6>&1
5987fi
5988else
b7026657 5989
81ecdfbb
RW
5990if test "x$cross_compiling" = "xno"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5992$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5993if test "${ac_cv_c_bigendian+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
b7026657 5995else
81ecdfbb
RW
5996 ac_cv_c_bigendian=unknown
5997 # See if we're dealing with a universal compiler.
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5999/* end confdefs.h. */
81ecdfbb
RW
6000#ifndef __APPLE_CC__
6001 not a universal capable compiler
6002 #endif
6003 typedef int dummy;
6004
6005_ACEOF
6006if ac_fn_c_try_compile "$LINENO"; then :
6007
6008 # Check for potential -arch flags. It is not universal unless
6009 # there are at least two -arch flags with different values.
6010 ac_arch=
6011 ac_prev=
6012 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6013 if test -n "$ac_prev"; then
6014 case $ac_word in
6015 i?86 | x86_64 | ppc | ppc64)
6016 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6017 ac_arch=$ac_word
6018 else
6019 ac_cv_c_bigendian=universal
6020 break
6021 fi
6022 ;;
6023 esac
6024 ac_prev=
6025 elif test "x$ac_word" = "x-arch"; then
6026 ac_prev=arch
6027 fi
6028 done
6029fi
6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 if test $ac_cv_c_bigendian = unknown; then
6032 # See if sys/param.h defines the BYTE_ORDER macro.
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034/* end confdefs.h. */
6035#include <sys/types.h>
6036 #include <sys/param.h>
6037
b7026657
AC
6038int
6039main ()
6040{
81ecdfbb
RW
6041#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6042 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6043 && LITTLE_ENDIAN)
6044 bogus endian macros
6045 #endif
6046
b7026657
AC
6047 ;
6048 return 0;
6049}
6050_ACEOF
81ecdfbb
RW
6051if ac_fn_c_try_compile "$LINENO"; then :
6052 # It does; now see whether it defined to BIG_ENDIAN or not.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6054/* end confdefs.h. */
81ecdfbb
RW
6055#include <sys/types.h>
6056 #include <sys/param.h>
6057
b7026657
AC
6058int
6059main ()
6060{
81ecdfbb
RW
6061#if BYTE_ORDER != BIG_ENDIAN
6062 not big endian
6063 #endif
6064
b7026657
AC
6065 ;
6066 return 0;
6067}
6068_ACEOF
81ecdfbb
RW
6069if ac_fn_c_try_compile "$LINENO"; then :
6070 ac_cv_c_bigendian=yes
b7026657 6071else
81ecdfbb 6072 ac_cv_c_bigendian=no
b7026657 6073fi
81ecdfbb 6074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6075fi
81ecdfbb
RW
6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 fi
6078 if test $ac_cv_c_bigendian = unknown; then
6079 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081/* end confdefs.h. */
6082#include <limits.h>
c906108c 6083
81ecdfbb
RW
6084int
6085main ()
6086{
6087#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6088 bogus endian macros
6089 #endif
b7026657 6090
81ecdfbb
RW
6091 ;
6092 return 0;
6093}
b7026657 6094_ACEOF
81ecdfbb
RW
6095if ac_fn_c_try_compile "$LINENO"; then :
6096 # It does; now see whether it defined to _BIG_ENDIAN or not.
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6098/* end confdefs.h. */
81ecdfbb 6099#include <limits.h>
b7026657
AC
6100
6101int
6102main ()
6103{
81ecdfbb
RW
6104#ifndef _BIG_ENDIAN
6105 not big endian
6106 #endif
6107
b7026657
AC
6108 ;
6109 return 0;
6110}
6111_ACEOF
81ecdfbb
RW
6112if ac_fn_c_try_compile "$LINENO"; then :
6113 ac_cv_c_bigendian=yes
c906108c 6114else
81ecdfbb 6115 ac_cv_c_bigendian=no
c906108c 6116fi
81ecdfbb 6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6118fi
81ecdfbb
RW
6119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 fi
6121 if test $ac_cv_c_bigendian = unknown; then
6122 # Compile a test program.
6123 if test "$cross_compiling" = yes; then :
6124 # Try to guess by grepping values from an object file.
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6126/* end confdefs.h. */
81ecdfbb
RW
6127short int ascii_mm[] =
6128 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6129 short int ascii_ii[] =
6130 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6131 int use_ascii (int i) {
6132 return ascii_mm[i] + ascii_ii[i];
6133 }
6134 short int ebcdic_ii[] =
6135 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6136 short int ebcdic_mm[] =
6137 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6138 int use_ebcdic (int i) {
6139 return ebcdic_mm[i] + ebcdic_ii[i];
6140 }
6141 extern int foo;
b7026657
AC
6142
6143int
6144main ()
6145{
81ecdfbb 6146return use_ascii (foo) == use_ebcdic (foo);
b7026657
AC
6147 ;
6148 return 0;
6149}
6150_ACEOF
81ecdfbb
RW
6151if ac_fn_c_try_compile "$LINENO"; then :
6152 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6153 ac_cv_c_bigendian=yes
6154 fi
6155 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6156 if test "$ac_cv_c_bigendian" = unknown; then
6157 ac_cv_c_bigendian=no
6158 else
6159 # finding both strings is unlikely to happen, but who knows?
6160 ac_cv_c_bigendian=unknown
6161 fi
6162 fi
6163fi
6164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165else
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6167/* end confdefs.h. */
81ecdfbb 6168$ac_includes_default
b7026657
AC
6169int
6170main ()
6171{
81ecdfbb
RW
6172
6173 /* Are we little or big endian? From Harbison&Steele. */
6174 union
6175 {
6176 long int l;
6177 char c[sizeof (long int)];
6178 } u;
6179 u.l = 1;
6180 return u.c[sizeof (long int) - 1] == 1;
6181
b7026657
AC
6182 ;
6183 return 0;
6184}
6185_ACEOF
81ecdfbb
RW
6186if ac_fn_c_try_run "$LINENO"; then :
6187 ac_cv_c_bigendian=no
b7026657 6188else
81ecdfbb
RW
6189 ac_cv_c_bigendian=yes
6190fi
6191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6192 conftest.$ac_objext conftest.beam conftest.$ac_ext
6193fi
6194
6195 fi
6196fi
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6198$as_echo "$ac_cv_c_bigendian" >&6; }
6199 case $ac_cv_c_bigendian in #(
6200 yes)
6201 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6202;; #(
6203 no)
6204 ;; #(
6205 universal)
6206
6207$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
b7026657 6208
81ecdfbb
RW
6209 ;; #(
6210 *)
6211 as_fn_error "unknown endianness
6212 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6213 esac
6214
6215 if test $ac_cv_c_bigendian = yes; then
6216 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
6217 else
6218 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
6219 fi
6220else
6221 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
6222fi
6223fi
6224
6225
6226# Check whether --enable-sim-icache was given.
6227if test "${enable_sim_icache+set}" = set; then :
6228 enableval=$enable_sim_icache; icache="-R"
6229 case "${enableval}" in
6230 yes) icache="1024"; sim_icache="-I $icache";;
6231 no) sim_icache="-R";;
6232 *) icache=1024
6233 sim_icache="-"
6234 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
6235 case "$x" in
6236 define) sim_icache="${sim_icache}R";;
6237 semantic) sim_icache="${sim_icache}C";;
6238 insn) sim_icache="${sim_icache}S";;
6239 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
6240 *) as_fn_error "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
6241 esac
6242 done
6243 sim_icache="${sim_icache}I $icache";;
6244esac
6245if test x"$silent" != x"yes" && test x"$icache" != x""; then
6246 echo "Setting instruction cache size to $icache ($sim_icache)"
b7026657 6247fi
81ecdfbb
RW
6248else
6249 sim_icache="-CSRI 1024"
6250if test x"$silent" != x"yes"; then
6251 echo "Setting instruction cache size to 1024 ($sim_icache)"
b7026657 6252fi
b7026657 6253fi
b7026657
AC
6254
6255
81ecdfbb
RW
6256# Check whether --enable-sim-inline was given.
6257if test "${enable_sim_inline+set}" = set; then :
6258 enableval=$enable_sim_inline; sim_inline=""
6259case "$enableval" in
6260 no) sim_inline="-DDEFAULT_INLINE=0";;
6261 0) sim_inline="-DDEFAULT_INLINE=0";;
6262 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
6263 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
6264 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6265 new_flag=""
6266 case "$x" in
6267 *_INLINE=*) new_flag="-D$x";;
6268 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6269 *_INLINE) new_flag="-D$x=ALL_INLINE";;
6270 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
6271 esac
6272 if test x"$sim_inline" = x""; then
6273 sim_inline="$new_flag"
6274 else
6275 sim_inline="$sim_inline $new_flag"
6276 fi
6277 done;;
6278esac
6279if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6280 echo "Setting inline flags = $sim_inline" 6>&1
b7026657 6281fi
c906108c 6282else
81ecdfbb
RW
6283 if test x"$GCC" != ""; then
6284 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
6285 if test x"$silent" != x"yes"; then
6286 echo "Setting inline flags = $sim_inline" 6>&1
6287 fi
c906108c 6288else
81ecdfbb 6289 sim_inline=""
c906108c 6290fi
c906108c 6291fi
b7026657 6292
c906108c 6293
81ecdfbb
RW
6294# Check whether --enable-sim-jump was given.
6295if test "${enable_sim_jump+set}" = set; then :
6296 enableval=$enable_sim_jump; case "${enableval}" in
6297 yes) sim_jump="-J";;
6298 no) sim_jump="";;
6299 *) as_fn_error "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
6300esac
6301if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
6302 echo "Setting jump flag = $sim_jump" 6>&1
c906108c 6303fi
c906108c 6304else
81ecdfbb
RW
6305 sim_jump=""
6306if test x"$silent" != x"yes"; then
6307 echo "Setting jump flag = $sim_jump" 6>&1
c906108c 6308fi
c906108c 6309fi
c906108c 6310
b7026657 6311
81ecdfbb
RW
6312# Check whether --enable-sim-line-nr was given.
6313if test "${enable_sim_line_nr+set}" = set; then :
6314 enableval=$enable_sim_line_nr; case "${enableval}" in
6315 yes) sim_line_nr="";;
6316 no) sim_line_nr="-L";;
6317 *) as_fn_error "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
6318esac
6319if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
6320 echo "Setting warning flags = $sim_line_nr" 6>&1
c906108c 6321fi
c906108c 6322else
81ecdfbb
RW
6323 sim_line_nr=""
6324fi
b7026657 6325
c906108c 6326
81ecdfbb
RW
6327# Check whether --enable-sim-model was given.
6328if test "${enable_sim_model+set}" = set; then :
6329 enableval=$enable_sim_model; case "${enableval}" in
6330 yes|no) as_fn_error "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
6331 *) sim_model="-DWITH_MODEL=${enableval}";;
6332esac
6333if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
6334 echo "Setting model flags = $sim_model" 6>&1
6335fi
c906108c 6336else
81ecdfbb
RW
6337 sim_model=""
6338fi
6339
b7026657 6340
81ecdfbb
RW
6341# Check whether --enable-sim-model-issue was given.
6342if test "${enable_sim_model_issue+set}" = set; then :
6343 enableval=$enable_sim_model_issue; case "${enableval}" in
6344 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
6345 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
6346 *) as_fn_error "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
6347esac
6348if test x"$silent" != x"yes"; then
6349 echo "Setting model-issue flags = $sim_model_issue" 6>&1
c906108c 6350fi
81ecdfbb
RW
6351else
6352 sim_model_issue=""
c906108c 6353fi
b7026657 6354
81ecdfbb
RW
6355
6356# Check whether --enable-sim-monitor was given.
6357if test "${enable_sim_monitor+set}" = set; then :
6358 enableval=$enable_sim_monitor; case "${enableval}" in
6359 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
6360 no) sim_monitor="-DWITH_MON=0";;
6361 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
6362 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
6363 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env="";;
6364esac
6365if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
6366 echo "Setting monitor flags = $sim_monitor" 6>&1
6367fi
c906108c 6368else
81ecdfbb 6369 sim_monitor=""
c906108c 6370fi
c906108c 6371
81ecdfbb
RW
6372
6373# Check whether --enable-sim-opcode was given.
6374if test "${enable_sim_opcode+set}" = set; then :
6375 enableval=$enable_sim_opcode; case "${enableval}" in
6376 yes|no) as_fn_error "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
6377 *) if test -f "${srcdir}/${enableval}"; then
6378 sim_opcode="${enableval}"
6379 elif test -f "${srcdir}/dc-${enableval}"; then
6380 sim_opcode="dc-${enableval}"
6381 else
6382 as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
6383 sim_opcode="dc-complex"
6384 fi;;
6385esac
6386if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
6387 echo "Setting opcode flags = $sim_opcode" 6>&1
6388fi
6389else
6390 sim_opcode="dc-complex"
6391if test x"$silent" != x"yes"; then
6392 echo "Setting opcode flags = $sim_opcode"
c906108c
SS
6393fi
6394fi
c906108c
SS
6395
6396
81ecdfbb
RW
6397# Check whether --enable-sim-packages was given.
6398if test "${enable_sim_packages+set}" = set; then :
6399 enableval=$enable_sim_packages; packages=disklabel
6400case "${enableval}" in
6401 yes) ;;
6402 no) as_fn_error "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";;
6403 ,*) packages="${packages}${enableval}";;
6404 *,) packages="${enableval}${packages}";;
6405 *) packages="${enableval}"'';;
6406esac
6407sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6408sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6409if test x"$silent" != x"yes" && test x"$packages" != x""; then
6410 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6411fi
c906108c 6412else
81ecdfbb
RW
6413 packages=disklabel
6414sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6415sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6416if test x"$silent" != x"yes"; then
6417 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
b7026657 6418fi
c906108c 6419fi
b7026657 6420
c906108c 6421
81ecdfbb
RW
6422# Check whether --enable-sim-reserved-bits was given.
6423if test "${enable_sim_reserved_bits+set}" = set; then :
6424 enableval=$enable_sim_reserved_bits; case "${enableval}" in
6425 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
6426 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
6427 *) as_fn_error "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";;
6428esac
6429if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
6430 echo "Setting reserved flags = $sim_reserved" 6>&1
6431fi
6432else
6433 sim_reserved=""
b7026657 6434fi
81ecdfbb
RW
6435
6436
6437# Check whether --enable-sim-smp was given.
6438if test "${enable_sim_smp+set}" = set; then :
6439 enableval=$enable_sim_smp; case "${enableval}" in
6440 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
6441 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
6442 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
6443esac
6444if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
6445 echo "Setting smp flags = $sim_smp" 6>&1
c906108c 6446fi
b7026657 6447else
81ecdfbb
RW
6448 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
6449if test x"$silent" != x"yes"; then
6450 echo "Setting smp flags = $sim_smp" 6>&1
6451fi
c906108c
SS
6452fi
6453
c906108c 6454
81ecdfbb
RW
6455# Check whether --enable-sim-stdio was given.
6456if test "${enable_sim_stdio+set}" = set; then :
6457 enableval=$enable_sim_stdio; case "${enableval}" in
6458 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6459 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6460 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
6461esac
6462if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6463 echo "Setting stdio flags = $sim_stdio" 6>&1
c906108c 6464fi
c906108c 6465else
81ecdfbb
RW
6466 sim_stdio=""
6467fi
c906108c 6468
b7026657 6469
81ecdfbb
RW
6470# Check whether --enable-sim-switch was given.
6471if test "${enable_sim_switch+set}" = set; then :
6472 enableval=$enable_sim_switch; case "${enableval}" in
6473 yes) sim_switch="-s";;
6474 no) sim_switch="";;
6475 *) as_fn_error "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
6476esac
6477if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
6478 echo "Setting switch flags = $sim_switch" 6>&1
6479fi
6480else
6481 sim_switch="";
6482if test x"$silent" != x"yes"; then
6483 echo "Setting switch flags = $sim_switch" 6>&1
c906108c 6484fi
c906108c 6485fi
c906108c
SS
6486
6487
81ecdfbb
RW
6488# Check whether --enable-sim-timebase was given.
6489if test "${enable_sim_timebase+set}" = set; then :
6490 enableval=$enable_sim_timebase; case "${enableval}" in
6491 yes) sim_timebase="-DWITH_TIME_BASE=1";;
6492 no) sim_timebase="-DWITH_TIME_BASE=0";;
6493 *) as_fn_error "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
6494esac
6495if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
6496 echo "Setting timebase flags = $sim_timebase" 6>&1
6497fi
c906108c 6498else
81ecdfbb 6499 sim_timebase=""
c906108c 6500fi
81ecdfbb
RW
6501
6502
6503# Check whether --enable-sim-trace was given.
6504if test "${enable_sim_trace+set}" = set; then :
6505 enableval=$enable_sim_trace; case "${enableval}" in
6506 yes) sim_trace="-DWITH_TRACE=1";;
6507 no) sim_trace="-DWITH_TRACE=0";;
6508 *) as_fn_error "\"--enable-sim-trace does not take a value\"" "$LINENO" 5; sim_trace="";;
6509esac
6510if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6511 echo "Setting trace flags = $sim_trace" 6>&1
b7026657 6512fi
b7026657 6513else
81ecdfbb
RW
6514 sim_trace=""
6515fi
b7026657 6516
c906108c 6517
81ecdfbb
RW
6518# Check whether --enable-sim-warnings was given.
6519if test "${enable_sim_warnings+set}" = set; then :
6520 enableval=$enable_sim_warnings; case "${enableval}" in
6521 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
6522 no) sim_warnings="-w";;
6523 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6524esac
6525if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
6526 echo "Setting warning flags = $sim_warnings" 6>&1
c906108c 6527fi
c906108c 6528else
81ecdfbb
RW
6529 sim_warnings=""
6530fi
b7026657 6531
81ecdfbb
RW
6532
6533# Check whether --enable-sim-xor-endian was given.
6534if test "${enable_sim_xor_endian+set}" = set; then :
6535 enableval=$enable_sim_xor_endian; case "${enableval}" in
6536 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
6537 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
6538 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
6539esac
6540if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
6541 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
6542fi
c906108c 6543else
81ecdfbb 6544 sim_xor_endian=""
c906108c 6545fi
c906108c 6546
b7026657 6547
b7026657 6548
c906108c 6549
81ecdfbb
RW
6550# Check whether --with-pkgversion was given.
6551if test "${with_pkgversion+set}" = set; then :
6552 withval=$with_pkgversion; case "$withval" in
6553 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6554 no) PKGVERSION= ;;
6555 *) PKGVERSION="($withval) " ;;
6556 esac
6557else
6558 PKGVERSION="(GDB) "
c906108c
SS
6559
6560fi
6561
6562
b7026657
AC
6563
6564
6565
81ecdfbb
RW
6566# Check whether --with-bugurl was given.
6567if test "${with_bugurl+set}" = set; then :
6568 withval=$with_bugurl; case "$withval" in
6569 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6570 no) BUGURL=
6571 ;;
6572 *) BUGURL="$withval"
6573 ;;
6574 esac
6575else
6576 BUGURL="http://www.gnu.org/software/gdb/bugs/"
b7026657 6577
81ecdfbb 6578fi
b7026657 6579
81ecdfbb
RW
6580 case ${BUGURL} in
6581 "")
6582 REPORT_BUGS_TO=
6583 REPORT_BUGS_TEXI=
6584 ;;
6585 *)
6586 REPORT_BUGS_TO="<$BUGURL>"
6587 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6588 ;;
6589 esac;
b7026657
AC
6590
6591
6592
6593
81ecdfbb
RW
6594cat >>confdefs.h <<_ACEOF
6595#define PKGVERSION "$PKGVERSION"
6596_ACEOF
b7026657
AC
6597
6598
81ecdfbb
RW
6599cat >>confdefs.h <<_ACEOF
6600#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6601_ACEOF
b7026657
AC
6602
6603
81ecdfbb
RW
6604# Make sure we can run config.sub.
6605$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6606 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6607
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6609$as_echo_n "checking build system type... " >&6; }
6610if test "${ac_cv_build+set}" = set; then :
6611 $as_echo_n "(cached) " >&6
6612else
6613 ac_build_alias=$build_alias
6614test "x$ac_build_alias" = x &&
6615 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6616test "x$ac_build_alias" = x &&
6617 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6618ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6619 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6620
6621fi
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6623$as_echo "$ac_cv_build" >&6; }
6624case $ac_cv_build in
6625*-*-*) ;;
6626*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6627esac
6628build=$ac_cv_build
6629ac_save_IFS=$IFS; IFS='-'
6630set x $ac_cv_build
6631shift
6632build_cpu=$1
6633build_vendor=$2
6634shift; shift
6635# Remember, the first character of IFS is used to create $*,
6636# except with old shells:
6637build_os=$*
6638IFS=$ac_save_IFS
6639case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657
AC
6640
6641
81ecdfbb
RW
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6643$as_echo_n "checking host system type... " >&6; }
6644if test "${ac_cv_host+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
6646else
6647 if test "x$host_alias" = x; then
6648 ac_cv_host=$ac_cv_build
6649else
6650 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6651 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6652fi
b7026657 6653
81ecdfbb
RW
6654fi
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6656$as_echo "$ac_cv_host" >&6; }
6657case $ac_cv_host in
6658*-*-*) ;;
6659*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6660esac
6661host=$ac_cv_host
6662ac_save_IFS=$IFS; IFS='-'
6663set x $ac_cv_host
6664shift
6665host_cpu=$1
6666host_vendor=$2
6667shift; shift
6668# Remember, the first character of IFS is used to create $*,
6669# except with old shells:
6670host_os=$*
6671IFS=$ac_save_IFS
6672case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
b7026657
AC
6673
6674
81ecdfbb
RW
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6676$as_echo_n "checking target system type... " >&6; }
6677if test "${ac_cv_target+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6679else
6680 if test "x$target_alias" = x; then
6681 ac_cv_target=$ac_cv_host
6682else
6683 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6684 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6685fi
b7026657 6686
81ecdfbb
RW
6687fi
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6689$as_echo "$ac_cv_target" >&6; }
6690case $ac_cv_target in
6691*-*-*) ;;
6692*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
6693esac
6694target=$ac_cv_target
6695ac_save_IFS=$IFS; IFS='-'
6696set x $ac_cv_target
6697shift
6698target_cpu=$1
6699target_vendor=$2
6700shift; shift
6701# Remember, the first character of IFS is used to create $*,
6702# except with old shells:
6703target_os=$*
6704IFS=$ac_save_IFS
6705case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b7026657
AC
6706
6707
81ecdfbb
RW
6708# The aliases save the names the user supplied, while $host etc.
6709# will get canonicalized.
6710test -n "$target_alias" &&
6711 test "$program_prefix$program_suffix$program_transform_name" = \
6712 NONENONEs,x,x, &&
6713 program_prefix=${target_alias}-
b7026657 6714
81ecdfbb
RW
6715test "$program_prefix" != NONE &&
6716 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6717# Use a double $ so make ignores it.
6718test "$program_suffix" != NONE &&
6719 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6720# Double any \ or $.
6721# By default was `s,x,x', remove it if useless.
6722ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6723program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b7026657
AC
6724
6725
81ecdfbb
RW
6726# BFD conditionally uses zlib, so we must link it in if libbfd does, by
6727# using the same condition.
5912fadd 6728
aadc9410 6729 # Use the system's zlib library.
7fed4b0b
L
6730 zlibdir="-L\$(top_builddir)/../zlib"
6731 zlibinc="-I\$(top_srcdir)/../zlib"
5912fadd 6732
aadc9410
MF
6733# Check whether --with-system-zlib was given.
6734if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
6735 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
6736 zlibdir=
6737 zlibinc=
6738 fi
b7026657 6739
81ecdfbb 6740fi
b7026657 6741
b7026657
AC
6742
6743
5912fadd 6744
b7026657 6745
2974be62
AM
6746# BFD uses libdl when when plugins enabled.
6747
6748 maybe_plugins=no
6749 for ac_header in dlfcn.h
6750do :
6751 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6752"
6753if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6754 cat >>confdefs.h <<_ACEOF
6755#define HAVE_DLFCN_H 1
6756_ACEOF
6757 maybe_plugins=yes
6758fi
6759
6760done
6761
6762 for ac_header in windows.h
6763do :
6764 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6765"
6766if test "x$ac_cv_header_windows_h" = x""yes; then :
6767 cat >>confdefs.h <<_ACEOF
6768#define HAVE_WINDOWS_H 1
6769_ACEOF
6770 maybe_plugins=yes
6771fi
6772
6773done
6774
6775
6776 # Check whether --enable-plugins was given.
6777if test "${enable_plugins+set}" = set; then :
6778 enableval=$enable_plugins; case "${enableval}" in
6779 no) plugins=no ;;
6780 *) plugins=yes
6781 if test "$maybe_plugins" != "yes" ; then
6782 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6783 fi ;;
6784 esac
6785else
6786 plugins=$maybe_plugins
6787
6788fi
6789
6790 if test "$plugins" = "yes"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
6792$as_echo_n "checking for library containing dlopen... " >&6; }
6793if test "${ac_cv_search_dlopen+set}" = set; then :
6794 $as_echo_n "(cached) " >&6
6795else
6796 ac_func_search_save_LIBS=$LIBS
6797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798/* end confdefs.h. */
6799
6800/* Override any GCC internal prototype to avoid an error.
6801 Use char because int might match the return type of a GCC
6802 builtin and then its argument prototype would still apply. */
6803#ifdef __cplusplus
6804extern "C"
6805#endif
6806char dlopen ();
6807int
6808main ()
6809{
6810return dlopen ();
6811 ;
6812 return 0;
6813}
6814_ACEOF
6815for ac_lib in '' dl; do
6816 if test -z "$ac_lib"; then
6817 ac_res="none required"
6818 else
6819 ac_res=-l$ac_lib
6820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6821 fi
6822 if ac_fn_c_try_link "$LINENO"; then :
6823 ac_cv_search_dlopen=$ac_res
6824fi
6825rm -f core conftest.err conftest.$ac_objext \
6826 conftest$ac_exeext
6827 if test "${ac_cv_search_dlopen+set}" = set; then :
6828 break
6829fi
6830done
6831if test "${ac_cv_search_dlopen+set}" = set; then :
6832
6833else
6834 ac_cv_search_dlopen=no
6835fi
6836rm conftest.$ac_ext
6837LIBS=$ac_func_search_save_LIBS
6838fi
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
6840$as_echo "$ac_cv_search_dlopen" >&6; }
6841ac_res=$ac_cv_search_dlopen
6842if test "$ac_res" != no; then :
6843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6844
6845fi
6846
6847 fi
6848
6849
81ecdfbb 6850. ${srcdir}/../../bfd/configure.host
b7026657 6851
81ecdfbb
RW
6852case ${host} in
6853 *mingw32*)
b7026657 6854
81ecdfbb 6855$as_echo "#define USE_WIN32API 1" >>confdefs.h
b7026657 6856
81ecdfbb
RW
6857 ;;
6858esac
b7026657 6859
81ecdfbb 6860ac_config_headers="$ac_config_headers config.h:config.in"
b7026657
AC
6861
6862
81ecdfbb
RW
6863ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6864if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
b7026657 6865
81ecdfbb
RW
6866cat >>confdefs.h <<_ACEOF
6867#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6868_ACEOF
b7026657
AC
6869
6870
81ecdfbb 6871$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
b7026657 6872
81ecdfbb 6873fi
b7026657
AC
6874
6875
81ecdfbb
RW
6876ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6877if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
b7026657 6878
81ecdfbb
RW
6879cat >>confdefs.h <<_ACEOF
6880#define HAVE_STRUCT_STAT_ST_BLOCKS 1
6881_ACEOF
b7026657
AC
6882
6883
81ecdfbb 6884$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
b7026657 6885
81ecdfbb
RW
6886else
6887 case " $LIBOBJS " in
6888 *" fileblocks.$ac_objext "* ) ;;
6889 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6890 ;;
6891esac
b7026657 6892
81ecdfbb 6893fi
b7026657
AC
6894
6895
81ecdfbb
RW
6896ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6897if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6898
6899cat >>confdefs.h <<_ACEOF
6900#define HAVE_STRUCT_STAT_ST_RDEV 1
b7026657 6901_ACEOF
b7026657 6902
b7026657 6903
81ecdfbb 6904$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
c906108c 6905
81ecdfbb 6906fi
c906108c 6907
81ecdfbb
RW
6908
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6910$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6911if test "${ac_cv_struct_tm+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6913else
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915/* end confdefs.h. */
6916#include <sys/types.h>
6917#include <time.h>
c906108c 6918
b7026657
AC
6919int
6920main ()
6921{
81ecdfbb
RW
6922struct tm tm;
6923 int *p = &tm.tm_sec;
6924 return !p;
b7026657
AC
6925 ;
6926 return 0;
6927}
6928_ACEOF
81ecdfbb
RW
6929if ac_fn_c_try_compile "$LINENO"; then :
6930 ac_cv_struct_tm=time.h
b7026657 6931else
81ecdfbb 6932 ac_cv_struct_tm=sys/time.h
b7026657 6933fi
81ecdfbb 6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 6935fi
81ecdfbb
RW
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6937$as_echo "$ac_cv_struct_tm" >&6; }
6938if test $ac_cv_struct_tm = sys/time.h; then
6939
6940$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
c906108c 6941
c906108c 6942fi
c906108c 6943
81ecdfbb
RW
6944ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6945#include <$ac_cv_struct_tm>
6946
6947"
6948if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
c906108c 6949
81ecdfbb
RW
6950cat >>confdefs.h <<_ACEOF
6951#define HAVE_STRUCT_TM_TM_ZONE 1
6952_ACEOF
b7026657
AC
6953
6954
81ecdfbb 6955fi
b7026657 6956
81ecdfbb 6957if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
b7026657 6958
81ecdfbb 6959$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
b7026657 6960
81ecdfbb
RW
6961else
6962 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6963"
6964if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6965 ac_have_decl=1
6966else
6967 ac_have_decl=0
6968fi
b7026657 6969
81ecdfbb
RW
6970cat >>confdefs.h <<_ACEOF
6971#define HAVE_DECL_TZNAME $ac_have_decl
6972_ACEOF
b7026657 6973
81ecdfbb
RW
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6975$as_echo_n "checking for tzname... " >&6; }
6976if test "${ac_cv_var_tzname+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6978else
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980/* end confdefs.h. */
6981#include <time.h>
6982#if !HAVE_DECL_TZNAME
6983extern char *tzname[];
6984#endif
b7026657 6985
81ecdfbb
RW
6986int
6987main ()
6988{
6989return tzname[0][0];
6990 ;
6991 return 0;
6992}
6993_ACEOF
6994if ac_fn_c_try_link "$LINENO"; then :
6995 ac_cv_var_tzname=yes
6996else
6997 ac_cv_var_tzname=no
6998fi
6999rm -f core conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001fi
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7003$as_echo "$ac_cv_var_tzname" >&6; }
7004 if test $ac_cv_var_tzname = yes; then
b7026657 7005
81ecdfbb 7006$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
b7026657 7007
81ecdfbb
RW
7008 fi
7009fi
b7026657
AC
7010
7011
81ecdfbb
RW
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7013$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7014if test "${ac_cv_type_uid_t+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7016else
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h. */
7019#include <sys/types.h>
b7026657 7020
81ecdfbb
RW
7021_ACEOF
7022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023 $EGREP "uid_t" >/dev/null 2>&1; then :
7024 ac_cv_type_uid_t=yes
7025else
7026 ac_cv_type_uid_t=no
7027fi
7028rm -f conftest*
b7026657 7029
81ecdfbb
RW
7030fi
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7032$as_echo "$ac_cv_type_uid_t" >&6; }
7033if test $ac_cv_type_uid_t = no; then
b7026657 7034
81ecdfbb 7035$as_echo "#define uid_t int" >>confdefs.h
b7026657
AC
7036
7037
81ecdfbb 7038$as_echo "#define gid_t int" >>confdefs.h
b7026657 7039
b7026657 7040fi
81ecdfbb
RW
7041
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
7043$as_echo_n "checking type of array argument to getgroups... " >&6; }
7044if test "${ac_cv_type_getgroups+set}" = set; then :
7045 $as_echo_n "(cached) " >&6
b7026657 7046else
81ecdfbb
RW
7047 if test "$cross_compiling" = yes; then :
7048 ac_cv_type_getgroups=cross
7049else
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7051/* end confdefs.h. */
81ecdfbb 7052/* Thanks to Mike Rendell for this test. */
b7026657 7053$ac_includes_default
81ecdfbb
RW
7054#define NGID 256
7055#undef MAX
7056#define MAX(x, y) ((x) > (y) ? (x) : (y))
7057
7058int
7059main ()
7060{
7061 gid_t gidset[NGID];
7062 int i, n;
7063 union { gid_t gval; long int lval; } val;
7064
7065 val.lval = -1;
7066 for (i = 0; i < NGID; i++)
7067 gidset[i] = val.gval;
7068 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7069 gidset);
7070 /* Exit non-zero if getgroups seems to require an array of ints. This
7071 happens when gid_t is short int but getgroups modifies an array
7072 of ints. */
7073 return n > 0 && gidset[n] != val.gval;
7074}
b7026657 7075_ACEOF
81ecdfbb
RW
7076if ac_fn_c_try_run "$LINENO"; then :
7077 ac_cv_type_getgroups=gid_t
b7026657 7078else
81ecdfbb
RW
7079 ac_cv_type_getgroups=int
7080fi
7081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7082 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 7083fi
b7026657 7084
81ecdfbb
RW
7085if test $ac_cv_type_getgroups = cross; then
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7087/* end confdefs.h. */
81ecdfbb
RW
7088#include <unistd.h>
7089
b7026657 7090_ACEOF
81ecdfbb
RW
7091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7092 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
7093 ac_cv_type_getgroups=gid_t
b7026657 7094else
81ecdfbb 7095 ac_cv_type_getgroups=int
c906108c 7096fi
81ecdfbb 7097rm -f conftest*
b7026657 7098
c906108c 7099fi
81ecdfbb
RW
7100fi
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
7102$as_echo "$ac_cv_type_getgroups" >&6; }
7103
7104cat >>confdefs.h <<_ACEOF
7105#define GETGROUPS_T $ac_cv_type_getgroups
7106_ACEOF
7107
7108
7109ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7110if test "x$ac_cv_type_mode_t" = x""yes; then :
b7026657 7111
c906108c 7112else
b7026657 7113
81ecdfbb
RW
7114cat >>confdefs.h <<_ACEOF
7115#define mode_t int
b7026657
AC
7116_ACEOF
7117
c906108c 7118fi
b7026657 7119
81ecdfbb
RW
7120ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7121if test "x$ac_cv_type_off_t" = x""yes; then :
c906108c 7122
81ecdfbb 7123else
b7026657 7124
81ecdfbb
RW
7125cat >>confdefs.h <<_ACEOF
7126#define off_t long int
7127_ACEOF
b7026657 7128
81ecdfbb 7129fi
b7026657 7130
81ecdfbb
RW
7131ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7132if test "x$ac_cv_type_pid_t" = x""yes; then :
b7026657 7133
81ecdfbb 7134else
b7026657 7135
81ecdfbb
RW
7136cat >>confdefs.h <<_ACEOF
7137#define pid_t int
b7026657 7138_ACEOF
81ecdfbb
RW
7139
7140fi
7141
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7143$as_echo_n "checking return type of signal handlers... " >&6; }
7144if test "${ac_cv_type_signal+set}" = set; then :
7145 $as_echo_n "(cached) " >&6
7146else
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7148/* end confdefs.h. */
c906108c 7149#include <sys/types.h>
81ecdfbb 7150#include <signal.h>
b7026657
AC
7151
7152int
7153main ()
7154{
81ecdfbb 7155return *(signal (0, 0)) (0) == 1;
b7026657
AC
7156 ;
7157 return 0;
7158}
7159_ACEOF
81ecdfbb
RW
7160if ac_fn_c_try_compile "$LINENO"; then :
7161 ac_cv_type_signal=int
b7026657 7162else
81ecdfbb 7163 ac_cv_type_signal=void
b7026657 7164fi
81ecdfbb 7165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 7166fi
81ecdfbb
RW
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7168$as_echo "$ac_cv_type_signal" >&6; }
7169
7170cat >>confdefs.h <<_ACEOF
7171#define RETSIGTYPE $ac_cv_type_signal
b7026657
AC
7172_ACEOF
7173
b7026657 7174
81ecdfbb
RW
7175ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7176if test "x$ac_cv_type_size_t" = x""yes; then :
7177
b7026657 7178else
81ecdfbb
RW
7179
7180cat >>confdefs.h <<_ACEOF
7181#define size_t unsigned int
b7026657 7182_ACEOF
81ecdfbb
RW
7183
7184fi
7185
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7187$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7188if test "${ac_cv_type_uid_t+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7190else
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7192/* end confdefs.h. */
81ecdfbb 7193#include <sys/types.h>
b7026657 7194
b7026657 7195_ACEOF
81ecdfbb
RW
7196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197 $EGREP "uid_t" >/dev/null 2>&1; then :
7198 ac_cv_type_uid_t=yes
b7026657 7199else
81ecdfbb
RW
7200 ac_cv_type_uid_t=no
7201fi
7202rm -f conftest*
b7026657
AC
7203
7204fi
81ecdfbb
RW
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7206$as_echo "$ac_cv_type_uid_t" >&6; }
7207if test $ac_cv_type_uid_t = no; then
7208
7209$as_echo "#define uid_t int" >>confdefs.h
7210
7211
7212$as_echo "#define gid_t int" >>confdefs.h
7213
7214fi
7215
7216
7217for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
7218do :
7219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7220ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7221eval as_val=\$$as_ac_var
7222 if test "x$as_val" = x""yes; then :
7223 cat >>confdefs.h <<_ACEOF
7224#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b7026657 7225_ACEOF
c906108c 7226
81ecdfbb
RW
7227fi
7228done
7229
7230
7231for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h
7232do :
7233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7234ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7235eval as_val=\$$as_ac_Header
7236 if test "x$as_val" = x""yes; then :
7237 cat >>confdefs.h <<_ACEOF
7238#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7239_ACEOF
7240
7241fi
7242
7243done
7244
7245ac_header_dirent=no
7246for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7247 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7249$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
7251 $as_echo_n "(cached) " >&6
7252else
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254/* end confdefs.h. */
7255#include <sys/types.h>
7256#include <$ac_hdr>
7257
b7026657
AC
7258int
7259main ()
7260{
81ecdfbb
RW
7261if ((DIR *) 0)
7262return 0;
b7026657
AC
7263 ;
7264 return 0;
7265}
7266_ACEOF
81ecdfbb
RW
7267if ac_fn_c_try_compile "$LINENO"; then :
7268 eval "$as_ac_Header=yes"
b7026657 7269else
81ecdfbb 7270 eval "$as_ac_Header=no"
c906108c 7271fi
81ecdfbb 7272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 7273fi
81ecdfbb
RW
7274eval ac_res=\$$as_ac_Header
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7276$as_echo "$ac_res" >&6; }
7277eval as_val=\$$as_ac_Header
7278 if test "x$as_val" = x""yes; then :
7279 cat >>confdefs.h <<_ACEOF
7280#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7281_ACEOF
b7026657 7282
81ecdfbb 7283ac_header_dirent=$ac_hdr; break
c906108c
SS
7284fi
7285
81ecdfbb
RW
7286done
7287# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7288if test $ac_header_dirent = dirent.h; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7290$as_echo_n "checking for library containing opendir... " >&6; }
7291if test "${ac_cv_search_opendir+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
c906108c 7293else
b7026657 7294 ac_func_search_save_LIBS=$LIBS
81ecdfbb 7295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
7296/* end confdefs.h. */
7297
81ecdfbb
RW
7298/* Override any GCC internal prototype to avoid an error.
7299 Use char because int might match the return type of a GCC
7300 builtin and then its argument prototype would still apply. */
b7026657
AC
7301#ifdef __cplusplus
7302extern "C"
7303#endif
b7026657
AC
7304char opendir ();
7305int
7306main ()
7307{
81ecdfbb 7308return opendir ();
b7026657
AC
7309 ;
7310 return 0;
7311}
7312_ACEOF
81ecdfbb
RW
7313for ac_lib in '' dir; do
7314 if test -z "$ac_lib"; then
7315 ac_res="none required"
7316 else
7317 ac_res=-l$ac_lib
7318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7319 fi
7320 if ac_fn_c_try_link "$LINENO"; then :
7321 ac_cv_search_opendir=$ac_res
7322fi
7323rm -f core conftest.err conftest.$ac_objext \
7324 conftest$ac_exeext
7325 if test "${ac_cv_search_opendir+set}" = set; then :
7326 break
7327fi
7328done
7329if test "${ac_cv_search_opendir+set}" = set; then :
7330
b7026657 7331else
81ecdfbb
RW
7332 ac_cv_search_opendir=no
7333fi
7334rm conftest.$ac_ext
7335LIBS=$ac_func_search_save_LIBS
7336fi
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7338$as_echo "$ac_cv_search_opendir" >&6; }
7339ac_res=$ac_cv_search_opendir
7340if test "$ac_res" != no; then :
7341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b7026657
AC
7342
7343fi
81ecdfbb
RW
7344
7345else
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7347$as_echo_n "checking for library containing opendir... " >&6; }
7348if test "${ac_cv_search_opendir+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7350else
7351 ac_func_search_save_LIBS=$LIBS
7352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7353/* end confdefs.h. */
c906108c 7354
81ecdfbb
RW
7355/* Override any GCC internal prototype to avoid an error.
7356 Use char because int might match the return type of a GCC
7357 builtin and then its argument prototype would still apply. */
b7026657
AC
7358#ifdef __cplusplus
7359extern "C"
7360#endif
b7026657
AC
7361char opendir ();
7362int
7363main ()
7364{
81ecdfbb 7365return opendir ();
b7026657
AC
7366 ;
7367 return 0;
7368}
7369_ACEOF
81ecdfbb
RW
7370for ac_lib in '' x; do
7371 if test -z "$ac_lib"; then
7372 ac_res="none required"
7373 else
7374 ac_res=-l$ac_lib
7375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7376 fi
7377 if ac_fn_c_try_link "$LINENO"; then :
7378 ac_cv_search_opendir=$ac_res
b7026657 7379fi
81ecdfbb
RW
7380rm -f core conftest.err conftest.$ac_objext \
7381 conftest$ac_exeext
7382 if test "${ac_cv_search_opendir+set}" = set; then :
7383 break
7384fi
7385done
7386if test "${ac_cv_search_opendir+set}" = set; then :
7387
7388else
7389 ac_cv_search_opendir=no
c906108c 7390fi
81ecdfbb 7391rm conftest.$ac_ext
b7026657
AC
7392LIBS=$ac_func_search_save_LIBS
7393fi
81ecdfbb
RW
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7395$as_echo "$ac_cv_search_opendir" >&6; }
7396ac_res=$ac_cv_search_opendir
7397if test "$ac_res" != no; then :
7398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b7026657 7399
c906108c
SS
7400fi
7401
7402fi
7403
7404
7405sim_termio=""
81ecdfbb
RW
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
7407$as_echo_n "checking for struct termios... " >&6; }
7408if test "${ac_cv_termios_struct+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
b7026657 7410else
81ecdfbb 7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7412/* end confdefs.h. */
c906108c
SS
7413#include <sys/types.h>
7414#include <sys/termios.h>
b7026657
AC
7415int
7416main ()
7417{
c906108c
SS
7418static struct termios x;
7419 x.c_iflag = 0;
7420 x.c_oflag = 0;
7421 x.c_cflag = 0;
7422 x.c_lflag = 0;
7423 x.c_cc[NCCS] = 0;
b7026657
AC
7424 ;
7425 return 0;
7426}
7427_ACEOF
81ecdfbb 7428if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
7429 ac_cv_termios_struct=yes
7430else
81ecdfbb 7431 ac_cv_termios_struct=no
c906108c 7432fi
81ecdfbb 7433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
7434fi
7435
81ecdfbb
RW
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
7437$as_echo "$ac_cv_termios_struct" >&6; }
c906108c
SS
7438if test $ac_cv_termios_struct = yes; then
7439 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
7440fi
7441
7442if test "$ac_cv_termios_struct" = "yes"; then
81ecdfbb
RW
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
7444$as_echo_n "checking for c_line field in struct termios... " >&6; }
7445 if test "${ac_cv_termios_cline+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
b7026657 7447else
81ecdfbb 7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7449/* end confdefs.h. */
c906108c
SS
7450#include <sys/types.h>
7451#include <sys/termios.h>
b7026657
AC
7452int
7453main ()
7454{
c906108c 7455static struct termios x; x.c_line = 0;
b7026657
AC
7456 ;
7457 return 0;
7458}
7459_ACEOF
81ecdfbb 7460if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
7461 ac_cv_termios_cline=yes
7462else
81ecdfbb 7463 ac_cv_termios_cline=no
c906108c 7464fi
81ecdfbb 7465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
7466fi
7467
7468
81ecdfbb
RW
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
7470$as_echo "$ac_cv_termios_cline" >&6; }
c906108c
SS
7471 if test $ac_cv_termios_cline = yes; then
7472 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
7473 fi
7474else
7475 ac_cv_termios_cline=no
7476fi
7477
7478if test "$ac_cv_termios_struct" != "yes"; then
81ecdfbb
RW
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
7480$as_echo_n "checking for struct termio... " >&6; }
7481 if test "${ac_cv_termio_struct+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
b7026657 7483else
81ecdfbb 7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7485/* end confdefs.h. */
c906108c
SS
7486#include <sys/types.h>
7487#include <sys/termio.h>
b7026657
AC
7488int
7489main ()
7490{
c906108c
SS
7491static struct termio x;
7492 x.c_iflag = 0;
7493 x.c_oflag = 0;
7494 x.c_cflag = 0;
7495 x.c_lflag = 0;
7496 x.c_cc[NCC] = 0;
b7026657
AC
7497 ;
7498 return 0;
7499}
7500_ACEOF
81ecdfbb 7501if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
7502 ac_cv_termio_struct=yes
7503else
81ecdfbb 7504 ac_cv_termio_struct=no
c906108c 7505fi
81ecdfbb 7506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
7507fi
7508
81ecdfbb
RW
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
7510$as_echo "$ac_cv_termio_struct" >&6; }
c906108c
SS
7511 if test $ac_cv_termio_struct = yes; then
7512 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
7513 fi
7514else
7515 ac_cv_termio_struct=no
7516fi
7517
7518if test "$ac_cv_termio_struct" = "yes"; then
81ecdfbb
RW
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
7520$as_echo_n "checking for c_line field in struct termio... " >&6; }
7521 if test "${ac_cv_termio_cline+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
b7026657 7523else
81ecdfbb 7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7525/* end confdefs.h. */
c906108c
SS
7526#include <sys/types.h>
7527#include <sys/termio.h>
b7026657
AC
7528int
7529main ()
7530{
c906108c 7531static struct termio x; x.c_line = 0;
b7026657
AC
7532 ;
7533 return 0;
7534}
7535_ACEOF
81ecdfbb 7536if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
7537 ac_cv_termio_cline=yes
7538else
81ecdfbb 7539 ac_cv_termio_cline=no
c906108c 7540fi
81ecdfbb 7541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
7542fi
7543
7544
81ecdfbb
RW
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
7546$as_echo "$ac_cv_termio_cline" >&6; }
c906108c
SS
7547 if test $ac_cv_termio_cline = yes; then
7548 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
7549 fi
7550else
7551 ac_cv_termio_cline=no
7552fi
7553
81ecdfbb
RW
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
7555$as_echo_n "checking for struct statfs... " >&6; }
7556if test "${ac_cv_struct_statfs+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
1f362c96 7558else
81ecdfbb 7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7560/* end confdefs.h. */
1f362c96
AC
7561#include <sys/types.h>
7562#ifdef HAVE_SYS_PARAM_H
7563#include <sys/param.h>
7564#endif
7565#ifdef HAVE_SYS_MOUNT_H
7566#include <sys/mount.h>
7567#endif
7568#ifdef HAVE_SYS_VFS_H
7569#include <sys/vfs.h>
7570#endif
7571#ifdef HAVE_SYS_STATFS_H
7572#include <sys/statfs.h>
7573#endif
b7026657
AC
7574int
7575main ()
7576{
1f362c96 7577static struct statfs s;
b7026657
AC
7578 ;
7579 return 0;
7580}
7581_ACEOF
81ecdfbb 7582if ac_fn_c_try_compile "$LINENO"; then :
1f362c96
AC
7583 ac_cv_struct_statfs=yes
7584else
81ecdfbb 7585 ac_cv_struct_statfs=no
1f362c96 7586fi
81ecdfbb 7587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1f362c96
AC
7588fi
7589
81ecdfbb
RW
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
7591$as_echo "$ac_cv_struct_statfs" >&6; }
1f362c96 7592if test $ac_cv_struct_statfs = yes; then
b7026657 7593
81ecdfbb 7594$as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
1f362c96
AC
7595
7596fi
7597
81ecdfbb
RW
7598ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7599if test "x$ac_cv_type_long_long" = x""yes; then :
30e66173
MI
7600
7601cat >>confdefs.h <<_ACEOF
7602#define HAVE_LONG_LONG 1
7603_ACEOF
7604
7605
7606fi
7607
7608
c906108c 7609sim_devzero=""
81ecdfbb
RW
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
7611$as_echo_n "checking for /dev/zero... " >&6; }
7612if test "${ac_cv_devzero+set}" = set; then :
7613 $as_echo_n "(cached) " >&6
c906108c 7614else
81ecdfbb 7615 if test "$cross_compiling" = yes; then :
c906108c
SS
7616 ac_cv_devzero=no
7617else
81ecdfbb 7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7619/* end confdefs.h. */
c906108c
SS
7620#include <fcntl.h>
7621main () {
7622 char buf[2048];
7623 int i;
7624 int fd = open ("/dev/zero", O_RDONLY);
7625 if (fd < 0)
7626 return 1;
7627 for (i = 0; i < sizeof (buf); i++)
7628 buf[i] = 1;
7629 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
7630 return 1;
7631 for (i = 0; i < sizeof (buf); i++)
7632 if (buf[i])
7633 return 1;
7634 return 0;
7635}
b7026657 7636_ACEOF
81ecdfbb 7637if ac_fn_c_try_run "$LINENO"; then :
c906108c
SS
7638 ac_cv_devzero=yes
7639else
81ecdfbb 7640 ac_cv_devzero=no
c906108c 7641fi
81ecdfbb
RW
7642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7643 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 7644fi
81ecdfbb 7645
c906108c
SS
7646fi
7647
81ecdfbb
RW
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
7649$as_echo "$ac_cv_devzero" >&6; }
c906108c
SS
7650if test $ac_cv_devzero = yes; then
7651 sim_devzero="-DHAVE_DEVZERO"
7652else
7653 sim_devzero=""
7654fi
7655
81ecdfbb
RW
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
7657$as_echo_n "checking for common simulator directory... " >&6; }
c906108c 7658if test -f "${srcdir}/../common/callback.c"; then
81ecdfbb
RW
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7660$as_echo "yes" >&6; }
c906108c
SS
7661 sim_callback="callback.o targ-map.o"
7662 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
7663else
81ecdfbb
RW
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665$as_echo "no" >&6; }
c906108c
SS
7666 sim_callback=""
7667 sim_targ_vals=""
7668fi
7669
81ecdfbb
RW
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
7671$as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
d29d5195 7672if test -f "${srcdir}/../common/sim-fpu.c"; then
81ecdfbb
RW
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674$as_echo "yes" >&6; }
3e5e53f9 7675 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
3a11ea24 7676 sim_fpu="sim-fpu.o"
d29d5195 7677else
81ecdfbb
RW
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679$as_echo "no" >&6; }
d29d5195 7680 sim_fpu_cflags=
b7026657 7681 sim_fpu=
c906108c 7682fi
cd0fc7c3 7683
68a3e151
NF
7684# Since we run commands on the build system, we have to create a
7685# separate config header for the build system if build != host.
7686if test x$host = x$build; then
7687 ac_config_commands="$ac_config_commands build-config.h"
7688
7689else
7690 tempdir=build.$$
7691 rm -rf $tempdir
7692 mkdir $tempdir
7693 cd $tempdir
7694 case ${srcdir} in
7695 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
7696 *) realsrcdir=../${srcdir};;
7697 esac
7698 saved_CFLAGS="${CFLAGS}"
7699 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
7700 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
7701 ${realsrcdir}/configure \
7702 --enable-languages=${enable_languages-all} \
7703 --target=$target_alias --host=$build_alias --build=$build_alias
7704 CFLAGS="${saved_CFLAGS}"
7705 mv config.h ../build-config.h
7706 cd ..
7707 rm -rf $tempdir
7708fi
7709
c906108c
SS
7710
7711
7712
7713
7714
4b164edf 7715
c906108c
SS
7716AR=${AR-ar}
7717
b7026657
AC
7718if test -n "$ac_tool_prefix"; then
7719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7720set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722$as_echo_n "checking for $ac_word... " >&6; }
7723if test "${ac_cv_prog_RANLIB+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
c906108c
SS
7725else
7726 if test -n "$RANLIB"; then
7727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7728else
b7026657
AC
7729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730for as_dir in $PATH
7731do
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 7736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
7738 break 2
7739 fi
7740done
81ecdfbb
RW
7741 done
7742IFS=$as_save_IFS
b7026657 7743
c906108c
SS
7744fi
7745fi
b7026657 7746RANLIB=$ac_cv_prog_RANLIB
c906108c 7747if test -n "$RANLIB"; then
81ecdfbb
RW
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7749$as_echo "$RANLIB" >&6; }
b7026657 7750else
81ecdfbb
RW
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752$as_echo "no" >&6; }
b7026657
AC
7753fi
7754
81ecdfbb 7755
b7026657
AC
7756fi
7757if test -z "$ac_cv_prog_RANLIB"; then
7758 ac_ct_RANLIB=$RANLIB
7759 # Extract the first word of "ranlib", so it can be a program name with args.
7760set dummy ranlib; ac_word=$2
81ecdfbb
RW
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762$as_echo_n "checking for $ac_word... " >&6; }
7763if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
b7026657
AC
7765else
7766 if test -n "$ac_ct_RANLIB"; then
7767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7768else
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 7776 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
7778 break 2
7779 fi
7780done
81ecdfbb
RW
7781 done
7782IFS=$as_save_IFS
b7026657 7783
b7026657
AC
7784fi
7785fi
7786ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7787if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7789$as_echo "$ac_ct_RANLIB" >&6; }
b7026657 7790else
81ecdfbb
RW
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792$as_echo "no" >&6; }
b7026657
AC
7793fi
7794
81ecdfbb
RW
7795 if test "x$ac_ct_RANLIB" = x; then
7796 RANLIB=":"
7797 else
7798 case $cross_compiling:$ac_tool_warned in
7799yes:)
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802ac_tool_warned=yes ;;
7803esac
7804 RANLIB=$ac_ct_RANLIB
7805 fi
c906108c 7806else
b7026657 7807 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
7808fi
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
d29d5195 7848
c906108c
SS
7849
7850
81ecdfbb
RW
7851ac_config_files="$ac_config_files Makefile"
7852
7853ac_config_commands="$ac_config_commands default"
7854
b7026657 7855cat >confcache <<\_ACEOF
c906108c
SS
7856# This file is a shell script that caches the results of configure
7857# tests run on this system so they can be shared between configure
b7026657
AC
7858# scripts and configure runs, see configure's option --config-cache.
7859# It is not useful on other systems. If it contains results you don't
7860# want to keep, you may remove or edit it.
c906108c 7861#
b7026657
AC
7862# config.status only pays attention to the cache file if you give it
7863# the --recheck option to rerun configure.
c906108c 7864#
b7026657
AC
7865# `ac_cv_env_foo' variables (set or unset) will be overridden when
7866# loading this file, other *unset* `ac_cv_foo' will be assigned the
7867# following values.
7868
7869_ACEOF
7870
c906108c
SS
7871# The following way of writing the cache mishandles newlines in values,
7872# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 7873# So, we kill variables containing newlines.
c906108c
SS
7874# Ultrix sh set writes to stderr and can't be redirected directly,
7875# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
7876(
7877 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7878 eval ac_val=\$$ac_var
7879 case $ac_val in #(
7880 *${as_nl}*)
7881 case $ac_var in #(
7882 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7883$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7884 esac
7885 case $ac_var in #(
7886 _ | IFS | as_nl) ;; #(
7887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7888 *) { eval $ac_var=; unset $ac_var;} ;;
7889 esac ;;
7890 esac
7891 done
7892
b7026657 7893 (set) 2>&1 |
81ecdfbb
RW
7894 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7895 *${as_nl}ac_space=\ *)
7896 # `set' does not quote correctly, so add quotes: double-quote
7897 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
7898 sed -n \
7899 "s/'/'\\\\''/g;
7900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 7901 ;; #(
b7026657
AC
7902 *)
7903 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 7904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 7905 ;;
81ecdfbb
RW
7906 esac |
7907 sort
7908) |
b7026657 7909 sed '
81ecdfbb 7910 /^ac_cv_env_/b end
b7026657 7911 t clear
81ecdfbb 7912 :clear
b7026657
AC
7913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7914 t end
81ecdfbb
RW
7915 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7916 :end' >>confcache
7917if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7918 if test -w "$cache_file"; then
7919 test "x$cache_file" != "x/dev/null" &&
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7921$as_echo "$as_me: updating cache $cache_file" >&6;}
b7026657 7922 cat confcache >$cache_file
c906108c 7923 else
81ecdfbb
RW
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7925$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
7926 fi
7927fi
7928rm -f confcache
7929
c906108c
SS
7930test "x$prefix" = xNONE && prefix=$ac_default_prefix
7931# Let make expand exec_prefix.
7932test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7933
c906108c
SS
7934DEFS=-DHAVE_CONFIG_H
7935
b7026657
AC
7936ac_libobjs=
7937ac_ltlibobjs=
7938for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7939 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
7940 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7942 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7943 # will be set to the directory where LIBOBJS objects are built.
7944 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7945 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
7946done
7947LIBOBJS=$ac_libobjs
c906108c 7948
b7026657
AC
7949LTLIBOBJS=$ac_ltlibobjs
7950
7951
7952
81ecdfbb 7953
b7026657 7954: ${CONFIG_STATUS=./config.status}
81ecdfbb 7955ac_write_fail=0
b7026657
AC
7956ac_clean_files_save=$ac_clean_files
7957ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7959$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7960as_write_fail=0
7961cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
7962#! $SHELL
7963# Generated by $as_me.
c906108c 7964# Run this file to recreate the current configuration.
c906108c 7965# Compiler output produced by configure, useful for debugging
b7026657 7966# configure, is in config.log if it exists.
c906108c 7967
b7026657
AC
7968debug=false
7969ac_cs_recheck=false
7970ac_cs_silent=false
b7026657 7971
81ecdfbb
RW
7972SHELL=\${CONFIG_SHELL-$SHELL}
7973export SHELL
7974_ASEOF
7975cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7976## -------------------- ##
7977## M4sh Initialization. ##
7978## -------------------- ##
7979
7980# Be more Bourne compatible
7981DUALCASE=1; export DUALCASE # for MKS sh
7982if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
7983 emulate sh
7984 NULLCMD=:
81ecdfbb 7985 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
7986 # is contrary to our usage. Disable this feature.
7987 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
7988 setopt NO_GLOB_SUBST
7989else
7990 case `(set -o) 2>/dev/null` in #(
7991 *posix*) :
7992 set -o posix ;; #(
7993 *) :
7994 ;;
7995esac
b7026657 7996fi
b7026657 7997
81ecdfbb
RW
7998
7999as_nl='
8000'
8001export as_nl
8002# Printing a long string crashes Solaris 7 /usr/bin/printf.
8003as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8004as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8005as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8006# Prefer a ksh shell builtin over an external printf program on Solaris,
8007# but without wasting forks for bash or zsh.
8008if test -z "$BASH_VERSION$ZSH_VERSION" \
8009 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8010 as_echo='print -r --'
8011 as_echo_n='print -rn --'
8012elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8013 as_echo='printf %s\n'
8014 as_echo_n='printf %s'
8015else
8016 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8017 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8018 as_echo_n='/usr/ucb/echo -n'
8019 else
8020 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8021 as_echo_n_body='eval
8022 arg=$1;
8023 case $arg in #(
8024 *"$as_nl"*)
8025 expr "X$arg" : "X\\(.*\\)$as_nl";
8026 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8027 esac;
8028 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8029 '
8030 export as_echo_n_body
8031 as_echo_n='sh -c $as_echo_n_body as_echo'
8032 fi
8033 export as_echo_body
8034 as_echo='sh -c $as_echo_body as_echo'
b7026657
AC
8035fi
8036
81ecdfbb
RW
8037# The user is always right.
8038if test "${PATH_SEPARATOR+set}" != set; then
8039 PATH_SEPARATOR=:
8040 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8041 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8042 PATH_SEPARATOR=';'
8043 }
8044fi
8045
8046
8047# IFS
8048# We need space, tab and new line, in precisely that order. Quoting is
8049# there to prevent editors from complaining about space-tab.
8050# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8051# splitting by setting IFS to empty value.)
8052IFS=" "" $as_nl"
8053
8054# Find who we are. Look in the path if we contain no directory separator.
8055case $0 in #((
8056 *[\\/]* ) as_myself=$0 ;;
8057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8063 done
8064IFS=$as_save_IFS
b7026657 8065
81ecdfbb
RW
8066 ;;
8067esac
8068# We did not find ourselves, most probably we were run as `sh COMMAND'
8069# in which case we are not to be found in the path.
8070if test "x$as_myself" = x; then
8071 as_myself=$0
8072fi
8073if test ! -f "$as_myself"; then
8074 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8075 exit 1
8076fi
8077
8078# Unset variables that we do not need and which cause bugs (e.g. in
8079# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8080# suppresses any "Segmentation fault" message there. '((' could
8081# trigger a bug in pdksh 5.2.14.
8082for as_var in BASH_ENV ENV MAIL MAILPATH
8083do eval test x\${$as_var+set} = xset \
8084 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8085done
b7026657
AC
8086PS1='$ '
8087PS2='> '
8088PS4='+ '
8089
8090# NLS nuisances.
81ecdfbb
RW
8091LC_ALL=C
8092export LC_ALL
8093LANGUAGE=C
8094export LANGUAGE
8095
8096# CDPATH.
8097(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8098
8099
8100# as_fn_error ERROR [LINENO LOG_FD]
8101# ---------------------------------
8102# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8103# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8104# script with status $?, using 1 if that was 0.
8105as_fn_error ()
8106{
8107 as_status=$?; test $as_status -eq 0 && as_status=1
8108 if test "$3"; then
8109 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8110 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b7026657 8111 fi
81ecdfbb
RW
8112 $as_echo "$as_me: error: $1" >&2
8113 as_fn_exit $as_status
8114} # as_fn_error
8115
c906108c 8116
81ecdfbb
RW
8117# as_fn_set_status STATUS
8118# -----------------------
8119# Set $? to STATUS, without forking.
8120as_fn_set_status ()
8121{
8122 return $1
8123} # as_fn_set_status
8124
8125# as_fn_exit STATUS
8126# -----------------
8127# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8128as_fn_exit ()
8129{
8130 set +e
8131 as_fn_set_status $1
8132 exit $1
8133} # as_fn_exit
8134
8135# as_fn_unset VAR
8136# ---------------
8137# Portably unset VAR.
8138as_fn_unset ()
8139{
8140 { eval $1=; unset $1;}
8141}
8142as_unset=as_fn_unset
8143# as_fn_append VAR VALUE
8144# ----------------------
8145# Append the text in VALUE to the end of the definition contained in VAR. Take
8146# advantage of any shell optimizations that allow amortized linear growth over
8147# repeated appends, instead of the typical quadratic growth present in naive
8148# implementations.
8149if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8150 eval 'as_fn_append ()
8151 {
8152 eval $1+=\$2
8153 }'
8154else
8155 as_fn_append ()
8156 {
8157 eval $1=\$$1\$2
8158 }
8159fi # as_fn_append
8160
8161# as_fn_arith ARG...
8162# ------------------
8163# Perform arithmetic evaluation on the ARGs, and store the result in the
8164# global $as_val. Take advantage of shells that can avoid forks. The arguments
8165# must be portable across $(()) and expr.
8166if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8167 eval 'as_fn_arith ()
8168 {
8169 as_val=$(( $* ))
8170 }'
8171else
8172 as_fn_arith ()
8173 {
8174 as_val=`expr "$@" || test $? -eq 1`
8175 }
8176fi # as_fn_arith
8177
8178
8179if expr a : '\(a\)' >/dev/null 2>&1 &&
8180 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
8181 as_expr=expr
8182else
8183 as_expr=false
8184fi
c906108c 8185
81ecdfbb 8186if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
8187 as_basename=basename
8188else
8189 as_basename=false
8190fi
c906108c 8191
81ecdfbb
RW
8192if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8193 as_dirname=dirname
8194else
8195 as_dirname=false
8196fi
c906108c 8197
81ecdfbb 8198as_me=`$as_basename -- "$0" ||
b7026657
AC
8199$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8200 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
8201 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8202$as_echo X/"$0" |
8203 sed '/^.*\/\([^/][^/]*\)\/*$/{
8204 s//\1/
8205 q
8206 }
8207 /^X\/\(\/\/\)$/{
8208 s//\1/
8209 q
8210 }
8211 /^X\/\(\/\).*/{
8212 s//\1/
8213 q
8214 }
8215 s/.*/./; q'`
b7026657 8216
b7026657
AC
8217# Avoid depending upon Character Ranges.
8218as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8219as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8220as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8221as_cr_digits='0123456789'
8222as_cr_alnum=$as_cr_Letters$as_cr_digits
8223
81ecdfbb
RW
8224ECHO_C= ECHO_N= ECHO_T=
8225case `echo -n x` in #(((((
8226-n*)
8227 case `echo 'xy\c'` in
8228 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8229 xy) ECHO_C='\c';;
8230 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8231 ECHO_T=' ';;
8232 esac;;
8233*)
8234 ECHO_N='-n';;
b7026657
AC
8235esac
8236
b7026657 8237rm -f conf$$ conf$$.exe conf$$.file
81ecdfbb
RW
8238if test -d conf$$.dir; then
8239 rm -f conf$$.dir/conf$$.file
8240else
8241 rm -f conf$$.dir
8242 mkdir conf$$.dir 2>/dev/null
8243fi
8244if (echo >conf$$.file) 2>/dev/null; then
8245 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 8246 as_ln_s='ln -s'
81ecdfbb
RW
8247 # ... but there are two gotchas:
8248 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8249 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8250 # In both cases, we have to default to `cp -p'.
8251 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8252 as_ln_s='cp -p'
8253 elif ln conf$$.file conf$$ 2>/dev/null; then
8254 as_ln_s=ln
8255 else
8256 as_ln_s='cp -p'
c906108c 8257 fi
b7026657
AC
8258else
8259 as_ln_s='cp -p'
8260fi
81ecdfbb
RW
8261rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8262rmdir conf$$.dir 2>/dev/null
8263
8264
8265# as_fn_mkdir_p
8266# -------------
8267# Create "$as_dir" as a directory, including parents if necessary.
8268as_fn_mkdir_p ()
8269{
8270
8271 case $as_dir in #(
8272 -*) as_dir=./$as_dir;;
8273 esac
8274 test -d "$as_dir" || eval $as_mkdir_p || {
8275 as_dirs=
8276 while :; do
8277 case $as_dir in #(
8278 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8279 *) as_qdir=$as_dir;;
8280 esac
8281 as_dirs="'$as_qdir' $as_dirs"
8282 as_dir=`$as_dirname -- "$as_dir" ||
8283$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8284 X"$as_dir" : 'X\(//\)[^/]' \| \
8285 X"$as_dir" : 'X\(//\)$' \| \
8286 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8287$as_echo X"$as_dir" |
8288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8289 s//\1/
8290 q
8291 }
8292 /^X\(\/\/\)[^/].*/{
8293 s//\1/
8294 q
8295 }
8296 /^X\(\/\/\)$/{
8297 s//\1/
8298 q
8299 }
8300 /^X\(\/\).*/{
8301 s//\1/
8302 q
8303 }
8304 s/.*/./; q'`
8305 test -d "$as_dir" && break
8306 done
8307 test -z "$as_dirs" || eval "mkdir $as_dirs"
8308 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
b7026657 8309
81ecdfbb
RW
8310
8311} # as_fn_mkdir_p
b7026657 8312if mkdir -p . 2>/dev/null; then
81ecdfbb 8313 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
8314else
8315 test -d ./-p && rmdir ./-p
8316 as_mkdir_p=false
8317fi
8318
81ecdfbb
RW
8319if test -x / >/dev/null 2>&1; then
8320 as_test_x='test -x'
8321else
8322 if ls -dL / >/dev/null 2>&1; then
8323 as_ls_L_option=L
8324 else
8325 as_ls_L_option=
8326 fi
8327 as_test_x='
8328 eval sh -c '\''
8329 if test -d "$1"; then
8330 test -d "$1/.";
8331 else
8332 case $1 in #(
8333 -*)set "./$1";;
8334 esac;
8335 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8336 ???[sx]*):;;*)false;;esac;fi
8337 '\'' sh
8338 '
8339fi
8340as_executable_p=$as_test_x
b7026657
AC
8341
8342# Sed expression to map a string onto a valid CPP name.
8343as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8344
8345# Sed expression to map a string onto a valid variable name.
8346as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8347
8348
b7026657 8349exec 6>&1
81ecdfbb
RW
8350## ----------------------------------- ##
8351## Main body of $CONFIG_STATUS script. ##
8352## ----------------------------------- ##
8353_ASEOF
8354test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8355
8356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8357# Save the log message, to keep $0 and so on meaningful, and to
b7026657 8358# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
8359# values after options handling.
8360ac_log="
b7026657 8361This file was extended by $as_me, which was
81ecdfbb 8362generated by GNU Autoconf 2.64. Invocation command line was
b7026657
AC
8363
8364 CONFIG_FILES = $CONFIG_FILES
8365 CONFIG_HEADERS = $CONFIG_HEADERS
8366 CONFIG_LINKS = $CONFIG_LINKS
8367 CONFIG_COMMANDS = $CONFIG_COMMANDS
8368 $ $0 $@
8369
81ecdfbb
RW
8370on `(hostname || uname -n) 2>/dev/null | sed 1q`
8371"
8372
b7026657
AC
8373_ACEOF
8374
81ecdfbb
RW
8375case $ac_config_files in *"
8376"*) set x $ac_config_files; shift; ac_config_files=$*;;
8377esac
b7026657 8378
81ecdfbb
RW
8379case $ac_config_headers in *"
8380"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8381esac
b7026657 8382
b7026657 8383
81ecdfbb
RW
8384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8385# Files that config.status was made for.
8386config_files="$ac_config_files"
8387config_headers="$ac_config_headers"
8388config_commands="$ac_config_commands"
b7026657 8389
81ecdfbb 8390_ACEOF
b7026657 8391
81ecdfbb 8392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 8393ac_cs_usage="\
81ecdfbb
RW
8394\`$as_me' instantiates files and other configuration actions
8395from templates according to the current configuration. Unless the files
8396and actions are specified as TAGs, all are instantiated by default.
b7026657 8397
81ecdfbb 8398Usage: $0 [OPTION]... [TAG]...
b7026657
AC
8399
8400 -h, --help print this help, then exit
81ecdfbb
RW
8401 -V, --version print version number and configuration settings, then exit
8402 -q, --quiet, --silent
8403 do not print progress messages
b7026657
AC
8404 -d, --debug don't remove temporary files
8405 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
8406 --file=FILE[:TEMPLATE]
8407 instantiate the configuration file FILE
8408 --header=FILE[:TEMPLATE]
8409 instantiate the configuration header FILE
b7026657
AC
8410
8411Configuration files:
8412$config_files
8413
8414Configuration headers:
8415$config_headers
8416
8417Configuration commands:
8418$config_commands
8419
81ecdfbb 8420Report bugs to the package provider."
b7026657 8421
81ecdfbb
RW
8422_ACEOF
8423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657
AC
8424ac_cs_version="\\
8425config.status
81ecdfbb
RW
8426configured by $0, generated by GNU Autoconf 2.64,
8427 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b7026657 8428
81ecdfbb 8429Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
8430This config.status script is free software; the Free Software Foundation
8431gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
8432
8433ac_pwd='$ac_pwd'
8434srcdir='$srcdir'
8435INSTALL='$INSTALL'
8436test -n "\$AWK" || AWK=awk
b7026657
AC
8437_ACEOF
8438
81ecdfbb
RW
8439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8440# The default lists apply if the user does not specify any file.
b7026657
AC
8441ac_need_defaults=:
8442while test $# != 0
8443do
8444 case $1 in
8445 --*=*)
81ecdfbb
RW
8446 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8447 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
8448 ac_shift=:
8449 ;;
81ecdfbb 8450 *)
b7026657
AC
8451 ac_option=$1
8452 ac_optarg=$2
8453 ac_shift=shift
8454 ;;
b7026657
AC
8455 esac
8456
8457 case $ac_option in
8458 # Handling of the options.
b7026657
AC
8459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8460 ac_cs_recheck=: ;;
81ecdfbb
RW
8461 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8462 $as_echo "$ac_cs_version"; exit ;;
8463 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
8464 debug=: ;;
8465 --file | --fil | --fi | --f )
8466 $ac_shift
81ecdfbb
RW
8467 case $ac_optarg in
8468 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8469 esac
8470 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
8471 ac_need_defaults=false;;
8472 --header | --heade | --head | --hea )
8473 $ac_shift
81ecdfbb
RW
8474 case $ac_optarg in
8475 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8476 esac
8477 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 8478 ac_need_defaults=false;;
81ecdfbb
RW
8479 --he | --h)
8480 # Conflict between --help and --header
8481 as_fn_error "ambiguous option: \`$1'
8482Try \`$0 --help' for more information.";;
8483 --help | --hel | -h )
8484 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
8485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8486 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8487 ac_cs_silent=: ;;
8488
8489 # This is an error.
81ecdfbb
RW
8490 -*) as_fn_error "unrecognized option: \`$1'
8491Try \`$0 --help' for more information." ;;
b7026657 8492
81ecdfbb
RW
8493 *) as_fn_append ac_config_targets " $1"
8494 ac_need_defaults=false ;;
b7026657
AC
8495
8496 esac
8497 shift
c906108c 8498done
b7026657
AC
8499
8500ac_configure_extra_args=
8501
8502if $ac_cs_silent; then
8503 exec 6>/dev/null
8504 ac_configure_extra_args="$ac_configure_extra_args --silent"
8505fi
8506
8507_ACEOF
81ecdfbb 8508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 8509if \$ac_cs_recheck; then
81ecdfbb
RW
8510 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8511 shift
8512 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8513 CONFIG_SHELL='$SHELL'
8514 export CONFIG_SHELL
8515 exec "\$@"
c906108c 8516fi
c906108c 8517
b7026657 8518_ACEOF
81ecdfbb
RW
8519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8520exec 5>>config.log
8521{
8522 echo
8523 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8524## Running $as_me. ##
8525_ASBOX
8526 $as_echo "$ac_log"
8527} >&5
c906108c 8528
81ecdfbb
RW
8529_ACEOF
8530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8531_ACEOF
b7026657 8532
81ecdfbb 8533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 8534
81ecdfbb 8535# Handling of arguments.
b7026657
AC
8536for ac_config_target in $ac_config_targets
8537do
81ecdfbb
RW
8538 case $ac_config_target in
8539 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
68a3e151 8540 "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;;
81ecdfbb
RW
8541 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8542 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8543
8544 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 8545 esac
b7026657 8546done
c906108c 8547
81ecdfbb 8548
b7026657
AC
8549# If the user did not use the arguments to specify the items to instantiate,
8550# then the envvar interface is used. Set only those that are not.
8551# We use the long form for the default assignment because of an extremely
8552# bizarre bug on SunOS 4.1.3.
8553if $ac_need_defaults; then
8554 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8555 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8556 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8557fi
8558
8559# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 8560# simply because there is no reason against having it here, and in addition,
b7026657 8561# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
8562# Hook for its removal unless debugging.
8563# Note that there is a small window in which the directory will not be cleaned:
8564# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
8565$debug ||
8566{
81ecdfbb
RW
8567 tmp=
8568 trap 'exit_status=$?
8569 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8570' 0
8571 trap 'as_fn_exit 1' 1 2 13 15
b7026657 8572}
b7026657
AC
8573# Create a (secure) tmp directory for tmp files.
8574
8575{
81ecdfbb 8576 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b7026657
AC
8577 test -n "$tmp" && test -d "$tmp"
8578} ||
8579{
81ecdfbb
RW
8580 tmp=./conf$$-$RANDOM
8581 (umask 077 && mkdir "$tmp")
8582} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8583
8584# Set up the scripts for CONFIG_FILES section.
8585# No need to generate them if there are no CONFIG_FILES.
8586# This happens for instance with `./config.status config.h'.
8587if test -n "$CONFIG_FILES"; then
8588
8589
8590ac_cr=`echo X | tr X '\015'`
8591# On cygwin, bash can eat \r inside `` if the user requested igncr.
8592# But we know of no other shell where ac_cr would be empty at this
8593# point, so we can use a bashism as a fallback.
8594if test "x$ac_cr" = x; then
8595 eval ac_cr=\$\'\\r\'
8596fi
8597ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8598if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8599 ac_cs_awk_cr='\r'
8600else
8601 ac_cs_awk_cr=$ac_cr
8602fi
8603
8604echo 'BEGIN {' >"$tmp/subs1.awk" &&
8605_ACEOF
8606
8607
b7026657 8608{
81ecdfbb
RW
8609 echo "cat >conf$$subs.awk <<_ACEOF" &&
8610 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8611 echo "_ACEOF"
8612} >conf$$subs.sh ||
8613 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8614ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8615ac_delim='%!_!# '
8616for ac_last_try in false false false false false :; do
8617 . ./conf$$subs.sh ||
8618 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8619
8620 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8621 if test $ac_delim_n = $ac_delim_num; then
8622 break
8623 elif $ac_last_try; then
8624 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8625 else
8626 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8627 fi
8628done
8629rm -f conf$$subs.sh
8630
8631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8632cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8633_ACEOF
8634sed -n '
8635h
8636s/^/S["/; s/!.*/"]=/
8637p
8638g
8639s/^[^!]*!//
8640:repl
8641t repl
8642s/'"$ac_delim"'$//
8643t delim
8644:nl
8645h
8646s/\(.\{148\}\).*/\1/
8647t more1
8648s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8649p
8650n
8651b repl
8652:more1
8653s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8654p
8655g
8656s/.\{148\}//
8657t nl
8658:delim
8659h
8660s/\(.\{148\}\).*/\1/
8661t more2
8662s/["\\]/\\&/g; s/^/"/; s/$/"/
8663p
8664b
8665:more2
8666s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8667p
8668g
8669s/.\{148\}//
8670t delim
8671' <conf$$subs.awk | sed '
8672/^[^""]/{
8673 N
8674 s/\n//
b7026657 8675}
81ecdfbb
RW
8676' >>$CONFIG_STATUS || ac_write_fail=1
8677rm -f conf$$subs.awk
8678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8679_ACAWK
8680cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8681 for (key in S) S_is_set[key] = 1
8682 FS = "\a"
b7026657 8683
81ecdfbb
RW
8684}
8685{
8686 line = $ 0
8687 nfields = split(line, field, "@")
8688 substed = 0
8689 len = length(field[1])
8690 for (i = 2; i < nfields; i++) {
8691 key = field[i]
8692 keylen = length(key)
8693 if (S_is_set[key]) {
8694 value = S[key]
8695 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8696 len += length(value) + length(field[++i])
8697 substed = 1
8698 } else
8699 len += 1 + keylen
8700 }
b7026657 8701
81ecdfbb
RW
8702 print line
8703}
b7026657 8704
81ecdfbb
RW
8705_ACAWK
8706_ACEOF
8707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8708if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8709 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8710else
8711 cat
8712fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8713 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8714_ACEOF
8715
8716# VPATH may cause trouble with some makes, so we remove $(srcdir),
8717# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8718# trailing colons and then remove the whole line if VPATH becomes empty
8719# (actually we leave an empty line to preserve line numbers).
8720if test "x$srcdir" = x.; then
8721 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8722s/:*\$(srcdir):*/:/
8723s/:*\${srcdir}:*/:/
8724s/:*@srcdir@:*/:/
8725s/^\([^=]*=[ ]*\):*/\1/
8726s/:*$//
8727s/^[^=]*=[ ]*$//
8728}'
8729fi
b7026657 8730
81ecdfbb
RW
8731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8732fi # test -n "$CONFIG_FILES"
b7026657 8733
81ecdfbb
RW
8734# Set up the scripts for CONFIG_HEADERS section.
8735# No need to generate them if there are no CONFIG_HEADERS.
8736# This happens for instance with `./config.status Makefile'.
8737if test -n "$CONFIG_HEADERS"; then
8738cat >"$tmp/defines.awk" <<\_ACAWK ||
8739BEGIN {
b7026657
AC
8740_ACEOF
8741
81ecdfbb
RW
8742# Transform confdefs.h into an awk script `defines.awk', embedded as
8743# here-document in config.status, that substitutes the proper values into
8744# config.h.in to produce config.h.
8745
8746# Create a delimiter string that does not exist in confdefs.h, to ease
8747# handling of long lines.
8748ac_delim='%!_!# '
8749for ac_last_try in false false :; do
8750 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8751 if test -z "$ac_t"; then
8752 break
8753 elif $ac_last_try; then
8754 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8755 else
8756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 8757 fi
81ecdfbb 8758done
c906108c 8759
81ecdfbb
RW
8760# For the awk script, D is an array of macro values keyed by name,
8761# likewise P contains macro parameters if any. Preserve backslash
8762# newline sequences.
8763
8764ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8765sed -n '
8766s/.\{148\}/&'"$ac_delim"'/g
8767t rset
8768:rset
8769s/^[ ]*#[ ]*define[ ][ ]*/ /
8770t def
8771d
8772:def
8773s/\\$//
8774t bsnl
8775s/["\\]/\\&/g
8776s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8777D["\1"]=" \3"/p
8778s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8779d
8780:bsnl
8781s/["\\]/\\&/g
8782s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8783D["\1"]=" \3\\\\\\n"\\/p
8784t cont
8785s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8786t cont
8787d
8788:cont
8789n
8790s/.\{148\}/&'"$ac_delim"'/g
8791t clear
8792:clear
8793s/\\$//
8794t bsnlc
8795s/["\\]/\\&/g; s/^/"/; s/$/"/p
8796d
8797:bsnlc
8798s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8799b cont
8800' <confdefs.h | sed '
8801s/'"$ac_delim"'/"\\\
8802"/g' >>$CONFIG_STATUS || ac_write_fail=1
8803
8804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8805 for (key in D) D_is_set[key] = 1
8806 FS = "\a"
8807}
8808/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8809 line = \$ 0
8810 split(line, arg, " ")
8811 if (arg[1] == "#") {
8812 defundef = arg[2]
8813 mac1 = arg[3]
8814 } else {
8815 defundef = substr(arg[1], 2)
8816 mac1 = arg[2]
8817 }
8818 split(mac1, mac2, "(") #)
8819 macro = mac2[1]
8820 prefix = substr(line, 1, index(line, defundef) - 1)
8821 if (D_is_set[macro]) {
8822 # Preserve the white space surrounding the "#".
8823 print prefix "define", macro P[macro] D[macro]
8824 next
8825 } else {
8826 # Replace #undef with comments. This is necessary, for example,
8827 # in the case of _POSIX_SOURCE, which is predefined and required
8828 # on some systems where configure will not decide to define it.
8829 if (defundef == "undef") {
8830 print "/*", prefix defundef, macro, "*/"
8831 next
8832 }
8833 }
8834}
8835{ print }
8836_ACAWK
b7026657 8837_ACEOF
81ecdfbb
RW
8838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8839 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8840fi # test -n "$CONFIG_HEADERS"
8841
8842
8843eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8844shift
8845for ac_tag
8846do
8847 case $ac_tag in
8848 :[FHLC]) ac_mode=$ac_tag; continue;;
8849 esac
8850 case $ac_mode$ac_tag in
8851 :[FHL]*:*);;
8852 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8853 :[FH]-) ac_tag=-:-;;
8854 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8855 esac
8856 ac_save_IFS=$IFS
8857 IFS=:
8858 set x $ac_tag
8859 IFS=$ac_save_IFS
8860 shift
8861 ac_file=$1
8862 shift
8863
8864 case $ac_mode in
8865 :L) ac_source=$1;;
8866 :[FH])
8867 ac_file_inputs=
8868 for ac_f
8869 do
8870 case $ac_f in
8871 -) ac_f="$tmp/stdin";;
8872 *) # Look for the file first in the build tree, then in the source tree
8873 # (if the path is not absolute). The absolute path cannot be DOS-style,
8874 # because $ac_f cannot contain `:'.
8875 test -f "$ac_f" ||
8876 case $ac_f in
8877 [\\/$]*) false;;
8878 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8879 esac ||
8880 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8881 esac
8882 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8883 as_fn_append ac_file_inputs " '$ac_f'"
8884 done
8885
8886 # Let's still pretend it is `configure' which instantiates (i.e., don't
8887 # use $as_me), people would be surprised to read:
8888 # /* config.h. Generated by config.status. */
8889 configure_input='Generated from '`
8890 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8891 `' by configure.'
8892 if test x"$ac_file" != x-; then
8893 configure_input="$ac_file. $configure_input"
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8895$as_echo "$as_me: creating $ac_file" >&6;}
8896 fi
8897 # Neutralize special characters interpreted by sed in replacement strings.
8898 case $configure_input in #(
8899 *\&* | *\|* | *\\* )
8900 ac_sed_conf_input=`$as_echo "$configure_input" |
8901 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8902 *) ac_sed_conf_input=$configure_input;;
8903 esac
8904
8905 case $ac_tag in
8906 *:-:* | *:-) cat >"$tmp/stdin" \
8907 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8908 esac
8909 ;;
c906108c
SS
8910 esac
8911
81ecdfbb 8912 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
8913$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8914 X"$ac_file" : 'X\(//\)[^/]' \| \
8915 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
8916 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8917$as_echo X"$ac_file" |
8918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8919 s//\1/
8920 q
8921 }
8922 /^X\(\/\/\)[^/].*/{
8923 s//\1/
8924 q
8925 }
8926 /^X\(\/\/\)$/{
8927 s//\1/
8928 q
8929 }
8930 /^X\(\/\).*/{
8931 s//\1/
8932 q
8933 }
8934 s/.*/./; q'`
8935 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
8936 ac_builddir=.
8937
81ecdfbb
RW
8938case "$ac_dir" in
8939.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8940*)
8941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8942 # A ".." for each directory in $ac_dir_suffix.
8943 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8944 case $ac_top_builddir_sub in
8945 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8946 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8947 esac ;;
8948esac
8949ac_abs_top_builddir=$ac_pwd
8950ac_abs_builddir=$ac_pwd$ac_dir_suffix
8951# for backward compatibility:
8952ac_top_builddir=$ac_top_build_prefix
c906108c 8953
b7026657 8954case $srcdir in
81ecdfbb 8955 .) # We are building in place.
b7026657 8956 ac_srcdir=.
81ecdfbb
RW
8957 ac_top_srcdir=$ac_top_builddir_sub
8958 ac_abs_top_srcdir=$ac_pwd ;;
8959 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 8960 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
8961 ac_top_srcdir=$srcdir
8962 ac_abs_top_srcdir=$srcdir ;;
8963 *) # Relative name.
8964 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8965 ac_top_srcdir=$ac_top_build_prefix$srcdir
8966 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 8967esac
81ecdfbb 8968ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 8969
b7026657 8970
81ecdfbb
RW
8971 case $ac_mode in
8972 :F)
8973 #
8974 # CONFIG_FILE
8975 #
b7026657
AC
8976
8977 case $INSTALL in
8978 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 8979 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 8980 esac
81ecdfbb 8981_ACEOF
c906108c 8982
81ecdfbb
RW
8983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8984# If the template does not know about datarootdir, expand it.
8985# FIXME: This hack should be removed a few years after 2.60.
8986ac_datarootdir_hack=; ac_datarootdir_seen=
8987ac_sed_dataroot='
8988/datarootdir/ {
8989 p
8990 q
8991}
8992/@datadir@/p
8993/@docdir@/p
8994/@infodir@/p
8995/@localedir@/p
8996/@mandir@/p'
8997case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8998*datarootdir*) ac_datarootdir_seen=yes;;
8999*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9001$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9002_ACEOF
9003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9004 ac_datarootdir_hack='
9005 s&@datadir@&$datadir&g
9006 s&@docdir@&$docdir&g
9007 s&@infodir@&$infodir&g
9008 s&@localedir@&$localedir&g
9009 s&@mandir@&$mandir&g
9010 s&\\\${datarootdir}&$datarootdir&g' ;;
9011esac
b7026657 9012_ACEOF
81ecdfbb
RW
9013
9014# Neutralize VPATH when `$srcdir' = `.'.
9015# Shell code in configure.ac might set extrasub.
9016# FIXME: do we really want to maintain this feature?
9017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9018ac_sed_extra="$ac_vpsub
b7026657
AC
9019$extrasub
9020_ACEOF
81ecdfbb 9021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
9022:t
9023/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
9024s|@configure_input@|$ac_sed_conf_input|;t t
9025s&@top_builddir@&$ac_top_builddir_sub&;t t
9026s&@top_build_prefix@&$ac_top_build_prefix&;t t
9027s&@srcdir@&$ac_srcdir&;t t
9028s&@abs_srcdir@&$ac_abs_srcdir&;t t
9029s&@top_srcdir@&$ac_top_srcdir&;t t
9030s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9031s&@builddir@&$ac_builddir&;t t
9032s&@abs_builddir@&$ac_abs_builddir&;t t
9033s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9034s&@INSTALL@&$ac_INSTALL&;t t
9035$ac_datarootdir_hack
9036"
9037eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9038 || as_fn_error "could not create $ac_file" "$LINENO" 5
9039
9040test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9041 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9042 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9044which seems to be undefined. Please make sure it is defined." >&5
9045$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9046which seems to be undefined. Please make sure it is defined." >&2;}
9047
9048 rm -f "$tmp/stdin"
b7026657 9049 case $ac_file in
81ecdfbb
RW
9050 -) cat "$tmp/out" && rm -f "$tmp/out";;
9051 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9052 esac \
9053 || as_fn_error "could not create $ac_file" "$LINENO" 5
9054 ;;
9055 :H)
9056 #
9057 # CONFIG_HEADER
9058 #
b7026657 9059 if test x"$ac_file" != x-; then
81ecdfbb
RW
9060 {
9061 $as_echo "/* $configure_input */" \
9062 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9063 } >"$tmp/config.h" \
9064 || as_fn_error "could not create $ac_file" "$LINENO" 5
9065 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9067$as_echo "$as_me: $ac_file is unchanged" >&6;}
b7026657 9068 else
81ecdfbb
RW
9069 rm -f "$ac_file"
9070 mv "$tmp/config.h" "$ac_file" \
9071 || as_fn_error "could not create $ac_file" "$LINENO" 5
c906108c 9072 fi
b7026657 9073 else
81ecdfbb
RW
9074 $as_echo "/* $configure_input */" \
9075 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9076 || as_fn_error "could not create -" "$LINENO" 5
c906108c 9077 fi
81ecdfbb 9078 ;;
b7026657 9079
81ecdfbb
RW
9080 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9081$as_echo "$as_me: executing $ac_file commands" >&6;}
9082 ;;
9083 esac
b7026657 9084
b7026657 9085
81ecdfbb 9086 case $ac_file$ac_mode in
68a3e151 9087 "build-config.h":C) cp config.h build-config.h ;;
81ecdfbb 9088 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
c906108c 9089
b7026657 9090 esac
81ecdfbb 9091done # for ac_tag
c906108c 9092
b7026657 9093
81ecdfbb 9094as_fn_exit 0
b7026657 9095_ACEOF
b7026657
AC
9096ac_clean_files=$ac_clean_files_save
9097
81ecdfbb
RW
9098test $ac_write_fail = 0 ||
9099 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9100
b7026657
AC
9101
9102# configure is writing to config.log, and then calls config.status.
9103# config.status does its own redirection, appending to config.log.
9104# Unfortunately, on DOS this fails, as config.log is still kept open
9105# by configure, so config.status won't be able to write to it; its
9106# output is simply discarded. So we exec the FD to /dev/null,
9107# effectively closing config.log, so it can be properly (re)opened and
9108# appended to by config.status. When coming back to configure, we
9109# need to make the FD available again.
9110if test "$no_create" != yes; then
9111 ac_cs_success=:
9112 ac_config_status_args=
9113 test "$silent" = yes &&
9114 ac_config_status_args="$ac_config_status_args --quiet"
9115 exec 5>/dev/null
9116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9117 exec 5>>config.log
9118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9119 # would make configure fail if this is the last instruction.
81ecdfbb
RW
9120 $ac_cs_success || as_fn_exit $?
9121fi
9122if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9124$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 9125fi
c906108c 9126