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