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