3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-sim-bswap Use Host specific BSWAP instruction."
17 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
19 --enable-sim-debug=opts Enable debugging flags"
21 --enable-sim-stdio Specify whether to use stdio for console input/output."
23 --enable-sim-trace=opts Enable tracing flags"
25 --enable-sim-profile=opts Enable profiling flags"
27 --enable-sim-endian=endian Specify target byte endian orientation."
29 --enable-sim-hostendain=end Specify host byte endian orientation."
31 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings"
33 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
39 cache_file
=.
/config.cache
48 program_transform_name
=s
,x
,x
,
56 bindir
='${exec_prefix}/bin'
57 sbindir
='${exec_prefix}/sbin'
58 libexecdir
='${exec_prefix}/libexec'
59 datadir
='${prefix}/share'
60 sysconfdir
='${prefix}/etc'
61 sharedstatedir
='${prefix}/com'
62 localstatedir
='${prefix}/var'
63 libdir
='${exec_prefix}/lib'
64 includedir
='${prefix}/include'
65 oldincludedir
='/usr/include'
66 infodir
='${prefix}/info'
67 mandir
='${prefix}/man'
69 # Initialize some other variables.
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
97 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
98 bindir
="$ac_optarg" ;;
100 -build |
--build |
--buil |
--bui |
--bu)
102 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
103 build
="$ac_optarg" ;;
105 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
106 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
107 ac_prev
=cache_file
;;
108 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
109 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
110 cache_file
="$ac_optarg" ;;
112 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
114 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
116 datadir
="$ac_optarg" ;;
118 -disable-* |
--disable-*)
119 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* |
--enable-*)
128 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
141 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
142 |
--exec |
--exe |
--ex)
143 ac_prev
=exec_prefix
;;
144 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
145 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
146 |
--exec=* |
--exe=* |
--ex=*)
147 exec_prefix
="$ac_optarg" ;;
149 -gas |
--gas |
--ga |
--g)
150 # Obsolete; use --with-gas.
153 -help |
--help |
--hel |
--he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host |
--host |
--hos |
--ho)
210 -host=* |
--host=* |
--hos=* |
--ho=*)
213 -includedir |
--includedir |
--includedi |
--included |
--include \
214 |
--includ |
--inclu |
--incl |
--inc)
215 ac_prev
=includedir
;;
216 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
217 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
218 includedir
="$ac_optarg" ;;
220 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
222 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
223 infodir
="$ac_optarg" ;;
225 -libdir |
--libdir |
--libdi |
--libd)
227 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
228 libdir
="$ac_optarg" ;;
230 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
231 |
--libexe |
--libex |
--libe)
232 ac_prev
=libexecdir
;;
233 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
234 |
--libexe=* |
--libex=* |
--libe=*)
235 libexecdir
="$ac_optarg" ;;
237 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
238 |
--localstate |
--localstat |
--localsta |
--localst \
239 |
--locals |
--local |
--loca |
--loc |
--lo)
240 ac_prev
=localstatedir
;;
241 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
242 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
243 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
244 localstatedir
="$ac_optarg" ;;
246 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
248 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
249 mandir
="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
259 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
260 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
263 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
264 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
265 |
--oldin |
--oldi |
--old |
--ol |
--o)
266 ac_prev
=oldincludedir
;;
267 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
268 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
269 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
270 oldincludedir
="$ac_optarg" ;;
272 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
274 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
275 prefix
="$ac_optarg" ;;
277 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
278 |
--program-pre |
--program-pr |
--program-p)
279 ac_prev
=program_prefix
;;
280 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
281 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
282 program_prefix
="$ac_optarg" ;;
284 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
285 |
--program-suf |
--program-su |
--program-s)
286 ac_prev
=program_suffix
;;
287 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
288 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
289 program_suffix
="$ac_optarg" ;;
291 -program-transform-name |
--program-transform-name \
292 |
--program-transform-nam |
--program-transform-na \
293 |
--program-transform-n |
--program-transform- \
294 |
--program-transform |
--program-transfor \
295 |
--program-transfo |
--program-transf \
296 |
--program-trans |
--program-tran \
297 |
--progr-tra |
--program-tr |
--program-t)
298 ac_prev
=program_transform_name
;;
299 -program-transform-name=* |
--program-transform-name=* \
300 |
--program-transform-nam=* |
--program-transform-na=* \
301 |
--program-transform-n=* |
--program-transform-=* \
302 |
--program-transform=* |
--program-transfor=* \
303 |
--program-transfo=* |
--program-transf=* \
304 |
--program-trans=* |
--program-tran=* \
305 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
306 program_transform_name
="$ac_optarg" ;;
308 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
309 |
-silent |
--silent |
--silen |
--sile |
--sil)
312 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
314 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
316 sbindir
="$ac_optarg" ;;
318 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
319 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
320 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
322 ac_prev
=sharedstatedir
;;
323 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
324 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
325 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
327 sharedstatedir
="$ac_optarg" ;;
329 -site |
--site |
--sit)
331 -site=* |
--site=* |
--sit=*)
334 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
336 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
337 srcdir
="$ac_optarg" ;;
339 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
340 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
341 ac_prev
=sysconfdir
;;
342 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
343 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
344 sysconfdir
="$ac_optarg" ;;
346 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
348 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
349 target
="$ac_optarg" ;;
351 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
354 -version |
--version |
--versio |
--versi |
--vers)
355 echo "configure generated by autoconf version 2.12"
359 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package
=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* |
--without-*)
372 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
384 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
385 |
--x-incl |
--x-inc |
--x-in |
--x-i)
386 ac_prev
=x_includes
;;
387 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
388 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
389 x_includes
="$ac_optarg" ;;
391 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
392 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
393 ac_prev
=x_libraries
;;
394 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
395 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
396 x_libraries
="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE
; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
446 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
447 |
--no-cr |
--no-c) ;;
448 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
449 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
450 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest
* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file
=Makefile.
in
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted
=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted
=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE
; then
501 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file
in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp
='$CPP $CPPFLAGS'
524 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling
=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
537 ac_n
= ac_c
='\c' ac_t
=
542 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
543 echo "configure:544: checking how to run the C preprocessor" >&5
544 # On Suns, sometimes $CPP names a directory.
545 if test -n "$CPP" && test -d "$CPP"; then
548 if test -z "$CPP"; then
549 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
550 echo $ac_n "(cached) $ac_c" 1>&6
552 # This must be in double quotes, not single quotes, because CPP may get
553 # substituted into the Makefile and "${CC-cc}" will confuse make.
555 # On the NeXT, cc -E runs the code through the compiler's parser,
556 # not just through cpp.
557 cat > conftest.
$ac_ext <<EOF
558 #line 559 "configure"
559 #include "confdefs.h"
563 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
564 { (eval echo configure
:565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
565 ac_err
=`grep -v '^ *+' conftest.out`
566 if test -z "$ac_err"; then
570 echo "configure: failed program was:" >&5
571 cat conftest.
$ac_ext >&5
573 CPP
="${CC-cc} -E -traditional-cpp"
574 cat > conftest.
$ac_ext <<EOF
575 #line 576 "configure"
576 #include "confdefs.h"
580 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
581 { (eval echo configure
:582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
582 ac_err
=`grep -v '^ *+' conftest.out`
583 if test -z "$ac_err"; then
587 echo "configure: failed program was:" >&5
588 cat conftest.
$ac_ext >&5
595 ac_cv_prog_CPP
="$CPP"
597 CPP
="$ac_cv_prog_CPP"
599 ac_cv_prog_CPP
="$CPP"
601 echo "$ac_t""$CPP" 1>&6
604 # autoconf.info says this should be called right after AC_INIT.
608 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
609 if test -f $ac_dir/install-sh
; then
611 ac_install_sh
="$ac_aux_dir/install-sh -c"
613 elif test -f $ac_dir/install.sh
; then
615 ac_install_sh
="$ac_aux_dir/install.sh -c"
619 if test -z "$ac_aux_dir"; then
620 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
622 ac_config_guess
=$ac_aux_dir/config.guess
623 ac_config_sub
=$ac_aux_dir/config.sub
624 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
627 # Do some error checking and defaulting for the host and target type.
629 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
632 # 1. You are not allowed to specify --host, --target, and nonopt at the
634 # 2. Host defaults to nonopt.
635 # 3. If nonopt is not specified, then host defaults to the current host,
636 # as determined by config.guess.
637 # 4. Target and build default to nonopt.
638 # 5. If nonopt is not specified, then target and build default to host.
640 # The aliases save the names the user supplied, while $host etc.
641 # will get canonicalized.
642 case $host---$target---$nonopt in
643 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
644 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
648 # Make sure we can run config.sub.
649 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
650 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
653 echo $ac_n "checking host system type""... $ac_c" 1>&6
654 echo "configure:655: checking host system type" >&5
657 case "$host_alias" in
661 if host_alias
=`$ac_config_guess`; then :
662 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
664 *) host_alias
=$nonopt ;;
668 host=`$ac_config_sub $host_alias`
669 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
670 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
671 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
672 echo "$ac_t""$host" 1>&6
674 echo $ac_n "checking target system type""... $ac_c" 1>&6
675 echo "configure:676: checking target system type" >&5
678 case "$target_alias" in
681 NONE
) target_alias
=$host_alias ;;
682 *) target_alias
=$nonopt ;;
686 target
=`$ac_config_sub $target_alias`
687 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
688 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
689 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
690 echo "$ac_t""$target" 1>&6
692 echo $ac_n "checking build system type""... $ac_c" 1>&6
693 echo "configure:694: checking build system type" >&5
696 case "$build_alias" in
699 NONE
) build_alias
=$host_alias ;;
700 *) build_alias
=$nonopt ;;
704 build
=`$ac_config_sub $build_alias`
705 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
706 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
707 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708 echo "$ac_t""$build" 1>&6
710 test "$host_alias" != "$target_alias" &&
711 test "$program_prefix$program_suffix$program_transform_name" = \
713 program_prefix
=${target_alias}-
715 if test "$program_transform_name" = s
,x
,x
,; then
716 program_transform_name
=
718 # Double any \ or $. echo might interpret backslashes.
719 cat <<\EOF_SED
> conftestsed
720 s
,\\,\\\\,g
; s
,\$
,$$
,g
722 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
725 test "$program_prefix" != NONE
&&
726 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
727 # Use a double $ so make ignores it.
728 test "$program_suffix" != NONE
&&
729 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
731 # sed with no file args requires a program.
732 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
734 # Extract the first word of "gcc", so it can be a program name with args.
735 set dummy gcc
; ac_word
=$2
736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
737 echo "configure:738: checking for $ac_word" >&5
738 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&6
741 if test -n "$CC"; then
742 ac_cv_prog_CC
="$CC" # Let the user override the test.
744 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
745 for ac_dir
in $PATH; do
746 test -z "$ac_dir" && ac_dir
=.
747 if test -f $ac_dir/$ac_word; then
756 if test -n "$CC"; then
757 echo "$ac_t""$CC" 1>&6
759 echo "$ac_t""no" 1>&6
762 if test -z "$CC"; then
763 # Extract the first word of "cc", so it can be a program name with args.
764 set dummy cc
; ac_word
=$2
765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
766 echo "configure:767: checking for $ac_word" >&5
767 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
770 if test -n "$CC"; then
771 ac_cv_prog_CC
="$CC" # Let the user override the test.
773 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
775 for ac_dir
in $PATH; do
776 test -z "$ac_dir" && ac_dir
=.
777 if test -f $ac_dir/$ac_word; then
778 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
787 if test $ac_prog_rejected = yes; then
788 # We found a bogon in the path, so make sure we never use it.
789 set dummy
$ac_cv_prog_CC
791 if test $# -gt 0; then
792 # We chose a different compiler from the bogus one.
793 # However, it has the same basename, so the bogon will be chosen
794 # first if we set CC to just the basename; use the full file name.
796 set dummy
"$ac_dir/$ac_word" "$@"
804 if test -n "$CC"; then
805 echo "$ac_t""$CC" 1>&6
807 echo "$ac_t""no" 1>&6
810 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
813 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
814 echo "configure:815: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
817 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
818 ac_cpp
='$CPP $CPPFLAGS'
819 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
820 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
821 cross_compiling
=$ac_cv_prog_cc_cross
823 cat > conftest.
$ac_ext <<EOF
824 #line 825 "configure"
825 #include "confdefs.h"
828 if { (eval echo configure
:829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
829 ac_cv_prog_cc_works
=yes
830 # If we can't run a trivial program, we are probably using a cross compiler.
831 if (.
/conftest
; exit) 2>/dev
/null
; then
832 ac_cv_prog_cc_cross
=no
834 ac_cv_prog_cc_cross
=yes
837 echo "configure: failed program was:" >&5
838 cat conftest.
$ac_ext >&5
839 ac_cv_prog_cc_works
=no
843 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
844 if test $ac_cv_prog_cc_works = no
; then
845 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
847 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
848 echo "configure:849: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
849 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
850 cross_compiling
=$ac_cv_prog_cc_cross
852 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
853 echo "configure:854: checking whether we are using GNU C" >&5
854 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 cat > conftest.c
<<EOF
862 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
869 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
871 if test $ac_cv_prog_gcc = yes; then
873 ac_test_CFLAGS
="${CFLAGS+set}"
874 ac_save_CFLAGS
="$CFLAGS"
876 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
877 echo "configure:878: checking whether ${CC-cc} accepts -g" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 echo 'void f(){}' > conftest.c
882 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
891 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
892 if test "$ac_test_CFLAGS" = set; then
893 CFLAGS
="$ac_save_CFLAGS"
894 elif test $ac_cv_prog_cc_g = yes; then
901 test "${CFLAGS+set}" = set || CFLAGS
="-g"
904 # Find a good install program. We prefer a C program (faster),
905 # so one script is as good as another. But avoid the broken or
906 # incompatible versions:
907 # SysV /etc/install, /usr/sbin/install
908 # SunOS /usr/etc/install
911 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
912 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
913 # ./install, which can be erroneously created by make from ./install.sh.
914 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
915 echo "configure:916: checking for a BSD compatible install" >&5
916 if test -z "$INSTALL"; then
917 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
920 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
921 for ac_dir
in $PATH; do
922 # Account for people who put trailing slashes in PATH elements.
924 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
926 # OSF1 and SCO ODT 3.0 have their own names for install.
927 for ac_prog
in ginstall installbsd scoinst
install; do
928 if test -f $ac_dir/$ac_prog; then
929 if test $ac_prog = install &&
930 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
931 # AIX install. It has an incompatible calling convention.
932 # OSF/1 installbsd also uses dspmsg, but is usable.
935 ac_cv_path_install
="$ac_dir/$ac_prog -c"
946 if test "${ac_cv_path_install+set}" = set; then
947 INSTALL
="$ac_cv_path_install"
949 # As a last resort, use the slow shell script. We don't cache a
950 # path for INSTALL within a source directory, because that will
951 # break other packages using the cache if that directory is
952 # removed, or if the path is relative.
953 INSTALL
="$ac_install_sh"
956 echo "$ac_t""$INSTALL" 1>&6
958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
959 # It thinks the first close brace ends the variable substitution.
960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
962 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
965 # Put a plausible default for CC_FOR_BUILD in Makefile.
966 if test "x$cross_compiling" = "xno"; then
977 # Extract the first word of "ranlib", so it can be a program name with args.
978 set dummy ranlib
; ac_word
=$2
979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
980 echo "configure:981: checking for $ac_word" >&5
981 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
984 if test -n "$RANLIB"; then
985 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
987 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
988 for ac_dir
in $PATH; do
989 test -z "$ac_dir" && ac_dir
=.
990 if test -f $ac_dir/$ac_word; then
991 ac_cv_prog_RANLIB
="ranlib"
996 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
999 RANLIB
="$ac_cv_prog_RANLIB"
1000 if test -n "$RANLIB"; then
1001 echo "$ac_t""$RANLIB" 1>&6
1003 echo "$ac_t""no" 1>&6
1007 # Check for common headers.
1008 # FIXME: Seems to me this can cause problems for i386-windows hosts.
1009 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
1010 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h sys
/time.h sys
/resource.h
1012 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1014 echo "configure:1015: checking for $ac_hdr" >&5
1015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1018 cat > conftest.
$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1023 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1024 { (eval echo configure
:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1025 ac_err
=`grep -v '^ *+' conftest.out`
1026 if test -z "$ac_err"; then
1028 eval "ac_cv_header_$ac_safe=yes"
1031 echo "configure: failed program was:" >&5
1032 cat conftest.
$ac_ext >&5
1034 eval "ac_cv_header_$ac_safe=no"
1038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1039 echo "$ac_t""yes" 1>&6
1040 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1041 cat >> confdefs.h
<<EOF
1042 #define $ac_tr_hdr 1
1046 echo "$ac_t""no" 1>&6
1050 for ac_func
in getrusage
time
1052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1053 echo "configure:1054: checking for $ac_func" >&5
1054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1057 cat > conftest.
$ac_ext <<EOF
1058 #line 1059 "configure"
1059 #include "confdefs.h"
1060 /* System header to define __stub macros and hopefully few prototypes,
1061 which can conflict with char $ac_func(); below. */
1063 /* Override any gcc2 internal prototype to avoid an error. */
1064 /* We use char because int might match the return type of a gcc2
1065 builtin and then its argument prototype would still apply. */
1070 /* The GNU C library defines this for functions which it implements
1071 to always fail with ENOSYS. Some functions are actually named
1072 something starting with __ and the normal name is an alias. */
1073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1081 if { (eval echo configure
:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1083 eval "ac_cv_func_$ac_func=yes"
1085 echo "configure: failed program was:" >&5
1086 cat conftest.
$ac_ext >&5
1088 eval "ac_cv_func_$ac_func=no"
1093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1094 echo "$ac_t""yes" 1>&6
1095 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1096 cat >> confdefs.h
<<EOF
1097 #define $ac_tr_func 1
1101 echo "$ac_t""no" 1>&6
1106 .
${srcdir}/..
/..
/bfd
/configure.
host
1110 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1111 if test "${enable_sim_bswap+set}" = set; then
1112 enableval
="$enable_sim_bswap"
1113 case "${enableval}" in
1114 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
1115 no
) sim_bswap
="-DWITH_BSWAP=0";;
1116 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
1118 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
1119 echo "Setting bswap flags = $sim_bswap" 6>&1
1127 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
1128 if test "${enable_sim_cflags+set}" = set; then
1129 enableval
="$enable_sim_cflags"
1130 case "${enableval}" in
1131 yes) sim_cflags
="-O2";;
1132 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
1134 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1136 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
1137 echo "Setting sim cflags = $sim_cflags" 6>&1
1145 # Check whether --enable-sim-debug or --disable-sim-debug was given.
1146 if test "${enable_sim_debug+set}" = set; then
1147 enableval
="$enable_sim_debug"
1148 case "${enableval}" in
1149 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
1150 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
1151 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
1153 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
1154 echo "Setting sim debug = $sim_debug" 6>&1
1162 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1163 if test "${enable_sim_stdio+set}" = set; then
1164 enableval
="$enable_sim_stdio"
1165 case "${enableval}" in
1166 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
1167 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
1168 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
1170 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1171 echo "Setting stdio flags = $sim_stdio" 6>&1
1179 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1180 if test "${enable_sim_trace+set}" = set; then
1181 enableval
="$enable_sim_trace"
1182 case "${enableval}" in
1183 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
1184 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
1186 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
1189 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1190 if test x
"$sim_trace" = x
; then
1191 sim_trace
="-DWITH_TRACE='(TRACE_$x"
1193 sim_trace
="${sim_trace}|TRACE_$x"
1196 sim_trace
="$sim_trace)'" ;;
1198 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1199 echo "Setting sim trace = $sim_trace" 6>&1
1207 # Check whether --enable-sim-profile or --disable-sim-profile was given.
1208 if test "${enable_sim_profile+set}" = set; then
1209 enableval
="$enable_sim_profile"
1210 case "${enableval}" in
1211 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
1212 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
1214 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
1217 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1218 if test x
"$sim_profile" = x
; then
1219 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
1221 sim_profile
="${sim_profile}|PROFILE_$x"
1224 sim_profile
="$sim_profile)'" ;;
1226 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
1227 echo "Setting sim profile = $sim_profile" 6>&1
1235 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1236 echo "configure:1237: checking return type of signal handlers" >&5
1237 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 cat > conftest.
$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1243 #include <sys/types.h>
1249 extern "C" void (*signal (int, void (*)(int)))(int);
1251 void (*signal ()) ();
1258 if { (eval echo configure
:1259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1260 ac_cv_type_signal
=void
1262 echo "configure: failed program was:" >&5
1263 cat conftest.
$ac_ext >&5
1265 ac_cv_type_signal
=int
1270 echo "$ac_t""$ac_cv_type_signal" 1>&6
1271 cat >> confdefs.h
<<EOF
1272 #define RETSIGTYPE $ac_cv_type_signal
1281 sim_link_links
=tconfig.h
1282 if test -f ${srcdir}/tconfig.
in
1284 sim_link_files
=tconfig.
in
1286 sim_link_files
=..
/common
/tconfig.
in
1289 # targ-vals.def points to the libc macro description file.
1291 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
1293 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
1294 sim_link_links
="${sim_link_links} targ-vals.def"
1299 wire_endian
="LITTLE_ENDIAN"
1300 default_endian
="LITTLE_ENDIAN"
1301 default_sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN"
1302 # Check whether --enable-sim-endian or --disable-sim-endian was given.
1303 if test "${enable_sim_endian+set}" = set; then
1304 enableval
="$enable_sim_endian"
1305 case "${enableval}" in
1306 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1307 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1308 yes) if test x
"$wire_endian" != x
; then
1309 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
1311 echo "No hard-wired endian for target $target" 1>&6
1312 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
1314 no
) if test x
"$default_endian" != x
; then
1315 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
1317 echo "No default endian for target $target" 1>&6
1318 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
1320 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
1322 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
1323 echo "Setting endian flags = $sim_endian" 6>&1
1326 sim_endian
="${default_sim_endian}"
1331 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
1332 if test "${enable_sim_hostendian+set}" = set; then
1333 enableval
="$enable_sim_hostendian"
1334 case "${enableval}" in
1335 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
1336 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
1337 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
1338 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
1340 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
1341 echo "Setting hostendian flags = $sim_hostendian" 6>&1
1345 if test "x$cross_compiling" = "xno"; then
1346 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1347 echo "configure:1348: checking whether byte ordering is bigendian" >&5
1348 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1351 ac_cv_c_bigendian
=unknown
1352 # See if sys/param.h defines the BYTE_ORDER macro.
1353 cat > conftest.
$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 #include <sys/types.h>
1357 #include <sys/param.h>
1360 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1365 if { (eval echo configure
:1366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1367 # It does; now see whether it defined to BIG_ENDIAN or not.
1368 cat > conftest.
$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 #include <sys/types.h>
1372 #include <sys/param.h>
1375 #if BYTE_ORDER != BIG_ENDIAN
1380 if { (eval echo configure
:1381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1382 ac_cv_c_bigendian
=yes
1384 echo "configure: failed program was:" >&5
1385 cat conftest.
$ac_ext >&5
1387 ac_cv_c_bigendian
=no
1391 echo "configure: failed program was:" >&5
1392 cat conftest.
$ac_ext >&5
1395 if test $ac_cv_c_bigendian = unknown
; then
1396 if test "$cross_compiling" = yes; then
1397 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1399 cat > conftest.
$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1403 /* Are we little or big endian? From Harbison&Steele. */
1407 char c[sizeof (long)];
1410 exit (u.c[sizeof (long) - 1] == 1);
1413 if { (eval echo configure
:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1415 ac_cv_c_bigendian
=no
1417 echo "configure: failed program was:" >&5
1418 cat conftest.
$ac_ext >&5
1420 ac_cv_c_bigendian
=yes
1428 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1429 if test $ac_cv_c_bigendian = yes; then
1430 cat >> confdefs.h
<<\EOF
1431 #define WORDS_BIGENDIAN 1
1436 if test $ac_cv_c_bigendian = yes; then
1437 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1439 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1442 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
1448 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
1449 if test "${enable_sim_warnings+set}" = set; then
1450 enableval
="$enable_sim_warnings"
1451 case "${enableval}" in
1452 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
1453 no
) sim_warnings
="-w";;
1454 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1456 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
1457 echo "Setting warning flags = $sim_warnings" 6>&1
1465 default_sim_reserved_bits
="1"
1466 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
1467 if test "${enable_sim_reserved_bits+set}" = set; then
1468 enableval
="$enable_sim_reserved_bits"
1469 case "${enableval}" in
1470 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
1471 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
1472 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value
"" 1>&2; exit 1; }; sim_reserved_bits
="";;
1474 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
1475 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
1478 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
1483 for ac_func
in time chmod utime fork execve execv chown
1485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1486 echo "configure:1487: checking for $ac_func" >&5
1487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6
1490 cat > conftest.
$ac_ext <<EOF
1491 #line 1492 "configure"
1492 #include "confdefs.h"
1493 /* System header to define __stub macros and hopefully few prototypes,
1494 which can conflict with char $ac_func(); below. */
1496 /* Override any gcc2 internal prototype to avoid an error. */
1497 /* We use char because int might match the return type of a gcc2
1498 builtin and then its argument prototype would still apply. */
1503 /* The GNU C library defines this for functions which it implements
1504 to always fail with ENOSYS. Some functions are actually named
1505 something starting with __ and the normal name is an alias. */
1506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1514 if { (eval echo configure
:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1516 eval "ac_cv_func_$ac_func=yes"
1518 echo "configure: failed program was:" >&5
1519 cat conftest.
$ac_ext >&5
1521 eval "ac_cv_func_$ac_func=no"
1526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1527 echo "$ac_t""yes" 1>&6
1528 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1529 cat >> confdefs.h
<<EOF
1530 #define $ac_tr_func 1
1534 echo "$ac_t""no" 1>&6
1538 for ac_hdr
in unistd.h stdlib.h string.h
strings.h utime.h
time.h
1540 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1542 echo "configure:1543: checking for $ac_hdr" >&5
1543 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 cat > conftest.
$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1551 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1552 { (eval echo configure
:1553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1553 ac_err
=`grep -v '^ *+' conftest.out`
1554 if test -z "$ac_err"; then
1556 eval "ac_cv_header_$ac_safe=yes"
1559 echo "configure: failed program was:" >&5
1560 cat conftest.
$ac_ext >&5
1562 eval "ac_cv_header_$ac_safe=no"
1566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1567 echo "$ac_t""yes" 1>&6
1568 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1569 cat >> confdefs.h
<<EOF
1570 #define $ac_tr_hdr 1
1574 echo "$ac_t""no" 1>&6
1582 cat > confcache
<<\EOF
1583 # This file is a shell script that caches the results of configure
1584 # tests run on this system so they can be shared between configure
1585 # scripts and configure runs. It is not useful on other systems.
1586 # If it contains results you don't want to keep, you may remove or edit it.
1588 # By default, configure uses ./config.cache as the cache file,
1589 # creating it if it does not exist already. You can give configure
1590 # the --cache-file=FILE option to use a different cache file; that is
1591 # what configure does when it calls configure scripts in
1592 # subdirectories, so they share the cache.
1593 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1594 # config.status only pays attention to the cache file if you give it the
1595 # --recheck option to rerun configure.
1598 # The following way of writing the cache mishandles newlines in values,
1599 # but we know of no workaround that is simple, portable, and efficient.
1600 # So, don't put newlines in cache variables' values.
1601 # Ultrix sh set writes to stderr and can't be redirected directly,
1602 # and sets the high bit in the cache file unless we assign to the vars.
1604 case `(ac_space=' '; set) 2>&1` in
1606 # `set' does not quote correctly, so add quotes (double-quote substitution
1607 # turns \\\\ into \\, and sed turns \\ into \).
1609 -e "s/'/'\\\\''/g" \
1610 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1613 # `set' quotes correctly as required by POSIX, so do not add quotes.
1614 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1617 if cmp -s $cache_file confcache
; then
1620 if test -w $cache_file; then
1621 echo "updating cache $cache_file"
1622 cat confcache
> $cache_file
1624 echo "not updating unwritable cache $cache_file"
1629 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1631 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1632 # Let make expand exec_prefix.
1633 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1635 # Any assignment to VPATH causes Sun make to only execute
1636 # the first set of double-colon rules, so remove it if not needed.
1637 # If there is a colon in the path, we need to keep it.
1638 if test "x$srcdir" = x.
; then
1639 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1642 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1644 DEFS
=-DHAVE_CONFIG_H
1646 # Without the "./", some shells look in PATH for config.status.
1647 : ${CONFIG_STATUS=./config.status}
1649 echo creating
$CONFIG_STATUS
1650 rm -f $CONFIG_STATUS
1651 cat > $CONFIG_STATUS <<EOF
1653 # Generated automatically by configure.
1654 # Run this file to recreate the current configuration.
1655 # This directory was configured as follows,
1656 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1658 # $0 $ac_configure_args
1660 # Compiler output produced by configure, useful for debugging
1661 # configure, is in ./config.log if it exists.
1663 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1666 case "\$ac_option" in
1667 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1668 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1669 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1670 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1671 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1673 -help | --help | --hel | --he | --h)
1674 echo "\$ac_cs_usage"; exit 0 ;;
1675 *) echo "\$ac_cs_usage"; exit 1 ;;
1679 ac_given_srcdir=$srcdir
1680 ac_given_INSTALL="$INSTALL"
1682 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
1684 cat >> $CONFIG_STATUS <<EOF
1686 # Protect against being on the right side of a sed subst in config.status.
1687 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1688 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1691 s%@CFLAGS@%$CFLAGS%g
1692 s%@CPPFLAGS@%$CPPFLAGS%g
1693 s%@CXXFLAGS@%$CXXFLAGS%g
1695 s%@LDFLAGS@%$LDFLAGS%g
1697 s%@exec_prefix@%$exec_prefix%g
1698 s%@prefix@%$prefix%g
1699 s%@program_transform_name@%$program_transform_name%g
1700 s%@bindir@%$bindir%g
1701 s%@sbindir@%$sbindir%g
1702 s%@libexecdir@%$libexecdir%g
1703 s%@datadir@%$datadir%g
1704 s%@sysconfdir@%$sysconfdir%g
1705 s%@sharedstatedir@%$sharedstatedir%g
1706 s%@localstatedir@%$localstatedir%g
1707 s%@libdir@%$libdir%g
1708 s%@includedir@%$includedir%g
1709 s%@oldincludedir@%$oldincludedir%g
1710 s%@infodir@%$infodir%g
1711 s%@mandir@%$mandir%g
1713 s%@host_alias@%$host_alias%g
1714 s%@host_cpu@%$host_cpu%g
1715 s%@host_vendor@%$host_vendor%g
1716 s%@host_os@%$host_os%g
1717 s%@target@%$target%g
1718 s%@target_alias@%$target_alias%g
1719 s%@target_cpu@%$target_cpu%g
1720 s%@target_vendor@%$target_vendor%g
1721 s%@target_os@%$target_os%g
1723 s%@build_alias@%$build_alias%g
1724 s%@build_cpu@%$build_cpu%g
1725 s%@build_vendor@%$build_vendor%g
1726 s%@build_os@%$build_os%g
1728 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1729 s%@INSTALL_DATA@%$INSTALL_DATA%g
1730 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1731 s%@HDEFINES@%$HDEFINES%g
1733 s%@RANLIB@%$RANLIB%g
1735 s%@sim_bswap@%$sim_bswap%g
1736 s%@sim_cflags@%$sim_cflags%g
1737 s%@sim_debug@%$sim_debug%g
1738 s%@sim_stdio@%$sim_stdio%g
1739 s%@sim_trace@%$sim_trace%g
1740 s%@sim_profile@%$sim_profile%g
1741 s%@sim_endian@%$sim_endian%g
1742 s%@sim_hostendian@%$sim_hostendian%g
1743 s%@sim_warnings@%$sim_warnings%g
1744 s%@sim_reserved_bits@%$sim_reserved_bits%g
1749 cat >> $CONFIG_STATUS <<\EOF
1751 # Split the substitutions into bite-sized pieces for seds with
1752 # small command number limits, like on Digital OSF/1 and HP-UX.
1753 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1754 ac_file
=1 # Number of current file.
1755 ac_beg
=1 # First line for current file.
1756 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1759 while $ac_more_lines; do
1760 if test $ac_beg -gt 1; then
1761 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1763 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1765 if test ! -s conftest.s
$ac_file; then
1767 rm -f conftest.s
$ac_file
1769 if test -z "$ac_sed_cmds"; then
1770 ac_sed_cmds
="sed -f conftest.s$ac_file"
1772 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1774 ac_file
=`expr $ac_file + 1`
1776 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1779 if test -z "$ac_sed_cmds"; then
1784 cat >> $CONFIG_STATUS <<EOF
1786 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
1788 cat >> $CONFIG_STATUS <<\EOF
1789 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1790 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1792 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1793 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1794 *) ac_file_in
="${ac_file}.in" ;;
1797 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1799 # Remove last slash and all that follows it. Not all systems have dirname.
1800 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1801 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1802 # The file is in a subdirectory.
1803 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1804 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1805 # A "../" for each directory in $ac_dir_suffix.
1806 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1808 ac_dir_suffix
= ac_dots
=
1811 case "$ac_given_srcdir" in
1813 if test -z "$ac_dots"; then top_srcdir
=.
1814 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1815 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1817 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1818 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1821 case "$ac_given_INSTALL" in
1822 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1823 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1826 echo creating
"$ac_file"
1828 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1830 *Makefile
*) ac_comsub
="1i\\
1831 # $configure_input" ;;
1835 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1837 s%@configure_input@%$configure_input%g
1838 s%@srcdir@%$srcdir%g
1839 s%@top_srcdir@%$top_srcdir%g
1840 s%@INSTALL@%$INSTALL%g
1841 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1845 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1846 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1848 # ac_d sets the value in "#define NAME VALUE" lines.
1849 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1850 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1853 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1854 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1855 ac_uB
='\([ ]\)%\1#\2define\3'
1858 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1859 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1860 ac_eB
='$%\1#\2define\3'
1864 if test "${CONFIG_HEADERS+set}" != set; then
1866 cat >> $CONFIG_STATUS <<EOF
1867 CONFIG_HEADERS="config.h:config.in"
1869 cat >> $CONFIG_STATUS <<\EOF
1871 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1874 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1875 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1876 *) ac_file_in
="${ac_file}.in" ;;
1879 echo creating
$ac_file
1881 rm -f conftest.frag conftest.
in conftest.out
1882 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1883 cat $ac_file_inputs > conftest.
in
1887 # Transform confdefs.h into a sed script conftest.vals that substitutes
1888 # the proper values into config.h.in to produce config.h. And first:
1889 # Protect against being on the right side of a sed subst in config.status.
1890 # Protect against being in an unquoted here document in config.status.
1892 cat > conftest.hdr
<<\EOF
1895 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1899 sed -n -f conftest.hdr confdefs.h > conftest.vals
1902 # This sed command replaces #undef with comments. This is necessary, for
1903 # example, in the case of _POSIX_SOURCE, which is predefined and required
1904 # on some systems where configure will not decide to define it.
1905 cat >> conftest.vals <<\EOF
1906 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1909 # Break up conftest.vals because some shells have a limit on
1910 # the size of here documents, and old seds have small limits too.
1915 ac_lines=`grep -c . conftest.vals
`
1916 # grep -c gives empty output for an empty file on some AIX systems.
1917 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1918 # Write a limited-size here document to conftest.frag.
1919 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1920 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1922 sed -f conftest.frag conftest.in > conftest.out
1924 mv conftest.out conftest.in
1926 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1928 mv conftest.tail conftest.vals
1932 cat >> $CONFIG_STATUS <<\EOF
1933 rm -f conftest.frag conftest.h
1934 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1935 cat conftest.in >> conftest.h
1937 if cmp -s $ac_file conftest.h 2>/dev/null; then
1938 echo "$ac_file is unchanged"
1941 # Remove last slash and all that follows it. Not all systems have dirname.
1942 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1943 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1944 # The file is in a subdirectory.
1945 test ! -d "$ac_dir" && mkdir "$ac_dir"
1948 mv conftest.h $ac_file
1954 cat >> $CONFIG_STATUS <<EOF
1955 ac_sources="$sim_link_files"
1956 ac_dests="$sim_link_links"
1959 cat >> $CONFIG_STATUS <<\EOF
1960 srcdir=$ac_given_srcdir
1961 while test -n "$ac_sources"; do
1962 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1963 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1965 echo "linking $srcdir/$ac_source to $ac_dest"
1967 if test ! -r $srcdir/$ac_source; then
1968 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1972 # Make relative symlinks.
1973 # Remove last slash and all that follows it. Not all systems have dirname.
1974 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
1975 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1976 # The dest file is in a subdirectory.
1977 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1978 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
1979 # A "../" for each directory in $ac_dest_dir_suffix.
1980 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
1982 ac_dest_dir_suffix= ac_dots=
1986 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1987 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1990 # Make a symlink if possible; otherwise try a hard link.
1991 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1992 ln $srcdir/$ac_source $ac_dest; then :
1994 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1998 cat >> $CONFIG_STATUS <<EOF
2001 cat >> $CONFIG_STATUS <<\EOF
2002 case "x$CONFIG_FILES" in
2004 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
2005 rm -f Makesim1.tmp Makesim2.tmp Makefile
2006 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
2007 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
2008 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
2009 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
2010 <Makefile.sim >Makefile
2011 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
2014 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
2018 chmod +x $CONFIG_STATUS
2019 rm -fr confdefs* $ac_clean_files
2020 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1