69 # Guess values for system-dependent variables and create Makefiles.
70 # Generated automatically using autoconf version 2.12
71 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
73 # This configure script is free software; the Free Software Foundation
74 # gives unlimited permission to copy, distribute and modify it.
78 ac_default_prefix
=/usr
/local
79 # Any additions from configure.in:
81 --enable-sim-bswap Use Host specific BSWAP instruction."
83 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
85 --enable-sim-debug=opts Enable debugging flags"
87 --enable-sim-stdio Specify whether to use stdio for console input/output."
89 --enable-sim-trace=opts Enable tracing flags"
91 --enable-sim-profile=opts Enable profiling flags"
93 --enable-sim-endian=endian Specify target byte endian orientation."
95 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
97 --enable-sim-hostendain=end Specify host byte endian orientation."
99 --enable-sim-scache=size Specify simulator execution cache size."
101 --enable-sim-default-model=model Specify default model to simulate."
103 # Initialize some variables set by options.
104 # The variables have the same names as the options, with
105 # dashes changed to underlines.
107 cache_file
=.
/config.cache
116 program_transform_name
=s
,x
,x
,
124 bindir
='${exec_prefix}/bin'
125 sbindir
='${exec_prefix}/sbin'
126 libexecdir
='${exec_prefix}/libexec'
127 datadir
='${prefix}/share'
128 sysconfdir
='${prefix}/etc'
129 sharedstatedir
='${prefix}/com'
130 localstatedir
='${prefix}/var'
131 libdir
='${exec_prefix}/lib'
132 includedir
='${prefix}/include'
133 oldincludedir
='/usr/include'
134 infodir
='${prefix}/info'
135 mandir
='${prefix}/man'
137 # Initialize some other variables.
140 # Maximum number of lines to put in a shell here document.
147 # If the previous option needs an argument, assign it.
148 if test -n "$ac_prev"; then
149 eval "$ac_prev=\$ac_option"
155 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
159 # Accept the important Cygnus configure options, so we can diagnose typos.
163 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
165 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
166 bindir
="$ac_optarg" ;;
168 -build |
--build |
--buil |
--bui |
--bu)
170 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
171 build
="$ac_optarg" ;;
173 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
174 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
175 ac_prev
=cache_file
;;
176 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
177 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
178 cache_file
="$ac_optarg" ;;
180 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
182 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
184 datadir
="$ac_optarg" ;;
186 -disable-* |
--disable-*)
187 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}=no" ;;
195 -enable-* |
--enable-*)
196 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
197 # Reject names that are not valid shell variable names.
198 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
199 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
206 eval "enable_${ac_feature}='$ac_optarg'" ;;
208 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
209 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
210 |
--exec |
--exe |
--ex)
211 ac_prev
=exec_prefix
;;
212 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
213 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
214 |
--exec=* |
--exe=* |
--ex=*)
215 exec_prefix
="$ac_optarg" ;;
217 -gas |
--gas |
--ga |
--g)
218 # Obsolete; use --with-gas.
221 -help |
--help |
--hel |
--he)
222 # Omit some internal or obsolete options to make the list less imposing.
223 # This message is too long to be a string in the A/UX 3.1 sh.
225 Usage: configure [options] [host]
226 Options: [defaults in brackets after descriptions]
228 --cache-file=FILE cache test results in FILE
229 --help print this message
230 --no-create do not create output files
231 --quiet, --silent do not print \`checking...' messages
232 --version print the version of autoconf that created configure
233 Directory and file names:
234 --prefix=PREFIX install architecture-independent files in PREFIX
236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 --bindir=DIR user executables in DIR [EPREFIX/bin]
239 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
240 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
241 --datadir=DIR read-only architecture-independent data in DIR
243 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
244 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
247 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
248 --includedir=DIR C header files in DIR [PREFIX/include]
249 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
250 --infodir=DIR info documentation in DIR [PREFIX/info]
251 --mandir=DIR man documentation in DIR [PREFIX/man]
252 --srcdir=DIR find the sources in DIR [configure dir or ..]
253 --program-prefix=PREFIX prepend PREFIX to installed program names
254 --program-suffix=SUFFIX append SUFFIX to installed program names
255 --program-transform-name=PROGRAM
256 run sed PROGRAM on installed program names
260 --build=BUILD configure for building on BUILD [BUILD=HOST]
261 --host=HOST configure for HOST [guessed]
262 --target=TARGET configure for TARGET [TARGET=HOST]
263 Features and packages:
264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
266 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
267 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
268 --x-includes=DIR X include files are in DIR
269 --x-libraries=DIR X library files are in DIR
271 if test -n "$ac_help"; then
272 echo "--enable and --with options recognized:$ac_help"
276 -host |
--host |
--hos |
--ho)
278 -host=* |
--host=* |
--hos=* |
--ho=*)
281 -includedir |
--includedir |
--includedi |
--included |
--include \
282 |
--includ |
--inclu |
--incl |
--inc)
283 ac_prev
=includedir
;;
284 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
285 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
286 includedir
="$ac_optarg" ;;
288 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
290 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
291 infodir
="$ac_optarg" ;;
293 -libdir |
--libdir |
--libdi |
--libd)
295 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
296 libdir
="$ac_optarg" ;;
298 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
299 |
--libexe |
--libex |
--libe)
300 ac_prev
=libexecdir
;;
301 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
302 |
--libexe=* |
--libex=* |
--libe=*)
303 libexecdir
="$ac_optarg" ;;
305 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
306 |
--localstate |
--localstat |
--localsta |
--localst \
307 |
--locals |
--local |
--loca |
--loc |
--lo)
308 ac_prev
=localstatedir
;;
309 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
310 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
311 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
312 localstatedir
="$ac_optarg" ;;
314 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
316 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
317 mandir
="$ac_optarg" ;;
320 # Obsolete; use --without-fp.
323 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
327 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
328 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
331 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
332 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
333 |
--oldin |
--oldi |
--old |
--ol |
--o)
334 ac_prev
=oldincludedir
;;
335 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
336 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
337 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
338 oldincludedir
="$ac_optarg" ;;
340 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
342 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
343 prefix
="$ac_optarg" ;;
345 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
346 |
--program-pre |
--program-pr |
--program-p)
347 ac_prev
=program_prefix
;;
348 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
349 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
350 program_prefix
="$ac_optarg" ;;
352 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
353 |
--program-suf |
--program-su |
--program-s)
354 ac_prev
=program_suffix
;;
355 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
356 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
357 program_suffix
="$ac_optarg" ;;
359 -program-transform-name |
--program-transform-name \
360 |
--program-transform-nam |
--program-transform-na \
361 |
--program-transform-n |
--program-transform- \
362 |
--program-transform |
--program-transfor \
363 |
--program-transfo |
--program-transf \
364 |
--program-trans |
--program-tran \
365 |
--progr-tra |
--program-tr |
--program-t)
366 ac_prev
=program_transform_name
;;
367 -program-transform-name=* |
--program-transform-name=* \
368 |
--program-transform-nam=* |
--program-transform-na=* \
369 |
--program-transform-n=* |
--program-transform-=* \
370 |
--program-transform=* |
--program-transfor=* \
371 |
--program-transfo=* |
--program-transf=* \
372 |
--program-trans=* |
--program-tran=* \
373 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
374 program_transform_name
="$ac_optarg" ;;
376 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
377 |
-silent |
--silent |
--silen |
--sile |
--sil)
380 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
382 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
384 sbindir
="$ac_optarg" ;;
386 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
387 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
388 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
390 ac_prev
=sharedstatedir
;;
391 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
392 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
393 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
395 sharedstatedir
="$ac_optarg" ;;
397 -site |
--site |
--sit)
399 -site=* |
--site=* |
--sit=*)
402 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
404 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
405 srcdir
="$ac_optarg" ;;
407 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
408 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
409 ac_prev
=sysconfdir
;;
410 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
411 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
412 sysconfdir
="$ac_optarg" ;;
414 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
416 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
417 target
="$ac_optarg" ;;
419 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
422 -version |
--version |
--versio |
--versi |
--vers)
423 echo "configure generated by autoconf version 2.12"
427 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package
=`echo $ac_package| sed 's/-/_/g'`
437 eval "with_${ac_package}='$ac_optarg'" ;;
439 -without-* |
--without-*)
440 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package
=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
453 |
--x-incl |
--x-inc |
--x-in |
--x-i)
454 ac_prev
=x_includes
;;
455 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
456 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
457 x_includes
="$ac_optarg" ;;
459 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
460 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
461 ac_prev
=x_libraries
;;
462 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
463 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
464 x_libraries
="$ac_optarg" ;;
466 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
470 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
471 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 if test "x$nonopt" != xNONE
; then
474 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 if test -n "$ac_prev"; then
483 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488 # File descriptor usage:
491 # 2 errors and warnings
492 # 3 some systems may open it to /dev/tty
493 # 4 used on the Kubota Titan
494 # 6 checking for... messages and results
495 # 5 compiler messages saved in config.log
496 if test "$silent" = yes; then
504 This file contains any messages produced by compilers while
505 running configure, to aid debugging if configure makes a mistake.
508 # Strip out --no-create and --no-recursion so they do not pile up.
509 # Also quote any args containing shell metacharacters.
514 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
515 |
--no-cr |
--no-c) ;;
516 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
517 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
518 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
519 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
520 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
525 # Only set these to C if already set. These must not be set unconditionally
526 # because not all systems understand e.g. LANG=C (notably SCO).
527 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
528 # Non-C LC_CTYPE values break the ctype check.
529 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
530 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
531 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
532 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
535 rm -rf conftest
* confdefs.h
536 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
539 # A filename unique to this package, relative to the directory that
540 # configure is in, which we can look for to find out if srcdir is correct.
541 ac_unique_file
=Makefile.
in
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted
=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted
=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
564 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566 # Prefer explicitly selected file to automatically selected ones.
567 if test -z "$CONFIG_SITE"; then
568 if test "x$prefix" != xNONE
; then
569 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
571 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 for ac_site_file
in $CONFIG_SITE; do
575 if test -r "$ac_site_file"; then
576 echo "loading site script $ac_site_file"
581 if test -r "$cache_file"; then
582 echo "loading cache $cache_file"
585 echo "creating cache $cache_file"
590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
591 ac_cpp
='$CPP $CPPFLAGS'
592 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
593 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
594 cross_compiling
=$ac_cv_prog_cc_cross
596 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
597 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
598 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
605 ac_n
= ac_c
='\c' ac_t
=
610 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
611 echo "configure:612: checking how to run the C preprocessor" >&5
612 # On Suns, sometimes $CPP names a directory.
613 if test -n "$CPP" && test -d "$CPP"; then
616 if test -z "$CPP"; then
617 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 # This must be in double quotes, not single quotes, because CPP may get
621 # substituted into the Makefile and "${CC-cc}" will confuse make.
623 # On the NeXT, cc -E runs the code through the compiler's parser,
624 # not just through cpp.
625 cat > conftest.
$ac_ext <<EOF
626 #line 627 "configure"
627 #include "confdefs.h"
631 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
632 { (eval echo configure
:633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
633 ac_err
=`grep -v '^ *+' conftest.out`
634 if test -z "$ac_err"; then
638 echo "configure: failed program was:" >&5
639 cat conftest.
$ac_ext >&5
641 CPP
="${CC-cc} -E -traditional-cpp"
642 cat > conftest.
$ac_ext <<EOF
643 #line 644 "configure"
644 #include "confdefs.h"
648 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
649 { (eval echo configure
:650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
650 ac_err
=`grep -v '^ *+' conftest.out`
651 if test -z "$ac_err"; then
655 echo "configure: failed program was:" >&5
656 cat conftest.
$ac_ext >&5
663 ac_cv_prog_CPP
="$CPP"
665 CPP
="$ac_cv_prog_CPP"
667 ac_cv_prog_CPP
="$CPP"
669 echo "$ac_t""$CPP" 1>&6
672 # autoconf.info says this should be called right after AC_INIT.
676 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
677 if test -f $ac_dir/install-sh
; then
679 ac_install_sh
="$ac_aux_dir/install-sh -c"
681 elif test -f $ac_dir/install.sh
; then
683 ac_install_sh
="$ac_aux_dir/install.sh -c"
687 if test -z "$ac_aux_dir"; then
688 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
690 ac_config_guess
=$ac_aux_dir/config.guess
691 ac_config_sub
=$ac_aux_dir/config.sub
692 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
695 # Do some error checking and defaulting for the host and target type.
697 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
700 # 1. You are not allowed to specify --host, --target, and nonopt at the
702 # 2. Host defaults to nonopt.
703 # 3. If nonopt is not specified, then host defaults to the current host,
704 # as determined by config.guess.
705 # 4. Target and build default to nonopt.
706 # 5. If nonopt is not specified, then target and build default to host.
708 # The aliases save the names the user supplied, while $host etc.
709 # will get canonicalized.
710 case $host---$target---$nonopt in
711 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
712 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
716 # Make sure we can run config.sub.
717 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
718 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
721 echo $ac_n "checking host system type""... $ac_c" 1>&6
722 echo "configure:723: checking host system type" >&5
725 case "$host_alias" in
729 if host_alias
=`$ac_config_guess`; then :
730 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
732 *) host_alias
=$nonopt ;;
736 host=`$ac_config_sub $host_alias`
737 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
738 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
739 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
740 echo "$ac_t""$host" 1>&6
742 echo $ac_n "checking target system type""... $ac_c" 1>&6
743 echo "configure:744: checking target system type" >&5
746 case "$target_alias" in
749 NONE
) target_alias
=$host_alias ;;
750 *) target_alias
=$nonopt ;;
754 target
=`$ac_config_sub $target_alias`
755 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
756 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
757 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
758 echo "$ac_t""$target" 1>&6
760 echo $ac_n "checking build system type""... $ac_c" 1>&6
761 echo "configure:762: checking build system type" >&5
764 case "$build_alias" in
767 NONE
) build_alias
=$host_alias ;;
768 *) build_alias
=$nonopt ;;
772 build
=`$ac_config_sub $build_alias`
773 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
774 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
775 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
776 echo "$ac_t""$build" 1>&6
778 test "$host_alias" != "$target_alias" &&
779 test "$program_prefix$program_suffix$program_transform_name" = \
781 program_prefix
=${target_alias}-
783 if test "$program_transform_name" = s
,x
,x
,; then
784 program_transform_name
=
786 # Double any \ or $. echo might interpret backslashes.
787 cat <<\EOF_SED
> conftestsed
788 s
,\\,\\\\,g
; s
,\$
,$$
,g
790 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
793 test "$program_prefix" != NONE
&&
794 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
795 # Use a double $ so make ignores it.
796 test "$program_suffix" != NONE
&&
797 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
799 # sed with no file args requires a program.
800 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
802 # Extract the first word of "gcc", so it can be a program name with args.
803 set dummy gcc
; ac_word
=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 if test -n "$CC"; then
810 ac_cv_prog_CC
="$CC" # Let the user override the test.
812 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
813 for ac_dir
in $PATH; do
814 test -z "$ac_dir" && ac_dir
=.
815 if test -f $ac_dir/$ac_word; then
824 if test -n "$CC"; then
825 echo "$ac_t""$CC" 1>&6
827 echo "$ac_t""no" 1>&6
830 if test -z "$CC"; then
831 # Extract the first word of "cc", so it can be a program name with args.
832 set dummy cc
; ac_word
=$2
833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
834 echo "configure:835: checking for $ac_word" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 if test -n "$CC"; then
839 ac_cv_prog_CC
="$CC" # Let the user override the test.
841 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
843 for ac_dir
in $PATH; do
844 test -z "$ac_dir" && ac_dir
=.
845 if test -f $ac_dir/$ac_word; then
846 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
855 if test $ac_prog_rejected = yes; then
856 # We found a bogon in the path, so make sure we never use it.
857 set dummy
$ac_cv_prog_CC
859 if test $# -gt 0; then
860 # We chose a different compiler from the bogus one.
861 # However, it has the same basename, so the bogon will be chosen
862 # first if we set CC to just the basename; use the full file name.
864 set dummy
"$ac_dir/$ac_word" "$@"
872 if test -n "$CC"; then
873 echo "$ac_t""$CC" 1>&6
875 echo "$ac_t""no" 1>&6
878 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
881 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
882 echo "configure:883: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
885 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
886 ac_cpp
='$CPP $CPPFLAGS'
887 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
888 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
889 cross_compiling
=$ac_cv_prog_cc_cross
891 cat > conftest.
$ac_ext <<EOF
892 #line 893 "configure"
893 #include "confdefs.h"
896 if { (eval echo configure
:897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
897 ac_cv_prog_cc_works
=yes
898 # If we can't run a trivial program, we are probably using a cross compiler.
899 if (.
/conftest
; exit) 2>/dev
/null
; then
900 ac_cv_prog_cc_cross
=no
902 ac_cv_prog_cc_cross
=yes
905 echo "configure: failed program was:" >&5
906 cat conftest.
$ac_ext >&5
907 ac_cv_prog_cc_works
=no
911 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
912 if test $ac_cv_prog_cc_works = no
; then
913 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
915 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
916 echo "configure:917: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
917 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
918 cross_compiling
=$ac_cv_prog_cc_cross
920 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
921 echo "configure:922: checking whether we are using GNU C" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 cat > conftest.c
<<EOF
930 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
937 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
939 if test $ac_cv_prog_gcc = yes; then
941 ac_test_CFLAGS
="${CFLAGS+set}"
942 ac_save_CFLAGS
="$CFLAGS"
944 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
945 echo "configure:946: checking whether ${CC-cc} accepts -g" >&5
946 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
949 echo 'void f(){}' > conftest.c
950 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
959 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
960 if test "$ac_test_CFLAGS" = set; then
961 CFLAGS
="$ac_save_CFLAGS"
962 elif test $ac_cv_prog_cc_g = yes; then
969 test "${CFLAGS+set}" = set || CFLAGS
="-g"
972 # Find a good install program. We prefer a C program (faster),
973 # so one script is as good as another. But avoid the broken or
974 # incompatible versions:
975 # SysV /etc/install, /usr/sbin/install
976 # SunOS /usr/etc/install
979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
981 # ./install, which can be erroneously created by make from ./install.sh.
982 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
983 echo "configure:984: checking for a BSD compatible install" >&5
984 if test -z "$INSTALL"; then
985 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
989 for ac_dir
in $PATH; do
990 # Account for people who put trailing slashes in PATH elements.
992 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
994 # OSF1 and SCO ODT 3.0 have their own names for install.
995 for ac_prog
in ginstall installbsd scoinst
install; do
996 if test -f $ac_dir/$ac_prog; then
997 if test $ac_prog = install &&
998 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
999 # AIX install. It has an incompatible calling convention.
1000 # OSF/1 installbsd also uses dspmsg, but is usable.
1003 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1014 if test "${ac_cv_path_install+set}" = set; then
1015 INSTALL
="$ac_cv_path_install"
1017 # As a last resort, use the slow shell script. We don't cache a
1018 # path for INSTALL within a source directory, because that will
1019 # break other packages using the cache if that directory is
1020 # removed, or if the path is relative.
1021 INSTALL
="$ac_install_sh"
1024 echo "$ac_t""$INSTALL" 1>&6
1026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1027 # It thinks the first close brace ends the variable substitution.
1028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1030 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1033 # Put a plausible default for CC_FOR_BUILD in Makefile.
1034 if test "x$cross_compiling" = "xno"; then
1035 CC_FOR_BUILD
='$(CC)'
1045 # Extract the first word of "ranlib", so it can be a program name with args.
1046 set dummy ranlib
; ac_word
=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048 echo "configure:1049: checking for $ac_word" >&5
1049 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 if test -n "$RANLIB"; then
1053 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1055 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1056 for ac_dir
in $PATH; do
1057 test -z "$ac_dir" && ac_dir
=.
1058 if test -f $ac_dir/$ac_word; then
1059 ac_cv_prog_RANLIB
="ranlib"
1064 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1067 RANLIB
="$ac_cv_prog_RANLIB"
1068 if test -n "$RANLIB"; then
1069 echo "$ac_t""$RANLIB" 1>&6
1071 echo "$ac_t""no" 1>&6
1075 # Check for common headers.
1076 # FIXME: Seems to me this can cause problems for i386-windows hosts.
1077 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
1078 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h sys
/time.h sys
/resource.h
1080 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_hdr" >&5
1083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 cat > conftest.
$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1091 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1092 { (eval echo configure
:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1093 ac_err
=`grep -v '^ *+' conftest.out`
1094 if test -z "$ac_err"; then
1096 eval "ac_cv_header_$ac_safe=yes"
1099 echo "configure: failed program was:" >&5
1100 cat conftest.
$ac_ext >&5
1102 eval "ac_cv_header_$ac_safe=no"
1106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1107 echo "$ac_t""yes" 1>&6
1108 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1109 cat >> confdefs.h
<<EOF
1110 #define $ac_tr_hdr 1
1114 echo "$ac_t""no" 1>&6
1118 for ac_func
in getrusage
time
1120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1121 echo "configure:1122: checking for $ac_func" >&5
1122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 cat > conftest.
$ac_ext <<EOF
1126 #line 1127 "configure"
1127 #include "confdefs.h"
1128 /* System header to define __stub macros and hopefully few prototypes,
1129 which can conflict with char $ac_func(); below. */
1131 /* Override any gcc2 internal prototype to avoid an error. */
1132 /* We use char because int might match the return type of a gcc2
1133 builtin and then its argument prototype would still apply. */
1138 /* The GNU C library defines this for functions which it implements
1139 to always fail with ENOSYS. Some functions are actually named
1140 something starting with __ and the normal name is an alias. */
1141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1149 if { (eval echo configure
:1150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1151 eval "ac_cv_func_$ac_func=yes"
1153 echo "configure: failed program was:" >&5
1154 cat conftest.
$ac_ext >&5
1156 eval "ac_cv_func_$ac_func=no"
1161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1162 echo "$ac_t""yes" 1>&6
1163 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1164 cat >> confdefs.h
<<EOF
1165 #define $ac_tr_func 1
1169 echo "$ac_t""no" 1>&6
1174 .
${srcdir}/..
/..
/bfd
/configure.
host
1178 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1179 if test "${enable_sim_bswap+set}" = set; then
1180 enableval
="$enable_sim_bswap"
1181 case "${enableval}" in
1182 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
1183 no
) sim_bswap
="-DWITH_BSWAP=0";;
1184 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
1186 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
1187 echo "Setting bswap flags = $sim_bswap" 6>&1
1195 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1196 if test "${enable_sim_cflags+set}" = set; then
1197 enableval
="$enable_sim_cflags"
1198 case "${enableval}" in
1199 yes) sim_cflags
="-O2";;
1200 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
1202 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1204 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
1205 echo "Setting sim cflags = $sim_cflags" 6>&1
1213 # Check whether --enable-sim-debug or --disable-sim-debug was given.
1214 if test "${enable_sim_debug+set}" = set; then
1215 enableval
="$enable_sim_debug"
1216 case "${enableval}" in
1217 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
1218 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
1219 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
1221 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
1222 echo "Setting sim debug = $sim_debug" 6>&1
1230 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1231 if test "${enable_sim_stdio+set}" = set; then
1232 enableval
="$enable_sim_stdio"
1233 case "${enableval}" in
1234 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
1235 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
1236 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
1238 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1239 echo "Setting stdio flags = $sim_stdio" 6>&1
1247 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1248 if test "${enable_sim_trace+set}" = set; then
1249 enableval
="$enable_sim_trace"
1250 case "${enableval}" in
1251 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
1252 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
1254 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1257 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1258 if test x
"$sim_trace" = x
; then
1259 sim_trace
="-DWITH_TRACE='(TRACE_$x"
1261 sim_trace
="${sim_trace}|TRACE_$x"
1264 sim_trace
="$sim_trace)'" ;;
1266 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1267 echo "Setting sim trace = $sim_trace" 6>&1
1275 # Check whether --enable-sim-profile or --disable-sim-profile was given.
1276 if test "${enable_sim_profile+set}" = set; then
1277 enableval
="$enable_sim_profile"
1278 case "${enableval}" in
1279 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
1280 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
1282 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
1285 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1286 if test x
"$sim_profile" = x
; then
1287 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
1289 sim_profile
="${sim_profile}|PROFILE_$x"
1292 sim_profile
="$sim_profile)'" ;;
1294 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
1295 echo "Setting sim profile = $sim_profile" 6>&1
1303 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1304 echo "configure:1305: checking return type of signal handlers" >&5
1305 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 cat > conftest.
$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 #include <sys/types.h>
1317 extern "C" void (*signal (int, void (*)(int)))(int);
1319 void (*signal ()) ();
1326 if { (eval echo configure
:1327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1328 ac_cv_type_signal
=void
1330 echo "configure: failed program was:" >&5
1331 cat conftest.
$ac_ext >&5
1333 ac_cv_type_signal
=int
1338 echo "$ac_t""$ac_cv_type_signal" 1>&6
1339 cat >> confdefs.h
<<EOF
1340 #define RETSIGTYPE $ac_cv_type_signal
1349 sim_link_links
=tconfig.h
1350 if test -f ${srcdir}/tconfig.
in
1352 sim_link_files
=tconfig.
in
1354 sim_link_files
=..
/common
/tconfig.
in
1357 # targ-vals.def points to the libc macro description file.
1359 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
1361 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
1362 sim_link_links
="${sim_link_links} targ-vals.def"
1366 sim_link_files
="${sim_link_files} m32r-sim.h ../../opcodes/m32r-opc.h"
1367 sim_link_links
="${sim_link_links} cpu-sim.h cpu-opc.h"
1370 wire_endian
="BIG_ENDIAN"
1372 # Check whether --enable-sim-endian or --disable-sim-endian was given.
1373 if test "${enable_sim_endian+set}" = set; then
1374 enableval
="$enable_sim_endian"
1375 case "${enableval}" in
1376 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1377 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1378 yes) if test x
"$wire_endian" != x
; then
1379 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1381 if test x
"$default_endian" != x
; then
1382 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
1384 echo "No hard-wired endian for target $target" 1>&6
1385 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
1388 no
) if test x
"$default_endian" != x
; then
1389 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1391 if test x
"$wire_endian" != x
; then
1392 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
1394 echo "No default endian for target $target" 1>&6
1395 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
1398 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
1400 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
1401 echo "Setting endian flags = $sim_endian" 6>&1
1404 if test x
"$default_endian" != x
; then
1405 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1407 if test x
"$wire_endian" != x
; then
1408 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1415 wire_alignment
="NONSTRICT_ALIGNMENT"
1416 default_alignment
=""
1418 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
1419 if test "${enable_sim_alignment+set}" = set; then
1420 enableval
="$enable_sim_alignment"
1421 case "${enableval}" in
1422 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
1423 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
1424 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
1425 yes) if test x
"$wire_alignment" != x
; then
1426 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
1428 if test x
"$default_alignment" != x
; then
1429 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
1431 echo "No hard-wired alignment for target $target" 1>&6
1432 sim_alignment
="-DWITH_ALIGNMENT=0"
1435 no
) if test x
"$default_alignment" != x
; then
1436 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1438 if test x
"$wire_alignment" != x
; then
1439 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
1441 echo "No default alignment for target $target" 1>&6
1442 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
1445 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
1447 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
1448 echo "Setting alignment flags = $sim_alignment" 6>&1
1451 if test x
"$default_alignment" != x
; then
1452 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
1454 if test x
"$wire_alignment" != x
; then
1455 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
1463 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
1464 if test "${enable_sim_hostendian+set}" = set; then
1465 enableval
="$enable_sim_hostendian"
1466 case "${enableval}" in
1467 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
1468 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
1469 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
1470 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
1472 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
1473 echo "Setting hostendian flags = $sim_hostendian" 6>&1
1477 if test "x$cross_compiling" = "xno"; then
1478 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1479 echo "configure:1480: checking whether byte ordering is bigendian" >&5
1480 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1483 ac_cv_c_bigendian
=unknown
1484 # See if sys/param.h defines the BYTE_ORDER macro.
1485 cat > conftest.
$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 #include <sys/types.h>
1489 #include <sys/param.h>
1492 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1497 if { (eval echo configure
:1498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1499 # It does; now see whether it defined to BIG_ENDIAN or not.
1500 cat > conftest.
$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1503 #include <sys/types.h>
1504 #include <sys/param.h>
1507 #if BYTE_ORDER != BIG_ENDIAN
1512 if { (eval echo configure
:1513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1514 ac_cv_c_bigendian
=yes
1516 echo "configure: failed program was:" >&5
1517 cat conftest.
$ac_ext >&5
1519 ac_cv_c_bigendian
=no
1523 echo "configure: failed program was:" >&5
1524 cat conftest.
$ac_ext >&5
1527 if test $ac_cv_c_bigendian = unknown
; then
1528 if test "$cross_compiling" = yes; then
1529 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1531 cat > conftest.
$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1535 /* Are we little or big endian? From Harbison&Steele. */
1539 char c[sizeof (long)];
1542 exit (u.c[sizeof (long) - 1] == 1);
1545 if { (eval echo configure
:1546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1547 ac_cv_c_bigendian
=no
1549 echo "configure: failed program was:" >&5
1550 cat conftest.
$ac_ext >&5
1552 ac_cv_c_bigendian
=yes
1560 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1561 if test $ac_cv_c_bigendian = yes; then
1562 cat >> confdefs.h
<<\EOF
1563 #define WORDS_BIGENDIAN 1
1568 if test $ac_cv_c_bigendian = yes; then
1569 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1571 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1574 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
1579 default_sim_scache
="1024"
1580 # Check whether --enable-sim-scache or --disable-sim-scache was given.
1581 if test "${enable_sim_scache+set}" = set; then
1582 enableval
="$enable_sim_scache"
1583 case "${enableval}" in
1584 yes) sim_scache
="-DWITH_SCACHE=${default_sim_scache}";;
1586 [0-9]*) sim_cache
=${enableval};;
1587 *) { echo "configure: error: "Bad value
$enableval passed to
--enable-sim-scache"" 1>&2; exit 1; };
1590 if test x
"$silent" != x
"yes" && test x
"$sim_scache" != x
""; then
1591 echo "Setting scache size = $sim_scache" 6>&1
1594 sim_scache
="-DWITH_SCACHE=${default_sim_scache}"
1599 default_sim_default_model
="m32r/d"
1600 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
1601 if test "${enable_sim_default_model+set}" = set; then
1602 enableval
="$enable_sim_default_model"
1603 case "${enableval}" in
1604 yes|no
) { echo "configure: error: "Missing argument to
--enable-sim-default-model"" 1>&2; exit 1; };;
1605 *) sim_default_model
="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
1607 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
1608 echo "Setting default model = $sim_default_model" 6>&1
1611 sim_default_model
="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
1619 cat > confcache
<<\EOF
1620 # This file is a shell script that caches the results of configure
1621 # tests run on this system so they can be shared between configure
1622 # scripts and configure runs. It is not useful on other systems.
1623 # If it contains results you don't want to keep, you may remove or edit it.
1625 # By default, configure uses ./config.cache as the cache file,
1626 # creating it if it does not exist already. You can give configure
1627 # the --cache-file=FILE option to use a different cache file; that is
1628 # what configure does when it calls configure scripts in
1629 # subdirectories, so they share the cache.
1630 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1631 # config.status only pays attention to the cache file if you give it the
1632 # --recheck option to rerun configure.
1635 # The following way of writing the cache mishandles newlines in values,
1636 # but we know of no workaround that is simple, portable, and efficient.
1637 # So, don't put newlines in cache variables' values.
1638 # Ultrix sh set writes to stderr and can't be redirected directly,
1639 # and sets the high bit in the cache file unless we assign to the vars.
1641 case `(ac_space=' '; set) 2>&1` in
1643 # `set' does not quote correctly, so add quotes (double-quote substitution
1644 # turns \\\\ into \\, and sed turns \\ into \).
1646 -e "s/'/'\\\\''/g" \
1647 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1650 # `set' quotes correctly as required by POSIX, so do not add quotes.
1651 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1654 if cmp -s $cache_file confcache
; then
1657 if test -w $cache_file; then
1658 echo "updating cache $cache_file"
1659 cat confcache
> $cache_file
1661 echo "not updating unwritable cache $cache_file"
1666 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1668 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1669 # Let make expand exec_prefix.
1670 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1672 # Any assignment to VPATH causes Sun make to only execute
1673 # the first set of double-colon rules, so remove it if not needed.
1674 # If there is a colon in the path, we need to keep it.
1675 if test "x$srcdir" = x.
; then
1676 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1679 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1681 DEFS
=-DHAVE_CONFIG_H
1683 # Without the "./", some shells look in PATH for config.status.
1684 : ${CONFIG_STATUS=./config.status}
1686 echo creating
$CONFIG_STATUS
1687 rm -f $CONFIG_STATUS
1688 cat > $CONFIG_STATUS <<EOF
1690 # Generated automatically by configure.
1691 # Run this file to recreate the current configuration.
1692 # This directory was configured as follows,
1693 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1695 # $0 $ac_configure_args
1697 # Compiler output produced by configure, useful for debugging
1698 # configure, is in ./config.log if it exists.
1700 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1703 case "\$ac_option" in
1704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1705 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1706 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1707 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1708 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1710 -help | --help | --hel | --he | --h)
1711 echo "\$ac_cs_usage"; exit 0 ;;
1712 *) echo "\$ac_cs_usage"; exit 1 ;;
1716 ac_given_srcdir=$srcdir
1717 ac_given_INSTALL="$INSTALL"
1719 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
1721 cat >> $CONFIG_STATUS <<EOF
1723 # Protect against being on the right side of a sed subst in config.status.
1724 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1725 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1728 s%@sim_alignment@%$sim_alignment%g
1729 s%@sim_assert@%$sim_assert%g
1730 s%@sim_endian@%$sim_endian%g
1731 s%@sim_hostendian@%$sim_hostendian%g
1732 s%@sim_float@%$sim_float%g
1733 s%@sim_scache@%$sim_scache%g
1734 s%@sim_default_model@%$sim_default_model%g
1735 s%@sim_hardware@%$sim_hardware%g
1736 s%@sim_inline@%$sim_inline%g
1737 s%@sim_packages@%$sim_packages%g
1738 s%@sim_regparm@%$sim_regparm%g
1739 s%@sim_reserved_bits@%$sim_reserved_bits%g
1740 s%@sim_smp@%$sim_smp%g
1741 s%@sim_stdcall@%$sim_stdcall%g
1742 s%@sim_xor_endian@%$sim_xor_endian%g
1743 s%@sim_warnings@%$sim_warnings%g
1744 s%@CFLAGS@%$CFLAGS%g
1745 s%@CPPFLAGS@%$CPPFLAGS%g
1746 s%@CXXFLAGS@%$CXXFLAGS%g
1748 s%@LDFLAGS@%$LDFLAGS%g
1750 s%@exec_prefix@%$exec_prefix%g
1751 s%@prefix@%$prefix%g
1752 s%@program_transform_name@%$program_transform_name%g
1753 s%@bindir@%$bindir%g
1754 s%@sbindir@%$sbindir%g
1755 s%@libexecdir@%$libexecdir%g
1756 s%@datadir@%$datadir%g
1757 s%@sysconfdir@%$sysconfdir%g
1758 s%@sharedstatedir@%$sharedstatedir%g
1759 s%@localstatedir@%$localstatedir%g
1760 s%@libdir@%$libdir%g
1761 s%@includedir@%$includedir%g
1762 s%@oldincludedir@%$oldincludedir%g
1763 s%@infodir@%$infodir%g
1764 s%@mandir@%$mandir%g
1766 s%@host_alias@%$host_alias%g
1767 s%@host_cpu@%$host_cpu%g
1768 s%@host_vendor@%$host_vendor%g
1769 s%@host_os@%$host_os%g
1770 s%@target@%$target%g
1771 s%@target_alias@%$target_alias%g
1772 s%@target_cpu@%$target_cpu%g
1773 s%@target_vendor@%$target_vendor%g
1774 s%@target_os@%$target_os%g
1776 s%@build_alias@%$build_alias%g
1777 s%@build_cpu@%$build_cpu%g
1778 s%@build_vendor@%$build_vendor%g
1779 s%@build_os@%$build_os%g
1781 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1782 s%@INSTALL_DATA@%$INSTALL_DATA%g
1783 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1784 s%@HDEFINES@%$HDEFINES%g
1786 s%@RANLIB@%$RANLIB%g
1788 s%@sim_bswap@%$sim_bswap%g
1789 s%@sim_cflags@%$sim_cflags%g
1790 s%@sim_debug@%$sim_debug%g
1791 s%@sim_stdio@%$sim_stdio%g
1792 s%@sim_trace@%$sim_trace%g
1793 s%@sim_profile@%$sim_profile%g
1798 cat >> $CONFIG_STATUS <<\EOF
1800 # Split the substitutions into bite-sized pieces for seds with
1801 # small command number limits, like on Digital OSF/1 and HP-UX.
1802 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1803 ac_file
=1 # Number of current file.
1804 ac_beg
=1 # First line for current file.
1805 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1808 while $ac_more_lines; do
1809 if test $ac_beg -gt 1; then
1810 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1812 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1814 if test ! -s conftest.s
$ac_file; then
1816 rm -f conftest.s
$ac_file
1818 if test -z "$ac_sed_cmds"; then
1819 ac_sed_cmds
="sed -f conftest.s$ac_file"
1821 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1823 ac_file
=`expr $ac_file + 1`
1825 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1828 if test -z "$ac_sed_cmds"; then
1833 cat >> $CONFIG_STATUS <<EOF
1835 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
1837 cat >> $CONFIG_STATUS <<\EOF
1838 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1841 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1842 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1843 *) ac_file_in
="${ac_file}.in" ;;
1846 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1848 # Remove last slash and all that follows it. Not all systems have dirname.
1849 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1850 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1851 # The file is in a subdirectory.
1852 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1853 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1854 # A "../" for each directory in $ac_dir_suffix.
1855 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1857 ac_dir_suffix
= ac_dots
=
1860 case "$ac_given_srcdir" in
1862 if test -z "$ac_dots"; then top_srcdir
=.
1863 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1864 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1866 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1867 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1870 case "$ac_given_INSTALL" in
1871 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1872 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1875 echo creating
"$ac_file"
1877 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1879 *Makefile
*) ac_comsub
="1i\\
1880 # $configure_input" ;;
1884 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1886 s%@configure_input@%$configure_input%g
1887 s%@srcdir@%$srcdir%g
1888 s%@top_srcdir@%$top_srcdir%g
1889 s%@INSTALL@%$INSTALL%g
1890 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1894 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1895 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1897 # ac_d sets the value in "#define NAME VALUE" lines.
1898 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1899 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1902 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1903 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1904 ac_uB
='\([ ]\)%\1#\2define\3'
1907 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1908 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1909 ac_eB
='$%\1#\2define\3'
1913 if test "${CONFIG_HEADERS+set}" != set; then
1915 cat >> $CONFIG_STATUS <<EOF
1916 CONFIG_HEADERS="config.h:config.in"
1918 cat >> $CONFIG_STATUS <<\EOF
1920 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1923 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1924 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1925 *) ac_file_in
="${ac_file}.in" ;;
1928 echo creating
$ac_file
1930 rm -f conftest.frag conftest.
in conftest.out
1931 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1932 cat $ac_file_inputs > conftest.
in
1936 # Transform confdefs.h into a sed script conftest.vals that substitutes
1937 # the proper values into config.h.in to produce config.h. And first:
1938 # Protect against being on the right side of a sed subst in config.status.
1939 # Protect against being in an unquoted here document in config.status.
1941 cat > conftest.hdr
<<\EOF
1944 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1948 sed -n -f conftest.hdr confdefs.h > conftest.vals
1951 # This sed command replaces #undef with comments. This is necessary, for
1952 # example, in the case of _POSIX_SOURCE, which is predefined and required
1953 # on some systems where configure will not decide to define it.
1954 cat >> conftest.vals <<\EOF
1955 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1958 # Break up conftest.vals because some shells have a limit on
1959 # the size of here documents, and old seds have small limits too.
1964 ac_lines=`grep -c . conftest.vals
`
1965 # grep -c gives empty output for an empty file on some AIX systems.
1966 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1967 # Write a limited-size here document to conftest.frag.
1968 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1969 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1971 sed -f conftest.frag conftest.in > conftest.out
1973 mv conftest.out conftest.in
1975 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1977 mv conftest.tail conftest.vals
1981 cat >> $CONFIG_STATUS <<\EOF
1982 rm -f conftest.frag conftest.h
1983 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1984 cat conftest.in >> conftest.h
1986 if cmp -s $ac_file conftest.h 2>/dev/null; then
1987 echo "$ac_file is unchanged"
1990 # Remove last slash and all that follows it. Not all systems have dirname.
1991 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1992 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1993 # The file is in a subdirectory.
1994 test ! -d "$ac_dir" && mkdir "$ac_dir"
1997 mv conftest.h $ac_file
2003 cat >> $CONFIG_STATUS <<EOF
2004 ac_sources="$sim_link_files"
2005 ac_dests="$sim_link_links"
2008 cat >> $CONFIG_STATUS <<\EOF
2009 srcdir=$ac_given_srcdir
2010 while test -n "$ac_sources"; do
2011 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2012 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2014 echo "linking $srcdir/$ac_source to $ac_dest"
2016 if test ! -r $srcdir/$ac_source; then
2017 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2021 # Make relative symlinks.
2022 # Remove last slash and all that follows it. Not all systems have dirname.
2023 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2024 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2025 # The dest file is in a subdirectory.
2026 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2027 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2028 # A "../" for each directory in $ac_dest_dir_suffix.
2029 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2031 ac_dest_dir_suffix= ac_dots=
2035 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2036 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2039 # Make a symlink if possible; otherwise try a hard link.
2040 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2041 ln $srcdir/$ac_source $ac_dest; then :
2043 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2047 cat >> $CONFIG_STATUS <<EOF
2050 cat >> $CONFIG_STATUS <<\EOF
2051 case "x$CONFIG_FILES" in
2053 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
2054 rm -f Makesim1.tmp Makesim2.tmp Makefile
2055 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
2056 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
2057 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
2058 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
2059 <Makefile.sim >Makefile
2060 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
2063 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
2067 chmod +x $CONFIG_STATUS
2068 rm -fr confdefs* $ac_clean_files
2069 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1