3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-sim-bswap Use Host specific BSWAP instruction."
17 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
19 --enable-sim-debug=opts Enable debugging flags"
21 --enable-sim-trace=opts Enable tracing flags"
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
27 cache_file
=.
/config.cache
36 program_transform_name
=s
,x
,x
,
44 bindir
='${exec_prefix}/bin'
45 sbindir
='${exec_prefix}/sbin'
46 libexecdir
='${exec_prefix}/libexec'
47 datadir
='${prefix}/share'
48 sysconfdir
='${prefix}/etc'
49 sharedstatedir
='${prefix}/com'
50 localstatedir
='${prefix}/var'
51 libdir
='${exec_prefix}/lib'
52 includedir
='${prefix}/include'
53 oldincludedir
='/usr/include'
54 infodir
='${prefix}/info'
55 mandir
='${prefix}/man'
57 # Initialize some other variables.
60 # Maximum number of lines to put in a shell here document.
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
75 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 # Accept the important Cygnus configure options, so we can diagnose typos.
83 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
85 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
86 bindir
="$ac_optarg" ;;
88 -build |
--build |
--buil |
--bui |
--bu)
90 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
93 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
94 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
96 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
97 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
98 cache_file
="$ac_optarg" ;;
100 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
102 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
104 datadir
="$ac_optarg" ;;
106 -disable-* |
--disable-*)
107 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
115 -enable-* |
--enable-*)
116 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
128 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
129 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
130 |
--exec |
--exe |
--ex)
131 ac_prev
=exec_prefix
;;
132 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
133 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
134 |
--exec=* |
--exe=* |
--ex=*)
135 exec_prefix
="$ac_optarg" ;;
137 -gas |
--gas |
--ga |
--g)
138 # Obsolete; use --with-gas.
141 -help |
--help |
--hel |
--he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
196 -host |
--host |
--hos |
--ho)
198 -host=* |
--host=* |
--hos=* |
--ho=*)
201 -includedir |
--includedir |
--includedi |
--included |
--include \
202 |
--includ |
--inclu |
--incl |
--inc)
203 ac_prev
=includedir
;;
204 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
205 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
206 includedir
="$ac_optarg" ;;
208 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
210 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
211 infodir
="$ac_optarg" ;;
213 -libdir |
--libdir |
--libdi |
--libd)
215 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
216 libdir
="$ac_optarg" ;;
218 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
219 |
--libexe |
--libex |
--libe)
220 ac_prev
=libexecdir
;;
221 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
222 |
--libexe=* |
--libex=* |
--libe=*)
223 libexecdir
="$ac_optarg" ;;
225 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
226 |
--localstate |
--localstat |
--localsta |
--localst \
227 |
--locals |
--local |
--loca |
--loc |
--lo)
228 ac_prev
=localstatedir
;;
229 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
230 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
231 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
232 localstatedir
="$ac_optarg" ;;
234 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
236 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
237 mandir
="$ac_optarg" ;;
240 # Obsolete; use --without-fp.
243 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
247 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
248 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
251 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
252 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
253 |
--oldin |
--oldi |
--old |
--ol |
--o)
254 ac_prev
=oldincludedir
;;
255 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
256 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
257 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
258 oldincludedir
="$ac_optarg" ;;
260 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
262 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
263 prefix
="$ac_optarg" ;;
265 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
266 |
--program-pre |
--program-pr |
--program-p)
267 ac_prev
=program_prefix
;;
268 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
269 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
270 program_prefix
="$ac_optarg" ;;
272 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
273 |
--program-suf |
--program-su |
--program-s)
274 ac_prev
=program_suffix
;;
275 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
276 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
277 program_suffix
="$ac_optarg" ;;
279 -program-transform-name |
--program-transform-name \
280 |
--program-transform-nam |
--program-transform-na \
281 |
--program-transform-n |
--program-transform- \
282 |
--program-transform |
--program-transfor \
283 |
--program-transfo |
--program-transf \
284 |
--program-trans |
--program-tran \
285 |
--progr-tra |
--program-tr |
--program-t)
286 ac_prev
=program_transform_name
;;
287 -program-transform-name=* |
--program-transform-name=* \
288 |
--program-transform-nam=* |
--program-transform-na=* \
289 |
--program-transform-n=* |
--program-transform-=* \
290 |
--program-transform=* |
--program-transfor=* \
291 |
--program-transfo=* |
--program-transf=* \
292 |
--program-trans=* |
--program-tran=* \
293 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
294 program_transform_name
="$ac_optarg" ;;
296 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
297 |
-silent |
--silent |
--silen |
--sile |
--sil)
300 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
302 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
304 sbindir
="$ac_optarg" ;;
306 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
307 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
308 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
310 ac_prev
=sharedstatedir
;;
311 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
312 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
313 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
315 sharedstatedir
="$ac_optarg" ;;
317 -site |
--site |
--sit)
319 -site=* |
--site=* |
--sit=*)
322 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
324 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
325 srcdir
="$ac_optarg" ;;
327 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
328 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
329 ac_prev
=sysconfdir
;;
330 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
331 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
332 sysconfdir
="$ac_optarg" ;;
334 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
336 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
337 target
="$ac_optarg" ;;
339 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
342 -version |
--version |
--versio |
--versi |
--vers)
343 echo "configure generated by autoconf version 2.12"
347 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352 ac_package
=`echo $ac_package| sed 's/-/_/g'`
357 eval "with_${ac_package}='$ac_optarg'" ;;
359 -without-* |
--without-*)
360 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package
=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
369 # Obsolete; use --with-x.
372 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
373 |
--x-incl |
--x-inc |
--x-in |
--x-i)
374 ac_prev
=x_includes
;;
375 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
376 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
377 x_includes
="$ac_optarg" ;;
379 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
380 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
381 ac_prev
=x_libraries
;;
382 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
383 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
384 x_libraries
="$ac_optarg" ;;
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
393 if test "x$nonopt" != xNONE
; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408 # File descriptor usage:
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
434 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
435 |
--no-cr |
--no-c) ;;
436 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
437 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
438 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
445 # Only set these to C if already set. These must not be set unconditionally
446 # because not all systems understand e.g. LANG=C (notably SCO).
447 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448 # Non-C LC_CTYPE values break the ctype check.
449 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
450 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
451 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
452 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
455 rm -rf conftest
* confdefs.h
456 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 # A filename unique to this package, relative to the directory that
460 # configure is in, which we can look for to find out if srcdir is correct.
461 ac_unique_file
=Makefile.
in
463 # Find the source files, if location was not specified.
464 if test -z "$srcdir"; then
465 ac_srcdir_defaulted
=yes
466 # Try the directory containing this script, then its parent.
468 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
471 if test ! -r $srcdir/$ac_unique_file; then
475 ac_srcdir_defaulted
=no
477 if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486 # Prefer explicitly selected file to automatically selected ones.
487 if test -z "$CONFIG_SITE"; then
488 if test "x$prefix" != xNONE
; then
489 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
491 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494 for ac_site_file
in $CONFIG_SITE; do
495 if test -r "$ac_site_file"; then
496 echo "loading site script $ac_site_file"
501 if test -r "$cache_file"; then
502 echo "loading cache $cache_file"
505 echo "creating cache $cache_file"
510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511 ac_cpp
='$CPP $CPPFLAGS'
512 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514 cross_compiling
=$ac_cv_prog_cc_cross
516 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
517 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
525 ac_n
= ac_c
='\c' ac_t
=
531 # autoconf.info says this should be called right after AC_INIT.
535 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
536 if test -f $ac_dir/install-sh
; then
538 ac_install_sh
="$ac_aux_dir/install-sh -c"
540 elif test -f $ac_dir/install.sh
; then
542 ac_install_sh
="$ac_aux_dir/install.sh -c"
546 if test -z "$ac_aux_dir"; then
547 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
549 ac_config_guess
=$ac_aux_dir/config.guess
550 ac_config_sub
=$ac_aux_dir/config.sub
551 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
554 # Do some error checking and defaulting for the host and target type.
556 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
559 # 1. You are not allowed to specify --host, --target, and nonopt at the
561 # 2. Host defaults to nonopt.
562 # 3. If nonopt is not specified, then host defaults to the current host,
563 # as determined by config.guess.
564 # 4. Target and build default to nonopt.
565 # 5. If nonopt is not specified, then target and build default to host.
567 # The aliases save the names the user supplied, while $host etc.
568 # will get canonicalized.
569 case $host---$target---$nonopt in
570 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
571 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
575 # Make sure we can run config.sub.
576 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
577 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
580 echo $ac_n "checking host system type""... $ac_c" 1>&6
581 echo "configure:582: checking host system type" >&5
584 case "$host_alias" in
588 if host_alias
=`$ac_config_guess`; then :
589 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
591 *) host_alias
=$nonopt ;;
595 host=`$ac_config_sub $host_alias`
596 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
597 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
598 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
599 echo "$ac_t""$host" 1>&6
601 echo $ac_n "checking target system type""... $ac_c" 1>&6
602 echo "configure:603: checking target system type" >&5
605 case "$target_alias" in
608 NONE
) target_alias
=$host_alias ;;
609 *) target_alias
=$nonopt ;;
613 target
=`$ac_config_sub $target_alias`
614 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
615 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
616 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
617 echo "$ac_t""$target" 1>&6
619 echo $ac_n "checking build system type""... $ac_c" 1>&6
620 echo "configure:621: checking build system type" >&5
623 case "$build_alias" in
626 NONE
) build_alias
=$host_alias ;;
627 *) build_alias
=$nonopt ;;
631 build
=`$ac_config_sub $build_alias`
632 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
635 echo "$ac_t""$build" 1>&6
637 test "$host_alias" != "$target_alias" &&
638 test "$program_prefix$program_suffix$program_transform_name" = \
640 program_prefix
=${target_alias}-
642 if test "$program_transform_name" = s
,x
,x
,; then
643 program_transform_name
=
645 # Double any \ or $. echo might interpret backslashes.
646 cat <<\EOF_SED
> conftestsed
647 s
,\\,\\\\,g
; s
,\$
,$$
,g
649 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
652 test "$program_prefix" != NONE
&&
653 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
654 # Use a double $ so make ignores it.
655 test "$program_suffix" != NONE
&&
656 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
658 # sed with no file args requires a program.
659 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
661 # Extract the first word of "gcc", so it can be a program name with args.
662 set dummy gcc
; ac_word
=$2
663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
664 echo "configure:665: checking for $ac_word" >&5
665 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
668 if test -n "$CC"; then
669 ac_cv_prog_CC
="$CC" # Let the user override the test.
671 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
672 for ac_dir
in $PATH; do
673 test -z "$ac_dir" && ac_dir
=.
674 if test -f $ac_dir/$ac_word; then
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
689 if test -z "$CC"; then
690 # Extract the first word of "cc", so it can be a program name with args.
691 set dummy cc
; ac_word
=$2
692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693 echo "configure:694: checking for $ac_word" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 if test -n "$CC"; then
698 ac_cv_prog_CC
="$CC" # Let the user override the test.
700 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
702 for ac_dir
in $PATH; do
703 test -z "$ac_dir" && ac_dir
=.
704 if test -f $ac_dir/$ac_word; then
705 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
714 if test $ac_prog_rejected = yes; then
715 # We found a bogon in the path, so make sure we never use it.
716 set dummy
$ac_cv_prog_CC
718 if test $# -gt 0; then
719 # We chose a different compiler from the bogus one.
720 # However, it has the same basename, so the bogon will be chosen
721 # first if we set CC to just the basename; use the full file name.
723 set dummy
"$ac_dir/$ac_word" "$@"
731 if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
734 echo "$ac_t""no" 1>&6
737 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
741 echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
745 ac_cpp
='$CPP $CPPFLAGS'
746 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
747 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
748 cross_compiling
=$ac_cv_prog_cc_cross
750 cat > conftest.
$ac_ext <<EOF
751 #line 752 "configure"
752 #include "confdefs.h"
755 if { (eval echo configure
:756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
756 ac_cv_prog_cc_works
=yes
757 # If we can't run a trivial program, we are probably using a cross compiler.
758 if (.
/conftest
; exit) 2>/dev
/null
; then
759 ac_cv_prog_cc_cross
=no
761 ac_cv_prog_cc_cross
=yes
764 echo "configure: failed program was:" >&5
765 cat conftest.
$ac_ext >&5
766 ac_cv_prog_cc_works
=no
770 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
771 if test $ac_cv_prog_cc_works = no
; then
772 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
774 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
775 echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
776 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
777 cross_compiling
=$ac_cv_prog_cc_cross
779 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
780 echo "configure:781: checking whether we are using GNU C" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 cat > conftest.c
<<EOF
789 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
796 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
798 if test $ac_cv_prog_gcc = yes; then
800 ac_test_CFLAGS
="${CFLAGS+set}"
801 ac_save_CFLAGS
="$CFLAGS"
803 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
804 echo "configure:805: checking whether ${CC-cc} accepts -g" >&5
805 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 echo 'void f(){}' > conftest.c
809 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
818 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
819 if test "$ac_test_CFLAGS" = set; then
820 CFLAGS
="$ac_save_CFLAGS"
821 elif test $ac_cv_prog_cc_g = yes; then
828 test "${CFLAGS+set}" = set || CFLAGS
="-g"
831 # Find a good install program. We prefer a C program (faster),
832 # so one script is as good as another. But avoid the broken or
833 # incompatible versions:
834 # SysV /etc/install, /usr/sbin/install
835 # SunOS /usr/etc/install
838 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
839 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
840 # ./install, which can be erroneously created by make from ./install.sh.
841 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
842 echo "configure:843: checking for a BSD compatible install" >&5
843 if test -z "$INSTALL"; then
844 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
847 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
848 for ac_dir
in $PATH; do
849 # Account for people who put trailing slashes in PATH elements.
851 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
853 # OSF1 and SCO ODT 3.0 have their own names for install.
854 for ac_prog
in ginstall installbsd scoinst
install; do
855 if test -f $ac_dir/$ac_prog; then
856 if test $ac_prog = install &&
857 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
858 # AIX install. It has an incompatible calling convention.
859 # OSF/1 installbsd also uses dspmsg, but is usable.
862 ac_cv_path_install
="$ac_dir/$ac_prog -c"
873 if test "${ac_cv_path_install+set}" = set; then
874 INSTALL
="$ac_cv_path_install"
876 # As a last resort, use the slow shell script. We don't cache a
877 # path for INSTALL within a source directory, because that will
878 # break other packages using the cache if that directory is
879 # removed, or if the path is relative.
880 INSTALL
="$ac_install_sh"
883 echo "$ac_t""$INSTALL" 1>&6
885 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
886 # It thinks the first close brace ends the variable substitution.
887 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
889 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
892 # Put a plausible default for CC_FOR_BUILD in Makefile.
894 if test "x$cross_compiling" = "xno"; then
905 # Extract the first word of "ranlib", so it can be a program name with args.
906 set dummy ranlib
; ac_word
=$2
907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
908 echo "configure:909: checking for $ac_word" >&5
909 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
912 if test -n "$RANLIB"; then
913 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
915 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
916 for ac_dir
in $PATH; do
917 test -z "$ac_dir" && ac_dir
=.
918 if test -f $ac_dir/$ac_word; then
919 ac_cv_prog_RANLIB
="ranlib"
924 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
927 RANLIB
="$ac_cv_prog_RANLIB"
928 if test -n "$RANLIB"; then
929 echo "$ac_t""$RANLIB" 1>&6
931 echo "$ac_t""no" 1>&6
935 .
${srcdir}/..
/..
/bfd
/configure.
host
939 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
940 if test "${enable_sim_bswap+set}" = set; then
941 enableval
="$enable_sim_bswap"
942 case "${enableval}" in
943 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP";;
944 no
) sim_bswap
="-DWITH_BSWAP=0";;
945 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
947 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
948 echo "Setting bswap flags = $sim_bswap" 6>&1
956 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
957 if test "${enable_sim_cflags+set}" = set; then
958 enableval
="$enable_sim_cflags"
959 case "${enableval}" in
960 yes) sim_cflags
="-O2";;
961 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
963 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
965 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
966 echo "Setting sim cflags = $sim_cflags" 6>&1
974 # Check whether --enable-sim-debug or --disable-sim-debug was given.
975 if test "${enable_sim_debug+set}" = set; then
976 enableval
="$enable_sim_debug"
977 case "${enableval}" in
978 yes) sim_debug
="-DDEBUG=7";;
979 no
) sim_debug
="-DDEBUG=0";;
980 *) sim_debug
="-DDEBUG='(${enableval})'";;
982 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
983 echo "Setting sim debug = $sim_debug" 6>&1
991 # Check whether --enable-sim-trace or --disable-sim-trace was given.
992 if test "${enable_sim_trace+set}" = set; then
993 enableval
="$enable_sim_trace"
994 case "${enableval}" in
995 yes) sim_trace
="-DTRACE=1";;
996 no
) sim_trace
="-DTRACE=0";;
997 *) sim_trace
="-DTRACE='(${enableval})'";;
999 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1000 echo "Setting sim trace = $sim_trace" 6>&1
1011 sim_link_links
=tconfig.h
1012 if test -f ${srcdir}/tconfig.
in
1014 sim_link_files
=tconfig.
in
1016 sim_link_files
=..
/common
/tconfig.
in
1019 # targ-vals.def points to the libc macro description file.
1021 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
1023 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
1024 sim_link_links
="${sim_link_links} targ-vals.def"
1028 # Ensure a reasonable default simulator is constructed:
1030 # start-sanitize-r5900
1031 mips64vr59
*-*-*) SIMCONF
="-mips3 --warnings -mcpu=r5900";;
1032 # end-sanitize-r5900
1033 mips64
*-*-*) SIMCONF
="-mips0 --warnings";;
1034 mips16
*-*-*) SIMCONF
="-mips0 --warnings";;
1035 mips
*-*-*) SIMCONF
="-mips2 --warnings";;
1036 *) SIMCONF
="-mips0 --warnings";;
1040 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1041 echo "configure:1042: checking how to run the C preprocessor" >&5
1042 # On Suns, sometimes $CPP names a directory.
1043 if test -n "$CPP" && test -d "$CPP"; then
1046 if test -z "$CPP"; then
1047 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 # This must be in double quotes, not single quotes, because CPP may get
1051 # substituted into the Makefile and "${CC-cc}" will confuse make.
1053 # On the NeXT, cc -E runs the code through the compiler's parser,
1054 # not just through cpp.
1055 cat > conftest.
$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1061 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1062 { (eval echo configure
:1063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1063 ac_err
=`grep -v '^ *+' conftest.out`
1064 if test -z "$ac_err"; then
1068 echo "configure: failed program was:" >&5
1069 cat conftest.
$ac_ext >&5
1071 CPP
="${CC-cc} -E -traditional-cpp"
1072 cat > conftest.
$ac_ext <<EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1078 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1079 { (eval echo configure
:1080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1080 ac_err
=`grep -v '^ *+' conftest.out`
1081 if test -z "$ac_err"; then
1085 echo "configure: failed program was:" >&5
1086 cat conftest.
$ac_ext >&5
1093 ac_cv_prog_CPP
="$CPP"
1095 CPP
="$ac_cv_prog_CPP"
1097 ac_cv_prog_CPP
="$CPP"
1099 echo "$ac_t""$CPP" 1>&6
1101 for ac_hdr
in string.h
strings.h stdlib.h
1103 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1105 echo "configure:1106: checking for $ac_hdr" >&5
1106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 cat > conftest.
$ac_ext <<EOF
1110 #line 1111 "configure"
1111 #include "confdefs.h"
1114 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1115 { (eval echo configure
:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1116 ac_err
=`grep -v '^ *+' conftest.out`
1117 if test -z "$ac_err"; then
1119 eval "ac_cv_header_$ac_safe=yes"
1122 echo "configure: failed program was:" >&5
1123 cat conftest.
$ac_ext >&5
1125 eval "ac_cv_header_$ac_safe=no"
1129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1130 echo "$ac_t""yes" 1>&6
1131 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1132 cat >> confdefs.h
<<EOF
1133 #define $ac_tr_hdr 1
1137 echo "$ac_t""no" 1>&6
1141 echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
1142 echo "configure:1143: checking for fabs in -lm" >&5
1143 ac_lib_var
=`echo m'_'fabs | sed 'y%./+-%__p_%'`
1144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 ac_save_LIBS
="$LIBS"
1149 cat > conftest.
$ac_ext <<EOF
1150 #line 1151 "configure"
1151 #include "confdefs.h"
1152 /* Override any gcc2 internal prototype to avoid an error. */
1153 /* We use char because int might match the return type of a gcc2
1154 builtin and then its argument prototype would still apply. */
1161 if { (eval echo configure
:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1163 eval "ac_cv_lib_$ac_lib_var=yes"
1165 echo "configure: failed program was:" >&5
1166 cat conftest.
$ac_ext >&5
1168 eval "ac_cv_lib_$ac_lib_var=no"
1171 LIBS
="$ac_save_LIBS"
1174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1175 echo "$ac_t""yes" 1>&6
1176 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1177 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1178 cat >> confdefs.h
<<EOF
1179 #define $ac_tr_lib 1
1185 echo "$ac_t""no" 1>&6
1188 for ac_func
in aint anint sqrt
1190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1191 echo "configure:1192: checking for $ac_func" >&5
1192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 cat > conftest.
$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1198 /* System header to define __stub macros and hopefully few prototypes,
1199 which can conflict with char $ac_func(); below. */
1201 /* Override any gcc2 internal prototype to avoid an error. */
1202 /* We use char because int might match the return type of a gcc2
1203 builtin and then its argument prototype would still apply. */
1208 /* The GNU C library defines this for functions which it implements
1209 to always fail with ENOSYS. Some functions are actually named
1210 something starting with __ and the normal name is an alias. */
1211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1219 if { (eval echo configure
:1220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1221 eval "ac_cv_func_$ac_func=yes"
1223 echo "configure: failed program was:" >&5
1224 cat conftest.
$ac_ext >&5
1226 eval "ac_cv_func_$ac_func=no"
1231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1232 echo "$ac_t""yes" 1>&6
1233 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1234 cat >> confdefs.h
<<EOF
1235 #define $ac_tr_func 1
1239 echo "$ac_t""no" 1>&6
1251 cat > confcache
<<\EOF
1252 # This file is a shell script that caches the results of configure
1253 # tests run on this system so they can be shared between configure
1254 # scripts and configure runs. It is not useful on other systems.
1255 # If it contains results you don't want to keep, you may remove or edit it.
1257 # By default, configure uses ./config.cache as the cache file,
1258 # creating it if it does not exist already. You can give configure
1259 # the --cache-file=FILE option to use a different cache file; that is
1260 # what configure does when it calls configure scripts in
1261 # subdirectories, so they share the cache.
1262 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1263 # config.status only pays attention to the cache file if you give it the
1264 # --recheck option to rerun configure.
1267 # The following way of writing the cache mishandles newlines in values,
1268 # but we know of no workaround that is simple, portable, and efficient.
1269 # So, don't put newlines in cache variables' values.
1270 # Ultrix sh set writes to stderr and can't be redirected directly,
1271 # and sets the high bit in the cache file unless we assign to the vars.
1273 case `(ac_space=' '; set) 2>&1` in
1275 # `set' does not quote correctly, so add quotes (double-quote substitution
1276 # turns \\\\ into \\, and sed turns \\ into \).
1278 -e "s/'/'\\\\''/g" \
1279 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1282 # `set' quotes correctly as required by POSIX, so do not add quotes.
1283 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1286 if cmp -s $cache_file confcache
; then
1289 if test -w $cache_file; then
1290 echo "updating cache $cache_file"
1291 cat confcache
> $cache_file
1293 echo "not updating unwritable cache $cache_file"
1298 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1300 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1301 # Let make expand exec_prefix.
1302 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1304 # Any assignment to VPATH causes Sun make to only execute
1305 # the first set of double-colon rules, so remove it if not needed.
1306 # If there is a colon in the path, we need to keep it.
1307 if test "x$srcdir" = x.
; then
1308 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1311 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1313 DEFS
=-DHAVE_CONFIG_H
1315 # Without the "./", some shells look in PATH for config.status.
1316 : ${CONFIG_STATUS=./config.status}
1318 echo creating
$CONFIG_STATUS
1319 rm -f $CONFIG_STATUS
1320 cat > $CONFIG_STATUS <<EOF
1322 # Generated automatically by configure.
1323 # Run this file to recreate the current configuration.
1324 # This directory was configured as follows,
1325 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1327 # $0 $ac_configure_args
1329 # Compiler output produced by configure, useful for debugging
1330 # configure, is in ./config.log if it exists.
1332 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1335 case "\$ac_option" in
1336 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1337 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1338 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1339 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1340 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1342 -help | --help | --hel | --he | --h)
1343 echo "\$ac_cs_usage"; exit 0 ;;
1344 *) echo "\$ac_cs_usage"; exit 1 ;;
1348 ac_given_srcdir=$srcdir
1349 ac_given_INSTALL="$INSTALL"
1351 trap 'rm -fr `echo "Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1353 cat >> $CONFIG_STATUS <<EOF
1355 # Protect against being on the right side of a sed subst in config.status.
1356 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1357 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1360 s%@CFLAGS@%$CFLAGS%g
1361 s%@CPPFLAGS@%$CPPFLAGS%g
1362 s%@CXXFLAGS@%$CXXFLAGS%g
1364 s%@LDFLAGS@%$LDFLAGS%g
1366 s%@exec_prefix@%$exec_prefix%g
1367 s%@prefix@%$prefix%g
1368 s%@program_transform_name@%$program_transform_name%g
1369 s%@bindir@%$bindir%g
1370 s%@sbindir@%$sbindir%g
1371 s%@libexecdir@%$libexecdir%g
1372 s%@datadir@%$datadir%g
1373 s%@sysconfdir@%$sysconfdir%g
1374 s%@sharedstatedir@%$sharedstatedir%g
1375 s%@localstatedir@%$localstatedir%g
1376 s%@libdir@%$libdir%g
1377 s%@includedir@%$includedir%g
1378 s%@oldincludedir@%$oldincludedir%g
1379 s%@infodir@%$infodir%g
1380 s%@mandir@%$mandir%g
1382 s%@host_alias@%$host_alias%g
1383 s%@host_cpu@%$host_cpu%g
1384 s%@host_vendor@%$host_vendor%g
1385 s%@host_os@%$host_os%g
1386 s%@target@%$target%g
1387 s%@target_alias@%$target_alias%g
1388 s%@target_cpu@%$target_cpu%g
1389 s%@target_vendor@%$target_vendor%g
1390 s%@target_os@%$target_os%g
1392 s%@build_alias@%$build_alias%g
1393 s%@build_cpu@%$build_cpu%g
1394 s%@build_vendor@%$build_vendor%g
1395 s%@build_os@%$build_os%g
1397 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1398 s%@INSTALL_DATA@%$INSTALL_DATA%g
1399 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1400 s%@HDEFINES@%$HDEFINES%g
1402 s%@RANLIB@%$RANLIB%g
1403 s%@sim_bswap@%$sim_bswap%g
1404 s%@sim_cflags@%$sim_cflags%g
1405 s%@sim_debug@%$sim_debug%g
1406 s%@sim_trace@%$sim_trace%g
1407 s%@SIMCONF@%$SIMCONF%g
1409 s%@sim_endian@%$sim_endian%g
1410 s%@sim_hostendian@%$sim_hostendian%g
1411 s%@sim_inline@%$sim_inline%g
1412 s%@sim_warnings@%$sim_warnings%g
1417 cat >> $CONFIG_STATUS <<\EOF
1419 # Split the substitutions into bite-sized pieces for seds with
1420 # small command number limits, like on Digital OSF/1 and HP-UX.
1421 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1422 ac_file
=1 # Number of current file.
1423 ac_beg
=1 # First line for current file.
1424 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1427 while $ac_more_lines; do
1428 if test $ac_beg -gt 1; then
1429 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1431 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1433 if test ! -s conftest.s
$ac_file; then
1435 rm -f conftest.s
$ac_file
1437 if test -z "$ac_sed_cmds"; then
1438 ac_sed_cmds
="sed -f conftest.s$ac_file"
1440 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1442 ac_file
=`expr $ac_file + 1`
1444 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1447 if test -z "$ac_sed_cmds"; then
1452 cat >> $CONFIG_STATUS <<EOF
1454 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in"}
1456 cat >> $CONFIG_STATUS <<\EOF
1457 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1458 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1460 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1461 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1462 *) ac_file_in
="${ac_file}.in" ;;
1465 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1467 # Remove last slash and all that follows it. Not all systems have dirname.
1468 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1469 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1470 # The file is in a subdirectory.
1471 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1472 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1473 # A "../" for each directory in $ac_dir_suffix.
1474 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1476 ac_dir_suffix
= ac_dots
=
1479 case "$ac_given_srcdir" in
1481 if test -z "$ac_dots"; then top_srcdir
=.
1482 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1483 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1485 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1486 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1489 case "$ac_given_INSTALL" in
1490 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1491 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1494 echo creating
"$ac_file"
1496 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1498 *Makefile
*) ac_comsub
="1i\\
1499 # $configure_input" ;;
1503 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1505 s%@configure_input@%$configure_input%g
1506 s%@srcdir@%$srcdir%g
1507 s%@top_srcdir@%$top_srcdir%g
1508 s%@INSTALL@%$INSTALL%g
1509 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1513 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1514 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1516 # ac_d sets the value in "#define NAME VALUE" lines.
1517 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1518 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1521 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1522 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1523 ac_uB
='\([ ]\)%\1#\2define\3'
1526 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1527 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1528 ac_eB
='$%\1#\2define\3'
1532 if test "${CONFIG_HEADERS+set}" != set; then
1534 cat >> $CONFIG_STATUS <<EOF
1535 CONFIG_HEADERS="config.h:config.in"
1537 cat >> $CONFIG_STATUS <<\EOF
1539 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1540 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1542 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1543 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1544 *) ac_file_in
="${ac_file}.in" ;;
1547 echo creating
$ac_file
1549 rm -f conftest.frag conftest.
in conftest.out
1550 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1551 cat $ac_file_inputs > conftest.
in
1555 # Transform confdefs.h into a sed script conftest.vals that substitutes
1556 # the proper values into config.h.in to produce config.h. And first:
1557 # Protect against being on the right side of a sed subst in config.status.
1558 # Protect against being in an unquoted here document in config.status.
1560 cat > conftest.hdr
<<\EOF
1563 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1567 sed -n -f conftest.hdr confdefs.h > conftest.vals
1570 # This sed command replaces #undef with comments. This is necessary, for
1571 # example, in the case of _POSIX_SOURCE, which is predefined and required
1572 # on some systems where configure will not decide to define it.
1573 cat >> conftest.vals <<\EOF
1574 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1577 # Break up conftest.vals because some shells have a limit on
1578 # the size of here documents, and old seds have small limits too.
1583 ac_lines=`grep -c . conftest.vals
`
1584 # grep -c gives empty output for an empty file on some AIX systems.
1585 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1586 # Write a limited-size here document to conftest.frag.
1587 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1588 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1590 sed -f conftest.frag conftest.in > conftest.out
1592 mv conftest.out conftest.in
1594 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1596 mv conftest.tail conftest.vals
1600 cat >> $CONFIG_STATUS <<\EOF
1601 rm -f conftest.frag conftest.h
1602 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1603 cat conftest.in >> conftest.h
1605 if cmp -s $ac_file conftest.h 2>/dev/null; then
1606 echo "$ac_file is unchanged"
1609 # Remove last slash and all that follows it. Not all systems have dirname.
1610 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1611 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1612 # The file is in a subdirectory.
1613 test ! -d "$ac_dir" && mkdir "$ac_dir"
1616 mv conftest.h $ac_file
1622 cat >> $CONFIG_STATUS <<EOF
1623 ac_sources="$sim_link_files"
1624 ac_dests="$sim_link_links"
1627 cat >> $CONFIG_STATUS <<\EOF
1628 srcdir=$ac_given_srcdir
1629 while test -n "$ac_sources"; do
1630 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1631 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1633 echo "linking $srcdir/$ac_source to $ac_dest"
1635 if test ! -r $srcdir/$ac_source; then
1636 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1640 # Make relative symlinks.
1641 # Remove last slash and all that follows it. Not all systems have dirname.
1642 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
1643 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1644 # The dest file is in a subdirectory.
1645 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1646 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
1647 # A "../" for each directory in $ac_dest_dir_suffix.
1648 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
1650 ac_dest_dir_suffix= ac_dots=
1654 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1655 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1658 # Make a symlink if possible; otherwise try a hard link.
1659 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1660 ln $srcdir/$ac_source $ac_dest; then :
1662 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1666 cat >> $CONFIG_STATUS <<EOF
1669 cat >> $CONFIG_STATUS <<\EOF
1670 case "x$CONFIG_FILES" in xMakefile*)
1671 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
1672 rm -f Makesim1.tmp Makesim2.tmp Makefile
1673 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
1674 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
1675 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
1676 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
1677 <Makefile.sim >Makefile
1678 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
1681 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
1685 chmod +x $CONFIG_STATUS
1686 rm -fr confdefs* $ac_clean_files
1687 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1