78 # Guess values for system-dependent variables and create Makefiles.
79 # Generated automatically using autoconf version 2.12.1
80 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
82 # This configure script is free software; the Free Software Foundation
83 # gives unlimited permission to copy, distribute and modify it.
87 ac_default_prefix
=/usr
/local
88 # Any additions from configure.in:
90 --enable-maintainer-mode Enable developer functionality."
92 --enable-sim-bswap Use Host specific BSWAP instruction."
94 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
96 --enable-sim-debug=opts Enable debugging flags"
98 --enable-sim-stdio Specify whether to use stdio for console input/output."
100 --enable-sim-trace=opts Enable tracing flags"
102 --enable-sim-profile=opts Enable profiling flags"
104 --enable-sim-inline=inlines Specify which functions should be inlined."
106 --enable-sim-endian=endian Specify target byte endian orientation."
108 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
110 --enable-sim-hostendian=end Specify host byte endian orientation."
112 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings"
114 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
116 --enable-sim-bitsize=n Specify target bitsize (32 or 64)."
118 # Initialize some variables set by options.
119 # The variables have the same names as the options, with
120 # dashes changed to underlines.
122 cache_file
=.
/config.cache
131 program_transform_name
=s
,x
,x
,
139 bindir
='${exec_prefix}/bin'
140 sbindir
='${exec_prefix}/sbin'
141 libexecdir
='${exec_prefix}/libexec'
142 datadir
='${prefix}/share'
143 sysconfdir
='${prefix}/etc'
144 sharedstatedir
='${prefix}/com'
145 localstatedir
='${prefix}/var'
146 libdir
='${exec_prefix}/lib'
147 includedir
='${prefix}/include'
148 oldincludedir
='/usr/include'
149 infodir
='${prefix}/info'
150 mandir
='${prefix}/man'
152 # Initialize some other variables.
155 SHELL
=${CONFIG_SHELL-/bin/sh}
156 # Maximum number of lines to put in a shell here document.
163 # If the previous option needs an argument, assign it.
164 if test -n "$ac_prev"; then
165 eval "$ac_prev=\$ac_option"
171 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
175 # Accept the important Cygnus configure options, so we can diagnose typos.
179 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
181 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
182 bindir
="$ac_optarg" ;;
184 -build |
--build |
--buil |
--bui |
--bu)
186 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
187 build
="$ac_optarg" ;;
189 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
190 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
191 ac_prev
=cache_file
;;
192 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
193 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
194 cache_file
="$ac_optarg" ;;
196 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
198 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
200 datadir
="$ac_optarg" ;;
202 -disable-* |
--disable-*)
203 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
204 # Reject names that are not valid shell variable names.
205 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
206 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
208 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
209 eval "enable_${ac_feature}=no" ;;
211 -enable-* |
--enable-*)
212 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
213 # Reject names that are not valid shell variable names.
214 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
215 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
217 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
222 eval "enable_${ac_feature}='$ac_optarg'" ;;
224 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
225 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
226 |
--exec |
--exe |
--ex)
227 ac_prev
=exec_prefix
;;
228 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
229 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
230 |
--exec=* |
--exe=* |
--ex=*)
231 exec_prefix
="$ac_optarg" ;;
233 -gas |
--gas |
--ga |
--g)
234 # Obsolete; use --with-gas.
237 -help |
--help |
--hel |
--he)
238 # Omit some internal or obsolete options to make the list less imposing.
239 # This message is too long to be a string in the A/UX 3.1 sh.
241 Usage: configure [options] [host]
242 Options: [defaults in brackets after descriptions]
244 --cache-file=FILE cache test results in FILE
245 --help print this message
246 --no-create do not create output files
247 --quiet, --silent do not print \`checking...' messages
248 --version print the version of autoconf that created configure
249 Directory and file names:
250 --prefix=PREFIX install architecture-independent files in PREFIX
252 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
254 --bindir=DIR user executables in DIR [EPREFIX/bin]
255 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
256 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
257 --datadir=DIR read-only architecture-independent data in DIR
259 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
260 --sharedstatedir=DIR modifiable architecture-independent data in DIR
262 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
263 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
264 --includedir=DIR C header files in DIR [PREFIX/include]
265 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
266 --infodir=DIR info documentation in DIR [PREFIX/info]
267 --mandir=DIR man documentation in DIR [PREFIX/man]
268 --srcdir=DIR find the sources in DIR [configure dir or ..]
269 --program-prefix=PREFIX prepend PREFIX to installed program names
270 --program-suffix=SUFFIX append SUFFIX to installed program names
271 --program-transform-name=PROGRAM
272 run sed PROGRAM on installed program names
276 --build=BUILD configure for building on BUILD [BUILD=HOST]
277 --host=HOST configure for HOST [guessed]
278 --target=TARGET configure for TARGET [TARGET=HOST]
279 Features and packages:
280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
282 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
283 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
284 --x-includes=DIR X include files are in DIR
285 --x-libraries=DIR X library files are in DIR
287 if test -n "$ac_help"; then
288 echo "--enable and --with options recognized:$ac_help"
292 -host |
--host |
--hos |
--ho)
294 -host=* |
--host=* |
--hos=* |
--ho=*)
297 -includedir |
--includedir |
--includedi |
--included |
--include \
298 |
--includ |
--inclu |
--incl |
--inc)
299 ac_prev
=includedir
;;
300 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
301 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
302 includedir
="$ac_optarg" ;;
304 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
306 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
307 infodir
="$ac_optarg" ;;
309 -libdir |
--libdir |
--libdi |
--libd)
311 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
312 libdir
="$ac_optarg" ;;
314 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
315 |
--libexe |
--libex |
--libe)
316 ac_prev
=libexecdir
;;
317 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
318 |
--libexe=* |
--libex=* |
--libe=*)
319 libexecdir
="$ac_optarg" ;;
321 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
322 |
--localstate |
--localstat |
--localsta |
--localst \
323 |
--locals |
--local |
--loca |
--loc |
--lo)
324 ac_prev
=localstatedir
;;
325 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
326 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
327 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
328 localstatedir
="$ac_optarg" ;;
330 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
332 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
333 mandir
="$ac_optarg" ;;
336 # Obsolete; use --without-fp.
339 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
343 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
344 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
347 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
348 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
349 |
--oldin |
--oldi |
--old |
--ol |
--o)
350 ac_prev
=oldincludedir
;;
351 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
352 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
353 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
354 oldincludedir
="$ac_optarg" ;;
356 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
358 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
359 prefix
="$ac_optarg" ;;
361 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
362 |
--program-pre |
--program-pr |
--program-p)
363 ac_prev
=program_prefix
;;
364 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
365 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
366 program_prefix
="$ac_optarg" ;;
368 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
369 |
--program-suf |
--program-su |
--program-s)
370 ac_prev
=program_suffix
;;
371 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
372 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
373 program_suffix
="$ac_optarg" ;;
375 -program-transform-name |
--program-transform-name \
376 |
--program-transform-nam |
--program-transform-na \
377 |
--program-transform-n |
--program-transform- \
378 |
--program-transform |
--program-transfor \
379 |
--program-transfo |
--program-transf \
380 |
--program-trans |
--program-tran \
381 |
--progr-tra |
--program-tr |
--program-t)
382 ac_prev
=program_transform_name
;;
383 -program-transform-name=* |
--program-transform-name=* \
384 |
--program-transform-nam=* |
--program-transform-na=* \
385 |
--program-transform-n=* |
--program-transform-=* \
386 |
--program-transform=* |
--program-transfor=* \
387 |
--program-transfo=* |
--program-transf=* \
388 |
--program-trans=* |
--program-tran=* \
389 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
390 program_transform_name
="$ac_optarg" ;;
392 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
393 |
-silent |
--silent |
--silen |
--sile |
--sil)
396 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
398 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
400 sbindir
="$ac_optarg" ;;
402 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
403 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
404 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
406 ac_prev
=sharedstatedir
;;
407 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
408 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
409 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
411 sharedstatedir
="$ac_optarg" ;;
413 -site |
--site |
--sit)
415 -site=* |
--site=* |
--sit=*)
418 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
420 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
421 srcdir
="$ac_optarg" ;;
423 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
424 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
425 ac_prev
=sysconfdir
;;
426 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
427 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
428 sysconfdir
="$ac_optarg" ;;
430 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
432 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
433 target
="$ac_optarg" ;;
435 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
438 -version |
--version |
--versio |
--versi |
--vers)
439 echo "configure generated by autoconf version 2.12.1"
443 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
444 # Reject names that are not valid shell variable names.
445 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
446 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
448 ac_package
=`echo $ac_package| sed 's/-/_/g'`
453 eval "with_${ac_package}='$ac_optarg'" ;;
455 -without-* |
--without-*)
456 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
457 # Reject names that are not valid shell variable names.
458 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
459 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
461 ac_package
=`echo $ac_package| sed 's/-/_/g'`
462 eval "with_${ac_package}=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
469 |
--x-incl |
--x-inc |
--x-in |
--x-i)
470 ac_prev
=x_includes
;;
471 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
472 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
473 x_includes
="$ac_optarg" ;;
475 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
476 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
477 ac_prev
=x_libraries
;;
478 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
479 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
480 x_libraries
="$ac_optarg" ;;
482 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
486 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
487 echo "configure: warning: $ac_option: invalid host type" 1>&2
489 if test "x$nonopt" != xNONE
; then
490 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
498 if test -n "$ac_prev"; then
499 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
502 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
504 # File descriptor usage:
507 # 2 errors and warnings
508 # 3 some systems may open it to /dev/tty
509 # 4 used on the Kubota Titan
510 # 6 checking for... messages and results
511 # 5 compiler messages saved in config.log
512 if test "$silent" = yes; then
520 This file contains any messages produced by compilers while
521 running configure, to aid debugging if configure makes a mistake.
524 # Strip out --no-create and --no-recursion so they do not pile up.
525 # Also quote any args containing shell metacharacters.
530 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
531 |
--no-cr |
--no-c) ;;
532 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
533 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
534 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
535 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
536 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
541 # Only set these to C if already set. These must not be set unconditionally
542 # because not all systems understand e.g. LANG=C (notably SCO).
543 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
544 # Non-C LC_CTYPE values break the ctype check.
545 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
546 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
547 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
548 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
550 # confdefs.h avoids OS command line length limits that DEFS can exceed.
551 rm -rf conftest
* confdefs.h
552 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
555 # A filename unique to this package, relative to the directory that
556 # configure is in, which we can look for to find out if srcdir is correct.
557 ac_unique_file
=Makefile.
in
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted
=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted
=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
577 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
580 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
582 # Prefer explicitly selected file to automatically selected ones.
583 if test -z "$CONFIG_SITE"; then
584 if test "x$prefix" != xNONE
; then
585 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
587 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
590 for ac_site_file
in $CONFIG_SITE; do
591 if test -r "$ac_site_file"; then
592 echo "loading site script $ac_site_file"
597 if test -r "$cache_file"; then
598 echo "loading cache $cache_file"
601 echo "creating cache $cache_file"
606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
607 ac_cpp
='$CPP $CPPFLAGS'
608 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
609 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
610 cross_compiling
=$ac_cv_prog_cc_cross
612 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
613 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
614 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
621 ac_n
= ac_c
='\c' ac_t
=
626 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
627 echo "configure:628: checking how to run the C preprocessor" >&5
628 # On Suns, sometimes $CPP names a directory.
629 if test -n "$CPP" && test -d "$CPP"; then
632 if test -z "$CPP"; then
633 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
636 # This must be in double quotes, not single quotes, because CPP may get
637 # substituted into the Makefile and "${CC-cc}" will confuse make.
639 # On the NeXT, cc -E runs the code through the compiler's parser,
640 # not just through cpp.
641 cat > conftest.
$ac_ext <<EOF
642 #line 643 "configure"
643 #include "confdefs.h"
647 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
648 { (eval echo configure
:649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
649 ac_err
=`grep -v '^ *+' conftest.out`
650 if test -z "$ac_err"; then
654 echo "configure: failed program was:" >&5
655 cat conftest.
$ac_ext >&5
657 CPP
="${CC-cc} -E -traditional-cpp"
658 cat > conftest.
$ac_ext <<EOF
659 #line 660 "configure"
660 #include "confdefs.h"
664 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
665 { (eval echo configure
:666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
666 ac_err
=`grep -v '^ *+' conftest.out`
667 if test -z "$ac_err"; then
671 echo "configure: failed program was:" >&5
672 cat conftest.
$ac_ext >&5
679 ac_cv_prog_CPP
="$CPP"
681 CPP
="$ac_cv_prog_CPP"
683 ac_cv_prog_CPP
="$CPP"
685 echo "$ac_t""$CPP" 1>&6
688 # autoconf.info says this should be called right after AC_INIT.
692 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
693 if test -f $ac_dir/install-sh
; then
695 ac_install_sh
="$ac_aux_dir/install-sh -c"
697 elif test -f $ac_dir/install.sh
; then
699 ac_install_sh
="$ac_aux_dir/install.sh -c"
703 if test -z "$ac_aux_dir"; then
704 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
706 ac_config_guess
=$ac_aux_dir/config.guess
707 ac_config_sub
=$ac_aux_dir/config.sub
708 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
711 # Do some error checking and defaulting for the host and target type.
713 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
716 # 1. You are not allowed to specify --host, --target, and nonopt at the
718 # 2. Host defaults to nonopt.
719 # 3. If nonopt is not specified, then host defaults to the current host,
720 # as determined by config.guess.
721 # 4. Target and build default to nonopt.
722 # 5. If nonopt is not specified, then target and build default to host.
724 # The aliases save the names the user supplied, while $host etc.
725 # will get canonicalized.
726 case $host---$target---$nonopt in
727 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
728 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
732 # Make sure we can run config.sub.
733 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
734 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
737 echo $ac_n "checking host system type""... $ac_c" 1>&6
738 echo "configure:739: checking host system type" >&5
741 case "$host_alias" in
745 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
746 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
748 *) host_alias
=$nonopt ;;
752 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
753 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
754 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
755 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
756 echo "$ac_t""$host" 1>&6
758 echo $ac_n "checking target system type""... $ac_c" 1>&6
759 echo "configure:760: checking target system type" >&5
762 case "$target_alias" in
765 NONE
) target_alias
=$host_alias ;;
766 *) target_alias
=$nonopt ;;
770 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
771 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
772 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
773 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
774 echo "$ac_t""$target" 1>&6
776 echo $ac_n "checking build system type""... $ac_c" 1>&6
777 echo "configure:778: checking build system type" >&5
780 case "$build_alias" in
783 NONE
) build_alias
=$host_alias ;;
784 *) build_alias
=$nonopt ;;
788 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
789 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
790 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
791 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
792 echo "$ac_t""$build" 1>&6
794 test "$host_alias" != "$target_alias" &&
795 test "$program_prefix$program_suffix$program_transform_name" = \
797 program_prefix
=${target_alias}-
799 if test "$program_transform_name" = s
,x
,x
,; then
800 program_transform_name
=
802 # Double any \ or $. echo might interpret backslashes.
803 cat <<\EOF_SED
> conftestsed
804 s
,\\,\\\\,g
; s
,\$
,$$
,g
806 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
809 test "$program_prefix" != NONE
&&
810 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
811 # Use a double $ so make ignores it.
812 test "$program_suffix" != NONE
&&
813 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
815 # sed with no file args requires a program.
816 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
818 # Extract the first word of "gcc", so it can be a program name with args.
819 set dummy gcc
; ac_word
=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 if test -n "$CC"; then
826 ac_cv_prog_CC
="$CC" # Let the user override the test.
828 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
829 for ac_dir
in $PATH; do
830 test -z "$ac_dir" && ac_dir
=.
831 if test -f $ac_dir/$ac_word; then
840 if test -n "$CC"; then
841 echo "$ac_t""$CC" 1>&6
843 echo "$ac_t""no" 1>&6
846 if test -z "$CC"; then
847 # Extract the first word of "cc", so it can be a program name with args.
848 set dummy cc
; ac_word
=$2
849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
850 echo "configure:851: checking for $ac_word" >&5
851 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 if test -n "$CC"; then
855 ac_cv_prog_CC
="$CC" # Let the user override the test.
857 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
859 for ac_dir
in $PATH; do
860 test -z "$ac_dir" && ac_dir
=.
861 if test -f $ac_dir/$ac_word; then
862 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
871 if test $ac_prog_rejected = yes; then
872 # We found a bogon in the path, so make sure we never use it.
873 set dummy
$ac_cv_prog_CC
875 if test $# -gt 0; then
876 # We chose a different compiler from the bogus one.
877 # However, it has the same basename, so the bogon will be chosen
878 # first if we set CC to just the basename; use the full file name.
880 set dummy
"$ac_dir/$ac_word" "$@"
888 if test -n "$CC"; then
889 echo "$ac_t""$CC" 1>&6
891 echo "$ac_t""no" 1>&6
894 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
897 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
898 echo "configure:899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902 ac_cpp
='$CPP $CPPFLAGS'
903 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905 cross_compiling
=$ac_cv_prog_cc_cross
907 cat > conftest.
$ac_ext <<EOF
908 #line 909 "configure"
909 #include "confdefs.h"
912 if { (eval echo configure
:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
913 ac_cv_prog_cc_works
=yes
914 # If we can't run a trivial program, we are probably using a cross compiler.
915 if (.
/conftest
; exit) 2>/dev
/null
; then
916 ac_cv_prog_cc_cross
=no
918 ac_cv_prog_cc_cross
=yes
921 echo "configure: failed program was:" >&5
922 cat conftest.
$ac_ext >&5
923 ac_cv_prog_cc_works
=no
927 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
928 if test $ac_cv_prog_cc_works = no
; then
929 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
931 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
932 echo "configure:933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
933 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
934 cross_compiling
=$ac_cv_prog_cc_cross
936 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
937 echo "configure:938: checking whether we are using GNU C" >&5
938 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
941 cat > conftest.c
<<EOF
946 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
953 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
955 if test $ac_cv_prog_gcc = yes; then
957 ac_test_CFLAGS
="${CFLAGS+set}"
958 ac_save_CFLAGS
="$CFLAGS"
960 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
961 echo "configure:962: checking whether ${CC-cc} accepts -g" >&5
962 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 echo 'void f(){}' > conftest.c
966 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
975 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
976 if test "$ac_test_CFLAGS" = set; then
977 CFLAGS
="$ac_save_CFLAGS"
978 elif test $ac_cv_prog_cc_g = yes; then
985 test "${CFLAGS+set}" = set || CFLAGS
="-g"
988 # Find a good install program. We prefer a C program (faster),
989 # so one script is as good as another. But avoid the broken or
990 # incompatible versions:
991 # SysV /etc/install, /usr/sbin/install
992 # SunOS /usr/etc/install
995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
998 # ./install, which can be erroneously created by make from ./install.sh.
999 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1000 echo "configure:1001: checking for a BSD compatible install" >&5
1001 if test -z "$INSTALL"; then
1002 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1006 for ac_dir
in $PATH; do
1007 # Account for people who put trailing slashes in PATH elements.
1009 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1011 # OSF1 and SCO ODT 3.0 have their own names for install.
1012 # Don't use installbsd from OSF since it installs stuff as root
1014 for ac_prog
in ginstall scoinst
install; do
1015 if test -f $ac_dir/$ac_prog; then
1016 if test $ac_prog = install &&
1017 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1018 # AIX install. It has an incompatible calling convention.
1021 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1032 if test "${ac_cv_path_install+set}" = set; then
1033 INSTALL
="$ac_cv_path_install"
1035 # As a last resort, use the slow shell script. We don't cache a
1036 # path for INSTALL within a source directory, because that will
1037 # break other packages using the cache if that directory is
1038 # removed, or if the path is relative.
1039 INSTALL
="$ac_install_sh"
1042 echo "$ac_t""$INSTALL" 1>&6
1044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1045 # It thinks the first close brace ends the variable substitution.
1046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1048 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1051 # Put a plausible default for CC_FOR_BUILD in Makefile.
1052 if test "x$cross_compiling" = "xno"; then
1053 CC_FOR_BUILD
='$(CC)'
1063 # Extract the first word of "ranlib", so it can be a program name with args.
1064 set dummy ranlib
; ac_word
=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1070 if test -n "$RANLIB"; then
1071 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1073 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1074 for ac_dir
in $PATH; do
1075 test -z "$ac_dir" && ac_dir
=.
1076 if test -f $ac_dir/$ac_word; then
1077 ac_cv_prog_RANLIB
="ranlib"
1082 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1085 RANLIB
="$ac_cv_prog_RANLIB"
1086 if test -n "$RANLIB"; then
1087 echo "$ac_t""$RANLIB" 1>&6
1089 echo "$ac_t""no" 1>&6
1093 # Check for common headers.
1094 # FIXME: Seems to me this can cause problems for i386-windows hosts.
1095 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
1096 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h sys
/time.h sys
/resource.h
1098 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_hdr" >&5
1101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 cat > conftest.
$ac_ext <<EOF
1105 #line 1106 "configure"
1106 #include "confdefs.h"
1109 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1110 { (eval echo configure
:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1111 ac_err
=`grep -v '^ *+' conftest.out`
1112 if test -z "$ac_err"; then
1114 eval "ac_cv_header_$ac_safe=yes"
1117 echo "configure: failed program was:" >&5
1118 cat conftest.
$ac_ext >&5
1120 eval "ac_cv_header_$ac_safe=no"
1124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1125 echo "$ac_t""yes" 1>&6
1126 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1127 cat >> confdefs.h
<<EOF
1128 #define $ac_tr_hdr 1
1132 echo "$ac_t""no" 1>&6
1136 for ac_func
in getrusage
time sigaction
1138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1139 echo "configure:1140: checking for $ac_func" >&5
1140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1143 cat > conftest.
$ac_ext <<EOF
1144 #line 1145 "configure"
1145 #include "confdefs.h"
1146 /* System header to define __stub macros and hopefully few prototypes,
1147 which can conflict with char $ac_func(); below. */
1149 /* Override any gcc2 internal prototype to avoid an error. */
1150 /* We use char because int might match the return type of a gcc2
1151 builtin and then its argument prototype would still apply. */
1156 /* The GNU C library defines this for functions which it implements
1157 to always fail with ENOSYS. Some functions are actually named
1158 something starting with __ and the normal name is an alias. */
1159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1167 if { (eval echo configure
:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1169 eval "ac_cv_func_$ac_func=yes"
1171 echo "configure: failed program was:" >&5
1172 cat conftest.
$ac_ext >&5
1174 eval "ac_cv_func_$ac_func=no"
1179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1180 echo "$ac_t""yes" 1>&6
1181 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1182 cat >> confdefs.h
<<EOF
1183 #define $ac_tr_func 1
1187 echo "$ac_t""no" 1>&6
1192 .
${srcdir}/..
/..
/bfd
/configure.
host
1196 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1197 if test "${enable_maintainer_mode+set}" = set; then
1198 enableval
="$enable_maintainer_mode"
1199 case "${enableval}" in
1202 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
1204 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
1205 echo "Setting maintainer mode" 6>&1
1213 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1214 if test "${enable_sim_bswap+set}" = set; then
1215 enableval
="$enable_sim_bswap"
1216 case "${enableval}" in
1217 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
1218 no
) sim_bswap
="-DWITH_BSWAP=0";;
1219 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
1221 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
1222 echo "Setting bswap flags = $sim_bswap" 6>&1
1230 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1231 if test "${enable_sim_cflags+set}" = set; then
1232 enableval
="$enable_sim_cflags"
1233 case "${enableval}" in
1234 yes) sim_cflags
="-O2";;
1235 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
1237 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1239 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
1240 echo "Setting sim cflags = $sim_cflags" 6>&1
1248 # Check whether --enable-sim-debug or --disable-sim-debug was given.
1249 if test "${enable_sim_debug+set}" = set; then
1250 enableval
="$enable_sim_debug"
1251 case "${enableval}" in
1252 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
1253 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
1254 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
1256 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
1257 echo "Setting sim debug = $sim_debug" 6>&1
1265 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1266 if test "${enable_sim_stdio+set}" = set; then
1267 enableval
="$enable_sim_stdio"
1268 case "${enableval}" in
1269 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
1270 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
1271 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
1273 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1274 echo "Setting stdio flags = $sim_stdio" 6>&1
1282 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1283 if test "${enable_sim_trace+set}" = set; then
1284 enableval
="$enable_sim_trace"
1285 case "${enableval}" in
1286 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
1287 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
1289 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1292 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1293 if test x
"$sim_trace" = x
; then
1294 sim_trace
="-DWITH_TRACE='(TRACE_$x"
1296 sim_trace
="${sim_trace}|TRACE_$x"
1299 sim_trace
="$sim_trace)'" ;;
1301 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1302 echo "Setting sim trace = $sim_trace" 6>&1
1310 # Check whether --enable-sim-profile or --disable-sim-profile was given.
1311 if test "${enable_sim_profile+set}" = set; then
1312 enableval
="$enable_sim_profile"
1313 case "${enableval}" in
1314 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
1315 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
1317 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
1320 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1321 if test x
"$sim_profile" = x
; then
1322 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
1324 sim_profile
="${sim_profile}|PROFILE_$x"
1327 sim_profile
="$sim_profile)'" ;;
1329 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
1330 echo "Setting sim profile = $sim_profile" 6>&1
1338 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1339 echo "configure:1340: checking return type of signal handlers" >&5
1340 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 cat > conftest.
$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 #include <sys/types.h>
1352 extern "C" void (*signal (int, void (*)(int)))(int);
1354 void (*signal ()) ();
1361 if { (eval echo configure
:1362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1363 ac_cv_type_signal
=void
1365 echo "configure: failed program was:" >&5
1366 cat conftest.
$ac_ext >&5
1368 ac_cv_type_signal
=int
1373 echo "$ac_t""$ac_cv_type_signal" 1>&6
1374 cat >> confdefs.h
<<EOF
1375 #define RETSIGTYPE $ac_cv_type_signal
1384 sim_link_links
=tconfig.h
1385 if test -f ${srcdir}/tconfig.
in
1387 sim_link_files
=tconfig.
in
1389 sim_link_files
=..
/common
/tconfig.
in
1392 # targ-vals.def points to the libc macro description file.
1394 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
1396 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
1397 sim_link_links
="${sim_link_links} targ-vals.def"
1402 default_sim_inline
="-DDEFAULT_INLINE=0"
1403 # Check whether --enable-sim-inline or --disable-sim-inline was given.
1404 if test "${enable_sim_inline+set}" = set; then
1405 enableval
="$enable_sim_inline"
1407 case "$enableval" in
1408 no
) sim_inline
="-DDEFAULT_INLINE=0";;
1409 0) sim_inline
="-DDEFAULT_INLINE=0";;
1410 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
1411 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
1412 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1415 *_INLINE
=*) new_flag
="-D$x";;
1416 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
1417 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
1418 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
1420 if test x
"$sim_inline" = x
""; then
1421 sim_inline
="$new_flag"
1423 sim_inline
="$sim_inline $new_flag"
1427 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
1428 echo "Setting inline flags = $sim_inline" 6>&1
1431 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
1432 sim_inline
="${default_sim_inline}"
1433 if test x
"$silent" != x
"yes"; then
1434 echo "Setting inline flags = $sim_inline" 6>&1
1442 wire_endian
="LITTLE_ENDIAN"
1444 # Check whether --enable-sim-endian or --disable-sim-endian was given.
1445 if test "${enable_sim_endian+set}" = set; then
1446 enableval
="$enable_sim_endian"
1447 case "${enableval}" in
1448 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1449 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1450 yes) if test x
"$wire_endian" != x
; then
1451 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1453 if test x
"$default_endian" != x
; then
1454 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
1456 echo "No hard-wired endian for target $target" 1>&6
1457 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
1460 no
) if test x
"$default_endian" != x
; then
1461 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1463 if test x
"$wire_endian" != x
; then
1464 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
1466 echo "No default endian for target $target" 1>&6
1467 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
1470 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
1472 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
1473 echo "Setting endian flags = $sim_endian" 6>&1
1476 if test x
"$default_endian" != x
; then
1477 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1479 if test x
"$wire_endian" != x
; then
1480 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1487 wire_alignment
="FORCED_ALIGNMENT"
1488 default_alignment
=""
1490 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
1491 if test "${enable_sim_alignment+set}" = set; then
1492 enableval
="$enable_sim_alignment"
1493 case "${enableval}" in
1494 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
1495 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
1496 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
1497 yes) if test x
"$wire_alignment" != x
; then
1498 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
1500 if test x
"$default_alignment" != x
; then
1501 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
1503 echo "No hard-wired alignment for target $target" 1>&6
1504 sim_alignment
="-DWITH_ALIGNMENT=0"
1507 no
) if test x
"$default_alignment" != x
; then
1508 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1510 if test x
"$wire_alignment" != x
; then
1511 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
1513 echo "No default alignment for target $target" 1>&6
1514 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
1517 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
1519 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
1520 echo "Setting alignment flags = $sim_alignment" 6>&1
1523 if test x
"$default_alignment" != x
; then
1524 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1526 if test x
"$wire_alignment" != x
; then
1527 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
1535 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
1536 if test "${enable_sim_hostendian+set}" = set; then
1537 enableval
="$enable_sim_hostendian"
1538 case "${enableval}" in
1539 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
1540 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
1541 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
1542 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
1544 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
1545 echo "Setting hostendian flags = $sim_hostendian" 6>&1
1549 if test "x$cross_compiling" = "xno"; then
1550 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1551 echo "configure:1552: checking whether byte ordering is bigendian" >&5
1552 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1555 ac_cv_c_bigendian
=unknown
1556 # See if sys/param.h defines the BYTE_ORDER macro.
1557 cat > conftest.
$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1560 #include <sys/types.h>
1561 #include <sys/param.h>
1564 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1569 if { (eval echo configure
:1570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1571 # It does; now see whether it defined to BIG_ENDIAN or not.
1572 cat > conftest.
$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1575 #include <sys/types.h>
1576 #include <sys/param.h>
1579 #if BYTE_ORDER != BIG_ENDIAN
1584 if { (eval echo configure
:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1586 ac_cv_c_bigendian
=yes
1588 echo "configure: failed program was:" >&5
1589 cat conftest.
$ac_ext >&5
1591 ac_cv_c_bigendian
=no
1595 echo "configure: failed program was:" >&5
1596 cat conftest.
$ac_ext >&5
1599 if test $ac_cv_c_bigendian = unknown
; then
1600 if test "$cross_compiling" = yes; then
1601 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1603 cat > conftest.
$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1607 /* Are we little or big endian? From Harbison&Steele. */
1611 char c[sizeof (long)];
1614 exit (u.c[sizeof (long) - 1] == 1);
1617 if { (eval echo configure
:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1619 ac_cv_c_bigendian
=no
1621 echo "configure: failed program was:" >&5
1622 cat conftest.
$ac_ext >&5
1624 ac_cv_c_bigendian
=yes
1632 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1633 if test $ac_cv_c_bigendian = yes; then
1634 cat >> confdefs.h
<<\EOF
1635 #define WORDS_BIGENDIAN 1
1640 if test $ac_cv_c_bigendian = yes; then
1641 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1643 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1646 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
1651 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
1652 if test "${enable_sim_warnings+set}" = set; then
1653 enableval
="$enable_sim_warnings"
1654 case "${enableval}" in
1655 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
1656 no
) sim_warnings
="-w";;
1657 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1659 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
1660 echo "Setting warning flags = $sim_warnings" 6>&1
1667 default_sim_reserved_bits
="1"
1668 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
1669 if test "${enable_sim_reserved_bits+set}" = set; then
1670 enableval
="$enable_sim_reserved_bits"
1671 case "${enableval}" in
1672 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
1673 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
1674 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value
"" 1>&2; exit 1; }; sim_reserved_bits
="";;
1676 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
1677 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
1680 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
1685 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
1686 if test "${enable_sim_bitsize+set}" = set; then
1687 enableval
="$enable_sim_bitsize"
1688 case "${enableval}" in
1689 64,63) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
1690 32,31) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
1691 64,0) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
1692 32,0) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
1693 32) if test x
"$wire_msb" != x
-a x
"$wire_msb" != x0
; then
1694 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
1696 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
1698 64) if test x
"$wire_msb" != x
-a x
"$wire_msb" != x0
; then
1699 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
1701 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
1703 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; }; sim_bitsize
="";;
1705 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
1706 echo "Setting bitsize flags = $sim_bitsize" 6>&1
1710 if test x
"$wire_bitsize" != x
; then
1711 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_bitsize"
1713 if test x
"$wire_msb" != x
; then
1714 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_msb"
1719 for ac_hdr
in stdlib.h unistd.h string.h
strings.h
1721 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1723 echo "configure:1724: checking for $ac_hdr" >&5
1724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 cat > conftest.
$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1732 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1733 { (eval echo configure
:1734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1734 ac_err
=`grep -v '^ *+' conftest.out`
1735 if test -z "$ac_err"; then
1737 eval "ac_cv_header_$ac_safe=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.
$ac_ext >&5
1743 eval "ac_cv_header_$ac_safe=no"
1747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1748 echo "$ac_t""yes" 1>&6
1749 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1750 cat >> confdefs.h
<<EOF
1751 #define $ac_tr_hdr 1
1755 echo "$ac_t""no" 1>&6
1759 for ac_func
in getpid
kill
1761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1762 echo "configure:1763: checking for $ac_func" >&5
1763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1766 cat > conftest.
$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* System header to define __stub macros and hopefully few prototypes,
1770 which can conflict with char $ac_func(); below. */
1772 /* Override any gcc2 internal prototype to avoid an error. */
1773 /* We use char because int might match the return type of a gcc2
1774 builtin and then its argument prototype would still apply. */
1779 /* The GNU C library defines this for functions which it implements
1780 to always fail with ENOSYS. Some functions are actually named
1781 something starting with __ and the normal name is an alias. */
1782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1790 if { (eval echo configure
:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1792 eval "ac_cv_func_$ac_func=yes"
1794 echo "configure: failed program was:" >&5
1795 cat conftest.
$ac_ext >&5
1797 eval "ac_cv_func_$ac_func=no"
1802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1803 echo "$ac_t""yes" 1>&6
1804 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1805 cat >> confdefs.h
<<EOF
1806 #define $ac_tr_func 1
1810 echo "$ac_t""no" 1>&6
1818 cat > confcache
<<\EOF
1819 # This file is a shell script that caches the results of configure
1820 # tests run on this system so they can be shared between configure
1821 # scripts and configure runs. It is not useful on other systems.
1822 # If it contains results you don't want to keep, you may remove or edit it.
1824 # By default, configure uses ./config.cache as the cache file,
1825 # creating it if it does not exist already. You can give configure
1826 # the --cache-file=FILE option to use a different cache file; that is
1827 # what configure does when it calls configure scripts in
1828 # subdirectories, so they share the cache.
1829 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1830 # config.status only pays attention to the cache file if you give it the
1831 # --recheck option to rerun configure.
1834 # The following way of writing the cache mishandles newlines in values,
1835 # but we know of no workaround that is simple, portable, and efficient.
1836 # So, don't put newlines in cache variables' values.
1837 # Ultrix sh set writes to stderr and can't be redirected directly,
1838 # and sets the high bit in the cache file unless we assign to the vars.
1840 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1842 # `set' does not quote correctly, so add quotes (double-quote substitution
1843 # turns \\\\ into \\, and sed turns \\ into \).
1845 -e "s/'/'\\\\''/g" \
1846 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1849 # `set' quotes correctly as required by POSIX, so do not add quotes.
1850 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1853 if cmp -s $cache_file confcache
; then
1856 if test -w $cache_file; then
1857 echo "updating cache $cache_file"
1858 cat confcache
> $cache_file
1860 echo "not updating unwritable cache $cache_file"
1865 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1867 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1868 # Let make expand exec_prefix.
1869 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1871 # Any assignment to VPATH causes Sun make to only execute
1872 # the first set of double-colon rules, so remove it if not needed.
1873 # If there is a colon in the path, we need to keep it.
1874 if test "x$srcdir" = x.
; then
1875 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1878 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1880 DEFS
=-DHAVE_CONFIG_H
1882 # Without the "./", some shells look in PATH for config.status.
1883 : ${CONFIG_STATUS=./config.status}
1885 echo creating
$CONFIG_STATUS
1886 rm -f $CONFIG_STATUS
1887 cat > $CONFIG_STATUS <<EOF
1889 # Generated automatically by configure.
1890 # Run this file to recreate the current configuration.
1891 # This directory was configured as follows,
1892 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1894 # $0 $ac_configure_args
1896 # Compiler output produced by configure, useful for debugging
1897 # configure, is in ./config.log if it exists.
1899 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1902 case "\$ac_option" in
1903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1904 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1905 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1906 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1907 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1909 -help | --help | --hel | --he | --h)
1910 echo "\$ac_cs_usage"; exit 0 ;;
1911 *) echo "\$ac_cs_usage"; exit 1 ;;
1915 ac_given_srcdir=$srcdir
1916 ac_given_INSTALL="$INSTALL"
1918 trap 'rm -fr `echo "Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1920 cat >> $CONFIG_STATUS <<EOF
1922 # Protect against being on the right side of a sed subst in config.status.
1923 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1924 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1927 s%@sim_environment@%$sim_environment%g
1928 s%@sim_alignment@%$sim_alignment%g
1929 s%@sim_assert@%$sim_assert%g
1930 s%@sim_bitsize@%$sim_bitsize%g
1931 s%@sim_endian@%$sim_endian%g
1932 s%@sim_hostendian@%$sim_hostendian%g
1933 s%@sim_float@%$sim_float%g
1934 s%@sim_scache@%$sim_scache%g
1935 s%@sim_default_model@%$sim_default_model%g
1936 s%@sim_hardware@%$sim_hardware%g
1937 s%@sim_inline@%$sim_inline%g
1938 s%@sim_packages@%$sim_packages%g
1939 s%@sim_regparm@%$sim_regparm%g
1940 s%@sim_reserved_bits@%$sim_reserved_bits%g
1941 s%@sim_smp@%$sim_smp%g
1942 s%@sim_stdcall@%$sim_stdcall%g
1943 s%@sim_xor_endian@%$sim_xor_endian%g
1944 s%@sim_warnings@%$sim_warnings%g
1946 s%@CFLAGS@%$CFLAGS%g
1947 s%@CPPFLAGS@%$CPPFLAGS%g
1948 s%@CXXFLAGS@%$CXXFLAGS%g
1950 s%@LDFLAGS@%$LDFLAGS%g
1952 s%@exec_prefix@%$exec_prefix%g
1953 s%@prefix@%$prefix%g
1954 s%@program_transform_name@%$program_transform_name%g
1955 s%@bindir@%$bindir%g
1956 s%@sbindir@%$sbindir%g
1957 s%@libexecdir@%$libexecdir%g
1958 s%@datadir@%$datadir%g
1959 s%@sysconfdir@%$sysconfdir%g
1960 s%@sharedstatedir@%$sharedstatedir%g
1961 s%@localstatedir@%$localstatedir%g
1962 s%@libdir@%$libdir%g
1963 s%@includedir@%$includedir%g
1964 s%@oldincludedir@%$oldincludedir%g
1965 s%@infodir@%$infodir%g
1966 s%@mandir@%$mandir%g
1968 s%@host_alias@%$host_alias%g
1969 s%@host_cpu@%$host_cpu%g
1970 s%@host_vendor@%$host_vendor%g
1971 s%@host_os@%$host_os%g
1972 s%@target@%$target%g
1973 s%@target_alias@%$target_alias%g
1974 s%@target_cpu@%$target_cpu%g
1975 s%@target_vendor@%$target_vendor%g
1976 s%@target_os@%$target_os%g
1978 s%@build_alias@%$build_alias%g
1979 s%@build_cpu@%$build_cpu%g
1980 s%@build_vendor@%$build_vendor%g
1981 s%@build_os@%$build_os%g
1983 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1984 s%@INSTALL_DATA@%$INSTALL_DATA%g
1985 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1986 s%@HDEFINES@%$HDEFINES%g
1988 s%@RANLIB@%$RANLIB%g
1991 s%@sim_bswap@%$sim_bswap%g
1992 s%@sim_cflags@%$sim_cflags%g
1993 s%@sim_debug@%$sim_debug%g
1994 s%@sim_stdio@%$sim_stdio%g
1995 s%@sim_trace@%$sim_trace%g
1996 s%@sim_profile@%$sim_profile%g
2001 cat >> $CONFIG_STATUS <<\EOF
2003 # Split the substitutions into bite-sized pieces for seds with
2004 # small command number limits, like on Digital OSF/1 and HP-UX.
2005 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2006 ac_file
=1 # Number of current file.
2007 ac_beg
=1 # First line for current file.
2008 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2011 while $ac_more_lines; do
2012 if test $ac_beg -gt 1; then
2013 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2015 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2017 if test ! -s conftest.s
$ac_file; then
2019 rm -f conftest.s
$ac_file
2021 if test -z "$ac_sed_cmds"; then
2022 ac_sed_cmds
="sed -f conftest.s$ac_file"
2024 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2026 ac_file
=`expr $ac_file + 1`
2028 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2031 if test -z "$ac_sed_cmds"; then
2036 cat >> $CONFIG_STATUS <<EOF
2038 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
2040 cat >> $CONFIG_STATUS <<\EOF
2041 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2042 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2044 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2045 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2046 *) ac_file_in
="${ac_file}.in" ;;
2049 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2051 # Remove last slash and all that follows it. Not all systems have dirname.
2052 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2053 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2054 # The file is in a subdirectory.
2055 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2056 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2057 # A "../" for each directory in $ac_dir_suffix.
2058 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2060 ac_dir_suffix
= ac_dots
=
2063 case "$ac_given_srcdir" in
2065 if test -z "$ac_dots"; then top_srcdir
=.
2066 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2067 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2069 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2070 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2073 case "$ac_given_INSTALL" in
2074 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2075 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2078 echo creating
"$ac_file"
2080 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2082 *Makefile
*) ac_comsub
="1i\\
2083 # $configure_input" ;;
2087 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2089 s%@configure_input@%$configure_input%g
2090 s%@srcdir@%$srcdir%g
2091 s%@top_srcdir@%$top_srcdir%g
2092 s%@INSTALL@%$INSTALL%g
2093 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2097 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2098 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2100 # ac_d sets the value in "#define NAME VALUE" lines.
2101 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2102 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2105 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2106 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2107 ac_uB
='\([ ]\)%\1#\2define\3'
2110 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2111 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2112 ac_eB
='$%\1#\2define\3'
2116 if test "${CONFIG_HEADERS+set}" != set; then
2118 cat >> $CONFIG_STATUS <<EOF
2119 CONFIG_HEADERS="config.h:config.in"
2121 cat >> $CONFIG_STATUS <<\EOF
2123 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2126 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2127 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2128 *) ac_file_in
="${ac_file}.in" ;;
2131 echo creating
$ac_file
2133 rm -f conftest.frag conftest.
in conftest.out
2134 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2135 cat $ac_file_inputs > conftest.
in
2139 # Transform confdefs.h into a sed script conftest.vals that substitutes
2140 # the proper values into config.h.in to produce config.h. And first:
2141 # Protect against being on the right side of a sed subst in config.status.
2142 # Protect against being in an unquoted here document in config.status.
2144 cat > conftest.hdr
<<\EOF
2147 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2151 sed -n -f conftest.hdr confdefs.h > conftest.vals
2154 # This sed command replaces #undef with comments. This is necessary, for
2155 # example, in the case of _POSIX_SOURCE, which is predefined and required
2156 # on some systems where configure will not decide to define it.
2157 cat >> conftest.vals <<\EOF
2158 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2161 # Break up conftest.vals because some shells have a limit on
2162 # the size of here documents, and old seds have small limits too.
2167 ac_lines=`grep -c . conftest.vals
`
2168 # grep -c gives empty output for an empty file on some AIX systems.
2169 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2170 # Write a limited-size here document to conftest.frag.
2171 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2172 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2174 sed -f conftest.frag conftest.in > conftest.out
2176 mv conftest.out conftest.in
2178 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2180 mv conftest.tail conftest.vals
2184 cat >> $CONFIG_STATUS <<\EOF
2185 rm -f conftest.frag conftest.h
2186 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2187 cat conftest.in >> conftest.h
2189 if cmp -s $ac_file conftest.h 2>/dev/null; then
2190 echo "$ac_file is unchanged"
2193 # Remove last slash and all that follows it. Not all systems have dirname.
2194 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2195 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2196 # The file is in a subdirectory.
2197 test ! -d "$ac_dir" && mkdir "$ac_dir"
2200 mv conftest.h $ac_file
2206 cat >> $CONFIG_STATUS <<EOF
2207 ac_sources="$sim_link_files"
2208 ac_dests="$sim_link_links"
2211 cat >> $CONFIG_STATUS <<\EOF
2212 srcdir=$ac_given_srcdir
2213 while test -n "$ac_sources"; do
2214 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2215 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2217 echo "linking $srcdir/$ac_source to $ac_dest"
2219 if test ! -r $srcdir/$ac_source; then
2220 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2224 # Make relative symlinks.
2225 # Remove last slash and all that follows it. Not all systems have dirname.
2226 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2227 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2228 # The dest file is in a subdirectory.
2229 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2230 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2231 # A "../" for each directory in $ac_dest_dir_suffix.
2232 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2234 ac_dest_dir_suffix= ac_dots=
2238 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2239 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2242 # Make a symlink if possible; otherwise try a hard link.
2243 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2244 ln $srcdir/$ac_source $ac_dest; then :
2246 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2250 cat >> $CONFIG_STATUS <<EOF
2253 cat >> $CONFIG_STATUS <<\EOF
2254 case "x$CONFIG_FILES" in
2256 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
2257 rm -f Makesim1.tmp Makesim2.tmp Makefile
2258 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
2259 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
2260 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
2261 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
2262 <Makefile.sim >Makefile
2263 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
2266 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
2270 chmod +x $CONFIG_STATUS
2271 rm -fr confdefs* $ac_clean_files
2272 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1