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