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-alignment=align Specify strict or nonstrict alignment."
17 --enable-sim-assert Specify whether to perform random assertions."
19 --enable-sim-bitsize=n Specify target bitsize (32 or 64)."
21 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums."
23 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
25 --enable-sim-config=file Override default config file"
27 --enable-sim-default-model=which Specify default PowerPC to model."
29 --enable-sim-duplicate Expand (duplicate) semantic functions."
31 --enable-sim-endian=endian Specify target byte endian orientation."
33 --enable-sim-env=env Specify target environment (operating, virtual, user)."
35 --enable-sim-filter=rule Specify filter rules."
37 --enable-sim-float Specify whether to use host floating point or simulate."
39 --enable-sim-hardware=list Specify the hardware to be included in the build."
41 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64)."
43 --enable-sim-hostendain=end Specify host byte endian orientation."
45 --enable-sim-icache=size Specify instruction-decode cache size and type."
47 --enable-sim-inline=inlines Specify which functions should be inlined."
49 --enable-sim-jump Jump between semantic code (instead of call/return)."
51 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code"
53 --enable-sim-model=which Specify PowerPC to model."
55 --enable-sim-model-issue Specify whether to simulate model specific actions"
57 --enable-sim-monitor=mon Specify whether to enable monitoring events."
59 --enable-sim-opcode=which Override default opcode lookup."
61 --enable-sim-packages=list Specify the packages to be included in the build."
63 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific."
65 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
67 --enable-sim-smp=n Specify number of processors to configure for."
69 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific."
71 --enable-sim-stdio Specify whether to use stdio for console input/output."
73 --enable-sim-switch Use a switch instead of a table for instruction call."
75 --enable-sim-timebase Specify whether the PPC timebase is supported."
77 --enable-sim-trace Specify whether tracing is supported."
79 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o"
81 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8)."
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
87 cache_file
=.
/config.cache
96 program_transform_name
=s
,x
,x
,
104 bindir
='${exec_prefix}/bin'
105 sbindir
='${exec_prefix}/sbin'
106 libexecdir
='${exec_prefix}/libexec'
107 datadir
='${prefix}/share'
108 sysconfdir
='${prefix}/etc'
109 sharedstatedir
='${prefix}/com'
110 localstatedir
='${prefix}/var'
111 libdir
='${exec_prefix}/lib'
112 includedir
='${prefix}/include'
113 oldincludedir
='/usr/include'
114 infodir
='${prefix}/info'
115 mandir
='${prefix}/man'
117 # Initialize some other variables.
120 # Maximum number of lines to put in a shell here document.
127 # If the previous option needs an argument, assign it.
128 if test -n "$ac_prev"; then
129 eval "$ac_prev=\$ac_option"
135 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
139 # Accept the important Cygnus configure options, so we can diagnose typos.
143 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
145 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
146 bindir
="$ac_optarg" ;;
148 -build |
--build |
--buil |
--bui |
--bu)
150 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
151 build
="$ac_optarg" ;;
153 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
154 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
155 ac_prev
=cache_file
;;
156 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
157 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
158 cache_file
="$ac_optarg" ;;
160 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
162 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
164 datadir
="$ac_optarg" ;;
166 -disable-* |
--disable-*)
167 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}=no" ;;
175 -enable-* |
--enable-*)
176 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
186 eval "enable_${ac_feature}='$ac_optarg'" ;;
188 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
189 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
190 |
--exec |
--exe |
--ex)
191 ac_prev
=exec_prefix
;;
192 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
193 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
194 |
--exec=* |
--exe=* |
--ex=*)
195 exec_prefix
="$ac_optarg" ;;
197 -gas |
--gas |
--ga |
--g)
198 # Obsolete; use --with-gas.
201 -help |
--help |
--hel |
--he)
202 # Omit some internal or obsolete options to make the list less imposing.
203 # This message is too long to be a string in the A/UX 3.1 sh.
205 Usage: configure [options] [host]
206 Options: [defaults in brackets after descriptions]
208 --cache-file=FILE cache test results in FILE
209 --help print this message
210 --no-create do not create output files
211 --quiet, --silent do not print \`checking...' messages
212 --version print the version of autoconf that created configure
213 Directory and file names:
214 --prefix=PREFIX install architecture-independent files in PREFIX
216 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
218 --bindir=DIR user executables in DIR [EPREFIX/bin]
219 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
220 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
221 --datadir=DIR read-only architecture-independent data in DIR
223 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
224 --sharedstatedir=DIR modifiable architecture-independent data in DIR
226 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
227 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
228 --includedir=DIR C header files in DIR [PREFIX/include]
229 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
230 --infodir=DIR info documentation in DIR [PREFIX/info]
231 --mandir=DIR man documentation in DIR [PREFIX/man]
232 --srcdir=DIR find the sources in DIR [configure dir or ..]
233 --program-prefix=PREFIX prepend PREFIX to installed program names
234 --program-suffix=SUFFIX append SUFFIX to installed program names
235 --program-transform-name=PROGRAM
236 run sed PROGRAM on installed program names
240 --build=BUILD configure for building on BUILD [BUILD=HOST]
241 --host=HOST configure for HOST [guessed]
242 --target=TARGET configure for TARGET [TARGET=HOST]
243 Features and packages:
244 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
245 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
246 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
247 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
248 --x-includes=DIR X include files are in DIR
249 --x-libraries=DIR X library files are in DIR
251 if test -n "$ac_help"; then
252 echo "--enable and --with options recognized:$ac_help"
256 -host |
--host |
--hos |
--ho)
258 -host=* |
--host=* |
--hos=* |
--ho=*)
261 -includedir |
--includedir |
--includedi |
--included |
--include \
262 |
--includ |
--inclu |
--incl |
--inc)
263 ac_prev
=includedir
;;
264 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
265 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
266 includedir
="$ac_optarg" ;;
268 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
270 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
271 infodir
="$ac_optarg" ;;
273 -libdir |
--libdir |
--libdi |
--libd)
275 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
276 libdir
="$ac_optarg" ;;
278 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
279 |
--libexe |
--libex |
--libe)
280 ac_prev
=libexecdir
;;
281 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
282 |
--libexe=* |
--libex=* |
--libe=*)
283 libexecdir
="$ac_optarg" ;;
285 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
286 |
--localstate |
--localstat |
--localsta |
--localst \
287 |
--locals |
--local |
--loca |
--loc |
--lo)
288 ac_prev
=localstatedir
;;
289 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
290 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
291 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
292 localstatedir
="$ac_optarg" ;;
294 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
296 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
297 mandir
="$ac_optarg" ;;
300 # Obsolete; use --without-fp.
303 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
307 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
308 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
311 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
312 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
313 |
--oldin |
--oldi |
--old |
--ol |
--o)
314 ac_prev
=oldincludedir
;;
315 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
316 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
317 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
318 oldincludedir
="$ac_optarg" ;;
320 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
322 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
323 prefix
="$ac_optarg" ;;
325 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
326 |
--program-pre |
--program-pr |
--program-p)
327 ac_prev
=program_prefix
;;
328 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
329 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
330 program_prefix
="$ac_optarg" ;;
332 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
333 |
--program-suf |
--program-su |
--program-s)
334 ac_prev
=program_suffix
;;
335 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
336 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
337 program_suffix
="$ac_optarg" ;;
339 -program-transform-name |
--program-transform-name \
340 |
--program-transform-nam |
--program-transform-na \
341 |
--program-transform-n |
--program-transform- \
342 |
--program-transform |
--program-transfor \
343 |
--program-transfo |
--program-transf \
344 |
--program-trans |
--program-tran \
345 |
--progr-tra |
--program-tr |
--program-t)
346 ac_prev
=program_transform_name
;;
347 -program-transform-name=* |
--program-transform-name=* \
348 |
--program-transform-nam=* |
--program-transform-na=* \
349 |
--program-transform-n=* |
--program-transform-=* \
350 |
--program-transform=* |
--program-transfor=* \
351 |
--program-transfo=* |
--program-transf=* \
352 |
--program-trans=* |
--program-tran=* \
353 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
354 program_transform_name
="$ac_optarg" ;;
356 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
357 |
-silent |
--silent |
--silen |
--sile |
--sil)
360 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
362 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
364 sbindir
="$ac_optarg" ;;
366 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
367 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
368 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
370 ac_prev
=sharedstatedir
;;
371 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
372 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
373 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
375 sharedstatedir
="$ac_optarg" ;;
377 -site |
--site |
--sit)
379 -site=* |
--site=* |
--sit=*)
382 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
384 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
385 srcdir
="$ac_optarg" ;;
387 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
388 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
389 ac_prev
=sysconfdir
;;
390 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
391 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
392 sysconfdir
="$ac_optarg" ;;
394 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
396 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
397 target
="$ac_optarg" ;;
399 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
402 -version |
--version |
--versio |
--versi |
--vers)
403 echo "configure generated by autoconf version 2.12"
407 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}='$ac_optarg'" ;;
419 -without-* |
--without-*)
420 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
423 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425 ac_package
=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}=no" ;;
429 # Obsolete; use --with-x.
432 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
433 |
--x-incl |
--x-inc |
--x-in |
--x-i)
434 ac_prev
=x_includes
;;
435 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
436 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
437 x_includes
="$ac_optarg" ;;
439 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
440 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
441 ac_prev
=x_libraries
;;
442 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
443 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
444 x_libraries
="$ac_optarg" ;;
446 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
450 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
451 echo "configure: warning: $ac_option: invalid host type" 1>&2
453 if test "x$nonopt" != xNONE
; then
454 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 if test -n "$ac_prev"; then
463 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
466 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468 # File descriptor usage:
471 # 2 errors and warnings
472 # 3 some systems may open it to /dev/tty
473 # 4 used on the Kubota Titan
474 # 6 checking for... messages and results
475 # 5 compiler messages saved in config.log
476 if test "$silent" = yes; then
484 This file contains any messages produced by compilers while
485 running configure, to aid debugging if configure makes a mistake.
488 # Strip out --no-create and --no-recursion so they do not pile up.
489 # Also quote any args containing shell metacharacters.
494 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
495 |
--no-cr |
--no-c) ;;
496 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
497 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
498 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
499 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
500 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
505 # Only set these to C if already set. These must not be set unconditionally
506 # because not all systems understand e.g. LANG=C (notably SCO).
507 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
508 # Non-C LC_CTYPE values break the ctype check.
509 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
510 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
511 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
512 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
514 # confdefs.h avoids OS command line length limits that DEFS can exceed.
515 rm -rf conftest
* confdefs.h
516 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
519 # A filename unique to this package, relative to the directory that
520 # configure is in, which we can look for to find out if srcdir is correct.
521 ac_unique_file
=Makefile.
in
523 # Find the source files, if location was not specified.
524 if test -z "$srcdir"; then
525 ac_srcdir_defaulted
=yes
526 # Try the directory containing this script, then its parent.
528 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
529 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
531 if test ! -r $srcdir/$ac_unique_file; then
535 ac_srcdir_defaulted
=no
537 if test ! -r $srcdir/$ac_unique_file; then
538 if test "$ac_srcdir_defaulted" = yes; then
539 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
544 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
546 # Prefer explicitly selected file to automatically selected ones.
547 if test -z "$CONFIG_SITE"; then
548 if test "x$prefix" != xNONE
; then
549 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
551 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
554 for ac_site_file
in $CONFIG_SITE; do
555 if test -r "$ac_site_file"; then
556 echo "loading site script $ac_site_file"
561 if test -r "$cache_file"; then
562 echo "loading cache $cache_file"
565 echo "creating cache $cache_file"
570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
571 ac_cpp
='$CPP $CPPFLAGS'
572 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
573 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
574 cross_compiling
=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
585 ac_n
= ac_c
='\c' ac_t
=
591 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
592 if test -f $ac_dir/install-sh
; then
594 ac_install_sh
="$ac_aux_dir/install-sh -c"
596 elif test -f $ac_dir/install.sh
; then
598 ac_install_sh
="$ac_aux_dir/install.sh -c"
602 if test -z "$ac_aux_dir"; then
603 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
605 ac_config_guess
=$ac_aux_dir/config.guess
606 ac_config_sub
=$ac_aux_dir/config.sub
607 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
609 # Find a good install program. We prefer a C program (faster),
610 # so one script is as good as another. But avoid the broken or
611 # incompatible versions:
612 # SysV /etc/install, /usr/sbin/install
613 # SunOS /usr/etc/install
616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
618 # ./install, which can be erroneously created by make from ./install.sh.
619 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
620 echo "configure:621: checking for a BSD compatible install" >&5
621 if test -z "$INSTALL"; then
622 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
625 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
626 for ac_dir
in $PATH; do
627 # Account for people who put trailing slashes in PATH elements.
629 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
631 # OSF1 and SCO ODT 3.0 have their own names for install.
632 for ac_prog
in ginstall installbsd scoinst
install; do
633 if test -f $ac_dir/$ac_prog; then
634 if test $ac_prog = install &&
635 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
636 # AIX install. It has an incompatible calling convention.
637 # OSF/1 installbsd also uses dspmsg, but is usable.
640 ac_cv_path_install
="$ac_dir/$ac_prog -c"
651 if test "${ac_cv_path_install+set}" = set; then
652 INSTALL
="$ac_cv_path_install"
654 # As a last resort, use the slow shell script. We don't cache a
655 # path for INSTALL within a source directory, because that will
656 # break other packages using the cache if that directory is
657 # removed, or if the path is relative.
658 INSTALL
="$ac_install_sh"
661 echo "$ac_t""$INSTALL" 1>&6
663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
664 # It thinks the first close brace ends the variable substitution.
665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
667 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
669 # Extract the first word of "gcc", so it can be a program name with args.
670 set dummy gcc
; ac_word
=$2
671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672 echo "configure:673: checking for $ac_word" >&5
673 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 if test -n "$CC"; then
677 ac_cv_prog_CC
="$CC" # Let the user override the test.
679 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
680 for ac_dir
in $PATH; do
681 test -z "$ac_dir" && ac_dir
=.
682 if test -f $ac_dir/$ac_word; then
691 if test -n "$CC"; then
692 echo "$ac_t""$CC" 1>&6
694 echo "$ac_t""no" 1>&6
697 if test -z "$CC"; then
698 # Extract the first word of "cc", so it can be a program name with args.
699 set dummy cc
; ac_word
=$2
700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
701 echo "configure:702: checking for $ac_word" >&5
702 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
705 if test -n "$CC"; then
706 ac_cv_prog_CC
="$CC" # Let the user override the test.
708 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
710 for ac_dir
in $PATH; do
711 test -z "$ac_dir" && ac_dir
=.
712 if test -f $ac_dir/$ac_word; then
713 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
722 if test $ac_prog_rejected = yes; then
723 # We found a bogon in the path, so make sure we never use it.
724 set dummy
$ac_cv_prog_CC
726 if test $# -gt 0; then
727 # We chose a different compiler from the bogus one.
728 # However, it has the same basename, so the bogon will be chosen
729 # first if we set CC to just the basename; use the full file name.
731 set dummy
"$ac_dir/$ac_word" "$@"
739 if test -n "$CC"; then
740 echo "$ac_t""$CC" 1>&6
742 echo "$ac_t""no" 1>&6
745 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
748 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
749 echo "configure:750: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
753 ac_cpp
='$CPP $CPPFLAGS'
754 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
755 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
756 cross_compiling
=$ac_cv_prog_cc_cross
758 cat > conftest.
$ac_ext <<EOF
759 #line 760 "configure"
760 #include "confdefs.h"
763 if { (eval echo configure
:764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
764 ac_cv_prog_cc_works
=yes
765 # If we can't run a trivial program, we are probably using a cross compiler.
766 if (.
/conftest
; exit) 2>/dev
/null
; then
767 ac_cv_prog_cc_cross
=no
769 ac_cv_prog_cc_cross
=yes
772 echo "configure: failed program was:" >&5
773 cat conftest.
$ac_ext >&5
774 ac_cv_prog_cc_works
=no
778 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
779 if test $ac_cv_prog_cc_works = no
; then
780 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
782 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
783 echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
784 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
785 cross_compiling
=$ac_cv_prog_cc_cross
787 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
788 echo "configure:789: checking whether we are using GNU C" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 cat > conftest.c
<<EOF
797 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
804 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
806 if test $ac_cv_prog_gcc = yes; then
808 ac_test_CFLAGS
="${CFLAGS+set}"
809 ac_save_CFLAGS
="$CFLAGS"
811 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
812 echo "configure:813: checking whether ${CC-cc} accepts -g" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 echo 'void f(){}' > conftest.c
817 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
826 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
827 if test "$ac_test_CFLAGS" = set; then
828 CFLAGS
="$ac_save_CFLAGS"
829 elif test $ac_cv_prog_cc_g = yes; then
836 test "${CFLAGS+set}" = set || CFLAGS
="-g"
840 # Put a plausible default for CC_FOR_BUILD in Makefile.
842 if test "x$cross_compiling" = "xno"; then
849 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
850 if test "${enable_sim_alignment+set}" = set; then
851 enableval
="$enable_sim_alignment"
852 case "${enableval}" in
853 yes | strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
854 no | nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
855 0 | default | DEFAULT
) sim_alignment
="-DWITH_ALIGNMENT=0";;
856 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
858 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
859 echo "Setting alignment flags = $sim_alignment" 6>&1
866 # Check whether --enable-sim-assert or --disable-sim-assert was given.
867 if test "${enable_sim_assert+set}" = set; then
868 enableval
="$enable_sim_assert"
869 case "${enableval}" in
870 yes) sim_assert
="-DWITH_ASSERT=1";;
871 no
) sim_assert
="-DWITH_ASSERT=0";;
872 *) { echo "configure: error: "--enable-sim-assert does not take a value
"" 1>&2; exit 1; }; sim_assert
="";;
874 if test x
"$silent" != x
"yes" && test x
"$sim_assert" != x
""; then
875 echo "Setting assert flags = $sim_assert" 6>&1
882 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
883 if test "${enable_sim_bitsize+set}" = set; then
884 enableval
="$enable_sim_bitsize"
885 case "${enableval}" in
886 32|
64) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
887 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; }; sim_bitsize
="";;
889 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
890 echo "Setting bitsize flags = $sim_bitsize" 6>&1
897 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
898 if test "${enable_sim_bswap+set}" = set; then
899 enableval
="$enable_sim_bswap"
900 case "${enableval}" in
901 yes) sim_bswap
="-DWITH_BSWAP=1";;
902 no
) sim_bswap
="-DWITH_BSWAP=0";;
903 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
905 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
906 echo "Setting bswap flags = $sim_bswap" 6>&1
913 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
914 if test "${enable_sim_cflags+set}" = set; then
915 enableval
="$enable_sim_cflags"
916 case "${enableval}" in
917 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
919 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
921 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
922 echo "Setting sim cflags = $sim_cflags" 6>&1
929 # Check whether --enable-sim-config or --disable-sim-config was given.
930 if test "${enable_sim_config+set}" = set; then
931 enableval
="$enable_sim_config"
932 case "${enableval}" in
933 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-config=file"" 1>&2; exit 1; };;
934 *) if test -f "${srcdir}/${enableval}"; then
935 sim_config
="${enableval}";
936 elif test -f "${srcdir}/${enableval}-config.h"; then
937 sim_config
="${enableval}-config.h"
939 { echo "configure: error: "Config
file $enableval was not found
"" 1>&2; exit 1; };
940 sim_config
=std-config.h
943 if test x
"$silent" != x
"yes" && test x
"$sim_config" != x
""; then
944 echo "Setting config flags = $sim_config" 6>&1
947 sim_config
="std-config.h"
948 if test x
"$silent" != x
"yes"; then
949 echo "Setting config flags = $sim_config" 6>&1
954 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
955 if test "${enable_sim_default_model+set}" = set; then
956 enableval
="$enable_sim_default_model"
957 case "${enableval}" in
958 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-default-model=model
"" 1>&2; exit 1; };;
959 *) sim_default_model
="-DWITH_DEFAULT_MODEL=${enableval}";;
961 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
962 echo "Setting default-model flags = $sim_default_model" 6>&1
969 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
970 if test "${enable_sim_duplicate+set}" = set; then
971 enableval
="$enable_sim_duplicate"
972 case "${enableval}" in
975 *) { echo "configure: error: "--enable-sim-duplicate does not take a value
"" 1>&2; exit 1; }; sim_dup
="";;
977 if test x
"$silent" != x
"yes" && test x
"$sim_dup" != x
""; then
978 echo "Setting duplicate flags = $sim_dup" 6>&1
982 if test x
"$silent" != x
"yes"; then
983 echo "Setting duplicate flags = $sim_dup" 6>&1
988 # Check whether --enable-sim-endian or --disable-sim-endian was given.
989 if test "${enable_sim_endian+set}" = set; then
990 enableval
="$enable_sim_endian"
991 case "${enableval}" in
992 yes) case "$target" in
993 *powerpc-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
994 *powerpcle-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
995 *) echo "Unknown target $target" 1>&6; sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
997 no
) sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
998 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
999 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1000 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
1002 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
1003 echo "Setting endian flags = $sim_endian" 6>&1
1010 # Check whether --enable-sim-env or --disable-sim-env was given.
1011 if test "${enable_sim_env+set}" = set; then
1012 enableval
="$enable_sim_env"
1013 case "${enableval}" in
1014 operating | os | oea
) sim_env
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
1015 virtual | vea
) sim_env
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
1016 user | uea
) sim_env
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
1017 no
) sim_env
="-DWITH_ENVIRONMENT=0";;
1018 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-env"" 1>&2; exit 1; }; sim_env
="";;
1020 if test x
"$silent" != x
"yes" && test x
"$sim_env" != x
""; then
1021 echo "Setting env flags = $sim_env" 6>&1
1028 # Check whether --enable-sim-filter or --disable-sim-filter was given.
1029 if test "${enable_sim_filter+set}" = set; then
1030 enableval
="$enable_sim_filter"
1031 case "${enableval}" in
1032 yes) { echo "configure: error: "--enable-sim-filter must be specified with a rule to filter or no
"" 1>&2; exit 1; }; sim_filter
="";;
1034 *) sim_filter
="-F $enableval";;
1036 if test x
"$silent" != x
"yes" && test x
"$sim_filter" != x
""; then
1037 echo "Setting filter flags = $sim_filter" 6>&1
1040 sim_filter
="-F 32,f,o"
1041 if test x
"$silent" != x
"yes"; then
1042 echo "Setting filter flags = $sim_filter" 6>&1
1047 # Check whether --enable-sim-float or --disable-sim-float was given.
1048 if test "${enable_sim_float+set}" = set; then
1049 enableval
="$enable_sim_float"
1050 case "${enableval}" in
1051 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
1052 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
1053 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-float"" 1>&2; exit 1; }; sim_float
="";;
1055 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
1056 echo "Setting float flags = $sim_float" 6>&1
1063 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
1064 if test "${enable_sim_hardware+set}" = set; then
1065 enableval
="$enable_sim_hardware"
1066 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
1067 case "${enableval}" in
1069 no
) { echo "configure: error: "List of hardware must be specified
for --enable-sim-hardware"" 1>&2; exit 1; }; hardware
="";;
1070 ,*) hardware
="${hardware}${enableval}";;
1071 *,) hardware
="${enableval}${hardware}";;
1072 *) hardware
="${enableval}"'';;
1074 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
1075 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
1076 if test x
"$silent" != x
"yes" && test x
"$hardware" != x
""; then
1077 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
1080 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
1081 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
1082 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
1083 if test x
"$silent" != x
"yes"; then
1084 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
1089 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
1090 if test "${enable_sim_hostbitsize+set}" = set; then
1091 enableval
="$enable_sim_hostbitsize"
1092 case "${enableval}" in
1093 32|
64) sim_hostbitsize
="-DWITH_HOST_WORD_BITSIZE=$enableval";;
1094 *) { echo "configure: error: "--enable-sim-hostbitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; }; sim_hostbitsize
="";;
1096 if test x
"$silent" != x
"yes" && test x
"$sim_hostbitsize" != x
""; then
1097 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
1104 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
1105 if test "${enable_sim_hostendian+set}" = set; then
1106 enableval
="$enable_sim_hostendian"
1107 case "${enableval}" in
1108 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
1109 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
1110 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
1111 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
1113 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
1114 echo "Setting hostendian flags = $sim_hostendian" 6>&1
1118 if test "x$cross_compiling" = "xno"; then
1119 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether byte ordering is bigendian" >&5
1121 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 ac_cv_c_bigendian
=unknown
1125 # See if sys/param.h defines the BYTE_ORDER macro.
1126 cat > conftest.
$ac_ext <<EOF
1127 #line 1128 "configure"
1128 #include "confdefs.h"
1129 #include <sys/types.h>
1130 #include <sys/param.h>
1133 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1138 if { (eval echo configure
:1139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1140 # It does; now see whether it defined to BIG_ENDIAN or not.
1141 cat > conftest.
$ac_ext <<EOF
1142 #line 1143 "configure"
1143 #include "confdefs.h"
1144 #include <sys/types.h>
1145 #include <sys/param.h>
1148 #if BYTE_ORDER != BIG_ENDIAN
1153 if { (eval echo configure
:1154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1155 ac_cv_c_bigendian
=yes
1157 echo "configure: failed program was:" >&5
1158 cat conftest.
$ac_ext >&5
1160 ac_cv_c_bigendian
=no
1164 echo "configure: failed program was:" >&5
1165 cat conftest.
$ac_ext >&5
1168 if test $ac_cv_c_bigendian = unknown
; then
1169 if test "$cross_compiling" = yes; then
1170 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1172 cat > conftest.
$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1176 /* Are we little or big endian? From Harbison&Steele. */
1180 char c[sizeof (long)];
1183 exit (u.c[sizeof (long) - 1] == 1);
1186 if { (eval echo configure
:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1188 ac_cv_c_bigendian
=no
1190 echo "configure: failed program was:" >&5
1191 cat conftest.
$ac_ext >&5
1193 ac_cv_c_bigendian
=yes
1201 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1202 if test $ac_cv_c_bigendian = yes; then
1203 cat >> confdefs.h
<<\EOF
1204 #define WORDS_BIGENDIAN 1
1209 if test $ac_cv_c_bigendian = yes; then
1210 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1212 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1215 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
1220 # Check whether --enable-sim-icache or --disable-sim-icache was given.
1221 if test "${enable_sim_icache+set}" = set; then
1222 enableval
="$enable_sim_icache"
1224 case "${enableval}" in
1225 yes) icache
="1024"; sim_icache
="-I $icache";;
1226 no
) sim_icache
="-R";;
1229 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
1231 define
) sim_icache
="${sim_icache}R";;
1232 semantic
) sim_icache
="${sim_icache}C";;
1233 insn
) sim_icache
="${sim_icache}S";;
1234 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
1235 *) { echo "configure: error: "Unknown value
$x for --enable-sim-icache"" 1>&2; exit 1; }; sim_icache
="";;
1238 sim_icache
="${sim_icache}I $icache";;
1240 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
1241 echo "Setting instruction cache size to $icache ($sim_icache)"
1244 sim_icache
="-CSRI 1024"
1245 if test x
"$silent" != x
"yes"; then
1246 echo "Setting instruction cache size to 1024 ($sim_icache)"
1251 # Check whether --enable-sim-inline or --disable-sim-inline was given.
1252 if test "${enable_sim_inline+set}" = set; then
1253 enableval
="$enable_sim_inline"
1255 case "$enableval" in
1256 no
) sim_inline
="-DDEFAULT_INLINE=0";;
1257 0) sim_inline
="-DDEFAULT_INLINE=0";;
1258 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
1259 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
1260 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1263 *_INLINE
=*) new_flag
="-D$x";;
1264 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
1265 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
1266 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
1268 if test x
"$sim_inline" = x
""; then
1269 sim_inline
="$new_flag"
1271 sim_inline
="$sim_inline $new_flag"
1275 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
1276 echo "Setting inline flags = $sim_inline" 6>&1
1279 if test x
"$GCC" != ""; then
1280 sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS"
1281 if test x
"$silent" != x
"yes"; then
1282 echo "Setting inline flags = $sim_inline" 6>&1
1290 # Check whether --enable-sim-jump or --disable-sim-jump was given.
1291 if test "${enable_sim_jump+set}" = set; then
1292 enableval
="$enable_sim_jump"
1293 case "${enableval}" in
1294 yes) sim_jump
="-J";;
1296 *) { echo "configure: error: "--enable-sim-jump does not take a value
"" 1>&2; exit 1; }; sim_jump
="";;
1298 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
1299 echo "Setting jump flag = $sim_jump" 6>&1
1303 if test x
"$silent" != x
"yes"; then
1304 echo "Setting jump flag = $sim_jump" 6>&1
1309 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
1310 if test "${enable_sim_line_nr+set}" = set; then
1311 enableval
="$enable_sim_line_nr"
1312 case "${enableval}" in
1313 yes) sim_line_nr
="";;
1314 no
) sim_line_nr
="-L";;
1315 *) { echo "configure: error: "--enable-sim-line-nr does not take a value
"" 1>&2; exit 1; }; sim_line_nr
="";;
1317 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
1318 echo "Setting warning flags = $sim_line_nr" 6>&1
1325 # Check whether --enable-sim-model or --disable-sim-model was given.
1326 if test "${enable_sim_model+set}" = set; then
1327 enableval
="$enable_sim_model"
1328 case "${enableval}" in
1329 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-model=model
"" 1>&2; exit 1; };;
1330 *) sim_model
="-DWITH_MODEL=${enableval}";;
1332 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
1333 echo "Setting model flags = $sim_model" 6>&1
1340 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
1341 if test "${enable_sim_model_issue+set}" = set; then
1342 enableval
="$enable_sim_model_issue"
1343 case "${enableval}" in
1344 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
1345 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
1346 *) { echo "configure: error: "--enable-sim-model-issue does not take a value
"" 1>&2; exit 1; }; sim_model_issue
="";;
1348 if test x
"$silent" != x
"yes"; then
1349 echo "Setting model-issue flags = $sim_model_issue" 6>&1
1356 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
1357 if test "${enable_sim_monitor+set}" = set; then
1358 enableval
="$enable_sim_monitor"
1359 case "${enableval}" in
1360 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
1361 no
) sim_monitor
="-DWITH_MON=0";;
1362 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
1363 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
1364 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-mon"" 1>&2; exit 1; }; sim_env
="";;
1366 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
1367 echo "Setting monitor flags = $sim_monitor" 6>&1
1374 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
1375 if test "${enable_sim_opcode+set}" = set; then
1376 enableval
="$enable_sim_opcode"
1377 case "${enableval}" in
1378 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-opcode=file"" 1>&2; exit 1; };;
1379 *) if test -f "${srcdir}/${enableval}"; then
1380 sim_opcode
="${enableval}"
1381 elif test -f "${srcdir}/ppc-opcode-${enableval}"; then
1382 sim_opcode
="ppc-opcode-${enableval}"
1384 { echo "configure: error: "File
$enableval is not an opcode rules
file"" 1>&2; exit 1; };
1385 sim_opcode
="ppc-opcode-complex"
1388 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
1389 echo "Setting opcode flags = $sim_opcode" 6>&1
1392 sim_opcode
="ppc-opcode-complex"
1393 if test x
"$silent" != x
"yes"; then
1394 echo "Setting opcode flags = $sim_opcode"
1399 # Check whether --enable-sim-packages or --disable-sim-packages was given.
1400 if test "${enable_sim_packages+set}" = set; then
1401 enableval
="$enable_sim_packages"
1403 case "${enableval}" in
1405 no
) { echo "configure: error: "List of packages must be specified
for --enable-sim-packages"" 1>&2; exit 1; }; packages
="";;
1406 ,*) packages
="${packages}${enableval}";;
1407 *,) packages
="${enableval}${packages}";;
1408 *) packages
="${enableval}"'';;
1410 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
1411 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
1412 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
1413 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
1417 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
1418 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
1419 if test x
"$silent" != x
"yes"; then
1420 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
1425 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
1426 if test "${enable_sim_regparm+set}" = set; then
1427 enableval
="$enable_sim_regparm"
1428 case "${enableval}" in
1429 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) sim_regparm
="-DWITH_REGPARM=${enableval}";;
1430 no
) sim_regparm
="" ;;
1431 yes) sim_regparm
="-DWITH_REGPARM=3";;
1432 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-regparm"" 1>&2; exit 1; }; sim_regparm
="";;
1434 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
1435 echo "Setting regparm flags = $sim_regparm" 6>&1
1442 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
1443 if test "${enable_sim_reserved_bits+set}" = set; then
1444 enableval
="$enable_sim_reserved_bits"
1445 case "${enableval}" in
1446 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
1447 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
1448 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value
"" 1>&2; exit 1; }; sim_reserved
="";;
1450 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
1451 echo "Setting reserved flags = $sim_reserved" 6>&1
1458 # Check whether --enable-sim-smp or --disable-sim-smp was given.
1459 if test "${enable_sim_smp+set}" = set; then
1460 enableval
="$enable_sim_smp"
1461 case "${enableval}" in
1462 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
1463 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
1464 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
1466 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
1467 echo "Setting smp flags = $sim_smp" 6>&1
1470 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
1471 if test x
"$silent" != x
"yes"; then
1472 echo "Setting smp flags = $sim_smp" 6>&1
1477 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
1478 if test "${enable_sim_stdcall+set}" = set; then
1479 enableval
="$enable_sim_stdcall"
1480 case "${enableval}" in
1481 no
) sim_stdcall
="" ;;
1482 std
*) sim_stdcall
="-DWITH_STDCALL=1";;
1483 yes) sim_stdcall
="-DWITH_STDCALL=1";;
1484 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-stdcall"" 1>&2; exit 1; }; sim_stdcall
="";;
1486 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
1487 echo "Setting function call flags = $sim_stdcall" 6>&1
1494 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1495 if test "${enable_sim_stdio+set}" = set; then
1496 enableval
="$enable_sim_stdio"
1497 case "${enableval}" in
1498 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
1499 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
1500 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
1502 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1503 echo "Setting stdio flags = $sim_stdio" 6>&1
1510 # Check whether --enable-sim-switch or --disable-sim-switch was given.
1511 if test "${enable_sim_switch+set}" = set; then
1512 enableval
="$enable_sim_switch"
1513 case "${enableval}" in
1514 yes) sim_switch
="-s";;
1516 *) { echo "configure: error: "--enable-sim-switch does not take a value
"" 1>&2; exit 1; }; sim_switch
="";;
1518 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
1519 echo "Setting switch flags = $sim_switch" 6>&1
1523 if test x
"$silent" != x
"yes"; then
1524 echo "Setting switch flags = $sim_switch" 6>&1
1529 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
1530 if test "${enable_sim_timebase+set}" = set; then
1531 enableval
="$enable_sim_timebase"
1532 case "${enableval}" in
1533 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
1534 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
1535 *) { echo "configure: error: "--enable-sim-timebase does not take a value
"" 1>&2; exit 1; }; sim_timebase
="";;
1537 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
1538 echo "Setting timebase flags = $sim_timebase" 6>&1
1545 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1546 if test "${enable_sim_trace+set}" = set; then
1547 enableval
="$enable_sim_trace"
1548 case "${enableval}" in
1549 yes) sim_trace
="-DWITH_TRACE=1";;
1550 no
) sim_trace
="-DWITH_TRACE=0";;
1551 *) { echo "configure: error: "--enable-sim-trace does not take a value
"" 1>&2; exit 1; }; sim_trace
="";;
1553 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1554 echo "Setting trace flags = $sim_trace" 6>&1
1561 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
1562 if test "${enable_sim_warnings+set}" = set; then
1563 enableval
="$enable_sim_warnings"
1564 case "${enableval}" in
1565 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
1566 no
) sim_warnings
="-w";;
1567 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1569 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
1570 echo "Setting warning flags = $sim_warnings" 6>&1
1577 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
1578 if test "${enable_sim_xor_endian+set}" = set; then
1579 enableval
="$enable_sim_xor_endian"
1580 case "${enableval}" in
1581 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
1582 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
1583 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
1585 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
1586 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
1594 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1595 if test -f $ac_dir/install-sh
; then
1597 ac_install_sh
="$ac_aux_dir/install-sh -c"
1599 elif test -f $ac_dir/install.sh
; then
1601 ac_install_sh
="$ac_aux_dir/install.sh -c"
1605 if test -z "$ac_aux_dir"; then
1606 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1608 ac_config_guess
=$ac_aux_dir/config.guess
1609 ac_config_sub
=$ac_aux_dir/config.sub
1610 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1613 # Do some error checking and defaulting for the host and target type.
1615 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1618 # 1. You are not allowed to specify --host, --target, and nonopt at the
1620 # 2. Host defaults to nonopt.
1621 # 3. If nonopt is not specified, then host defaults to the current host,
1622 # as determined by config.guess.
1623 # 4. Target and build default to nonopt.
1624 # 5. If nonopt is not specified, then target and build default to host.
1626 # The aliases save the names the user supplied, while $host etc.
1627 # will get canonicalized.
1628 case $host---$target---$nonopt in
1629 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1630 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1634 # Make sure we can run config.sub.
1635 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1636 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1639 echo $ac_n "checking host system type""... $ac_c" 1>&6
1640 echo "configure:1641: checking host system type" >&5
1643 case "$host_alias" in
1647 if host_alias
=`$ac_config_guess`; then :
1648 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1650 *) host_alias
=$nonopt ;;
1654 host=`$ac_config_sub $host_alias`
1655 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1656 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1657 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1658 echo "$ac_t""$host" 1>&6
1660 echo $ac_n "checking target system type""... $ac_c" 1>&6
1661 echo "configure:1662: checking target system type" >&5
1663 target_alias
=$target
1664 case "$target_alias" in
1667 NONE
) target_alias
=$host_alias ;;
1668 *) target_alias
=$nonopt ;;
1672 target
=`$ac_config_sub $target_alias`
1673 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676 echo "$ac_t""$target" 1>&6
1678 echo $ac_n "checking build system type""... $ac_c" 1>&6
1679 echo "configure:1680: checking build system type" >&5
1682 case "$build_alias" in
1685 NONE
) build_alias
=$host_alias ;;
1686 *) build_alias
=$nonopt ;;
1690 build
=`$ac_config_sub $build_alias`
1691 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1692 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1693 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1694 echo "$ac_t""$build" 1>&6
1696 test "$host_alias" != "$target_alias" &&
1697 test "$program_prefix$program_suffix$program_transform_name" = \
1699 program_prefix
=${target_alias}-
1701 if test "$program_transform_name" = s
,x
,x
,; then
1702 program_transform_name
=
1704 # Double any \ or $. echo might interpret backslashes.
1705 cat <<\EOF_SED
> conftestsed
1706 s
,\\,\\\\,g
; s
,\$
,$$
,g
1708 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1711 test "$program_prefix" != NONE
&&
1712 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1713 # Use a double $ so make ignores it.
1714 test "$program_suffix" != NONE
&&
1715 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1717 # sed with no file args requires a program.
1718 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1721 .
${srcdir}/..
/..
/bfd
/configure.
host
1725 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
1726 echo "configure:1727: checking for st_blksize in struct stat" >&5
1727 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 cat > conftest.
$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1733 #include <sys/types.h>
1734 #include <sys/stat.h>
1736 struct stat s; s.st_blksize;
1739 if { (eval echo configure
:1740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1741 ac_cv_struct_st_blksize
=yes
1743 echo "configure: failed program was:" >&5
1744 cat conftest.
$ac_ext >&5
1746 ac_cv_struct_st_blksize
=no
1751 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
1752 if test $ac_cv_struct_st_blksize = yes; then
1753 cat >> confdefs.h
<<\EOF
1754 #define HAVE_ST_BLKSIZE 1
1759 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1760 echo "configure:1761: checking for st_blocks in struct stat" >&5
1761 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 cat > conftest.
$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1767 #include <sys/types.h>
1768 #include <sys/stat.h>
1770 struct stat s; s.st_blocks;
1773 if { (eval echo configure
:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1775 ac_cv_struct_st_blocks
=yes
1777 echo "configure: failed program was:" >&5
1778 cat conftest.
$ac_ext >&5
1780 ac_cv_struct_st_blocks
=no
1785 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
1786 if test $ac_cv_struct_st_blocks = yes; then
1787 cat >> confdefs.h
<<\EOF
1788 #define HAVE_ST_BLOCKS 1
1792 LIBOBJS
="$LIBOBJS fileblocks.o"
1795 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
1796 echo "configure:1797: checking for st_rdev in struct stat" >&5
1797 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 cat > conftest.
$ac_ext <<EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1803 #include <sys/types.h>
1804 #include <sys/stat.h>
1806 struct stat s; s.st_rdev;
1809 if { (eval echo configure
:1810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1811 ac_cv_struct_st_rdev
=yes
1813 echo "configure: failed program was:" >&5
1814 cat conftest.
$ac_ext >&5
1816 ac_cv_struct_st_rdev
=no
1821 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1822 if test $ac_cv_struct_st_rdev = yes; then
1823 cat >> confdefs.h
<<\EOF
1824 #define HAVE_ST_RDEV 1
1829 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1830 echo "configure:1831: checking whether struct tm is in sys/time.h or time.h" >&5
1831 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 cat > conftest.
$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 #include <sys/types.h>
1840 struct tm *tp; tp->tm_sec;
1843 if { (eval echo configure
:1844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1845 ac_cv_struct_tm
=time.h
1847 echo "configure: failed program was:" >&5
1848 cat conftest.
$ac_ext >&5
1850 ac_cv_struct_tm
=sys
/time.h
1855 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1856 if test $ac_cv_struct_tm = sys
/time.h
; then
1857 cat >> confdefs.h
<<\EOF
1858 #define TM_IN_SYS_TIME 1
1863 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
1864 echo "configure:1865: checking for tm_zone in struct tm" >&5
1865 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1868 cat > conftest.
$ac_ext <<EOF
1869 #line 1870 "configure"
1870 #include "confdefs.h"
1871 #include <sys/types.h>
1872 #include <$ac_cv_struct_tm>
1874 struct tm tm; tm.tm_zone;
1877 if { (eval echo configure
:1878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1879 ac_cv_struct_tm_zone
=yes
1881 echo "configure: failed program was:" >&5
1882 cat conftest.
$ac_ext >&5
1884 ac_cv_struct_tm_zone
=no
1889 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
1890 if test "$ac_cv_struct_tm_zone" = yes; then
1891 cat >> confdefs.h
<<\EOF
1892 #define HAVE_TM_ZONE 1
1896 echo $ac_n "checking for tzname""... $ac_c" 1>&6
1897 echo "configure:1898: checking for tzname" >&5
1898 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1901 cat > conftest.
$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1905 #ifndef tzname /* For SGI. */
1906 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
1912 if { (eval echo configure
:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1914 ac_cv_var_tzname
=yes
1916 echo "configure: failed program was:" >&5
1917 cat conftest.
$ac_ext >&5
1924 echo "$ac_t""$ac_cv_var_tzname" 1>&6
1925 if test $ac_cv_var_tzname = yes; then
1926 cat >> confdefs.h
<<\EOF
1927 #define HAVE_TZNAME 1
1934 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1935 echo "configure:1936: checking how to run the C preprocessor" >&5
1936 # On Suns, sometimes $CPP names a directory.
1937 if test -n "$CPP" && test -d "$CPP"; then
1940 if test -z "$CPP"; then
1941 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1944 # This must be in double quotes, not single quotes, because CPP may get
1945 # substituted into the Makefile and "${CC-cc}" will confuse make.
1947 # On the NeXT, cc -E runs the code through the compiler's parser,
1948 # not just through cpp.
1949 cat > conftest.
$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1955 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1956 { (eval echo configure
:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1957 ac_err
=`grep -v '^ *+' conftest.out`
1958 if test -z "$ac_err"; then
1962 echo "configure: failed program was:" >&5
1963 cat conftest.
$ac_ext >&5
1965 CPP
="${CC-cc} -E -traditional-cpp"
1966 cat > conftest.
$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1972 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1973 { (eval echo configure
:1974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1974 ac_err
=`grep -v '^ *+' conftest.out`
1975 if test -z "$ac_err"; then
1979 echo "configure: failed program was:" >&5
1980 cat conftest.
$ac_ext >&5
1987 ac_cv_prog_CPP
="$CPP"
1989 CPP
="$ac_cv_prog_CPP"
1991 ac_cv_prog_CPP
="$CPP"
1993 echo "$ac_t""$CPP" 1>&6
1995 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1996 echo "configure:1997: checking for uid_t in sys/types.h" >&5
1997 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
2000 cat > conftest.
$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2003 #include <sys/types.h>
2005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2006 egrep "uid_t" >/dev
/null
2>&1; then
2008 ac_cv_type_uid_t
=yes
2017 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2018 if test $ac_cv_type_uid_t = no
; then
2019 cat >> confdefs.h
<<\EOF
2023 cat >> confdefs.h
<<\EOF
2029 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2030 echo "configure:2031: checking type of array argument to getgroups" >&5
2031 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 if test "$cross_compiling" = yes; then
2035 ac_cv_type_getgroups
=cross
2037 cat > conftest.
$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2041 /* Thanks to Mike Rendell for this test. */
2042 #include <sys/types.h>
2045 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2050 union { gid_t gval; long lval; } val;
2053 for (i = 0; i < NGID; i++)
2054 gidset[i] = val.gval;
2055 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2057 /* Exit non-zero if getgroups seems to require an array of ints. This
2058 happens when gid_t is short but getgroups modifies an array of ints. */
2059 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2063 if { (eval echo configure
:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2065 ac_cv_type_getgroups
=gid_t
2067 echo "configure: failed program was:" >&5
2068 cat conftest.
$ac_ext >&5
2070 ac_cv_type_getgroups
=int
2075 if test $ac_cv_type_getgroups = cross
; then
2076 cat > conftest.
$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2082 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2084 ac_cv_type_getgroups
=gid_t
2087 ac_cv_type_getgroups
=int
2094 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2095 cat >> confdefs.h
<<EOF
2096 #define GETGROUPS_T $ac_cv_type_getgroups
2100 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2101 echo "configure:2102: checking for ANSI C header files" >&5
2102 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 cat > conftest.
$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2113 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2114 { (eval echo configure
:2115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2115 ac_err
=`grep -v '^ *+' conftest.out`
2116 if test -z "$ac_err"; then
2118 ac_cv_header_stdc
=yes
2121 echo "configure: failed program was:" >&5
2122 cat conftest.
$ac_ext >&5
2124 ac_cv_header_stdc
=no
2128 if test $ac_cv_header_stdc = yes; then
2129 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2130 cat > conftest.
$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
2135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2136 egrep "memchr" >/dev
/null
2>&1; then
2140 ac_cv_header_stdc
=no
2146 if test $ac_cv_header_stdc = yes; then
2147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2148 cat > conftest.
$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2154 egrep "free" >/dev
/null
2>&1; then
2158 ac_cv_header_stdc
=no
2164 if test $ac_cv_header_stdc = yes; then
2165 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2166 if test "$cross_compiling" = yes; then
2169 cat > conftest.
$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2173 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2174 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2176 int main () { int i; for (i = 0; i < 256; i++)
2177 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2181 if { (eval echo configure
:2182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2185 echo "configure: failed program was:" >&5
2186 cat conftest.
$ac_ext >&5
2188 ac_cv_header_stdc
=no
2196 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2197 if test $ac_cv_header_stdc = yes; then
2198 cat >> confdefs.h
<<\EOF
2199 #define STDC_HEADERS 1
2204 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2205 echo "configure:2206: checking for mode_t" >&5
2206 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 cat > conftest.
$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2212 #include <sys/types.h>
2218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2219 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2221 ac_cv_type_mode_t
=yes
2224 ac_cv_type_mode_t
=no
2229 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2230 if test $ac_cv_type_mode_t = no
; then
2231 cat >> confdefs.h
<<\EOF
2237 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2238 echo "configure:2239: checking for off_t" >&5
2239 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 cat > conftest.
$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2245 #include <sys/types.h>
2251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2252 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2254 ac_cv_type_off_t
=yes
2262 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2263 if test $ac_cv_type_off_t = no
; then
2264 cat >> confdefs.h
<<\EOF
2270 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2271 echo "configure:2272: checking for pid_t" >&5
2272 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2275 cat > conftest.
$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2278 #include <sys/types.h>
2284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2285 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2287 ac_cv_type_pid_t
=yes
2295 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2296 if test $ac_cv_type_pid_t = no
; then
2297 cat >> confdefs.h
<<\EOF
2303 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2304 echo "configure:2305: checking return type of signal handlers" >&5
2305 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 #include <sys/types.h>
2317 extern "C" void (*signal (int, void (*)(int)))(int);
2319 void (*signal ()) ();
2326 if { (eval echo configure
:2327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2328 ac_cv_type_signal
=void
2330 echo "configure: failed program was:" >&5
2331 cat conftest.
$ac_ext >&5
2333 ac_cv_type_signal
=int
2338 echo "$ac_t""$ac_cv_type_signal" 1>&6
2339 cat >> confdefs.h
<<EOF
2340 #define RETSIGTYPE $ac_cv_type_signal
2344 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2345 echo "configure:2346: checking for size_t" >&5
2346 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2349 cat > conftest.
$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 #include <sys/types.h>
2358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2359 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2361 ac_cv_type_size_t
=yes
2364 ac_cv_type_size_t
=no
2369 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2370 if test $ac_cv_type_size_t = no
; then
2371 cat >> confdefs.h
<<\EOF
2372 #define size_t unsigned
2377 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2378 echo "configure:2379: checking for uid_t in sys/types.h" >&5
2379 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 cat > conftest.
$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385 #include <sys/types.h>
2387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2388 egrep "uid_t" >/dev
/null
2>&1; then
2390 ac_cv_type_uid_t
=yes
2399 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2400 if test $ac_cv_type_uid_t = no
; then
2401 cat >> confdefs.h
<<\EOF
2405 cat >> confdefs.h
<<\EOF
2412 for ac_func
in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir
chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl
kill link lseek lstat mkdir pipe readlink
rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp
time umask unlink
2414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2415 echo "configure:2416: checking for $ac_func" >&5
2416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2419 cat > conftest.
$ac_ext <<EOF
2420 #line 2421 "configure"
2421 #include "confdefs.h"
2422 /* System header to define __stub macros and hopefully few prototypes,
2423 which can conflict with char $ac_func(); below. */
2425 /* Override any gcc2 internal prototype to avoid an error. */
2426 /* We use char because int might match the return type of a gcc2
2427 builtin and then its argument prototype would still apply. */
2432 /* The GNU C library defines this for functions which it implements
2433 to always fail with ENOSYS. Some functions are actually named
2434 something starting with __ and the normal name is an alias. */
2435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2443 if { (eval echo configure
:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2445 eval "ac_cv_func_$ac_func=yes"
2447 echo "configure: failed program was:" >&5
2448 cat conftest.
$ac_ext >&5
2450 eval "ac_cv_func_$ac_func=no"
2455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2456 echo "$ac_t""yes" 1>&6
2457 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2458 cat >> confdefs.h
<<EOF
2459 #define $ac_tr_func 1
2463 echo "$ac_t""no" 1>&6
2468 for ac_hdr
in fcntl.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mount.h sys
/param.h sys
/resource.h sys
/stat.h sys
/termio.h sys
/termios.h sys
/time.h sys
/times.h sys
/types.h
time.h unistd.h
2470 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2472 echo "configure:2473: checking for $ac_hdr" >&5
2473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 cat > conftest.
$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2481 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2482 { (eval echo configure
:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2483 ac_err
=`grep -v '^ *+' conftest.out`
2484 if test -z "$ac_err"; then
2486 eval "ac_cv_header_$ac_safe=yes"
2489 echo "configure: failed program was:" >&5
2490 cat conftest.
$ac_ext >&5
2492 eval "ac_cv_header_$ac_safe=no"
2496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2499 cat >> confdefs.h
<<EOF
2500 #define $ac_tr_hdr 1
2504 echo "$ac_t""no" 1>&6
2509 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2511 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2512 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2513 echo "configure:2514: checking for $ac_hdr that defines DIR" >&5
2514 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 cat > conftest.
$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 #include <sys/types.h>
2526 if { (eval echo configure
:2527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2528 eval "ac_cv_header_dirent_$ac_safe=yes"
2530 echo "configure: failed program was:" >&5
2531 cat conftest.
$ac_ext >&5
2533 eval "ac_cv_header_dirent_$ac_safe=no"
2537 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2538 echo "$ac_t""yes" 1>&6
2539 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2540 cat >> confdefs.h
<<EOF
2541 #define $ac_tr_hdr 1
2543 ac_header_dirent
=$ac_hdr; break
2545 echo "$ac_t""no" 1>&6
2548 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2549 if test $ac_header_dirent = dirent.h
; then
2550 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2551 echo "configure:2552: checking for opendir in -ldir" >&5
2552 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2556 ac_save_LIBS
="$LIBS"
2558 cat > conftest.
$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2561 /* Override any gcc2 internal prototype to avoid an error. */
2562 /* We use char because int might match the return type of a gcc2
2563 builtin and then its argument prototype would still apply. */
2570 if { (eval echo configure
:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2572 eval "ac_cv_lib_$ac_lib_var=yes"
2574 echo "configure: failed program was:" >&5
2575 cat conftest.
$ac_ext >&5
2577 eval "ac_cv_lib_$ac_lib_var=no"
2580 LIBS
="$ac_save_LIBS"
2583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2584 echo "$ac_t""yes" 1>&6
2587 echo "$ac_t""no" 1>&6
2591 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2592 echo "configure:2593: checking for opendir in -lx" >&5
2593 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 ac_save_LIBS
="$LIBS"
2599 cat > conftest.
$ac_ext <<EOF
2600 #line 2601 "configure"
2601 #include "confdefs.h"
2602 /* Override any gcc2 internal prototype to avoid an error. */
2603 /* We use char because int might match the return type of a gcc2
2604 builtin and then its argument prototype would still apply. */
2611 if { (eval echo configure
:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2613 eval "ac_cv_lib_$ac_lib_var=yes"
2615 echo "configure: failed program was:" >&5
2616 cat conftest.
$ac_ext >&5
2618 eval "ac_cv_lib_$ac_lib_var=no"
2621 LIBS
="$ac_save_LIBS"
2624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2625 echo "$ac_t""yes" 1>&6
2628 echo "$ac_t""no" 1>&6
2635 echo $ac_n "checking for struct termios""... $ac_c" 1>&6
2636 echo "configure:2637: checking for struct termios" >&5
2637 if eval "test \"`echo '$''{'ac_cv_termios_struct'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2640 cat > conftest.
$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 #include <sys/types.h>
2644 #include <sys/termios.h>
2646 static struct termios x;
2654 if { (eval echo configure
:2655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2656 ac_cv_termios_struct
=yes
2658 echo "configure: failed program was:" >&5
2659 cat conftest.
$ac_ext >&5
2661 ac_cv_termios_struct
=no
2666 echo "$ac_t""$ac_cv_termios_struct" 1>&6
2667 if test $ac_cv_termios_struct = yes; then
2668 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
2671 if test "$ac_cv_termios_struct" = "yes"; then
2672 echo $ac_n "checking for c_line field in struct termios""... $ac_c" 1>&6
2673 echo "configure:2674: checking for c_line field in struct termios" >&5
2674 if eval "test \"`echo '$''{'ac_cv_termios_cline'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.
$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2681 #include <sys/termios.h>
2683 static struct termios x; x.c_line = 0;
2686 if { (eval echo configure
:2687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2688 ac_cv_termios_cline
=yes
2690 echo "configure: failed program was:" >&5
2691 cat conftest.
$ac_ext >&5
2693 ac_cv_termios_cline
=no
2699 echo "$ac_t""$ac_cv_termios_cline" 1>&6
2700 if test $ac_cv_termios_cline = yes; then
2701 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
2704 ac_cv_termios_cline
=no
2707 if test "$ac_cv_termios_struct" != "yes"; then
2708 echo $ac_n "checking for struct termio""... $ac_c" 1>&6
2709 echo "configure:2710: checking for struct termio" >&5
2710 if eval "test \"`echo '$''{'ac_cv_termio_struct'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.
$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716 #include <sys/types.h>
2717 #include <sys/termio.h>
2719 static struct termio x;
2727 if { (eval echo configure
:2728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2729 ac_cv_termio_struct
=yes
2731 echo "configure: failed program was:" >&5
2732 cat conftest.
$ac_ext >&5
2734 ac_cv_termio_struct
=no
2739 echo "$ac_t""$ac_cv_termio_struct" 1>&6
2740 if test $ac_cv_termio_struct = yes; then
2741 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
2744 ac_cv_termio_struct
=no
2747 if test "$ac_cv_termio_struct" = "yes"; then
2748 echo $ac_n "checking for c_line field in struct termio""... $ac_c" 1>&6
2749 echo "configure:2750: checking for c_line field in struct termio" >&5
2750 if eval "test \"`echo '$''{'ac_cv_termio_cline'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 cat > conftest.
$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 #include <sys/types.h>
2757 #include <sys/termio.h>
2759 static struct termio x; x.c_line = 0;
2762 if { (eval echo configure
:2763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2764 ac_cv_termio_cline
=yes
2766 echo "configure: failed program was:" >&5
2767 cat conftest.
$ac_ext >&5
2769 ac_cv_termio_cline
=no
2775 echo "$ac_t""$ac_cv_termio_cline" 1>&6
2776 if test $ac_cv_termio_cline = yes; then
2777 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
2780 ac_cv_termio_cline
=no
2784 echo $ac_n "checking for /dev/zero""... $ac_c" 1>&6
2785 echo "configure:2786: checking for /dev/zero" >&5
2786 if eval "test \"`echo '$''{'ac_cv_devzero'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 if test "$cross_compiling" = yes; then
2792 cat > conftest.
$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2799 int fd = open ("/dev/zero", O_RDONLY);
2802 for (i = 0; i < sizeof (buf); i++)
2804 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
2806 for (i = 0; i < sizeof (buf); i++)
2812 if { (eval echo configure
:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2816 echo "configure: failed program was:" >&5
2817 cat conftest.
$ac_ext >&5
2826 echo "$ac_t""$ac_cv_devzero" 1>&6
2827 if test $ac_cv_devzero = yes; then
2828 sim_devzero
="-DHAVE_DEVZERO"
2838 # Extract the first word of "ranlib", so it can be a program name with args.
2839 set dummy ranlib
; ac_word
=$2
2840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2841 echo "configure:2842: checking for $ac_word" >&5
2842 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2843 echo $ac_n "(cached) $ac_c" 1>&6
2845 if test -n "$RANLIB"; then
2846 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2848 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2849 for ac_dir
in $PATH; do
2850 test -z "$ac_dir" && ac_dir
=.
2851 if test -f $ac_dir/$ac_word; then
2852 ac_cv_prog_RANLIB
="ranlib"
2857 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2860 RANLIB
="$ac_cv_prog_RANLIB"
2861 if test -n "$RANLIB"; then
2862 echo "$ac_t""$RANLIB" 1>&6
2864 echo "$ac_t""no" 1>&6
2908 cat > confcache
<<\EOF
2909 # This file is a shell script that caches the results of configure
2910 # tests run on this system so they can be shared between configure
2911 # scripts and configure runs. It is not useful on other systems.
2912 # If it contains results you don't want to keep, you may remove or edit it.
2914 # By default, configure uses ./config.cache as the cache file,
2915 # creating it if it does not exist already. You can give configure
2916 # the --cache-file=FILE option to use a different cache file; that is
2917 # what configure does when it calls configure scripts in
2918 # subdirectories, so they share the cache.
2919 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2920 # config.status only pays attention to the cache file if you give it the
2921 # --recheck option to rerun configure.
2924 # The following way of writing the cache mishandles newlines in values,
2925 # but we know of no workaround that is simple, portable, and efficient.
2926 # So, don't put newlines in cache variables' values.
2927 # Ultrix sh set writes to stderr and can't be redirected directly,
2928 # and sets the high bit in the cache file unless we assign to the vars.
2930 case `(ac_space=' '; set) 2>&1` in
2932 # `set' does not quote correctly, so add quotes (double-quote substitution
2933 # turns \\\\ into \\, and sed turns \\ into \).
2935 -e "s/'/'\\\\''/g" \
2936 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2939 # `set' quotes correctly as required by POSIX, so do not add quotes.
2940 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2943 if cmp -s $cache_file confcache
; then
2946 if test -w $cache_file; then
2947 echo "updating cache $cache_file"
2948 cat confcache
> $cache_file
2950 echo "not updating unwritable cache $cache_file"
2955 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2957 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2958 # Let make expand exec_prefix.
2959 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2961 # Any assignment to VPATH causes Sun make to only execute
2962 # the first set of double-colon rules, so remove it if not needed.
2963 # If there is a colon in the path, we need to keep it.
2964 if test "x$srcdir" = x.
; then
2965 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2968 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2970 DEFS
=-DHAVE_CONFIG_H
2972 # Without the "./", some shells look in PATH for config.status.
2973 : ${CONFIG_STATUS=./config.status}
2975 echo creating
$CONFIG_STATUS
2976 rm -f $CONFIG_STATUS
2977 cat > $CONFIG_STATUS <<EOF
2979 # Generated automatically by configure.
2980 # Run this file to recreate the current configuration.
2981 # This directory was configured as follows,
2982 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2984 # $0 $ac_configure_args
2986 # Compiler output produced by configure, useful for debugging
2987 # configure, is in ./config.log if it exists.
2989 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2992 case "\$ac_option" in
2993 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2994 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2995 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2996 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2997 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2999 -help | --help | --hel | --he | --h)
3000 echo "\$ac_cs_usage"; exit 0 ;;
3001 *) echo "\$ac_cs_usage"; exit 1 ;;
3005 ac_given_srcdir=$srcdir
3006 ac_given_INSTALL="$INSTALL"
3008 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3010 cat >> $CONFIG_STATUS <<EOF
3012 # Protect against being on the right side of a sed subst in config.status.
3013 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3014 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3017 s%@CFLAGS@%$CFLAGS%g
3018 s%@CPPFLAGS@%$CPPFLAGS%g
3019 s%@CXXFLAGS@%$CXXFLAGS%g
3021 s%@LDFLAGS@%$LDFLAGS%g
3023 s%@exec_prefix@%$exec_prefix%g
3024 s%@prefix@%$prefix%g
3025 s%@program_transform_name@%$program_transform_name%g
3026 s%@bindir@%$bindir%g
3027 s%@sbindir@%$sbindir%g
3028 s%@libexecdir@%$libexecdir%g
3029 s%@datadir@%$datadir%g
3030 s%@sysconfdir@%$sysconfdir%g
3031 s%@sharedstatedir@%$sharedstatedir%g
3032 s%@localstatedir@%$localstatedir%g
3033 s%@libdir@%$libdir%g
3034 s%@includedir@%$includedir%g
3035 s%@oldincludedir@%$oldincludedir%g
3036 s%@infodir@%$infodir%g
3037 s%@mandir@%$mandir%g
3038 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3039 s%@INSTALL_DATA@%$INSTALL_DATA%g
3042 s%@host_alias@%$host_alias%g
3043 s%@host_cpu@%$host_cpu%g
3044 s%@host_vendor@%$host_vendor%g
3045 s%@host_os@%$host_os%g
3046 s%@target@%$target%g
3047 s%@target_alias@%$target_alias%g
3048 s%@target_cpu@%$target_cpu%g
3049 s%@target_vendor@%$target_vendor%g
3050 s%@target_os@%$target_os%g
3052 s%@build_alias@%$build_alias%g
3053 s%@build_cpu@%$build_cpu%g
3054 s%@build_vendor@%$build_vendor%g
3055 s%@build_os@%$build_os%g
3056 s%@LIBOBJS@%$LIBOBJS%g
3058 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3059 s%@HDEFINES@%$HDEFINES%g
3061 s%@RANLIB@%$RANLIB%g
3062 s%@sim_cflags@%$sim_cflags%g
3063 s%@sim_warnings@%$sim_warnings%g
3064 s%@sim_line_nr@%$sim_line_nr%g
3065 s%@sim_config@%$sim_config%g
3066 s%@sim_opcode@%$sim_opcode%g
3067 s%@sim_switch@%$sim_switch%g
3068 s%@sim_dup@%$sim_dup%g
3069 s%@sim_jump@%$sim_jump%g
3070 s%@sim_filter@%$sim_filter%g
3071 s%@sim_icache@%$sim_icache%g
3072 s%@sim_hw_src@%$sim_hw_src%g
3073 s%@sim_hw_obj@%$sim_hw_obj%g
3074 s%@sim_pk_src@%$sim_pk_src%g
3075 s%@sim_pk_obj@%$sim_pk_obj%g
3076 s%@sim_inline@%$sim_inline%g
3077 s%@sim_bswap@%$sim_bswap%g
3078 s%@sim_endian@%$sim_endian%g
3079 s%@sim_regparm@%$sim_regparm%g
3080 s%@sim_stdcall@%$sim_stdcall%g
3081 s%@sim_xor_endian@%$sim_xor_endian%g
3082 s%@sim_hostendian@%$sim_hostendian%g
3083 s%@sim_smp@%$sim_smp%g
3084 s%@sim_igen_smp@%$sim_igen_smp%g
3085 s%@sim_bitsize@%$sim_bitsize%g
3086 s%@sim_hostbitsize@%$sim_hostbitsize%g
3087 s%@sim_env@%$sim_env%g
3088 s%@sim_timebase@%$sim_timebase%g
3089 s%@sim_alignment@%$sim_alignment%g
3090 s%@sim_float@%$sim_float%g
3091 s%@sim_trace@%$sim_trace%g
3092 s%@sim_assert@%$sim_assert%g
3093 s%@sim_reserved@%$sim_reserved%g
3094 s%@sim_monitor@%$sim_monitor%g
3095 s%@sim_model@%$sim_model%g
3096 s%@sim_default_model@%$sim_default_model%g
3097 s%@sim_model_issue@%$sim_model_issue%g
3098 s%@sim_stdio@%$sim_stdio%g
3099 s%@sim_termio@%$sim_termio%g
3100 s%@sim_devzero@%$sim_devzero%g
3105 cat >> $CONFIG_STATUS <<\EOF
3107 # Split the substitutions into bite-sized pieces for seds with
3108 # small command number limits, like on Digital OSF/1 and HP-UX.
3109 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3110 ac_file
=1 # Number of current file.
3111 ac_beg
=1 # First line for current file.
3112 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3115 while $ac_more_lines; do
3116 if test $ac_beg -gt 1; then
3117 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3119 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3121 if test ! -s conftest.s
$ac_file; then
3123 rm -f conftest.s
$ac_file
3125 if test -z "$ac_sed_cmds"; then
3126 ac_sed_cmds
="sed -f conftest.s$ac_file"
3128 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3130 ac_file
=`expr $ac_file + 1`
3132 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3135 if test -z "$ac_sed_cmds"; then
3140 cat >> $CONFIG_STATUS <<EOF
3142 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3144 cat >> $CONFIG_STATUS <<\EOF
3145 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3146 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3148 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3149 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3150 *) ac_file_in
="${ac_file}.in" ;;
3153 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3155 # Remove last slash and all that follows it. Not all systems have dirname.
3156 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3157 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3158 # The file is in a subdirectory.
3159 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3160 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3161 # A "../" for each directory in $ac_dir_suffix.
3162 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3164 ac_dir_suffix
= ac_dots
=
3167 case "$ac_given_srcdir" in
3169 if test -z "$ac_dots"; then top_srcdir
=.
3170 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3171 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3173 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3174 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3177 case "$ac_given_INSTALL" in
3178 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3179 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3182 echo creating
"$ac_file"
3184 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3186 *Makefile
*) ac_comsub
="1i\\
3187 # $configure_input" ;;
3191 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3193 s%@configure_input@%$configure_input%g
3194 s%@srcdir@%$srcdir%g
3195 s%@top_srcdir@%$top_srcdir%g
3196 s%@INSTALL@%$INSTALL%g
3197 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3201 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3202 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3204 # ac_d sets the value in "#define NAME VALUE" lines.
3205 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3206 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3209 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3210 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3211 ac_uB
='\([ ]\)%\1#\2define\3'
3214 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3215 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3216 ac_eB
='$%\1#\2define\3'
3220 if test "${CONFIG_HEADERS+set}" != set; then
3222 cat >> $CONFIG_STATUS <<EOF
3223 CONFIG_HEADERS="config.h:config.in"
3225 cat >> $CONFIG_STATUS <<\EOF
3227 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3228 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3230 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3231 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3232 *) ac_file_in
="${ac_file}.in" ;;
3235 echo creating
$ac_file
3237 rm -f conftest.frag conftest.
in conftest.out
3238 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3239 cat $ac_file_inputs > conftest.
in
3243 # Transform confdefs.h into a sed script conftest.vals that substitutes
3244 # the proper values into config.h.in to produce config.h. And first:
3245 # Protect against being on the right side of a sed subst in config.status.
3246 # Protect against being in an unquoted here document in config.status.
3248 cat > conftest.hdr
<<\EOF
3251 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3255 sed -n -f conftest.hdr confdefs.h > conftest.vals
3258 # This sed command replaces #undef with comments. This is necessary, for
3259 # example, in the case of _POSIX_SOURCE, which is predefined and required
3260 # on some systems where configure will not decide to define it.
3261 cat >> conftest.vals <<\EOF
3262 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3265 # Break up conftest.vals because some shells have a limit on
3266 # the size of here documents, and old seds have small limits too.
3271 ac_lines=`grep -c . conftest.vals
`
3272 # grep -c gives empty output for an empty file on some AIX systems.
3273 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3274 # Write a limited-size here document to conftest.frag.
3275 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3276 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3278 sed -f conftest.frag conftest.in > conftest.out
3280 mv conftest.out conftest.in
3282 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3284 mv conftest.tail conftest.vals
3288 cat >> $CONFIG_STATUS <<\EOF
3289 rm -f conftest.frag conftest.h
3290 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3291 cat conftest.in >> conftest.h
3293 if cmp -s $ac_file conftest.h 2>/dev/null; then
3294 echo "$ac_file is unchanged"
3297 # Remove last slash and all that follows it. Not all systems have dirname.
3298 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3299 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3300 # The file is in a subdirectory.
3301 test ! -d "$ac_dir" && mkdir "$ac_dir"
3304 mv conftest.h $ac_file
3309 cat >> $CONFIG_STATUS <<EOF
3312 cat >> $CONFIG_STATUS <<\EOF
3313 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
3316 chmod +x $CONFIG_STATUS
3317 rm -fr confdefs* $ac_clean_files
3318 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1