79 # Guess values for system-dependent variables and create Makefiles.
80 # Generated automatically using autoconf version 2.12.1
81 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83 # This configure script is free software; the Free Software Foundation
84 # gives unlimited permission to copy, distribute and modify it.
88 ac_default_prefix
=/usr
/local
89 # Any additions from configure.in:
91 --enable-maintainer-mode Enable developer functionality."
93 --enable-sim-bswap Use Host specific BSWAP instruction."
95 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
97 --enable-sim-debug=opts Enable debugging flags"
99 --enable-sim-stdio Specify whether to use stdio for console input/output."
101 --enable-sim-trace=opts Enable tracing flags"
103 --enable-sim-profile=opts Enable profiling flags"
105 # Initialize some variables set by options.
106 # The variables have the same names as the options, with
107 # dashes changed to underlines.
109 cache_file
=.
/config.cache
118 program_transform_name
=s
,x
,x
,
126 bindir
='${exec_prefix}/bin'
127 sbindir
='${exec_prefix}/sbin'
128 libexecdir
='${exec_prefix}/libexec'
129 datadir
='${prefix}/share'
130 sysconfdir
='${prefix}/etc'
131 sharedstatedir
='${prefix}/com'
132 localstatedir
='${prefix}/var'
133 libdir
='${exec_prefix}/lib'
134 includedir
='${prefix}/include'
135 oldincludedir
='/usr/include'
136 infodir
='${prefix}/info'
137 mandir
='${prefix}/man'
139 # Initialize some other variables.
142 SHELL
=${CONFIG_SHELL-/bin/sh}
143 # Maximum number of lines to put in a shell here document.
150 # If the previous option needs an argument, assign it.
151 if test -n "$ac_prev"; then
152 eval "$ac_prev=\$ac_option"
158 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
162 # Accept the important Cygnus configure options, so we can diagnose typos.
166 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
168 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
169 bindir
="$ac_optarg" ;;
171 -build |
--build |
--buil |
--bui |
--bu)
173 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
174 build
="$ac_optarg" ;;
176 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
177 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
178 ac_prev
=cache_file
;;
179 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
180 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
181 cache_file
="$ac_optarg" ;;
183 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
185 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
187 datadir
="$ac_optarg" ;;
189 -disable-* |
--disable-*)
190 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
191 # Reject names that are not valid shell variable names.
192 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
193 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
195 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
196 eval "enable_${ac_feature}=no" ;;
198 -enable-* |
--enable-*)
199 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
200 # Reject names that are not valid shell variable names.
201 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
202 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
204 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
209 eval "enable_${ac_feature}='$ac_optarg'" ;;
211 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
212 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
213 |
--exec |
--exe |
--ex)
214 ac_prev
=exec_prefix
;;
215 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
216 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
217 |
--exec=* |
--exe=* |
--ex=*)
218 exec_prefix
="$ac_optarg" ;;
220 -gas |
--gas |
--ga |
--g)
221 # Obsolete; use --with-gas.
224 -help |
--help |
--hel |
--he)
225 # Omit some internal or obsolete options to make the list less imposing.
226 # This message is too long to be a string in the A/UX 3.1 sh.
228 Usage: configure [options] [host]
229 Options: [defaults in brackets after descriptions]
231 --cache-file=FILE cache test results in FILE
232 --help print this message
233 --no-create do not create output files
234 --quiet, --silent do not print \`checking...' messages
235 --version print the version of autoconf that created configure
236 Directory and file names:
237 --prefix=PREFIX install architecture-independent files in PREFIX
239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
241 --bindir=DIR user executables in DIR [EPREFIX/bin]
242 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
243 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
244 --datadir=DIR read-only architecture-independent data in DIR
246 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
247 --sharedstatedir=DIR modifiable architecture-independent data in DIR
249 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
250 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
251 --includedir=DIR C header files in DIR [PREFIX/include]
252 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
253 --infodir=DIR info documentation in DIR [PREFIX/info]
254 --mandir=DIR man documentation in DIR [PREFIX/man]
255 --srcdir=DIR find the sources in DIR [configure dir or ..]
256 --program-prefix=PREFIX prepend PREFIX to installed program names
257 --program-suffix=SUFFIX append SUFFIX to installed program names
258 --program-transform-name=PROGRAM
259 run sed PROGRAM on installed program names
263 --build=BUILD configure for building on BUILD [BUILD=HOST]
264 --host=HOST configure for HOST [guessed]
265 --target=TARGET configure for TARGET [TARGET=HOST]
266 Features and packages:
267 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
268 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
269 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
270 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
271 --x-includes=DIR X include files are in DIR
272 --x-libraries=DIR X library files are in DIR
274 if test -n "$ac_help"; then
275 echo "--enable and --with options recognized:$ac_help"
279 -host |
--host |
--hos |
--ho)
281 -host=* |
--host=* |
--hos=* |
--ho=*)
284 -includedir |
--includedir |
--includedi |
--included |
--include \
285 |
--includ |
--inclu |
--incl |
--inc)
286 ac_prev
=includedir
;;
287 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
288 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
289 includedir
="$ac_optarg" ;;
291 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
293 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
294 infodir
="$ac_optarg" ;;
296 -libdir |
--libdir |
--libdi |
--libd)
298 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
299 libdir
="$ac_optarg" ;;
301 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
302 |
--libexe |
--libex |
--libe)
303 ac_prev
=libexecdir
;;
304 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
305 |
--libexe=* |
--libex=* |
--libe=*)
306 libexecdir
="$ac_optarg" ;;
308 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
309 |
--localstate |
--localstat |
--localsta |
--localst \
310 |
--locals |
--local |
--loca |
--loc |
--lo)
311 ac_prev
=localstatedir
;;
312 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
313 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
314 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
315 localstatedir
="$ac_optarg" ;;
317 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
319 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
320 mandir
="$ac_optarg" ;;
323 # Obsolete; use --without-fp.
326 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
330 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
331 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
334 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
335 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
336 |
--oldin |
--oldi |
--old |
--ol |
--o)
337 ac_prev
=oldincludedir
;;
338 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
339 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
340 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
341 oldincludedir
="$ac_optarg" ;;
343 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
345 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
346 prefix
="$ac_optarg" ;;
348 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
349 |
--program-pre |
--program-pr |
--program-p)
350 ac_prev
=program_prefix
;;
351 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
352 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
353 program_prefix
="$ac_optarg" ;;
355 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
356 |
--program-suf |
--program-su |
--program-s)
357 ac_prev
=program_suffix
;;
358 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
359 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
360 program_suffix
="$ac_optarg" ;;
362 -program-transform-name |
--program-transform-name \
363 |
--program-transform-nam |
--program-transform-na \
364 |
--program-transform-n |
--program-transform- \
365 |
--program-transform |
--program-transfor \
366 |
--program-transfo |
--program-transf \
367 |
--program-trans |
--program-tran \
368 |
--progr-tra |
--program-tr |
--program-t)
369 ac_prev
=program_transform_name
;;
370 -program-transform-name=* |
--program-transform-name=* \
371 |
--program-transform-nam=* |
--program-transform-na=* \
372 |
--program-transform-n=* |
--program-transform-=* \
373 |
--program-transform=* |
--program-transfor=* \
374 |
--program-transfo=* |
--program-transf=* \
375 |
--program-trans=* |
--program-tran=* \
376 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
377 program_transform_name
="$ac_optarg" ;;
379 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
380 |
-silent |
--silent |
--silen |
--sile |
--sil)
383 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
385 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
387 sbindir
="$ac_optarg" ;;
389 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
390 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
391 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
393 ac_prev
=sharedstatedir
;;
394 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
395 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
396 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
398 sharedstatedir
="$ac_optarg" ;;
400 -site |
--site |
--sit)
402 -site=* |
--site=* |
--sit=*)
405 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
407 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
408 srcdir
="$ac_optarg" ;;
410 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
411 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
412 ac_prev
=sysconfdir
;;
413 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
414 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
415 sysconfdir
="$ac_optarg" ;;
417 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
419 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
420 target
="$ac_optarg" ;;
422 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
425 -version |
--version |
--versio |
--versi |
--vers)
426 echo "configure generated by autoconf version 2.12.1"
430 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package
=`echo $ac_package| sed 's/-/_/g'`
440 eval "with_${ac_package}='$ac_optarg'" ;;
442 -without-* |
--without-*)
443 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
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'`
449 eval "with_${ac_package}=no" ;;
452 # Obsolete; use --with-x.
455 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
456 |
--x-incl |
--x-inc |
--x-in |
--x-i)
457 ac_prev
=x_includes
;;
458 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
459 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
460 x_includes
="$ac_optarg" ;;
462 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
463 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
464 ac_prev
=x_libraries
;;
465 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
466 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
467 x_libraries
="$ac_optarg" ;;
469 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
473 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
474 echo "configure: warning: $ac_option: invalid host type" 1>&2
476 if test "x$nonopt" != xNONE
; then
477 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
485 if test -n "$ac_prev"; then
486 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
489 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
491 # File descriptor usage:
494 # 2 errors and warnings
495 # 3 some systems may open it to /dev/tty
496 # 4 used on the Kubota Titan
497 # 6 checking for... messages and results
498 # 5 compiler messages saved in config.log
499 if test "$silent" = yes; then
507 This file contains any messages produced by compilers while
508 running configure, to aid debugging if configure makes a mistake.
511 # Strip out --no-create and --no-recursion so they do not pile up.
512 # Also quote any args containing shell metacharacters.
517 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
518 |
--no-cr |
--no-c) ;;
519 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
520 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
521 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
522 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
523 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
528 # Only set these to C if already set. These must not be set unconditionally
529 # because not all systems understand e.g. LANG=C (notably SCO).
530 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
531 # Non-C LC_CTYPE values break the ctype check.
532 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
533 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
534 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
535 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
538 rm -rf conftest
* confdefs.h
539 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
542 # A filename unique to this package, relative to the directory that
543 # configure is in, which we can look for to find out if srcdir is correct.
544 ac_unique_file
=Makefile.
in
546 # Find the source files, if location was not specified.
547 if test -z "$srcdir"; then
548 ac_srcdir_defaulted
=yes
549 # Try the directory containing this script, then its parent.
551 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
552 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
554 if test ! -r $srcdir/$ac_unique_file; then
558 ac_srcdir_defaulted
=no
560 if test ! -r $srcdir/$ac_unique_file; then
561 if test "$ac_srcdir_defaulted" = yes; then
562 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
564 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
567 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
569 # Prefer explicitly selected file to automatically selected ones.
570 if test -z "$CONFIG_SITE"; then
571 if test "x$prefix" != xNONE
; then
572 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
574 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
577 for ac_site_file
in $CONFIG_SITE; do
578 if test -r "$ac_site_file"; then
579 echo "loading site script $ac_site_file"
584 if test -r "$cache_file"; then
585 echo "loading cache $cache_file"
588 echo "creating cache $cache_file"
593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
594 ac_cpp
='$CPP $CPPFLAGS'
595 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
596 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
597 cross_compiling
=$ac_cv_prog_cc_cross
599 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
600 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
601 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
608 ac_n
= ac_c
='\c' ac_t
=
613 # This is intended for use by the target specific directories, and by us.
614 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
615 echo "configure:616: checking how to run the C preprocessor" >&5
616 # On Suns, sometimes $CPP names a directory.
617 if test -n "$CPP" && test -d "$CPP"; then
620 if test -z "$CPP"; then
621 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
624 # This must be in double quotes, not single quotes, because CPP may get
625 # substituted into the Makefile and "${CC-cc}" will confuse make.
627 # On the NeXT, cc -E runs the code through the compiler's parser,
628 # not just through cpp.
629 cat > conftest.
$ac_ext <<EOF
630 #line 631 "configure"
631 #include "confdefs.h"
635 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
636 { (eval echo configure
:637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
637 ac_err
=`grep -v '^ *+' conftest.out`
638 if test -z "$ac_err"; then
642 echo "configure: failed program was:" >&5
643 cat conftest.
$ac_ext >&5
645 CPP
="${CC-cc} -E -traditional-cpp"
646 cat > conftest.
$ac_ext <<EOF
647 #line 648 "configure"
648 #include "confdefs.h"
652 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
653 { (eval echo configure
:654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
654 ac_err
=`grep -v '^ *+' conftest.out`
655 if test -z "$ac_err"; then
659 echo "configure: failed program was:" >&5
660 cat conftest.
$ac_ext >&5
667 ac_cv_prog_CPP
="$CPP"
669 CPP
="$ac_cv_prog_CPP"
671 ac_cv_prog_CPP
="$CPP"
673 echo "$ac_t""$CPP" 1>&6
676 # autoconf.info says this should be called right after AC_INIT.
680 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
681 if test -f $ac_dir/install-sh
; then
683 ac_install_sh
="$ac_aux_dir/install-sh -c"
685 elif test -f $ac_dir/install.sh
; then
687 ac_install_sh
="$ac_aux_dir/install.sh -c"
691 if test -z "$ac_aux_dir"; then
692 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
694 ac_config_guess
=$ac_aux_dir/config.guess
695 ac_config_sub
=$ac_aux_dir/config.sub
696 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
699 # Do some error checking and defaulting for the host and target type.
701 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
704 # 1. You are not allowed to specify --host, --target, and nonopt at the
706 # 2. Host defaults to nonopt.
707 # 3. If nonopt is not specified, then host defaults to the current host,
708 # as determined by config.guess.
709 # 4. Target and build default to nonopt.
710 # 5. If nonopt is not specified, then target and build default to host.
712 # The aliases save the names the user supplied, while $host etc.
713 # will get canonicalized.
714 case $host---$target---$nonopt in
715 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
716 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
720 # Make sure we can run config.sub.
721 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
722 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
725 echo $ac_n "checking host system type""... $ac_c" 1>&6
726 echo "configure:727: checking host system type" >&5
729 case "$host_alias" in
733 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
734 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
736 *) host_alias
=$nonopt ;;
740 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
741 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
742 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
743 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
744 echo "$ac_t""$host" 1>&6
746 echo $ac_n "checking target system type""... $ac_c" 1>&6
747 echo "configure:748: checking target system type" >&5
750 case "$target_alias" in
753 NONE
) target_alias
=$host_alias ;;
754 *) target_alias
=$nonopt ;;
758 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
759 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
760 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
761 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
762 echo "$ac_t""$target" 1>&6
764 echo $ac_n "checking build system type""... $ac_c" 1>&6
765 echo "configure:766: checking build system type" >&5
768 case "$build_alias" in
771 NONE
) build_alias
=$host_alias ;;
772 *) build_alias
=$nonopt ;;
776 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
777 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
778 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
779 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
780 echo "$ac_t""$build" 1>&6
782 test "$host_alias" != "$target_alias" &&
783 test "$program_prefix$program_suffix$program_transform_name" = \
785 program_prefix
=${target_alias}-
787 if test "$program_transform_name" = s
,x
,x
,; then
788 program_transform_name
=
790 # Double any \ or $. echo might interpret backslashes.
791 cat <<\EOF_SED
> conftestsed
792 s
,\\,\\\\,g
; s
,\$
,$$
,g
794 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
797 test "$program_prefix" != NONE
&&
798 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
799 # Use a double $ so make ignores it.
800 test "$program_suffix" != NONE
&&
801 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
803 # sed with no file args requires a program.
804 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
806 # Extract the first word of "gcc", so it can be a program name with args.
807 set dummy gcc
; ac_word
=$2
808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
809 echo "configure:810: checking for $ac_word" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 if test -n "$CC"; then
814 ac_cv_prog_CC
="$CC" # Let the user override the test.
816 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
817 for ac_dir
in $PATH; do
818 test -z "$ac_dir" && ac_dir
=.
819 if test -f $ac_dir/$ac_word; then
828 if test -n "$CC"; then
829 echo "$ac_t""$CC" 1>&6
831 echo "$ac_t""no" 1>&6
834 if test -z "$CC"; then
835 # Extract the first word of "cc", so it can be a program name with args.
836 set dummy cc
; ac_word
=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:839: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 if test -n "$CC"; then
843 ac_cv_prog_CC
="$CC" # Let the user override the test.
845 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
847 for ac_dir
in $PATH; do
848 test -z "$ac_dir" && ac_dir
=.
849 if test -f $ac_dir/$ac_word; then
850 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
859 if test $ac_prog_rejected = yes; then
860 # We found a bogon in the path, so make sure we never use it.
861 set dummy
$ac_cv_prog_CC
863 if test $# -gt 0; then
864 # We chose a different compiler from the bogus one.
865 # However, it has the same basename, so the bogon will be chosen
866 # first if we set CC to just the basename; use the full file name.
868 set dummy
"$ac_dir/$ac_word" "$@"
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
879 echo "$ac_t""no" 1>&6
882 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
885 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
886 echo "configure:887: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
890 ac_cpp
='$CPP $CPPFLAGS'
891 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
892 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
893 cross_compiling
=$ac_cv_prog_cc_cross
895 cat > conftest.
$ac_ext <<EOF
896 #line 897 "configure"
897 #include "confdefs.h"
900 if { (eval echo configure
:901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
901 ac_cv_prog_cc_works
=yes
902 # If we can't run a trivial program, we are probably using a cross compiler.
903 if (.
/conftest
; exit) 2>/dev
/null
; then
904 ac_cv_prog_cc_cross
=no
906 ac_cv_prog_cc_cross
=yes
909 echo "configure: failed program was:" >&5
910 cat conftest.
$ac_ext >&5
911 ac_cv_prog_cc_works
=no
915 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
916 if test $ac_cv_prog_cc_works = no
; then
917 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
921 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
922 cross_compiling
=$ac_cv_prog_cc_cross
924 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
925 echo "configure:926: checking whether we are using GNU C" >&5
926 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
929 cat > conftest.c
<<EOF
934 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
941 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
943 if test $ac_cv_prog_gcc = yes; then
945 ac_test_CFLAGS
="${CFLAGS+set}"
946 ac_save_CFLAGS
="$CFLAGS"
948 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
949 echo "configure:950: checking whether ${CC-cc} accepts -g" >&5
950 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
951 echo $ac_n "(cached) $ac_c" 1>&6
953 echo 'void f(){}' > conftest.c
954 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
963 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
964 if test "$ac_test_CFLAGS" = set; then
965 CFLAGS
="$ac_save_CFLAGS"
966 elif test $ac_cv_prog_cc_g = yes; then
973 test "${CFLAGS+set}" = set || CFLAGS
="-g"
976 # Find a good install program. We prefer a C program (faster),
977 # so one script is as good as another. But avoid the broken or
978 # incompatible versions:
979 # SysV /etc/install, /usr/sbin/install
980 # SunOS /usr/etc/install
983 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
986 # ./install, which can be erroneously created by make from ./install.sh.
987 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
988 echo "configure:989: checking for a BSD compatible install" >&5
989 if test -z "$INSTALL"; then
990 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
994 for ac_dir
in $PATH; do
995 # Account for people who put trailing slashes in PATH elements.
997 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
999 # OSF1 and SCO ODT 3.0 have their own names for install.
1000 # Don't use installbsd from OSF since it installs stuff as root
1002 for ac_prog
in ginstall scoinst
install; do
1003 if test -f $ac_dir/$ac_prog; then
1004 if test $ac_prog = install &&
1005 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1006 # AIX install. It has an incompatible calling convention.
1009 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1020 if test "${ac_cv_path_install+set}" = set; then
1021 INSTALL
="$ac_cv_path_install"
1023 # As a last resort, use the slow shell script. We don't cache a
1024 # path for INSTALL within a source directory, because that will
1025 # break other packages using the cache if that directory is
1026 # removed, or if the path is relative.
1027 INSTALL
="$ac_install_sh"
1030 echo "$ac_t""$INSTALL" 1>&6
1032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1033 # It thinks the first close brace ends the variable substitution.
1034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1036 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1039 # Put a plausible default for CC_FOR_BUILD in Makefile.
1040 if test "x$cross_compiling" = "xno"; then
1041 CC_FOR_BUILD
='$(CC)'
1051 # Extract the first word of "ranlib", so it can be a program name with args.
1052 set dummy ranlib
; ac_word
=$2
1053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1054 echo "configure:1055: checking for $ac_word" >&5
1055 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1056 echo $ac_n "(cached) $ac_c" 1>&6
1058 if test -n "$RANLIB"; then
1059 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1061 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1062 for ac_dir
in $PATH; do
1063 test -z "$ac_dir" && ac_dir
=.
1064 if test -f $ac_dir/$ac_word; then
1065 ac_cv_prog_RANLIB
="ranlib"
1070 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1073 RANLIB
="$ac_cv_prog_RANLIB"
1074 if test -n "$RANLIB"; then
1075 echo "$ac_t""$RANLIB" 1>&6
1077 echo "$ac_t""no" 1>&6
1081 # Check for common headers.
1082 # FIXME: Seems to me this can cause problems for i386-windows hosts.
1083 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
1084 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
1086 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_hdr" >&5
1089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 cat > conftest.
$ac_ext <<EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1097 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1098 { (eval echo configure
:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1099 ac_err
=`grep -v '^ *+' conftest.out`
1100 if test -z "$ac_err"; then
1102 eval "ac_cv_header_$ac_safe=yes"
1105 echo "configure: failed program was:" >&5
1106 cat conftest.
$ac_ext >&5
1108 eval "ac_cv_header_$ac_safe=no"
1112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1113 echo "$ac_t""yes" 1>&6
1114 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1115 cat >> confdefs.h
<<EOF
1116 #define $ac_tr_hdr 1
1120 echo "$ac_t""no" 1>&6
1124 for ac_hdr
in sys
/time.h sys
/resource.h
1126 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_hdr" >&5
1129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1132 cat > conftest.
$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1137 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1138 { (eval echo configure
:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1139 ac_err
=`grep -v '^ *+' conftest.out`
1140 if test -z "$ac_err"; then
1142 eval "ac_cv_header_$ac_safe=yes"
1145 echo "configure: failed program was:" >&5
1146 cat conftest.
$ac_ext >&5
1148 eval "ac_cv_header_$ac_safe=no"
1152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1153 echo "$ac_t""yes" 1>&6
1154 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1155 cat >> confdefs.h
<<EOF
1156 #define $ac_tr_hdr 1
1160 echo "$ac_t""no" 1>&6
1164 for ac_hdr
in fcntl.h
1166 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_hdr" >&5
1169 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 cat > conftest.
$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1177 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1178 { (eval echo configure
:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1179 ac_err
=`grep -v '^ *+' conftest.out`
1180 if test -z "$ac_err"; then
1182 eval "ac_cv_header_$ac_safe=yes"
1185 echo "configure: failed program was:" >&5
1186 cat conftest.
$ac_ext >&5
1188 eval "ac_cv_header_$ac_safe=no"
1192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1193 echo "$ac_t""yes" 1>&6
1194 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1195 cat >> confdefs.h
<<EOF
1196 #define $ac_tr_hdr 1
1200 echo "$ac_t""no" 1>&6
1204 for ac_func
in getrusage
time sigaction
1206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1207 echo "configure:1208: checking for $ac_func" >&5
1208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 cat > conftest.
$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 /* System header to define __stub macros and hopefully few prototypes,
1215 which can conflict with char $ac_func(); below. */
1217 /* Override any gcc2 internal prototype to avoid an error. */
1218 /* We use char because int might match the return type of a gcc2
1219 builtin and then its argument prototype would still apply. */
1224 /* The GNU C library defines this for functions which it implements
1225 to always fail with ENOSYS. Some functions are actually named
1226 something starting with __ and the normal name is an alias. */
1227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1235 if { (eval echo configure
:1236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1237 eval "ac_cv_func_$ac_func=yes"
1239 echo "configure: failed program was:" >&5
1240 cat conftest.
$ac_ext >&5
1242 eval "ac_cv_func_$ac_func=no"
1247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1248 echo "$ac_t""yes" 1>&6
1249 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1250 cat >> confdefs.h
<<EOF
1251 #define $ac_tr_func 1
1255 echo "$ac_t""no" 1>&6
1260 .
${srcdir}/..
/..
/bfd
/configure.
host
1264 USE_MAINTAINER_MODE
=no
1265 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1266 if test "${enable_maintainer_mode+set}" = set; then
1267 enableval
="$enable_maintainer_mode"
1268 case "${enableval}" in
1269 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
1271 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
1273 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
1274 echo "Setting maintainer mode" 6>&1
1282 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1283 if test "${enable_sim_bswap+set}" = set; then
1284 enableval
="$enable_sim_bswap"
1285 case "${enableval}" in
1286 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
1287 no
) sim_bswap
="-DWITH_BSWAP=0";;
1288 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
1290 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
1291 echo "Setting bswap flags = $sim_bswap" 6>&1
1299 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1300 if test "${enable_sim_cflags+set}" = set; then
1301 enableval
="$enable_sim_cflags"
1302 case "${enableval}" in
1303 yes) sim_cflags
="-O2";;
1304 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
1306 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1308 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
1309 echo "Setting sim cflags = $sim_cflags" 6>&1
1317 # Check whether --enable-sim-debug or --disable-sim-debug was given.
1318 if test "${enable_sim_debug+set}" = set; then
1319 enableval
="$enable_sim_debug"
1320 case "${enableval}" in
1321 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
1322 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
1323 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
1325 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
1326 echo "Setting sim debug = $sim_debug" 6>&1
1334 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1335 if test "${enable_sim_stdio+set}" = set; then
1336 enableval
="$enable_sim_stdio"
1337 case "${enableval}" in
1338 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
1339 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
1340 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
1342 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1343 echo "Setting stdio flags = $sim_stdio" 6>&1
1351 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1352 if test "${enable_sim_trace+set}" = set; then
1353 enableval
="$enable_sim_trace"
1354 case "${enableval}" in
1355 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
1356 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
1358 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1361 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1362 if test x
"$sim_trace" = x
; then
1363 sim_trace
="-DWITH_TRACE='(TRACE_$x"
1365 sim_trace
="${sim_trace}|TRACE_$x"
1368 sim_trace
="$sim_trace)'" ;;
1370 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1371 echo "Setting sim trace = $sim_trace" 6>&1
1379 # Check whether --enable-sim-profile or --disable-sim-profile was given.
1380 if test "${enable_sim_profile+set}" = set; then
1381 enableval
="$enable_sim_profile"
1382 case "${enableval}" in
1383 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
1384 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
1386 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
1389 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1390 if test x
"$sim_profile" = x
; then
1391 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
1393 sim_profile
="${sim_profile}|PROFILE_$x"
1396 sim_profile
="$sim_profile)'" ;;
1398 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
1399 echo "Setting sim profile = $sim_profile" 6>&1
1407 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1408 echo "configure:1409: checking return type of signal handlers" >&5
1409 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1412 cat > conftest.
$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1415 #include <sys/types.h>
1421 extern "C" void (*signal (int, void (*)(int)))(int);
1423 void (*signal ()) ();
1430 if { (eval echo configure
:1431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1432 ac_cv_type_signal
=void
1434 echo "configure: failed program was:" >&5
1435 cat conftest.
$ac_ext >&5
1437 ac_cv_type_signal
=int
1442 echo "$ac_t""$ac_cv_type_signal" 1>&6
1443 cat >> confdefs.h
<<EOF
1444 #define RETSIGTYPE $ac_cv_type_signal
1453 sim_link_links
=tconfig.h
1454 if test -f ${srcdir}/tconfig.
in
1456 sim_link_files
=tconfig.
in
1458 sim_link_files
=..
/common
/tconfig.
in
1461 # targ-vals.def points to the libc macro description file.
1463 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
1465 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
1466 sim_link_links
="${sim_link_links} targ-vals.def"
1470 # Put a useful copy of CPP_FOR_TARGET in Makefile.
1471 # This is only used to build the target values header files. These files are
1472 # shipped with distributions so CPP_FOR_TARGET only needs to work in
1473 # developer's trees. This value is borrowed from ../../Makefile.in.
1474 CPP_FOR_TARGET
="\` \
1475 if test -f \$\${rootme}/../../gcc/Makefile ; then \
1476 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
1477 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
1479 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
1482 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
1485 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
1490 # Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
1491 if test x
"${host}" = x
"${target}" ; then
1494 TARGET_SUBDIR
=${target_alias}
1498 # These aren't all needed yet, but will be eventually.
1499 for ac_hdr
in stdlib.h string.h
strings.h
time.h sys
/times.h
1501 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1503 echo "configure:1504: checking for $ac_hdr" >&5
1504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1507 cat > conftest.
$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1512 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513 { (eval echo configure
:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514 ac_err
=`grep -v '^ *+' conftest.out`
1515 if test -z "$ac_err"; then
1517 eval "ac_cv_header_$ac_safe=yes"
1520 echo "configure: failed program was:" >&5
1521 cat conftest.
$ac_ext >&5
1523 eval "ac_cv_header_$ac_safe=no"
1527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1528 echo "$ac_t""yes" 1>&6
1529 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1530 cat >> confdefs.h
<<EOF
1531 #define $ac_tr_hdr 1
1535 echo "$ac_t""no" 1>&6
1541 cat > confcache
<<\EOF
1542 # This file is a shell script that caches the results of configure
1543 # tests run on this system so they can be shared between configure
1544 # scripts and configure runs. It is not useful on other systems.
1545 # If it contains results you don't want to keep, you may remove or edit it.
1547 # By default, configure uses ./config.cache as the cache file,
1548 # creating it if it does not exist already. You can give configure
1549 # the --cache-file=FILE option to use a different cache file; that is
1550 # what configure does when it calls configure scripts in
1551 # subdirectories, so they share the cache.
1552 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1553 # config.status only pays attention to the cache file if you give it the
1554 # --recheck option to rerun configure.
1557 # The following way of writing the cache mishandles newlines in values,
1558 # but we know of no workaround that is simple, portable, and efficient.
1559 # So, don't put newlines in cache variables' values.
1560 # Ultrix sh set writes to stderr and can't be redirected directly,
1561 # and sets the high bit in the cache file unless we assign to the vars.
1563 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1565 # `set' does not quote correctly, so add quotes (double-quote substitution
1566 # turns \\\\ into \\, and sed turns \\ into \).
1568 -e "s/'/'\\\\''/g" \
1569 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1572 # `set' quotes correctly as required by POSIX, so do not add quotes.
1573 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1576 if cmp -s $cache_file confcache
; then
1579 if test -w $cache_file; then
1580 echo "updating cache $cache_file"
1581 cat confcache
> $cache_file
1583 echo "not updating unwritable cache $cache_file"
1588 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1590 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1591 # Let make expand exec_prefix.
1592 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1594 # Any assignment to VPATH causes Sun make to only execute
1595 # the first set of double-colon rules, so remove it if not needed.
1596 # If there is a colon in the path, we need to keep it.
1597 if test "x$srcdir" = x.
; then
1598 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1601 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1603 DEFS
=-DHAVE_CONFIG_H
1605 # Without the "./", some shells look in PATH for config.status.
1606 : ${CONFIG_STATUS=./config.status}
1608 echo creating
$CONFIG_STATUS
1609 rm -f $CONFIG_STATUS
1610 cat > $CONFIG_STATUS <<EOF
1612 # Generated automatically by configure.
1613 # Run this file to recreate the current configuration.
1614 # This directory was configured as follows,
1615 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1617 # $0 $ac_configure_args
1619 # Compiler output produced by configure, useful for debugging
1620 # configure, is in ./config.log if it exists.
1622 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1625 case "\$ac_option" in
1626 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1627 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1628 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1629 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1630 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1632 -help | --help | --hel | --he | --h)
1633 echo "\$ac_cs_usage"; exit 0 ;;
1634 *) echo "\$ac_cs_usage"; exit 1 ;;
1638 ac_given_srcdir=$srcdir
1639 ac_given_INSTALL="$INSTALL"
1641 trap 'rm -fr `echo "Makefile cconfig.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1643 cat >> $CONFIG_STATUS <<EOF
1645 # Protect against being on the right side of a sed subst in config.status.
1646 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1647 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1650 s%@sim_environment@%$sim_environment%g
1651 s%@sim_alignment@%$sim_alignment%g
1652 s%@sim_assert@%$sim_assert%g
1653 s%@sim_bitsize@%$sim_bitsize%g
1654 s%@sim_endian@%$sim_endian%g
1655 s%@sim_hostendian@%$sim_hostendian%g
1656 s%@sim_float@%$sim_float%g
1657 s%@sim_scache@%$sim_scache%g
1658 s%@sim_default_model@%$sim_default_model%g
1659 s%@sim_hardware@%$sim_hardware%g
1660 s%@sim_hw_obj@%$sim_hw_obj%g
1661 s%@sim_hw@%$sim_hw%g
1662 s%@sim_inline@%$sim_inline%g
1663 s%@sim_packages@%$sim_packages%g
1664 s%@sim_regparm@%$sim_regparm%g
1665 s%@sim_reserved_bits@%$sim_reserved_bits%g
1666 s%@sim_smp@%$sim_smp%g
1667 s%@sim_stdcall@%$sim_stdcall%g
1668 s%@sim_xor_endian@%$sim_xor_endian%g
1669 s%@sim_warnings@%$sim_warnings%g
1671 s%@CFLAGS@%$CFLAGS%g
1672 s%@CPPFLAGS@%$CPPFLAGS%g
1673 s%@CXXFLAGS@%$CXXFLAGS%g
1675 s%@LDFLAGS@%$LDFLAGS%g
1677 s%@exec_prefix@%$exec_prefix%g
1678 s%@prefix@%$prefix%g
1679 s%@program_transform_name@%$program_transform_name%g
1680 s%@bindir@%$bindir%g
1681 s%@sbindir@%$sbindir%g
1682 s%@libexecdir@%$libexecdir%g
1683 s%@datadir@%$datadir%g
1684 s%@sysconfdir@%$sysconfdir%g
1685 s%@sharedstatedir@%$sharedstatedir%g
1686 s%@localstatedir@%$localstatedir%g
1687 s%@libdir@%$libdir%g
1688 s%@includedir@%$includedir%g
1689 s%@oldincludedir@%$oldincludedir%g
1690 s%@infodir@%$infodir%g
1691 s%@mandir@%$mandir%g
1693 s%@host_alias@%$host_alias%g
1694 s%@host_cpu@%$host_cpu%g
1695 s%@host_vendor@%$host_vendor%g
1696 s%@host_os@%$host_os%g
1697 s%@target@%$target%g
1698 s%@target_alias@%$target_alias%g
1699 s%@target_cpu@%$target_cpu%g
1700 s%@target_vendor@%$target_vendor%g
1701 s%@target_os@%$target_os%g
1703 s%@build_alias@%$build_alias%g
1704 s%@build_cpu@%$build_cpu%g
1705 s%@build_vendor@%$build_vendor%g
1706 s%@build_os@%$build_os%g
1708 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1709 s%@INSTALL_DATA@%$INSTALL_DATA%g
1710 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1711 s%@HDEFINES@%$HDEFINES%g
1713 s%@RANLIB@%$RANLIB%g
1716 s%@sim_bswap@%$sim_bswap%g
1717 s%@sim_cflags@%$sim_cflags%g
1718 s%@sim_debug@%$sim_debug%g
1719 s%@sim_stdio@%$sim_stdio%g
1720 s%@sim_trace@%$sim_trace%g
1721 s%@sim_profile@%$sim_profile%g
1722 s%@CPP_FOR_TARGET@%$CPP_FOR_TARGET%g
1723 s%@TARGET_SUBDIR@%$TARGET_SUBDIR%g
1728 cat >> $CONFIG_STATUS <<\EOF
1730 # Split the substitutions into bite-sized pieces for seds with
1731 # small command number limits, like on Digital OSF/1 and HP-UX.
1732 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1733 ac_file
=1 # Number of current file.
1734 ac_beg
=1 # First line for current file.
1735 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1738 while $ac_more_lines; do
1739 if test $ac_beg -gt 1; then
1740 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1742 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1744 if test ! -s conftest.s
$ac_file; then
1746 rm -f conftest.s
$ac_file
1748 if test -z "$ac_sed_cmds"; then
1749 ac_sed_cmds
="sed -f conftest.s$ac_file"
1751 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1753 ac_file
=`expr $ac_file + 1`
1755 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1758 if test -z "$ac_sed_cmds"; then
1763 cat >> $CONFIG_STATUS <<EOF
1765 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1767 cat >> $CONFIG_STATUS <<\EOF
1768 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1771 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1772 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1773 *) ac_file_in
="${ac_file}.in" ;;
1776 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1778 # Remove last slash and all that follows it. Not all systems have dirname.
1779 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1780 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1781 # The file is in a subdirectory.
1782 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1783 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1784 # A "../" for each directory in $ac_dir_suffix.
1785 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1787 ac_dir_suffix
= ac_dots
=
1790 case "$ac_given_srcdir" in
1792 if test -z "$ac_dots"; then top_srcdir
=.
1793 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1794 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1796 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1797 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1800 case "$ac_given_INSTALL" in
1801 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1802 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1805 echo creating
"$ac_file"
1807 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1809 *Makefile
*) ac_comsub
="1i\\
1810 # $configure_input" ;;
1814 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1816 s%@configure_input@%$configure_input%g
1817 s%@srcdir@%$srcdir%g
1818 s%@top_srcdir@%$top_srcdir%g
1819 s%@INSTALL@%$INSTALL%g
1820 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1824 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1825 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1827 # ac_d sets the value in "#define NAME VALUE" lines.
1828 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1829 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1832 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1833 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1834 ac_uB
='\([ ]\)%\1#\2define\3'
1837 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1838 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1839 ac_eB
='$%\1#\2define\3'
1843 if test "${CONFIG_HEADERS+set}" != set; then
1845 cat >> $CONFIG_STATUS <<EOF
1846 CONFIG_HEADERS="cconfig.h:config.in"
1848 cat >> $CONFIG_STATUS <<\EOF
1850 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1851 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1853 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1854 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1855 *) ac_file_in
="${ac_file}.in" ;;
1858 echo creating
$ac_file
1860 rm -f conftest.frag conftest.
in conftest.out
1861 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1862 cat $ac_file_inputs > conftest.
in
1866 # Transform confdefs.h into a sed script conftest.vals that substitutes
1867 # the proper values into config.h.in to produce config.h. And first:
1868 # Protect against being on the right side of a sed subst in config.status.
1869 # Protect against being in an unquoted here document in config.status.
1871 cat > conftest.hdr
<<\EOF
1874 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1878 sed -n -f conftest.hdr confdefs.h > conftest.vals
1881 # This sed command replaces #undef with comments. This is necessary, for
1882 # example, in the case of _POSIX_SOURCE, which is predefined and required
1883 # on some systems where configure will not decide to define it.
1884 cat >> conftest.vals <<\EOF
1885 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1888 # Break up conftest.vals because some shells have a limit on
1889 # the size of here documents, and old seds have small limits too.
1894 ac_lines=`grep -c . conftest.vals
`
1895 # grep -c gives empty output for an empty file on some AIX systems.
1896 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1897 # Write a limited-size here document to conftest.frag.
1898 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1899 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1901 sed -f conftest.frag conftest.in > conftest.out
1903 mv conftest.out conftest.in
1905 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1907 mv conftest.tail conftest.vals
1911 cat >> $CONFIG_STATUS <<\EOF
1912 rm -f conftest.frag conftest.h
1913 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1914 cat conftest.in >> conftest.h
1916 if cmp -s $ac_file conftest.h 2>/dev/null; then
1917 echo "$ac_file is unchanged"
1920 # Remove last slash and all that follows it. Not all systems have dirname.
1921 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1922 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1923 # The file is in a subdirectory.
1924 test ! -d "$ac_dir" && mkdir "$ac_dir"
1927 mv conftest.h $ac_file
1932 cat >> $CONFIG_STATUS <<EOF
1935 cat >> $CONFIG_STATUS <<\EOF
1936 case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac
1939 chmod +x $CONFIG_STATUS
1940 rm -fr confdefs* $ac_clean_files
1941 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
This page took 0.076908 seconds and 5 git commands to generate.