45 sim_inline
="-DDEFAULT_INLINE=0"
82 # This file is derived from `gettext.m4'. The difference is that the
83 # included macros assume Cygnus-style source and build trees.
85 # Macro to add for using GNU gettext.
86 # Ulrich Drepper <drepper@cygnus.com>, 1995.
88 # This file file be copied and used freely without restrictions. It can
89 # be used in projects which are not available under the GNU Public License
90 # but which still want to provide support for the GNU gettext functionality.
91 # Please note that the actual code is *not* freely available.
99 # Search path for a program which passes the given test.
100 # Ulrich Drepper <drepper@cygnus.com>, 1996.
102 # This file file be copied and used freely without restrictions. It can
103 # be used in projects which are not available under the GNU Public License
104 # but which still want to provide support for the GNU gettext functionality.
105 # Please note that the actual code is *not* freely available.
111 # Check whether LC_MESSAGES is available in <locale.h>.
112 # Ulrich Drepper <drepper@cygnus.com>, 1995.
114 # This file file be copied and used freely without restrictions. It can
115 # be used in projects which are not available under the GNU Public License
116 # but which still want to provide support for the GNU gettext functionality.
117 # Please note that the actual code is *not* freely available.
126 # Guess values for system-dependent variables and create Makefiles.
127 # Generated automatically using autoconf version 2.13
128 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 # This configure script is free software; the Free Software Foundation
131 # gives unlimited permission to copy, distribute and modify it.
135 ac_default_prefix
=/usr
/local
136 # Any additions from configure.in:
138 --disable-nls do not use Native Language Support"
140 --with-included-gettext use the GNU gettext library included here"
142 --enable-sim-alignment=align Specify strict or nonstrict alignment."
144 --enable-sim-assert Specify whether to perform random assertions."
146 --enable-sim-bitsize=n Specify target bitsize (32 or 64)."
148 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums."
150 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
152 --enable-sim-config=file Override default config file"
154 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism."
156 --enable-sim-default-model=which Specify default PowerPC to model."
158 --enable-sim-duplicate Expand (duplicate) semantic functions."
160 --enable-sim-endian=endian Specify target byte endian orientation."
162 --enable-sim-env=env Specify target environment (operating, virtual, user)."
164 --enable-sim-filter=rule Specify filter rules."
166 --enable-sim-float Specify whether to use host floating point or simulate."
168 --enable-sim-hardware=list Specify the hardware to be included in the build."
170 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64)."
172 --enable-sim-hostendian=end Specify host byte endian orientation."
174 --enable-sim-icache=size Specify instruction-decode cache size and type."
176 --enable-sim-inline=inlines Specify which functions should be inlined."
178 --enable-sim-jump Jump between semantic code (instead of call/return)."
180 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code"
182 --enable-sim-model=which Specify PowerPC to model."
184 --enable-sim-model-issue Specify whether to simulate model specific actions"
186 --enable-sim-monitor=mon Specify whether to enable monitoring events."
188 --enable-sim-opcode=which Override default opcode lookup."
190 --enable-sim-packages=list Specify the packages to be included in the build."
192 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific."
194 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
196 --enable-sim-smp=n Specify number of processors to configure for."
198 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific."
200 --enable-sim-stdio Specify whether to use stdio for console input/output."
202 --enable-sim-switch Use a switch instead of a table for instruction call."
204 --enable-sim-timebase Specify whether the PPC timebase is supported."
206 --enable-sim-trace Specify whether tracing is supported."
208 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o"
210 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8)."
212 # Initialize some variables set by options.
213 # The variables have the same names as the options, with
214 # dashes changed to underlines.
216 cache_file
=.
/config.cache
225 program_transform_name
=s
,x
,x
,
233 bindir
='${exec_prefix}/bin'
234 sbindir
='${exec_prefix}/sbin'
235 libexecdir
='${exec_prefix}/libexec'
236 datadir
='${prefix}/share'
237 sysconfdir
='${prefix}/etc'
238 sharedstatedir
='${prefix}/com'
239 localstatedir
='${prefix}/var'
240 libdir
='${exec_prefix}/lib'
241 includedir
='${prefix}/include'
242 oldincludedir
='/usr/include'
243 infodir
='${prefix}/info'
244 mandir
='${prefix}/man'
246 # Initialize some other variables.
249 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Maximum number of lines to put in a shell here document.
257 # If the previous option needs an argument, assign it.
258 if test -n "$ac_prev"; then
259 eval "$ac_prev=\$ac_option"
265 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
269 # Accept the important Cygnus configure options, so we can diagnose typos.
273 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
275 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
276 bindir
="$ac_optarg" ;;
278 -build |
--build |
--buil |
--bui |
--bu)
280 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
281 build
="$ac_optarg" ;;
283 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
284 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
285 ac_prev
=cache_file
;;
286 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
287 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
288 cache_file
="$ac_optarg" ;;
290 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
292 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
294 datadir
="$ac_optarg" ;;
296 -disable-* |
--disable-*)
297 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
298 # Reject names that are not valid shell variable names.
299 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
300 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
302 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
303 eval "enable_${ac_feature}=no" ;;
305 -enable-* |
--enable-*)
306 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
307 # Reject names that are not valid shell variable names.
308 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
309 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
311 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
316 eval "enable_${ac_feature}='$ac_optarg'" ;;
318 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
319 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
320 |
--exec |
--exe |
--ex)
321 ac_prev
=exec_prefix
;;
322 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
323 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
324 |
--exec=* |
--exe=* |
--ex=*)
325 exec_prefix
="$ac_optarg" ;;
327 -gas |
--gas |
--ga |
--g)
328 # Obsolete; use --with-gas.
331 -help |
--help |
--hel |
--he)
332 # Omit some internal or obsolete options to make the list less imposing.
333 # This message is too long to be a string in the A/UX 3.1 sh.
335 Usage: configure [options] [host]
336 Options: [defaults in brackets after descriptions]
338 --cache-file=FILE cache test results in FILE
339 --help print this message
340 --no-create do not create output files
341 --quiet, --silent do not print \`checking...' messages
342 --version print the version of autoconf that created configure
343 Directory and file names:
344 --prefix=PREFIX install architecture-independent files in PREFIX
346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
348 --bindir=DIR user executables in DIR [EPREFIX/bin]
349 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
350 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
351 --datadir=DIR read-only architecture-independent data in DIR
353 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
354 --sharedstatedir=DIR modifiable architecture-independent data in DIR
356 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
357 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
358 --includedir=DIR C header files in DIR [PREFIX/include]
359 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
360 --infodir=DIR info documentation in DIR [PREFIX/info]
361 --mandir=DIR man documentation in DIR [PREFIX/man]
362 --srcdir=DIR find the sources in DIR [configure dir or ..]
363 --program-prefix=PREFIX prepend PREFIX to installed program names
364 --program-suffix=SUFFIX append SUFFIX to installed program names
365 --program-transform-name=PROGRAM
366 run sed PROGRAM on installed program names
370 --build=BUILD configure for building on BUILD [BUILD=HOST]
371 --host=HOST configure for HOST [guessed]
372 --target=TARGET configure for TARGET [TARGET=HOST]
373 Features and packages:
374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
376 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
377 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
378 --x-includes=DIR X include files are in DIR
379 --x-libraries=DIR X library files are in DIR
381 if test -n "$ac_help"; then
382 echo "--enable and --with options recognized:$ac_help"
386 -host |
--host |
--hos |
--ho)
388 -host=* |
--host=* |
--hos=* |
--ho=*)
391 -includedir |
--includedir |
--includedi |
--included |
--include \
392 |
--includ |
--inclu |
--incl |
--inc)
393 ac_prev
=includedir
;;
394 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
395 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
396 includedir
="$ac_optarg" ;;
398 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
400 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
401 infodir
="$ac_optarg" ;;
403 -libdir |
--libdir |
--libdi |
--libd)
405 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
406 libdir
="$ac_optarg" ;;
408 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
409 |
--libexe |
--libex |
--libe)
410 ac_prev
=libexecdir
;;
411 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
412 |
--libexe=* |
--libex=* |
--libe=*)
413 libexecdir
="$ac_optarg" ;;
415 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
416 |
--localstate |
--localstat |
--localsta |
--localst \
417 |
--locals |
--local |
--loca |
--loc |
--lo)
418 ac_prev
=localstatedir
;;
419 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
420 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
421 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
422 localstatedir
="$ac_optarg" ;;
424 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
426 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
427 mandir
="$ac_optarg" ;;
430 # Obsolete; use --without-fp.
433 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
437 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
438 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
441 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
442 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
443 |
--oldin |
--oldi |
--old |
--ol |
--o)
444 ac_prev
=oldincludedir
;;
445 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
446 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
447 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
448 oldincludedir
="$ac_optarg" ;;
450 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
452 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
453 prefix
="$ac_optarg" ;;
455 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
456 |
--program-pre |
--program-pr |
--program-p)
457 ac_prev
=program_prefix
;;
458 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
459 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
460 program_prefix
="$ac_optarg" ;;
462 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
463 |
--program-suf |
--program-su |
--program-s)
464 ac_prev
=program_suffix
;;
465 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
466 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
467 program_suffix
="$ac_optarg" ;;
469 -program-transform-name |
--program-transform-name \
470 |
--program-transform-nam |
--program-transform-na \
471 |
--program-transform-n |
--program-transform- \
472 |
--program-transform |
--program-transfor \
473 |
--program-transfo |
--program-transf \
474 |
--program-trans |
--program-tran \
475 |
--progr-tra |
--program-tr |
--program-t)
476 ac_prev
=program_transform_name
;;
477 -program-transform-name=* |
--program-transform-name=* \
478 |
--program-transform-nam=* |
--program-transform-na=* \
479 |
--program-transform-n=* |
--program-transform-=* \
480 |
--program-transform=* |
--program-transfor=* \
481 |
--program-transfo=* |
--program-transf=* \
482 |
--program-trans=* |
--program-tran=* \
483 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
484 program_transform_name
="$ac_optarg" ;;
486 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
487 |
-silent |
--silent |
--silen |
--sile |
--sil)
490 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
492 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
494 sbindir
="$ac_optarg" ;;
496 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
497 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
498 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
500 ac_prev
=sharedstatedir
;;
501 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
502 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
503 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
505 sharedstatedir
="$ac_optarg" ;;
507 -site |
--site |
--sit)
509 -site=* |
--site=* |
--sit=*)
512 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
514 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
515 srcdir
="$ac_optarg" ;;
517 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
518 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
519 ac_prev
=sysconfdir
;;
520 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
521 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
522 sysconfdir
="$ac_optarg" ;;
524 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
526 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
527 target
="$ac_optarg" ;;
529 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
532 -version |
--version |
--versio |
--versi |
--vers)
533 echo "configure generated by autoconf version 2.13"
537 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
538 # Reject names that are not valid shell variable names.
539 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
540 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
542 ac_package
=`echo $ac_package| sed 's/-/_/g'`
547 eval "with_${ac_package}='$ac_optarg'" ;;
549 -without-* |
--without-*)
550 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
551 # Reject names that are not valid shell variable names.
552 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
553 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
555 ac_package
=`echo $ac_package| sed 's/-/_/g'`
556 eval "with_${ac_package}=no" ;;
559 # Obsolete; use --with-x.
562 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
563 |
--x-incl |
--x-inc |
--x-in |
--x-i)
564 ac_prev
=x_includes
;;
565 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
566 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
567 x_includes
="$ac_optarg" ;;
569 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
570 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
571 ac_prev
=x_libraries
;;
572 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
573 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
574 x_libraries
="$ac_optarg" ;;
576 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
580 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
581 echo "configure: warning: $ac_option: invalid host type" 1>&2
583 if test "x$nonopt" != xNONE
; then
584 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
592 if test -n "$ac_prev"; then
593 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
596 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
598 # File descriptor usage:
601 # 2 errors and warnings
602 # 3 some systems may open it to /dev/tty
603 # 4 used on the Kubota Titan
604 # 6 checking for... messages and results
605 # 5 compiler messages saved in config.log
606 if test "$silent" = yes; then
614 This file contains any messages produced by compilers while
615 running configure, to aid debugging if configure makes a mistake.
618 # Strip out --no-create and --no-recursion so they do not pile up.
619 # Also quote any args containing shell metacharacters.
624 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
625 |
--no-cr |
--no-c) ;;
626 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
627 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
628 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
629 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
630 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
635 # Only set these to C if already set. These must not be set unconditionally
636 # because not all systems understand e.g. LANG=C (notably SCO).
637 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
638 # Non-C LC_CTYPE values break the ctype check.
639 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
640 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
641 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
642 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
645 rm -rf conftest
* confdefs.h
646 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
649 # A filename unique to this package, relative to the directory that
650 # configure is in, which we can look for to find out if srcdir is correct.
651 ac_unique_file
=Makefile.
in
653 # Find the source files, if location was not specified.
654 if test -z "$srcdir"; then
655 ac_srcdir_defaulted
=yes
656 # Try the directory containing this script, then its parent.
658 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
659 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
661 if test ! -r $srcdir/$ac_unique_file; then
665 ac_srcdir_defaulted
=no
667 if test ! -r $srcdir/$ac_unique_file; then
668 if test "$ac_srcdir_defaulted" = yes; then
669 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
671 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
674 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
676 # Prefer explicitly selected file to automatically selected ones.
677 if test -z "$CONFIG_SITE"; then
678 if test "x$prefix" != xNONE
; then
679 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
681 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
684 for ac_site_file
in $CONFIG_SITE; do
685 if test -r "$ac_site_file"; then
686 echo "loading site script $ac_site_file"
691 if test -r "$cache_file"; then
692 echo "loading cache $cache_file"
695 echo "creating cache $cache_file"
700 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
701 ac_cpp
='$CPP $CPPFLAGS'
702 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
703 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
704 cross_compiling
=$ac_cv_prog_cc_cross
708 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
709 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
710 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
717 ac_n
= ac_c
='\c' ac_t
=
723 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
724 if test -f $ac_dir/install-sh
; then
726 ac_install_sh
="$ac_aux_dir/install-sh -c"
728 elif test -f $ac_dir/install.sh
; then
730 ac_install_sh
="$ac_aux_dir/install.sh -c"
734 if test -z "$ac_aux_dir"; then
735 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
737 ac_config_guess
=$ac_aux_dir/config.guess
738 ac_config_sub
=$ac_aux_dir/config.sub
739 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
741 # Find a good install program. We prefer a C program (faster),
742 # so one script is as good as another. But avoid the broken or
743 # incompatible versions:
744 # SysV /etc/install, /usr/sbin/install
745 # SunOS /usr/etc/install
748 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
749 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
750 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
751 # ./install, which can be erroneously created by make from ./install.sh.
752 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
753 echo "configure:754: checking for a BSD compatible install" >&5
754 if test -z "$INSTALL"; then
755 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
756 echo $ac_n "(cached) $ac_c" 1>&6
758 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
759 for ac_dir
in $PATH; do
760 # Account for people who put trailing slashes in PATH elements.
762 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
764 # OSF1 and SCO ODT 3.0 have their own names for install.
765 # Don't use installbsd from OSF since it installs stuff as root
767 for ac_prog
in ginstall scoinst
install; do
768 if test -f $ac_dir/$ac_prog; then
769 if test $ac_prog = install &&
770 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
771 # AIX install. It has an incompatible calling convention.
774 ac_cv_path_install
="$ac_dir/$ac_prog -c"
785 if test "${ac_cv_path_install+set}" = set; then
786 INSTALL
="$ac_cv_path_install"
788 # As a last resort, use the slow shell script. We don't cache a
789 # path for INSTALL within a source directory, because that will
790 # break other packages using the cache if that directory is
791 # removed, or if the path is relative.
792 INSTALL
="$ac_install_sh"
795 echo "$ac_t""$INSTALL" 1>&6
797 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
798 # It thinks the first close brace ends the variable substitution.
799 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
801 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
803 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
805 # Extract the first word of "gcc", so it can be a program name with args.
806 set dummy gcc
; ac_word
=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 if test -n "$CC"; then
813 ac_cv_prog_CC
="$CC" # Let the user override the test.
815 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
817 for ac_dir
in $ac_dummy; do
818 test -z "$ac_dir" && ac_dir
=.
819 if test -f $ac_dir/$ac_word; then
828 if test -n "$CC"; then
829 echo "$ac_t""$CC" 1>&6
831 echo "$ac_t""no" 1>&6
834 if test -z "$CC"; then
835 # Extract the first word of "cc", so it can be a program name with args.
836 set dummy cc
; ac_word
=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:839: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 if test -n "$CC"; then
843 ac_cv_prog_CC
="$CC" # Let the user override the test.
845 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
848 for ac_dir
in $ac_dummy; do
849 test -z "$ac_dir" && ac_dir
=.
850 if test -f $ac_dir/$ac_word; then
851 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
860 if test $ac_prog_rejected = yes; then
861 # We found a bogon in the path, so make sure we never use it.
862 set dummy
$ac_cv_prog_CC
864 if test $# -gt 0; then
865 # We chose a different compiler from the bogus one.
866 # However, it has the same basename, so the bogon will be chosen
867 # first if we set CC to just the basename; use the full file name.
869 set dummy
"$ac_dir/$ac_word" "$@"
877 if test -n "$CC"; then
878 echo "$ac_t""$CC" 1>&6
880 echo "$ac_t""no" 1>&6
883 if test -z "$CC"; then
886 # Extract the first word of "cl", so it can be a program name with args.
887 set dummy cl
; ac_word
=$2
888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
889 echo "configure:890: checking for $ac_word" >&5
890 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 if test -n "$CC"; then
894 ac_cv_prog_CC
="$CC" # Let the user override the test.
896 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
898 for ac_dir
in $ac_dummy; do
899 test -z "$ac_dir" && ac_dir
=.
900 if test -f $ac_dir/$ac_word; then
909 if test -n "$CC"; then
910 echo "$ac_t""$CC" 1>&6
912 echo "$ac_t""no" 1>&6
917 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
920 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
921 echo "configure:922: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
925 ac_cpp
='$CPP $CPPFLAGS'
926 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
927 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
928 cross_compiling
=$ac_cv_prog_cc_cross
930 cat > conftest.
$ac_ext << EOF
932 #line 933 "configure"
933 #include "confdefs.h"
937 if { (eval echo configure
:938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
938 ac_cv_prog_cc_works
=yes
939 # If we can't run a trivial program, we are probably using a cross compiler.
940 if (.
/conftest
; exit) 2>/dev
/null
; then
941 ac_cv_prog_cc_cross
=no
943 ac_cv_prog_cc_cross
=yes
946 echo "configure: failed program was:" >&5
947 cat conftest.
$ac_ext >&5
948 ac_cv_prog_cc_works
=no
952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
953 ac_cpp
='$CPP $CPPFLAGS'
954 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
955 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
956 cross_compiling
=$ac_cv_prog_cc_cross
958 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
959 if test $ac_cv_prog_cc_works = no
; then
960 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
962 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
963 echo "configure:964: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
964 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
965 cross_compiling
=$ac_cv_prog_cc_cross
967 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
968 echo "configure:969: checking whether we are using GNU C" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 cat > conftest.c
<<EOF
977 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
984 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
986 if test $ac_cv_prog_gcc = yes; then
992 ac_test_CFLAGS
="${CFLAGS+set}"
993 ac_save_CFLAGS
="$CFLAGS"
995 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
996 echo "configure:997: checking whether ${CC-cc} accepts -g" >&5
997 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 echo 'void f(){}' > conftest.c
1001 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1010 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1011 if test "$ac_test_CFLAGS" = set; then
1012 CFLAGS
="$ac_save_CFLAGS"
1013 elif test $ac_cv_prog_cc_g = yes; then
1014 if test "$GCC" = yes; then
1020 if test "$GCC" = yes; then
1028 # Put a plausible default for CC_FOR_BUILD in Makefile.
1029 if test "x$cross_compiling" = "xno"; then
1030 CC_FOR_BUILD
='$(CC)'
1036 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1037 echo "configure:1038: checking how to run the C preprocessor" >&5
1038 # On Suns, sometimes $CPP names a directory.
1039 if test -n "$CPP" && test -d "$CPP"; then
1042 if test -z "$CPP"; then
1043 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 # This must be in double quotes, not single quotes, because CPP may get
1047 # substituted into the Makefile and "${CC-cc}" will confuse make.
1049 # On the NeXT, cc -E runs the code through the compiler's parser,
1050 # not just through cpp.
1051 cat > conftest.
$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1057 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1058 { (eval echo configure
:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1059 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1060 if test -z "$ac_err"; then
1064 echo "configure: failed program was:" >&5
1065 cat conftest.
$ac_ext >&5
1067 CPP
="${CC-cc} -E -traditional-cpp"
1068 cat > conftest.
$ac_ext <<EOF
1069 #line 1070 "configure"
1070 #include "confdefs.h"
1074 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1075 { (eval echo configure
:1076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1076 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1077 if test -z "$ac_err"; then
1081 echo "configure: failed program was:" >&5
1082 cat conftest.
$ac_ext >&5
1084 CPP
="${CC-cc} -nologo -E"
1085 cat > conftest.
$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1091 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1092 { (eval echo configure
:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1093 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1094 if test -z "$ac_err"; then
1098 echo "configure: failed program was:" >&5
1099 cat conftest.
$ac_ext >&5
1108 ac_cv_prog_CPP
="$CPP"
1110 CPP
="$ac_cv_prog_CPP"
1112 ac_cv_prog_CPP
="$CPP"
1114 echo "$ac_t""$CPP" 1>&6
1116 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether ${MAKE-make} sets \${MAKE}" >&5
1118 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1119 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 cat > conftestmake
<<\EOF
1124 @
echo 'ac_maketemp="${MAKE}"'
1126 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1127 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1128 if test -n "$ac_maketemp"; then
1129 eval ac_cv_prog_make_
${ac_make}_set
=yes
1131 eval ac_cv_prog_make_
${ac_make}_set
=no
1135 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1136 echo "$ac_t""yes" 1>&6
1139 echo "$ac_t""no" 1>&6
1140 SET_MAKE
="MAKE=${MAKE-make}"
1143 # Extract the first word of "ranlib", so it can be a program name with args.
1144 set dummy ranlib
; ac_word
=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 if test -n "$RANLIB"; then
1151 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1153 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1155 for ac_dir
in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir
=.
1157 if test -f $ac_dir/$ac_word; then
1158 ac_cv_prog_RANLIB
="ranlib"
1163 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1166 RANLIB
="$ac_cv_prog_RANLIB"
1167 if test -n "$RANLIB"; then
1168 echo "$ac_t""$RANLIB" 1>&6
1170 echo "$ac_t""no" 1>&6
1173 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1174 echo "configure:1175: checking for POSIXized ISC" >&5
1175 if test -d /etc
/conf
/kconfig.d
&&
1176 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1178 echo "$ac_t""yes" 1>&6
1179 ISC
=yes # If later tests want to check for ISC.
1180 cat >> confdefs.h
<<\EOF
1181 #define _POSIX_SOURCE 1
1184 if test "$GCC" = yes; then
1190 echo "$ac_t""no" 1>&6
1194 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1195 echo "configure:1196: checking for ANSI C header files" >&5
1196 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1199 cat > conftest.
$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1207 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1208 { (eval echo configure
:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1209 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1210 if test -z "$ac_err"; then
1212 ac_cv_header_stdc
=yes
1215 echo "configure: failed program was:" >&5
1216 cat conftest.
$ac_ext >&5
1218 ac_cv_header_stdc
=no
1222 if test $ac_cv_header_stdc = yes; then
1223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1224 cat > conftest.
$ac_ext <<EOF
1225 #line 1226 "configure"
1226 #include "confdefs.h"
1229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1230 egrep "memchr" >/dev
/null
2>&1; then
1234 ac_cv_header_stdc
=no
1240 if test $ac_cv_header_stdc = yes; then
1241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1242 cat > conftest.
$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1248 egrep "free" >/dev
/null
2>&1; then
1252 ac_cv_header_stdc
=no
1258 if test $ac_cv_header_stdc = yes; then
1259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1260 if test "$cross_compiling" = yes; then
1263 cat > conftest.
$ac_ext <<EOF
1264 #line 1265 "configure"
1265 #include "confdefs.h"
1267 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1268 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1270 int main () { int i; for (i = 0; i < 256; i++)
1271 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1275 if { (eval echo configure
:1276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1279 echo "configure: failed program was:" >&5
1280 cat conftest.
$ac_ext >&5
1282 ac_cv_header_stdc
=no
1290 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1291 if test $ac_cv_header_stdc = yes; then
1292 cat >> confdefs.h
<<\EOF
1293 #define STDC_HEADERS 1
1298 echo $ac_n "checking for working const""... $ac_c" 1>&6
1299 echo "configure:1300: checking for working const" >&5
1300 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1303 cat > conftest.
$ac_ext <<EOF
1304 #line 1305 "configure"
1305 #include "confdefs.h"
1309 /* Ultrix mips cc rejects this. */
1310 typedef int charset[2]; const charset x;
1311 /* SunOS 4.1.1 cc rejects this. */
1312 char const *const *ccp;
1314 /* NEC SVR4.0.2 mips cc rejects this. */
1315 struct point {int x, y;};
1316 static struct point const zero = {0,0};
1317 /* AIX XL C 1.02.0.0 rejects this.
1318 It does not let you subtract one const X* pointer from another in an arm
1319 of an if-expression whose if-part is not a constant expression */
1320 const char *g = "string";
1321 ccp = &g + (g ? g-g : 0);
1322 /* HPUX 7.0 cc rejects these. */
1325 ccp = (char const *const *) p;
1326 { /* SCO 3.2v4 cc rejects this. */
1328 char const *s = 0 ? (char *) 0 : (char const *) 0;
1332 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1334 const int *foo = &x[0];
1337 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1338 typedef const int *iptr;
1342 { /* AIX XL C 1.02.0.0 rejects this saying
1343 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1344 struct s { int j; const int *ap[3]; };
1345 struct s *b; b->j = 5;
1347 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1353 if { (eval echo configure
:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1357 echo "configure: failed program was:" >&5
1358 cat conftest.
$ac_ext >&5
1365 echo "$ac_t""$ac_cv_c_const" 1>&6
1366 if test $ac_cv_c_const = no
; then
1367 cat >> confdefs.h
<<\EOF
1373 echo $ac_n "checking for inline""... $ac_c" 1>&6
1374 echo "configure:1375: checking for inline" >&5
1375 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1379 for ac_kw
in inline __inline__ __inline
; do
1380 cat > conftest.
$ac_ext <<EOF
1381 #line 1382 "configure"
1382 #include "confdefs.h"
1388 if { (eval echo configure
:1389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1390 ac_cv_c_inline
=$ac_kw; break
1392 echo "configure: failed program was:" >&5
1393 cat conftest.
$ac_ext >&5
1400 echo "$ac_t""$ac_cv_c_inline" 1>&6
1401 case "$ac_cv_c_inline" in
1403 no
) cat >> confdefs.h
<<\EOF
1407 *) cat >> confdefs.h
<<EOF
1408 #define inline $ac_cv_c_inline
1413 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1414 echo "configure:1415: checking for off_t" >&5
1415 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 cat > conftest.
$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 #include <sys/types.h>
1427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1428 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1430 ac_cv_type_off_t
=yes
1438 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1439 if test $ac_cv_type_off_t = no
; then
1440 cat >> confdefs.h
<<\EOF
1446 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1447 echo "configure:1448: checking for size_t" >&5
1448 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1449 echo $ac_n "(cached) $ac_c" 1>&6
1451 cat > conftest.
$ac_ext <<EOF
1452 #line 1453 "configure"
1453 #include "confdefs.h"
1454 #include <sys/types.h>
1460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1461 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1463 ac_cv_type_size_t
=yes
1466 ac_cv_type_size_t
=no
1471 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1472 if test $ac_cv_type_size_t = no
; then
1473 cat >> confdefs.h
<<\EOF
1474 #define size_t unsigned
1479 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1480 # for constant arguments. Useless!
1481 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1482 echo "configure:1483: checking for working alloca.h" >&5
1483 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 cat > conftest.
$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1491 char *p = alloca(2 * sizeof(int));
1494 if { (eval echo configure
:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1496 ac_cv_header_alloca_h
=yes
1498 echo "configure: failed program was:" >&5
1499 cat conftest.
$ac_ext >&5
1501 ac_cv_header_alloca_h
=no
1506 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1507 if test $ac_cv_header_alloca_h = yes; then
1508 cat >> confdefs.h
<<\EOF
1509 #define HAVE_ALLOCA_H 1
1514 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1515 echo "configure:1516: checking for alloca" >&5
1516 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 cat > conftest.
$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1524 # define alloca __builtin_alloca
1527 # include <malloc.h>
1528 # define alloca _alloca
1531 # include <alloca.h>
1536 # ifndef alloca /* predefined by HP cc +Olibcalls */
1545 char *p = (char *) alloca(1);
1548 if { (eval echo configure
:1549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1550 ac_cv_func_alloca_works
=yes
1552 echo "configure: failed program was:" >&5
1553 cat conftest.
$ac_ext >&5
1555 ac_cv_func_alloca_works
=no
1560 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1561 if test $ac_cv_func_alloca_works = yes; then
1562 cat >> confdefs.h
<<\EOF
1563 #define HAVE_ALLOCA 1
1568 if test $ac_cv_func_alloca_works = no
; then
1569 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1570 # that cause trouble. Some versions do not even contain alloca or
1571 # contain a buggy version. If you still want to use their alloca,
1572 # use ar to extract alloca.o from them instead of compiling alloca.c.
1573 ALLOCA
=alloca.
${ac_objext}
1574 cat >> confdefs.h
<<\EOF
1579 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1580 echo "configure:1581: checking whether alloca needs Cray hooks" >&5
1581 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.
$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 #if defined(CRAY) && ! defined(CRAY2)
1594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1595 egrep "webecray" >/dev
/null
2>&1; then
1606 echo "$ac_t""$ac_cv_os_cray" 1>&6
1607 if test $ac_cv_os_cray = yes; then
1608 for ac_func
in _getb67 GETB67 getb67
; do
1609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1610 echo "configure:1611: checking for $ac_func" >&5
1611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 cat > conftest.
$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 /* System header to define __stub macros and hopefully few prototypes,
1618 which can conflict with char $ac_func(); below. */
1620 /* Override any gcc2 internal prototype to avoid an error. */
1621 /* We use char because int might match the return type of a gcc2
1622 builtin and then its argument prototype would still apply. */
1627 /* The GNU C library defines this for functions which it implements
1628 to always fail with ENOSYS. Some functions are actually named
1629 something starting with __ and the normal name is an alias. */
1630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1638 if { (eval echo configure
:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1640 eval "ac_cv_func_$ac_func=yes"
1642 echo "configure: failed program was:" >&5
1643 cat conftest.
$ac_ext >&5
1645 eval "ac_cv_func_$ac_func=no"
1650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1651 echo "$ac_t""yes" 1>&6
1652 cat >> confdefs.h
<<EOF
1653 #define CRAY_STACKSEG_END $ac_func
1658 echo "$ac_t""no" 1>&6
1664 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1665 echo "configure:1666: checking stack direction for C alloca" >&5
1666 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 if test "$cross_compiling" = yes; then
1670 ac_cv_c_stack_direction
=0
1672 cat > conftest.
$ac_ext <<EOF
1673 #line 1674 "configure"
1674 #include "confdefs.h"
1675 find_stack_direction ()
1677 static char *addr = 0;
1682 return find_stack_direction ();
1685 return (&dummy > addr) ? 1 : -1;
1689 exit (find_stack_direction() < 0);
1692 if { (eval echo configure
:1693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1694 ac_cv_c_stack_direction
=1
1696 echo "configure: failed program was:" >&5
1697 cat conftest.
$ac_ext >&5
1699 ac_cv_c_stack_direction
=-1
1706 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1707 cat >> confdefs.h
<<EOF
1708 #define STACK_DIRECTION $ac_cv_c_stack_direction
1713 for ac_hdr
in unistd.h
1715 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1717 echo "configure:1718: checking for $ac_hdr" >&5
1718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1721 cat > conftest.
$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1726 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1727 { (eval echo configure
:1728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1728 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1729 if test -z "$ac_err"; then
1731 eval "ac_cv_header_$ac_safe=yes"
1734 echo "configure: failed program was:" >&5
1735 cat conftest.
$ac_ext >&5
1737 eval "ac_cv_header_$ac_safe=no"
1741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1742 echo "$ac_t""yes" 1>&6
1743 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1744 cat >> confdefs.h
<<EOF
1745 #define $ac_tr_hdr 1
1749 echo "$ac_t""no" 1>&6
1753 for ac_func
in getpagesize
1755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1756 echo "configure:1757: checking for $ac_func" >&5
1757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1760 cat > conftest.
$ac_ext <<EOF
1761 #line 1762 "configure"
1762 #include "confdefs.h"
1763 /* System header to define __stub macros and hopefully few prototypes,
1764 which can conflict with char $ac_func(); below. */
1766 /* Override any gcc2 internal prototype to avoid an error. */
1767 /* We use char because int might match the return type of a gcc2
1768 builtin and then its argument prototype would still apply. */
1773 /* The GNU C library defines this for functions which it implements
1774 to always fail with ENOSYS. Some functions are actually named
1775 something starting with __ and the normal name is an alias. */
1776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1784 if { (eval echo configure
:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1786 eval "ac_cv_func_$ac_func=yes"
1788 echo "configure: failed program was:" >&5
1789 cat conftest.
$ac_ext >&5
1791 eval "ac_cv_func_$ac_func=no"
1796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1797 echo "$ac_t""yes" 1>&6
1798 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1799 cat >> confdefs.h
<<EOF
1800 #define $ac_tr_func 1
1804 echo "$ac_t""no" 1>&6
1808 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1809 echo "configure:1810: checking for working mmap" >&5
1810 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1813 if test "$cross_compiling" = yes; then
1814 ac_cv_func_mmap_fixed_mapped
=no
1816 cat > conftest.
$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1820 /* Thanks to Mike Haertel and Jim Avera for this test.
1821 Here is a matrix of mmap possibilities:
1822 mmap private not fixed
1823 mmap private fixed at somewhere currently unmapped
1824 mmap private fixed at somewhere already mapped
1825 mmap shared not fixed
1826 mmap shared fixed at somewhere currently unmapped
1827 mmap shared fixed at somewhere already mapped
1828 For private mappings, we should verify that changes cannot be read()
1829 back from the file, nor mmap's back from the file at a different
1830 address. (There have been systems where private was not correctly
1831 implemented like the infamous i386 svr4.0, and systems where the
1832 VM page cache was not coherent with the filesystem buffer cache
1833 like early versions of FreeBSD and possibly contemporary NetBSD.)
1834 For shared mappings, we should conversely verify that changes get
1835 propogated back to all the places they're supposed to be.
1837 Grep wants private fixed already mapped.
1838 The main things grep needs to know about mmap are:
1839 * does it exist and is it safe to write into the mmap'd area
1840 * how to use it (BSD variants) */
1841 #include <sys/types.h>
1843 #include <sys/mman.h>
1845 /* This mess was copied from the GNU getpagesize.h. */
1846 #ifndef HAVE_GETPAGESIZE
1847 # ifdef HAVE_UNISTD_H
1848 # include <unistd.h>
1851 /* Assume that all systems that can run configure have sys/param.h. */
1852 # ifndef HAVE_SYS_PARAM_H
1853 # define HAVE_SYS_PARAM_H 1
1856 # ifdef _SC_PAGESIZE
1857 # define getpagesize() sysconf(_SC_PAGESIZE)
1858 # else /* no _SC_PAGESIZE */
1859 # ifdef HAVE_SYS_PARAM_H
1860 # include <sys/param.h>
1861 # ifdef EXEC_PAGESIZE
1862 # define getpagesize() EXEC_PAGESIZE
1863 # else /* no EXEC_PAGESIZE */
1865 # define getpagesize() NBPG * CLSIZE
1868 # endif /* no CLSIZE */
1869 # else /* no NBPG */
1871 # define getpagesize() NBPC
1872 # else /* no NBPC */
1874 # define getpagesize() PAGESIZE
1875 # endif /* PAGESIZE */
1876 # endif /* no NBPC */
1877 # endif /* no NBPG */
1878 # endif /* no EXEC_PAGESIZE */
1879 # else /* no HAVE_SYS_PARAM_H */
1880 # define getpagesize() 8192 /* punt totally */
1881 # endif /* no HAVE_SYS_PARAM_H */
1882 # endif /* no _SC_PAGESIZE */
1884 #endif /* no HAVE_GETPAGESIZE */
1887 extern "C" { void *malloc(unsigned); }
1895 char *data, *data2, *data3;
1899 pagesize = getpagesize();
1902 * First, make a file with some known garbage in it.
1904 data = malloc(pagesize);
1907 for (i = 0; i < pagesize; ++i)
1908 *(data + i) = rand();
1910 fd = creat("conftestmmap", 0600);
1913 if (write(fd, data, pagesize) != pagesize)
1918 * Next, try to mmap the file at a fixed address which
1919 * already has something else allocated at it. If we can,
1920 * also make sure that we see the same garbage.
1922 fd = open("conftestmmap", O_RDWR);
1925 data2 = malloc(2 * pagesize);
1928 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1929 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1930 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1932 for (i = 0; i < pagesize; ++i)
1933 if (*(data + i) != *(data2 + i))
1937 * Finally, make sure that changes to the mapped area
1938 * do not percolate back to the file as seen by read().
1939 * (This is a bug on some variants of i386 svr4.0.)
1941 for (i = 0; i < pagesize; ++i)
1942 *(data2 + i) = *(data2 + i) + 1;
1943 data3 = malloc(pagesize);
1946 if (read(fd, data3, pagesize) != pagesize)
1948 for (i = 0; i < pagesize; ++i)
1949 if (*(data + i) != *(data3 + i))
1952 unlink("conftestmmap");
1957 if { (eval echo configure
:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1959 ac_cv_func_mmap_fixed_mapped
=yes
1961 echo "configure: failed program was:" >&5
1962 cat conftest.
$ac_ext >&5
1964 ac_cv_func_mmap_fixed_mapped
=no
1971 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1972 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1973 cat >> confdefs.h
<<\EOF
1980 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1981 unistd.h values.h sys
/param.h
1983 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1985 echo "configure:1986: checking for $ac_hdr" >&5
1986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1989 cat > conftest.
$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1994 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1995 { (eval echo configure
:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1996 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1997 if test -z "$ac_err"; then
1999 eval "ac_cv_header_$ac_safe=yes"
2002 echo "configure: failed program was:" >&5
2003 cat conftest.
$ac_ext >&5
2005 eval "ac_cv_header_$ac_safe=no"
2009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2010 echo "$ac_t""yes" 1>&6
2011 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2012 cat >> confdefs.h
<<EOF
2013 #define $ac_tr_hdr 1
2017 echo "$ac_t""no" 1>&6
2021 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2022 __argz_count __argz_stringify __argz_next
2024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2025 echo "configure:2026: checking for $ac_func" >&5
2026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 cat > conftest.
$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2032 /* System header to define __stub macros and hopefully few prototypes,
2033 which can conflict with char $ac_func(); below. */
2035 /* Override any gcc2 internal prototype to avoid an error. */
2036 /* We use char because int might match the return type of a gcc2
2037 builtin and then its argument prototype would still apply. */
2042 /* The GNU C library defines this for functions which it implements
2043 to always fail with ENOSYS. Some functions are actually named
2044 something starting with __ and the normal name is an alias. */
2045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2053 if { (eval echo configure
:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2055 eval "ac_cv_func_$ac_func=yes"
2057 echo "configure: failed program was:" >&5
2058 cat conftest.
$ac_ext >&5
2060 eval "ac_cv_func_$ac_func=no"
2065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2067 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2068 cat >> confdefs.h
<<EOF
2069 #define $ac_tr_func 1
2073 echo "$ac_t""no" 1>&6
2078 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2079 for ac_func
in stpcpy
2081 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2082 echo "configure:2083: checking for $ac_func" >&5
2083 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2086 cat > conftest.
$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2089 /* System header to define __stub macros and hopefully few prototypes,
2090 which can conflict with char $ac_func(); below. */
2092 /* Override any gcc2 internal prototype to avoid an error. */
2093 /* We use char because int might match the return type of a gcc2
2094 builtin and then its argument prototype would still apply. */
2099 /* The GNU C library defines this for functions which it implements
2100 to always fail with ENOSYS. Some functions are actually named
2101 something starting with __ and the normal name is an alias. */
2102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2110 if { (eval echo configure
:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2112 eval "ac_cv_func_$ac_func=yes"
2114 echo "configure: failed program was:" >&5
2115 cat conftest.
$ac_ext >&5
2117 eval "ac_cv_func_$ac_func=no"
2122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2123 echo "$ac_t""yes" 1>&6
2124 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2125 cat >> confdefs.h
<<EOF
2126 #define $ac_tr_func 1
2130 echo "$ac_t""no" 1>&6
2135 if test "${ac_cv_func_stpcpy}" = "yes"; then
2136 cat >> confdefs.h
<<\EOF
2137 #define HAVE_STPCPY 1
2142 if test $ac_cv_header_locale_h = yes; then
2143 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2144 echo "configure:2145: checking for LC_MESSAGES" >&5
2145 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat > conftest.
$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2156 if { (eval echo configure
:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2158 am_cv_val_LC_MESSAGES
=yes
2160 echo "configure: failed program was:" >&5
2161 cat conftest.
$ac_ext >&5
2163 am_cv_val_LC_MESSAGES
=no
2168 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2169 if test $am_cv_val_LC_MESSAGES = yes; then
2170 cat >> confdefs.h
<<\EOF
2171 #define HAVE_LC_MESSAGES 1
2176 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2177 echo "configure:2178: checking whether NLS is requested" >&5
2178 # Check whether --enable-nls or --disable-nls was given.
2179 if test "${enable_nls+set}" = set; then
2180 enableval
="$enable_nls"
2186 echo "$ac_t""$USE_NLS" 1>&6
2189 USE_INCLUDED_LIBINTL
=no
2191 if test "$USE_NLS" = "yes"; then
2192 cat >> confdefs.h
<<\EOF
2193 #define ENABLE_NLS 1
2196 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2197 echo "configure:2198: checking whether included gettext is requested" >&5
2198 # Check whether --with-included-gettext or --without-included-gettext was given.
2199 if test "${with_included_gettext+set}" = set; then
2200 withval
="$with_included_gettext"
2201 nls_cv_force_use_gnu_gettext
=$withval
2203 nls_cv_force_use_gnu_gettext
=no
2206 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2208 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2209 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2211 nls_cv_header_libgt
=
2214 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2215 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2216 echo "configure:2217: checking for libintl.h" >&5
2217 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 cat > conftest.
$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 #include <libintl.h>
2225 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2226 { (eval echo configure
:2227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2227 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2228 if test -z "$ac_err"; then
2230 eval "ac_cv_header_$ac_safe=yes"
2233 echo "configure: failed program was:" >&5
2234 cat conftest.
$ac_ext >&5
2236 eval "ac_cv_header_$ac_safe=no"
2240 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2241 echo "$ac_t""yes" 1>&6
2242 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2243 echo "configure:2244: checking for gettext in libc" >&5
2244 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 cat > conftest.
$ac_ext <<EOF
2248 #line 2249 "configure"
2249 #include "confdefs.h"
2250 #include <libintl.h>
2252 return (int) gettext ("")
2255 if { (eval echo configure
:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2257 gt_cv_func_gettext_libc
=yes
2259 echo "configure: failed program was:" >&5
2260 cat conftest.
$ac_ext >&5
2262 gt_cv_func_gettext_libc
=no
2267 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2269 if test "$gt_cv_func_gettext_libc" != "yes"; then
2270 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2271 echo "configure:2272: checking for bindtextdomain in -lintl" >&5
2272 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2276 ac_save_LIBS
="$LIBS"
2278 cat > conftest.
$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2281 /* Override any gcc2 internal prototype to avoid an error. */
2282 /* We use char because int might match the return type of a gcc2
2283 builtin and then its argument prototype would still apply. */
2284 char bindtextdomain();
2290 if { (eval echo configure
:2291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2292 eval "ac_cv_lib_$ac_lib_var=yes"
2294 echo "configure: failed program was:" >&5
2295 cat conftest.
$ac_ext >&5
2297 eval "ac_cv_lib_$ac_lib_var=no"
2300 LIBS
="$ac_save_LIBS"
2303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2304 echo "$ac_t""yes" 1>&6
2305 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2306 echo "configure:2307: checking for gettext in libintl" >&5
2307 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2310 cat > conftest.
$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2315 return (int) gettext ("")
2318 if { (eval echo configure
:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2320 gt_cv_func_gettext_libintl
=yes
2322 echo "configure: failed program was:" >&5
2323 cat conftest.
$ac_ext >&5
2325 gt_cv_func_gettext_libintl
=no
2330 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2332 echo "$ac_t""no" 1>&6
2337 if test "$gt_cv_func_gettext_libc" = "yes" \
2338 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2339 cat >> confdefs.h
<<\EOF
2340 #define HAVE_GETTEXT 1
2343 # Extract the first word of "msgfmt", so it can be a program name with args.
2344 set dummy msgfmt
; ac_word
=$2
2345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_word" >&5
2347 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2355 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2356 for ac_dir
in $PATH; do
2357 test -z "$ac_dir" && ac_dir
=.
2358 if test -f $ac_dir/$ac_word; then
2359 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2360 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2366 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2370 MSGFMT
="$ac_cv_path_MSGFMT"
2371 if test -n "$MSGFMT"; then
2372 echo "$ac_t""$MSGFMT" 1>&6
2374 echo "$ac_t""no" 1>&6
2376 if test "$MSGFMT" != "no"; then
2377 for ac_func
in dcgettext
2379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2380 echo "configure:2381: checking for $ac_func" >&5
2381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2384 cat > conftest.
$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 /* System header to define __stub macros and hopefully few prototypes,
2388 which can conflict with char $ac_func(); below. */
2390 /* Override any gcc2 internal prototype to avoid an error. */
2391 /* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2397 /* The GNU C library defines this for functions which it implements
2398 to always fail with ENOSYS. Some functions are actually named
2399 something starting with __ and the normal name is an alias. */
2400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2408 if { (eval echo configure
:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2410 eval "ac_cv_func_$ac_func=yes"
2412 echo "configure: failed program was:" >&5
2413 cat conftest.
$ac_ext >&5
2415 eval "ac_cv_func_$ac_func=no"
2420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2423 cat >> confdefs.h
<<EOF
2424 #define $ac_tr_func 1
2428 echo "$ac_t""no" 1>&6
2432 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2433 set dummy gmsgfmt
; ac_word
=$2
2434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2435 echo "configure:2436: checking for $ac_word" >&5
2436 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2441 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2444 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2447 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2449 for ac_dir
in $ac_dummy; do
2450 test -z "$ac_dir" && ac_dir
=.
2451 if test -f $ac_dir/$ac_word; then
2452 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2457 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2461 GMSGFMT
="$ac_cv_path_GMSGFMT"
2462 if test -n "$GMSGFMT"; then
2463 echo "$ac_t""$GMSGFMT" 1>&6
2465 echo "$ac_t""no" 1>&6
2468 # Extract the first word of "xgettext", so it can be a program name with args.
2469 set dummy xgettext
; ac_word
=$2
2470 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2471 echo "configure:2472: checking for $ac_word" >&5
2472 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2477 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2480 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2481 for ac_dir
in $PATH; do
2482 test -z "$ac_dir" && ac_dir
=.
2483 if test -f $ac_dir/$ac_word; then
2484 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2485 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2491 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2495 XGETTEXT
="$ac_cv_path_XGETTEXT"
2496 if test -n "$XGETTEXT"; then
2497 echo "$ac_t""$XGETTEXT" 1>&6
2499 echo "$ac_t""no" 1>&6
2502 cat > conftest.
$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2507 extern int _nl_msg_cat_cntr;
2508 return _nl_msg_cat_cntr
2511 if { (eval echo configure
:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2516 echo "configure: failed program was:" >&5
2517 cat conftest.
$ac_ext >&5
2528 echo "$ac_t""no" 1>&6
2533 if test "$CATOBJEXT" = "NONE"; then
2534 nls_cv_use_gnu_gettext
=yes
2538 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2539 INTLOBJS
="\$(GETTOBJS)"
2540 # Extract the first word of "msgfmt", so it can be a program name with args.
2541 set dummy msgfmt
; ac_word
=$2
2542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_word" >&5
2544 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2549 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2552 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2553 for ac_dir
in $PATH; do
2554 test -z "$ac_dir" && ac_dir
=.
2555 if test -f $ac_dir/$ac_word; then
2556 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2557 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2563 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2567 MSGFMT
="$ac_cv_path_MSGFMT"
2568 if test -n "$MSGFMT"; then
2569 echo "$ac_t""$MSGFMT" 1>&6
2571 echo "$ac_t""no" 1>&6
2574 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2575 set dummy gmsgfmt
; ac_word
=$2
2576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2577 echo "configure:2578: checking for $ac_word" >&5
2578 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2583 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2586 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2589 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2591 for ac_dir
in $ac_dummy; do
2592 test -z "$ac_dir" && ac_dir
=.
2593 if test -f $ac_dir/$ac_word; then
2594 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2599 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2603 GMSGFMT
="$ac_cv_path_GMSGFMT"
2604 if test -n "$GMSGFMT"; then
2605 echo "$ac_t""$GMSGFMT" 1>&6
2607 echo "$ac_t""no" 1>&6
2610 # Extract the first word of "xgettext", so it can be a program name with args.
2611 set dummy xgettext
; ac_word
=$2
2612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2613 echo "configure:2614: checking for $ac_word" >&5
2614 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2619 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2622 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2623 for ac_dir
in $PATH; do
2624 test -z "$ac_dir" && ac_dir
=.
2625 if test -f $ac_dir/$ac_word; then
2626 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2627 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2633 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2637 XGETTEXT
="$ac_cv_path_XGETTEXT"
2638 if test -n "$XGETTEXT"; then
2639 echo "$ac_t""$XGETTEXT" 1>&6
2641 echo "$ac_t""no" 1>&6
2645 USE_INCLUDED_LIBINTL
=yes
2649 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2651 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2652 nls_cv_header_intl
=libintl.h
2653 nls_cv_header_libgt
=libgettext.h
2656 if test "$XGETTEXT" != ":"; then
2657 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2660 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2665 # We need to process the po/ directory.
2669 nls_cv_header_intl
=libintl.h
2670 nls_cv_header_libgt
=libgettext.h
2673 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2674 # because some of the sources are only built for this goal.
2675 if test "$PACKAGE" = gettext; then
2677 USE_INCLUDED_LIBINTL
=yes
2680 for lang
in $ALL_LINGUAS; do
2681 GMOFILES
="$GMOFILES $lang.gmo"
2682 POFILES
="$POFILES $lang.po"
2698 if test "x$CATOBJEXT" != "x"; then
2699 if test "x$ALL_LINGUAS" = "x"; then
2702 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2703 echo "configure:2704: checking for catalogs to be installed" >&5
2705 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2706 case "$ALL_LINGUAS" in
2707 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2710 LINGUAS
=$NEW_LINGUAS
2711 echo "$ac_t""$LINGUAS" 1>&6
2714 if test -n "$LINGUAS"; then
2715 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2719 if test $ac_cv_header_locale_h = yes; then
2720 INCLUDE_LOCALE_H
="#include <locale.h>"
2723 /* The system does not provide the header <locale.h>. Take care yourself. */"
2727 if test -f $srcdir/po2tbl.
sed.
in; then
2728 if test "$CATOBJEXT" = ".cat"; then
2729 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2730 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2731 echo "configure:2732: checking for linux/version.h" >&5
2732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2735 cat > conftest.
$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2738 #include <linux/version.h>
2740 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2741 { (eval echo configure
:2742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2742 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2743 if test -z "$ac_err"; then
2745 eval "ac_cv_header_$ac_safe=yes"
2748 echo "configure: failed program was:" >&5
2749 cat conftest.
$ac_ext >&5
2751 eval "ac_cv_header_$ac_safe=no"
2755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2756 echo "$ac_t""yes" 1>&6
2759 echo "$ac_t""no" 1>&6
2764 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2766 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2767 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2770 if test "$PACKAGE" = "gettext"; then
2780 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2786 if test -d $srcdir/po
; then
2787 test -d po || mkdir po
2788 if test "x$srcdir" != "x."; then
2789 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2790 posrcprefix
="$srcdir/"
2792 posrcprefix
="../$srcdir/"
2798 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2799 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2804 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
2805 if test "${enable_sim_alignment+set}" = set; then
2806 enableval
="$enable_sim_alignment"
2807 case "${enableval}" in
2808 yes | strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
2809 no | nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
2810 0 | default | DEFAULT
) sim_alignment
="-DWITH_ALIGNMENT=0";;
2811 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
2813 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
2814 echo "Setting alignment flags = $sim_alignment" 6>&1
2821 # Check whether --enable-sim-assert or --disable-sim-assert was given.
2822 if test "${enable_sim_assert+set}" = set; then
2823 enableval
="$enable_sim_assert"
2824 case "${enableval}" in
2825 yes) sim_assert
="-DWITH_ASSERT=1";;
2826 no
) sim_assert
="-DWITH_ASSERT=0";;
2827 *) { echo "configure: error: "--enable-sim-assert does not take a value
"" 1>&2; exit 1; }; sim_assert
="";;
2829 if test x
"$silent" != x
"yes" && test x
"$sim_assert" != x
""; then
2830 echo "Setting assert flags = $sim_assert" 6>&1
2837 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
2838 if test "${enable_sim_bitsize+set}" = set; then
2839 enableval
="$enable_sim_bitsize"
2840 case "${enableval}" in
2841 32|
64) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
2842 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; }; sim_bitsize
="";;
2844 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
2845 echo "Setting bitsize flags = $sim_bitsize" 6>&1
2852 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2853 if test "${enable_sim_bswap+set}" = set; then
2854 enableval
="$enable_sim_bswap"
2855 case "${enableval}" in
2856 yes) sim_bswap
="-DWITH_BSWAP=1";;
2857 no
) sim_bswap
="-DWITH_BSWAP=0";;
2858 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
2860 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
2861 echo "Setting bswap flags = $sim_bswap" 6>&1
2868 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2869 if test "${enable_sim_cflags+set}" = set; then
2870 enableval
="$enable_sim_cflags"
2871 case "${enableval}" in
2872 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
2874 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2876 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
2877 echo "Setting sim cflags = $sim_cflags" 6>&1
2884 # Check whether --enable-sim-config or --disable-sim-config was given.
2885 if test "${enable_sim_config+set}" = set; then
2886 enableval
="$enable_sim_config"
2887 case "${enableval}" in
2888 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-config=file"" 1>&2; exit 1; };;
2889 *) if test -f "${srcdir}/${enableval}"; then
2890 sim_config
="${enableval}";
2891 elif test -f "${srcdir}/${enableval}-config.h"; then
2892 sim_config
="${enableval}-config.h"
2894 { echo "configure: error: "Config
file $enableval was not found
"" 1>&2; exit 1; };
2895 sim_config
=std-config.h
2898 if test x
"$silent" != x
"yes" && test x
"$sim_config" != x
""; then
2899 echo "Setting config flags = $sim_config" 6>&1
2902 sim_config
="std-config.h"
2903 if test x
"$silent" != x
"yes"; then
2904 echo "Setting config flags = $sim_config" 6>&1
2909 # Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
2910 if test "${enable_sim_decode_mechanism+set}" = set; then
2911 enableval
="$enable_sim_decode_mechanism"
2912 case "${enableval}" in
2913 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-decode-mechanism=file"" 1>&2; exit 1; };;
2914 array|switch|padded-switch|goto-switch
) sim_decode_mechanism
="-T ${enableval}";;
2915 *) { echo "configure: error: "File
$enableval is not an opcode rules
file"" 1>&2; exit 1; };
2916 sim_decode_mechanism
="switch";;
2918 if test x
"$silent" != x
"yes" && test x
"$sim_decode_mechanism" != x
""; then
2919 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2922 sim_decode_mechanism
=""
2923 if test x
"$silent" != x
"yes"; then
2924 echo "Setting decode mechanism flags = $sim_decode_mechanism"
2929 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
2930 if test "${enable_sim_default_model+set}" = set; then
2931 enableval
="$enable_sim_default_model"
2932 case "${enableval}" in
2933 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-default-model=model
"" 1>&2; exit 1; };;
2934 *) sim_default_model
="-DWITH_DEFAULT_MODEL=${enableval}";;
2936 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
2937 echo "Setting default-model flags = $sim_default_model" 6>&1
2940 sim_default_model
=""
2944 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
2945 if test "${enable_sim_duplicate+set}" = set; then
2946 enableval
="$enable_sim_duplicate"
2947 case "${enableval}" in
2950 *) { echo "configure: error: "--enable-sim-duplicate does not take a value
"" 1>&2; exit 1; }; sim_dup
="";;
2952 if test x
"$silent" != x
"yes" && test x
"$sim_dup" != x
""; then
2953 echo "Setting duplicate flags = $sim_dup" 6>&1
2957 if test x
"$silent" != x
"yes"; then
2958 echo "Setting duplicate flags = $sim_dup" 6>&1
2963 # Check whether --enable-sim-endian or --disable-sim-endian was given.
2964 if test "${enable_sim_endian+set}" = set; then
2965 enableval
="$enable_sim_endian"
2966 case "${enableval}" in
2967 yes) case "$target" in
2968 *powerpc-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2969 *powerpcle-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2970 *) echo "Unknown target $target" 1>&6; sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
2972 no
) sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
2973 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2974 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2975 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
2977 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
2978 echo "Setting endian flags = $sim_endian" 6>&1
2985 # Check whether --enable-sim-env or --disable-sim-env was given.
2986 if test "${enable_sim_env+set}" = set; then
2987 enableval
="$enable_sim_env"
2988 case "${enableval}" in
2989 operating | os | oea
) sim_env
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
2990 virtual | vea
) sim_env
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
2991 user | uea
) sim_env
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
2992 no
) sim_env
="-DWITH_ENVIRONMENT=0";;
2993 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-env"" 1>&2; exit 1; }; sim_env
="";;
2995 if test x
"$silent" != x
"yes" && test x
"$sim_env" != x
""; then
2996 echo "Setting env flags = $sim_env" 6>&1
3003 # Check whether --enable-sim-filter or --disable-sim-filter was given.
3004 if test "${enable_sim_filter+set}" = set; then
3005 enableval
="$enable_sim_filter"
3006 case "${enableval}" in
3007 yes) { echo "configure: error: "--enable-sim-filter must be specified with a rule to filter or no
"" 1>&2; exit 1; }; sim_filter
="";;
3009 *) sim_filter
="-F $enableval";;
3011 if test x
"$silent" != x
"yes" && test x
"$sim_filter" != x
""; then
3012 echo "Setting filter flags = $sim_filter" 6>&1
3015 sim_filter
="-F 32,f,o"
3016 if test x
"$silent" != x
"yes"; then
3017 echo "Setting filter flags = $sim_filter" 6>&1
3022 # Check whether --enable-sim-float or --disable-sim-float was given.
3023 if test "${enable_sim_float+set}" = set; then
3024 enableval
="$enable_sim_float"
3025 case "${enableval}" in
3026 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3027 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3028 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-float"" 1>&2; exit 1; }; sim_float
="";;
3030 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
3031 echo "Setting float flags = $sim_float" 6>&1
3038 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
3039 if test "${enable_sim_hardware+set}" = set; then
3040 enableval
="$enable_sim_hardware"
3041 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
3042 case "${enableval}" in
3044 no
) { echo "configure: error: "List of hardware must be specified
for --enable-sim-hardware"" 1>&2; exit 1; }; hardware
="";;
3045 ,*) hardware
="${hardware}${enableval}";;
3046 *,) hardware
="${enableval}${hardware}";;
3047 *) hardware
="${enableval}"'';;
3049 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3050 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3051 if test x
"$silent" != x
"yes" && test x
"$hardware" != x
""; then
3052 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3055 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
3056 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3057 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3058 if test x
"$silent" != x
"yes"; then
3059 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3064 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
3065 if test "${enable_sim_hostbitsize+set}" = set; then
3066 enableval
="$enable_sim_hostbitsize"
3067 case "${enableval}" in
3068 32|
64) sim_hostbitsize
="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3069 *) { echo "configure: error: "--enable-sim-hostbitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; }; sim_hostbitsize
="";;
3071 if test x
"$silent" != x
"yes" && test x
"$sim_hostbitsize" != x
""; then
3072 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3079 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3080 if test "${enable_sim_hostendian+set}" = set; then
3081 enableval
="$enable_sim_hostendian"
3082 case "${enableval}" in
3083 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3084 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3085 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3086 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3088 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3089 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3093 if test "x$cross_compiling" = "xno"; then
3094 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3095 echo "configure:3096: checking whether byte ordering is bigendian" >&5
3096 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3099 ac_cv_c_bigendian
=unknown
3100 # See if sys/param.h defines the BYTE_ORDER macro.
3101 cat > conftest.
$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3104 #include <sys/types.h>
3105 #include <sys/param.h>
3108 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3113 if { (eval echo configure
:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3115 # It does; now see whether it defined to BIG_ENDIAN or not.
3116 cat > conftest.
$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3119 #include <sys/types.h>
3120 #include <sys/param.h>
3123 #if BYTE_ORDER != BIG_ENDIAN
3128 if { (eval echo configure
:3129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3130 ac_cv_c_bigendian
=yes
3132 echo "configure: failed program was:" >&5
3133 cat conftest.
$ac_ext >&5
3135 ac_cv_c_bigendian
=no
3139 echo "configure: failed program was:" >&5
3140 cat conftest.
$ac_ext >&5
3143 if test $ac_cv_c_bigendian = unknown
; then
3144 if test "$cross_compiling" = yes; then
3145 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3147 cat > conftest.
$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3151 /* Are we little or big endian? From Harbison&Steele. */
3155 char c[sizeof (long)];
3158 exit (u.c[sizeof (long) - 1] == 1);
3161 if { (eval echo configure
:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3163 ac_cv_c_bigendian
=no
3165 echo "configure: failed program was:" >&5
3166 cat conftest.
$ac_ext >&5
3168 ac_cv_c_bigendian
=yes
3176 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3177 if test $ac_cv_c_bigendian = yes; then
3178 cat >> confdefs.h
<<\EOF
3179 #define WORDS_BIGENDIAN 1
3184 if test $ac_cv_c_bigendian = yes; then
3185 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3187 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3190 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3195 # Check whether --enable-sim-icache or --disable-sim-icache was given.
3196 if test "${enable_sim_icache+set}" = set; then
3197 enableval
="$enable_sim_icache"
3199 case "${enableval}" in
3200 yes) icache
="1024"; sim_icache
="-I $icache";;
3201 no
) sim_icache
="-R";;
3204 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3206 define
) sim_icache
="${sim_icache}R";;
3207 semantic
) sim_icache
="${sim_icache}C";;
3208 insn
) sim_icache
="${sim_icache}S";;
3209 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
3210 *) { echo "configure: error: "Unknown value
$x for --enable-sim-icache"" 1>&2; exit 1; }; sim_icache
="";;
3213 sim_icache
="${sim_icache}I $icache";;
3215 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
3216 echo "Setting instruction cache size to $icache ($sim_icache)"
3219 sim_icache
="-CSRI 1024"
3220 if test x
"$silent" != x
"yes"; then
3221 echo "Setting instruction cache size to 1024 ($sim_icache)"
3226 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3227 if test "${enable_sim_inline+set}" = set; then
3228 enableval
="$enable_sim_inline"
3230 case "$enableval" in
3231 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3232 0) sim_inline
="-DDEFAULT_INLINE=0";;
3233 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
3234 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3235 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3238 *_INLINE
=*) new_flag
="-D$x";;
3239 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3240 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
3241 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
3243 if test x
"$sim_inline" = x
""; then
3244 sim_inline
="$new_flag"
3246 sim_inline
="$sim_inline $new_flag"
3250 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3251 echo "Setting inline flags = $sim_inline" 6>&1
3254 if test x
"$GCC" != ""; then
3255 sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS"
3256 if test x
"$silent" != x
"yes"; then
3257 echo "Setting inline flags = $sim_inline" 6>&1
3265 # Check whether --enable-sim-jump or --disable-sim-jump was given.
3266 if test "${enable_sim_jump+set}" = set; then
3267 enableval
="$enable_sim_jump"
3268 case "${enableval}" in
3269 yes) sim_jump
="-J";;
3271 *) { echo "configure: error: "--enable-sim-jump does not take a value
"" 1>&2; exit 1; }; sim_jump
="";;
3273 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
3274 echo "Setting jump flag = $sim_jump" 6>&1
3278 if test x
"$silent" != x
"yes"; then
3279 echo "Setting jump flag = $sim_jump" 6>&1
3284 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3285 if test "${enable_sim_line_nr+set}" = set; then
3286 enableval
="$enable_sim_line_nr"
3287 case "${enableval}" in
3288 yes) sim_line_nr
="";;
3289 no
) sim_line_nr
="-L";;
3290 *) { echo "configure: error: "--enable-sim-line-nr does not take a value
"" 1>&2; exit 1; }; sim_line_nr
="";;
3292 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
3293 echo "Setting warning flags = $sim_line_nr" 6>&1
3300 # Check whether --enable-sim-model or --disable-sim-model was given.
3301 if test "${enable_sim_model+set}" = set; then
3302 enableval
="$enable_sim_model"
3303 case "${enableval}" in
3304 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-model=model
"" 1>&2; exit 1; };;
3305 *) sim_model
="-DWITH_MODEL=${enableval}";;
3307 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
3308 echo "Setting model flags = $sim_model" 6>&1
3315 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3316 if test "${enable_sim_model_issue+set}" = set; then
3317 enableval
="$enable_sim_model_issue"
3318 case "${enableval}" in
3319 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3320 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3321 *) { echo "configure: error: "--enable-sim-model-issue does not take a value
"" 1>&2; exit 1; }; sim_model_issue
="";;
3323 if test x
"$silent" != x
"yes"; then
3324 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3331 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3332 if test "${enable_sim_monitor+set}" = set; then
3333 enableval
="$enable_sim_monitor"
3334 case "${enableval}" in
3335 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3336 no
) sim_monitor
="-DWITH_MON=0";;
3337 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3338 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3339 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-mon"" 1>&2; exit 1; }; sim_env
="";;
3341 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
3342 echo "Setting monitor flags = $sim_monitor" 6>&1
3349 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3350 if test "${enable_sim_opcode+set}" = set; then
3351 enableval
="$enable_sim_opcode"
3352 case "${enableval}" in
3353 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-opcode=file"" 1>&2; exit 1; };;
3354 *) if test -f "${srcdir}/${enableval}"; then
3355 sim_opcode
="${enableval}"
3356 elif test -f "${srcdir}/dc-${enableval}"; then
3357 sim_opcode
="dc-${enableval}"
3359 { echo "configure: error: "File
$enableval is not an opcode rules
file"" 1>&2; exit 1; };
3360 sim_opcode
="dc-complex"
3363 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
3364 echo "Setting opcode flags = $sim_opcode" 6>&1
3367 sim_opcode
="dc-complex"
3368 if test x
"$silent" != x
"yes"; then
3369 echo "Setting opcode flags = $sim_opcode"
3374 # Check whether --enable-sim-packages or --disable-sim-packages was given.
3375 if test "${enable_sim_packages+set}" = set; then
3376 enableval
="$enable_sim_packages"
3378 case "${enableval}" in
3380 no
) { echo "configure: error: "List of packages must be specified
for --enable-sim-packages"" 1>&2; exit 1; }; packages
="";;
3381 ,*) packages
="${packages}${enableval}";;
3382 *,) packages
="${enableval}${packages}";;
3383 *) packages
="${enableval}"'';;
3385 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3386 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3387 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
3388 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3392 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3393 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3394 if test x
"$silent" != x
"yes"; then
3395 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3400 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3401 if test "${enable_sim_regparm+set}" = set; then
3402 enableval
="$enable_sim_regparm"
3403 case "${enableval}" in
3404 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) sim_regparm
="-DWITH_REGPARM=${enableval}";;
3405 no
) sim_regparm
="" ;;
3406 yes) sim_regparm
="-DWITH_REGPARM=3";;
3407 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-regparm"" 1>&2; exit 1; }; sim_regparm
="";;
3409 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
3410 echo "Setting regparm flags = $sim_regparm" 6>&1
3417 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3418 if test "${enable_sim_reserved_bits+set}" = set; then
3419 enableval
="$enable_sim_reserved_bits"
3420 case "${enableval}" in
3421 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
3422 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
3423 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value
"" 1>&2; exit 1; }; sim_reserved
="";;
3425 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
3426 echo "Setting reserved flags = $sim_reserved" 6>&1
3433 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3434 if test "${enable_sim_smp+set}" = set; then
3435 enableval
="$enable_sim_smp"
3436 case "${enableval}" in
3437 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
3438 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
3439 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
3441 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
3442 echo "Setting smp flags = $sim_smp" 6>&1
3445 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
3446 if test x
"$silent" != x
"yes"; then
3447 echo "Setting smp flags = $sim_smp" 6>&1
3452 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3453 if test "${enable_sim_stdcall+set}" = set; then
3454 enableval
="$enable_sim_stdcall"
3455 case "${enableval}" in
3456 no
) sim_stdcall
="" ;;
3457 std
*) sim_stdcall
="-DWITH_STDCALL=1";;
3458 yes) sim_stdcall
="-DWITH_STDCALL=1";;
3459 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-stdcall"" 1>&2; exit 1; }; sim_stdcall
="";;
3461 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
3462 echo "Setting function call flags = $sim_stdcall" 6>&1
3469 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3470 if test "${enable_sim_stdio+set}" = set; then
3471 enableval
="$enable_sim_stdio"
3472 case "${enableval}" in
3473 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3474 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3475 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3477 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3478 echo "Setting stdio flags = $sim_stdio" 6>&1
3485 # Check whether --enable-sim-switch or --disable-sim-switch was given.
3486 if test "${enable_sim_switch+set}" = set; then
3487 enableval
="$enable_sim_switch"
3488 case "${enableval}" in
3489 yes) sim_switch
="-s";;
3491 *) { echo "configure: error: "--enable-sim-switch does not take a value
"" 1>&2; exit 1; }; sim_switch
="";;
3493 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
3494 echo "Setting switch flags = $sim_switch" 6>&1
3498 if test x
"$silent" != x
"yes"; then
3499 echo "Setting switch flags = $sim_switch" 6>&1
3504 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3505 if test "${enable_sim_timebase+set}" = set; then
3506 enableval
="$enable_sim_timebase"
3507 case "${enableval}" in
3508 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
3509 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
3510 *) { echo "configure: error: "--enable-sim-timebase does not take a value
"" 1>&2; exit 1; }; sim_timebase
="";;
3512 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
3513 echo "Setting timebase flags = $sim_timebase" 6>&1
3520 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3521 if test "${enable_sim_trace+set}" = set; then
3522 enableval
="$enable_sim_trace"
3523 case "${enableval}" in
3524 yes) sim_trace
="-DWITH_TRACE=1";;
3525 no
) sim_trace
="-DWITH_TRACE=0";;
3526 *) { echo "configure: error: "--enable-sim-trace does not take a value
"" 1>&2; exit 1; }; sim_trace
="";;
3528 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3529 echo "Setting trace flags = $sim_trace" 6>&1
3536 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3537 if test "${enable_sim_warnings+set}" = set; then
3538 enableval
="$enable_sim_warnings"
3539 case "${enableval}" in
3540 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3541 no
) sim_warnings
="-w";;
3542 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3544 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
3545 echo "Setting warning flags = $sim_warnings" 6>&1
3552 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3553 if test "${enable_sim_xor_endian+set}" = set; then
3554 enableval
="$enable_sim_xor_endian"
3555 case "${enableval}" in
3556 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
3557 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
3558 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
3560 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
3561 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3569 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
3570 if test -f $ac_dir/install-sh
; then
3572 ac_install_sh
="$ac_aux_dir/install-sh -c"
3574 elif test -f $ac_dir/install.sh
; then
3576 ac_install_sh
="$ac_aux_dir/install.sh -c"
3580 if test -z "$ac_aux_dir"; then
3581 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
3583 ac_config_guess
=$ac_aux_dir/config.guess
3584 ac_config_sub
=$ac_aux_dir/config.sub
3585 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
3588 # Do some error checking and defaulting for the host and target type.
3590 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
3593 # 1. You are not allowed to specify --host, --target, and nonopt at the
3595 # 2. Host defaults to nonopt.
3596 # 3. If nonopt is not specified, then host defaults to the current host,
3597 # as determined by config.guess.
3598 # 4. Target and build default to nonopt.
3599 # 5. If nonopt is not specified, then target and build default to host.
3601 # The aliases save the names the user supplied, while $host etc.
3602 # will get canonicalized.
3603 case $host---$target---$nonopt in
3604 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
3605 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
3609 # Make sure we can run config.sub.
3610 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
3611 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3614 echo $ac_n "checking host system type""... $ac_c" 1>&6
3615 echo "configure:3616: checking host system type" >&5
3618 case "$host_alias" in
3622 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
3623 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3625 *) host_alias
=$nonopt ;;
3629 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
3630 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3631 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3632 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3633 echo "$ac_t""$host" 1>&6
3635 echo $ac_n "checking target system type""... $ac_c" 1>&6
3636 echo "configure:3637: checking target system type" >&5
3638 target_alias
=$target
3639 case "$target_alias" in
3642 NONE
) target_alias
=$host_alias ;;
3643 *) target_alias
=$nonopt ;;
3647 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
3648 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3649 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3650 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3651 echo "$ac_t""$target" 1>&6
3653 echo $ac_n "checking build system type""... $ac_c" 1>&6
3654 echo "configure:3655: checking build system type" >&5
3657 case "$build_alias" in
3660 NONE
) build_alias
=$host_alias ;;
3661 *) build_alias
=$nonopt ;;
3665 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3666 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3667 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3668 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3669 echo "$ac_t""$build" 1>&6
3671 test "$host_alias" != "$target_alias" &&
3672 test "$program_prefix$program_suffix$program_transform_name" = \
3674 program_prefix
=${target_alias}-
3676 if test "$program_transform_name" = s
,x
,x
,; then
3677 program_transform_name
=
3679 # Double any \ or $. echo might interpret backslashes.
3680 cat <<\EOF_SED
> conftestsed
3681 s
,\\,\\\\,g
; s
,\$
,$$
,g
3683 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3686 test "$program_prefix" != NONE
&&
3687 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3688 # Use a double $ so make ignores it.
3689 test "$program_suffix" != NONE
&&
3690 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3692 # sed with no file args requires a program.
3693 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3696 .
${srcdir}/..
/..
/bfd
/configure.
host
3700 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3701 echo "configure:3702: checking for st_blksize in struct stat" >&5
3702 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 cat > conftest.
$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 #include <sys/types.h>
3709 #include <sys/stat.h>
3711 struct stat s; s.st_blksize;
3714 if { (eval echo configure
:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716 ac_cv_struct_st_blksize
=yes
3718 echo "configure: failed program was:" >&5
3719 cat conftest.
$ac_ext >&5
3721 ac_cv_struct_st_blksize
=no
3726 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3727 if test $ac_cv_struct_st_blksize = yes; then
3728 cat >> confdefs.h
<<\EOF
3729 #define HAVE_ST_BLKSIZE 1
3734 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3735 echo "configure:3736: checking for st_blocks in struct stat" >&5
3736 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3739 cat > conftest.
$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 #include <sys/types.h>
3743 #include <sys/stat.h>
3745 struct stat s; s.st_blocks;
3748 if { (eval echo configure
:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3750 ac_cv_struct_st_blocks
=yes
3752 echo "configure: failed program was:" >&5
3753 cat conftest.
$ac_ext >&5
3755 ac_cv_struct_st_blocks
=no
3760 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3761 if test $ac_cv_struct_st_blocks = yes; then
3762 cat >> confdefs.h
<<\EOF
3763 #define HAVE_ST_BLOCKS 1
3767 LIBOBJS
="$LIBOBJS fileblocks.${ac_objext}"
3770 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3771 echo "configure:3772: checking for st_rdev in struct stat" >&5
3772 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3775 cat > conftest.
$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 #include <sys/types.h>
3779 #include <sys/stat.h>
3781 struct stat s; s.st_rdev;
3784 if { (eval echo configure
:3785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3786 ac_cv_struct_st_rdev
=yes
3788 echo "configure: failed program was:" >&5
3789 cat conftest.
$ac_ext >&5
3791 ac_cv_struct_st_rdev
=no
3796 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3797 if test $ac_cv_struct_st_rdev = yes; then
3798 cat >> confdefs.h
<<\EOF
3799 #define HAVE_ST_RDEV 1
3804 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3805 echo "configure:3806: checking whether struct tm is in sys/time.h or time.h" >&5
3806 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3809 cat > conftest.
$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 #include <sys/types.h>
3815 struct tm *tp; tp->tm_sec;
3818 if { (eval echo configure
:3819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3820 ac_cv_struct_tm
=time.h
3822 echo "configure: failed program was:" >&5
3823 cat conftest.
$ac_ext >&5
3825 ac_cv_struct_tm
=sys
/time.h
3830 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3831 if test $ac_cv_struct_tm = sys
/time.h
; then
3832 cat >> confdefs.h
<<\EOF
3833 #define TM_IN_SYS_TIME 1
3838 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3839 echo "configure:3840: checking for tm_zone in struct tm" >&5
3840 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3841 echo $ac_n "(cached) $ac_c" 1>&6
3843 cat > conftest.
$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3846 #include <sys/types.h>
3847 #include <$ac_cv_struct_tm>
3849 struct tm tm; tm.tm_zone;
3852 if { (eval echo configure
:3853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3854 ac_cv_struct_tm_zone
=yes
3856 echo "configure: failed program was:" >&5
3857 cat conftest.
$ac_ext >&5
3859 ac_cv_struct_tm_zone
=no
3864 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3865 if test "$ac_cv_struct_tm_zone" = yes; then
3866 cat >> confdefs.h
<<\EOF
3867 #define HAVE_TM_ZONE 1
3871 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3872 echo "configure:3873: checking for tzname" >&5
3873 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3876 cat > conftest.
$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3880 #ifndef tzname /* For SGI. */
3881 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3887 if { (eval echo configure
:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3889 ac_cv_var_tzname
=yes
3891 echo "configure: failed program was:" >&5
3892 cat conftest.
$ac_ext >&5
3899 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3900 if test $ac_cv_var_tzname = yes; then
3901 cat >> confdefs.h
<<\EOF
3902 #define HAVE_TZNAME 1
3909 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3910 echo "configure:3911: checking for uid_t in sys/types.h" >&5
3911 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.
$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 #include <sys/types.h>
3919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3920 egrep "uid_t" >/dev
/null
2>&1; then
3922 ac_cv_type_uid_t
=yes
3931 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3932 if test $ac_cv_type_uid_t = no
; then
3933 cat >> confdefs.h
<<\EOF
3937 cat >> confdefs.h
<<\EOF
3943 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3944 echo "configure:3945: checking type of array argument to getgroups" >&5
3945 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3946 echo $ac_n "(cached) $ac_c" 1>&6
3948 if test "$cross_compiling" = yes; then
3949 ac_cv_type_getgroups
=cross
3951 cat > conftest.
$ac_ext <<EOF
3952 #line 3953 "configure"
3953 #include "confdefs.h"
3955 /* Thanks to Mike Rendell for this test. */
3956 #include <sys/types.h>
3959 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3964 union { gid_t gval; long lval; } val;
3967 for (i = 0; i < NGID; i++)
3968 gidset[i] = val.gval;
3969 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3971 /* Exit non-zero if getgroups seems to require an array of ints. This
3972 happens when gid_t is short but getgroups modifies an array of ints. */
3973 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3977 if { (eval echo configure
:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3979 ac_cv_type_getgroups
=gid_t
3981 echo "configure: failed program was:" >&5
3982 cat conftest.
$ac_ext >&5
3984 ac_cv_type_getgroups
=int
3989 if test $ac_cv_type_getgroups = cross
; then
3990 cat > conftest.
$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3996 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3998 ac_cv_type_getgroups
=gid_t
4001 ac_cv_type_getgroups
=int
4008 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
4009 cat >> confdefs.h
<<EOF
4010 #define GETGROUPS_T $ac_cv_type_getgroups
4014 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4015 echo "configure:4016: checking for mode_t" >&5
4016 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4019 cat > conftest.
$ac_ext <<EOF
4020 #line 4021 "configure"
4021 #include "confdefs.h"
4022 #include <sys/types.h>
4028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4029 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4031 ac_cv_type_mode_t
=yes
4034 ac_cv_type_mode_t
=no
4039 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4040 if test $ac_cv_type_mode_t = no
; then
4041 cat >> confdefs.h
<<\EOF
4047 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4048 echo "configure:4049: checking for off_t" >&5
4049 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 cat > conftest.
$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 #include <sys/types.h>
4061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4062 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4064 ac_cv_type_off_t
=yes
4072 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4073 if test $ac_cv_type_off_t = no
; then
4074 cat >> confdefs.h
<<\EOF
4080 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4081 echo "configure:4082: checking for pid_t" >&5
4082 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6
4085 cat > conftest.
$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4088 #include <sys/types.h>
4094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4097 ac_cv_type_pid_t
=yes
4105 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4106 if test $ac_cv_type_pid_t = no
; then
4107 cat >> confdefs.h
<<\EOF
4113 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4114 echo "configure:4115: checking return type of signal handlers" >&5
4115 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4116 echo $ac_n "(cached) $ac_c" 1>&6
4118 cat > conftest.
$ac_ext <<EOF
4119 #line 4120 "configure"
4120 #include "confdefs.h"
4121 #include <sys/types.h>
4127 extern "C" void (*signal (int, void (*)(int)))(int);
4129 void (*signal ()) ();
4136 if { (eval echo configure
:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4138 ac_cv_type_signal
=void
4140 echo "configure: failed program was:" >&5
4141 cat conftest.
$ac_ext >&5
4143 ac_cv_type_signal
=int
4148 echo "$ac_t""$ac_cv_type_signal" 1>&6
4149 cat >> confdefs.h
<<EOF
4150 #define RETSIGTYPE $ac_cv_type_signal
4154 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4155 echo "configure:4156: checking for size_t" >&5
4156 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4157 echo $ac_n "(cached) $ac_c" 1>&6
4159 cat > conftest.
$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 #include <sys/types.h>
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4171 ac_cv_type_size_t
=yes
4174 ac_cv_type_size_t
=no
4179 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4180 if test $ac_cv_type_size_t = no
; then
4181 cat >> confdefs.h
<<\EOF
4182 #define size_t unsigned
4187 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4188 echo "configure:4189: checking for uid_t in sys/types.h" >&5
4189 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 cat > conftest.
$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4195 #include <sys/types.h>
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 egrep "uid_t" >/dev
/null
2>&1; then
4200 ac_cv_type_uid_t
=yes
4209 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4210 if test $ac_cv_type_uid_t = no
; then
4211 cat >> confdefs.h
<<\EOF
4215 cat >> confdefs.h
<<\EOF
4222 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
4224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4225 echo "configure:4226: checking for $ac_func" >&5
4226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4227 echo $ac_n "(cached) $ac_c" 1>&6
4229 cat > conftest.
$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4232 /* System header to define __stub macros and hopefully few prototypes,
4233 which can conflict with char $ac_func(); below. */
4235 /* Override any gcc2 internal prototype to avoid an error. */
4236 /* We use char because int might match the return type of a gcc2
4237 builtin and then its argument prototype would still apply. */
4242 /* The GNU C library defines this for functions which it implements
4243 to always fail with ENOSYS. Some functions are actually named
4244 something starting with __ and the normal name is an alias. */
4245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4253 if { (eval echo configure
:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4255 eval "ac_cv_func_$ac_func=yes"
4257 echo "configure: failed program was:" >&5
4258 cat conftest.
$ac_ext >&5
4260 eval "ac_cv_func_$ac_func=no"
4265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4266 echo "$ac_t""yes" 1>&6
4267 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4268 cat >> confdefs.h
<<EOF
4269 #define $ac_tr_func 1
4273 echo "$ac_t""no" 1>&6
4278 for ac_hdr
in fcntl.h stdlib.h string.h
strings.h sys
/ioctl.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
4280 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4281 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4282 echo "configure:4283: checking for $ac_hdr" >&5
4283 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4286 cat > conftest.
$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4291 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4292 { (eval echo configure
:4293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4293 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4294 if test -z "$ac_err"; then
4296 eval "ac_cv_header_$ac_safe=yes"
4299 echo "configure: failed program was:" >&5
4300 cat conftest.
$ac_ext >&5
4302 eval "ac_cv_header_$ac_safe=no"
4306 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4307 echo "$ac_t""yes" 1>&6
4308 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4309 cat >> confdefs.h
<<EOF
4310 #define $ac_tr_hdr 1
4314 echo "$ac_t""no" 1>&6
4319 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4321 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4322 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4323 echo "configure:4324: checking for $ac_hdr that defines DIR" >&5
4324 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4327 cat > conftest.
$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 #include <sys/types.h>
4336 if { (eval echo configure
:4337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4338 eval "ac_cv_header_dirent_$ac_safe=yes"
4340 echo "configure: failed program was:" >&5
4341 cat conftest.
$ac_ext >&5
4343 eval "ac_cv_header_dirent_$ac_safe=no"
4347 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4349 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4350 cat >> confdefs.h
<<EOF
4351 #define $ac_tr_hdr 1
4353 ac_header_dirent
=$ac_hdr; break
4355 echo "$ac_t""no" 1>&6
4358 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4359 if test $ac_header_dirent = dirent.h
; then
4360 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4361 echo "configure:4362: checking for opendir in -ldir" >&5
4362 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4366 ac_save_LIBS
="$LIBS"
4368 cat > conftest.
$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4371 /* Override any gcc2 internal prototype to avoid an error. */
4372 /* We use char because int might match the return type of a gcc2
4373 builtin and then its argument prototype would still apply. */
4380 if { (eval echo configure
:4381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4382 eval "ac_cv_lib_$ac_lib_var=yes"
4384 echo "configure: failed program was:" >&5
4385 cat conftest.
$ac_ext >&5
4387 eval "ac_cv_lib_$ac_lib_var=no"
4390 LIBS
="$ac_save_LIBS"
4393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4394 echo "$ac_t""yes" 1>&6
4397 echo "$ac_t""no" 1>&6
4401 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4402 echo "configure:4403: checking for opendir in -lx" >&5
4403 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 ac_save_LIBS
="$LIBS"
4409 cat > conftest.
$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* Override any gcc2 internal prototype to avoid an error. */
4413 /* We use char because int might match the return type of a gcc2
4414 builtin and then its argument prototype would still apply. */
4421 if { (eval echo configure
:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4423 eval "ac_cv_lib_$ac_lib_var=yes"
4425 echo "configure: failed program was:" >&5
4426 cat conftest.
$ac_ext >&5
4428 eval "ac_cv_lib_$ac_lib_var=no"
4431 LIBS
="$ac_save_LIBS"
4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4438 echo "$ac_t""no" 1>&6
4445 echo $ac_n "checking for struct termios""... $ac_c" 1>&6
4446 echo "configure:4447: checking for struct termios" >&5
4447 if eval "test \"`echo '$''{'ac_cv_termios_struct'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 cat > conftest.
$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 #include <sys/types.h>
4454 #include <sys/termios.h>
4456 static struct termios x;
4464 if { (eval echo configure
:4465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4466 ac_cv_termios_struct
=yes
4468 echo "configure: failed program was:" >&5
4469 cat conftest.
$ac_ext >&5
4471 ac_cv_termios_struct
=no
4476 echo "$ac_t""$ac_cv_termios_struct" 1>&6
4477 if test $ac_cv_termios_struct = yes; then
4478 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
4481 if test "$ac_cv_termios_struct" = "yes"; then
4482 echo $ac_n "checking for c_line field in struct termios""... $ac_c" 1>&6
4483 echo "configure:4484: checking for c_line field in struct termios" >&5
4484 if eval "test \"`echo '$''{'ac_cv_termios_cline'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4487 cat > conftest.
$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4490 #include <sys/types.h>
4491 #include <sys/termios.h>
4493 static struct termios x; x.c_line = 0;
4496 if { (eval echo configure
:4497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4498 ac_cv_termios_cline
=yes
4500 echo "configure: failed program was:" >&5
4501 cat conftest.
$ac_ext >&5
4503 ac_cv_termios_cline
=no
4509 echo "$ac_t""$ac_cv_termios_cline" 1>&6
4510 if test $ac_cv_termios_cline = yes; then
4511 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
4514 ac_cv_termios_cline
=no
4517 if test "$ac_cv_termios_struct" != "yes"; then
4518 echo $ac_n "checking for struct termio""... $ac_c" 1>&6
4519 echo "configure:4520: checking for struct termio" >&5
4520 if eval "test \"`echo '$''{'ac_cv_termio_struct'+set}'`\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4523 cat > conftest.
$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4526 #include <sys/types.h>
4527 #include <sys/termio.h>
4529 static struct termio x;
4537 if { (eval echo configure
:4538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4539 ac_cv_termio_struct
=yes
4541 echo "configure: failed program was:" >&5
4542 cat conftest.
$ac_ext >&5
4544 ac_cv_termio_struct
=no
4549 echo "$ac_t""$ac_cv_termio_struct" 1>&6
4550 if test $ac_cv_termio_struct = yes; then
4551 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
4554 ac_cv_termio_struct
=no
4557 if test "$ac_cv_termio_struct" = "yes"; then
4558 echo $ac_n "checking for c_line field in struct termio""... $ac_c" 1>&6
4559 echo "configure:4560: checking for c_line field in struct termio" >&5
4560 if eval "test \"`echo '$''{'ac_cv_termio_cline'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4563 cat > conftest.
$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4566 #include <sys/types.h>
4567 #include <sys/termio.h>
4569 static struct termio x; x.c_line = 0;
4572 if { (eval echo configure
:4573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4574 ac_cv_termio_cline
=yes
4576 echo "configure: failed program was:" >&5
4577 cat conftest.
$ac_ext >&5
4579 ac_cv_termio_cline
=no
4585 echo "$ac_t""$ac_cv_termio_cline" 1>&6
4586 if test $ac_cv_termio_cline = yes; then
4587 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
4590 ac_cv_termio_cline
=no
4594 echo $ac_n "checking for /dev/zero""... $ac_c" 1>&6
4595 echo "configure:4596: checking for /dev/zero" >&5
4596 if eval "test \"`echo '$''{'ac_cv_devzero'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 if test "$cross_compiling" = yes; then
4602 cat > conftest.
$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4609 int fd = open ("/dev/zero", O_RDONLY);
4612 for (i = 0; i < sizeof (buf); i++)
4614 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
4616 for (i = 0; i < sizeof (buf); i++)
4622 if { (eval echo configure
:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4626 echo "configure: failed program was:" >&5
4627 cat conftest.
$ac_ext >&5
4636 echo "$ac_t""$ac_cv_devzero" 1>&6
4637 if test $ac_cv_devzero = yes; then
4638 sim_devzero
="-DHAVE_DEVZERO"
4643 echo $ac_n "checking for common simulator directory""... $ac_c" 1>&6
4644 echo "configure:4645: checking for common simulator directory" >&5
4645 if test -f "${srcdir}/../common/callback.c"; then
4646 echo "$ac_t""yes" 1>&6
4647 sim_callback
="callback.o targ-map.o"
4648 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
4650 echo "$ac_t""no" 1>&6
4655 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4656 echo "configure:4657: checking for Cygwin environment" >&5
4657 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 cat > conftest.
$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4667 #define __CYGWIN__ __CYGWIN32__
4672 if { (eval echo configure
:4673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4676 echo "configure: failed program was:" >&5
4677 cat conftest.
$ac_ext >&5
4685 echo "$ac_t""$ac_cv_cygwin" 1>&6
4687 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
4688 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4689 echo "configure:4690: checking for mingw32 environment" >&5
4690 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4693 cat > conftest.
$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4701 if { (eval echo configure
:4702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4705 echo "configure: failed program was:" >&5
4706 cat conftest.
$ac_ext >&5
4714 echo "$ac_t""$ac_cv_mingw32" 1>&6
4716 test "$ac_cv_mingw32" = yes && MINGW32
=yes
4719 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4720 echo "configure:4721: checking for executable suffix" >&5
4721 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4724 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4728 echo 'int main () { return 0; }' > conftest.
$ac_ext
4730 if { (eval echo configure
:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4731 for file in conftest.
*; do
4733 *.c |
*.o |
*.obj
) ;;
4734 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4738 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4741 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4746 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4747 echo "$ac_t""${ac_cv_exeext}" 1>&6
4756 # Extract the first word of "ranlib", so it can be a program name with args.
4757 set dummy ranlib
; ac_word
=$2
4758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4759 echo "configure:4760: checking for $ac_word" >&5
4760 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4763 if test -n "$RANLIB"; then
4764 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4766 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4768 for ac_dir
in $ac_dummy; do
4769 test -z "$ac_dir" && ac_dir
=.
4770 if test -f $ac_dir/$ac_word; then
4771 ac_cv_prog_RANLIB
="ranlib"
4776 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
4779 RANLIB
="$ac_cv_prog_RANLIB"
4780 if test -n "$RANLIB"; then
4781 echo "$ac_t""$RANLIB" 1>&6
4783 echo "$ac_t""no" 1>&6
4830 cat > confcache
<<\EOF
4831 # This file is a shell script that caches the results of configure
4832 # tests run on this system so they can be shared between configure
4833 # scripts and configure runs. It is not useful on other systems.
4834 # If it contains results you don't want to keep, you may remove or edit it.
4836 # By default, configure uses ./config.cache as the cache file,
4837 # creating it if it does not exist already. You can give configure
4838 # the --cache-file=FILE option to use a different cache file; that is
4839 # what configure does when it calls configure scripts in
4840 # subdirectories, so they share the cache.
4841 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4842 # config.status only pays attention to the cache file if you give it the
4843 # --recheck option to rerun configure.
4846 # The following way of writing the cache mishandles newlines in values,
4847 # but we know of no workaround that is simple, portable, and efficient.
4848 # So, don't put newlines in cache variables' values.
4849 # Ultrix sh set writes to stderr and can't be redirected directly,
4850 # and sets the high bit in the cache file unless we assign to the vars.
4852 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4854 # `set' does not quote correctly, so add quotes (double-quote substitution
4855 # turns \\\\ into \\, and sed turns \\ into \).
4857 -e "s/'/'\\\\''/g" \
4858 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4861 # `set' quotes correctly as required by POSIX, so do not add quotes.
4862 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4865 if cmp -s $cache_file confcache
; then
4868 if test -w $cache_file; then
4869 echo "updating cache $cache_file"
4870 cat confcache
> $cache_file
4872 echo "not updating unwritable cache $cache_file"
4877 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4879 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4880 # Let make expand exec_prefix.
4881 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4883 # Any assignment to VPATH causes Sun make to only execute
4884 # the first set of double-colon rules, so remove it if not needed.
4885 # If there is a colon in the path, we need to keep it.
4886 if test "x$srcdir" = x.
; then
4887 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4890 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4892 DEFS
=-DHAVE_CONFIG_H
4894 # Without the "./", some shells look in PATH for config.status.
4895 : ${CONFIG_STATUS=./config.status}
4897 echo creating
$CONFIG_STATUS
4898 rm -f $CONFIG_STATUS
4899 cat > $CONFIG_STATUS <<EOF
4901 # Generated automatically by configure.
4902 # Run this file to recreate the current configuration.
4903 # This directory was configured as follows,
4904 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4906 # $0 $ac_configure_args
4908 # Compiler output produced by configure, useful for debugging
4909 # configure, is in ./config.log if it exists.
4911 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4914 case "\$ac_option" in
4915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4916 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4917 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4918 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4919 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4921 -help | --help | --hel | --he | --h)
4922 echo "\$ac_cs_usage"; exit 0 ;;
4923 *) echo "\$ac_cs_usage"; exit 1 ;;
4927 ac_given_srcdir=$srcdir
4928 ac_given_INSTALL="$INSTALL"
4930 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4932 cat >> $CONFIG_STATUS <<EOF
4934 # Protect against being on the right side of a sed subst in config.status.
4935 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4936 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4939 s%@sim_environment@%$sim_environment%g
4940 s%@sim_alignment@%$sim_alignment%g
4941 s%@sim_assert@%$sim_assert%g
4942 s%@sim_bitsize@%$sim_bitsize%g
4943 s%@sim_endian@%$sim_endian%g
4944 s%@sim_hostendian@%$sim_hostendian%g
4945 s%@sim_float@%$sim_float%g
4946 s%@sim_scache@%$sim_scache%g
4947 s%@sim_default_model@%$sim_default_model%g
4948 s%@sim_hw_cflags@%$sim_hw_cflags%g
4949 s%@sim_hw_objs@%$sim_hw_objs%g
4950 s%@sim_hw@%$sim_hw%g
4951 s%@sim_inline@%$sim_inline%g
4952 s%@sim_packages@%$sim_packages%g
4953 s%@sim_regparm@%$sim_regparm%g
4954 s%@sim_reserved_bits@%$sim_reserved_bits%g
4955 s%@sim_smp@%$sim_smp%g
4956 s%@sim_stdcall@%$sim_stdcall%g
4957 s%@sim_xor_endian@%$sim_xor_endian%g
4958 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4959 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
4961 s%@CFLAGS@%$CFLAGS%g
4962 s%@CPPFLAGS@%$CPPFLAGS%g
4963 s%@CXXFLAGS@%$CXXFLAGS%g
4964 s%@FFLAGS@%$FFLAGS%g
4966 s%@LDFLAGS@%$LDFLAGS%g
4968 s%@exec_prefix@%$exec_prefix%g
4969 s%@prefix@%$prefix%g
4970 s%@program_transform_name@%$program_transform_name%g
4971 s%@bindir@%$bindir%g
4972 s%@sbindir@%$sbindir%g
4973 s%@libexecdir@%$libexecdir%g
4974 s%@datadir@%$datadir%g
4975 s%@sysconfdir@%$sysconfdir%g
4976 s%@sharedstatedir@%$sharedstatedir%g
4977 s%@localstatedir@%$localstatedir%g
4978 s%@libdir@%$libdir%g
4979 s%@includedir@%$includedir%g
4980 s%@oldincludedir@%$oldincludedir%g
4981 s%@infodir@%$infodir%g
4982 s%@mandir@%$mandir%g
4983 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4984 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4985 s%@INSTALL_DATA@%$INSTALL_DATA%g
4987 s%@SET_MAKE@%$SET_MAKE%g
4988 s%@RANLIB@%$RANLIB%g
4990 s%@ALLOCA@%$ALLOCA%g
4991 s%@USE_NLS@%$USE_NLS%g
4992 s%@MSGFMT@%$MSGFMT%g
4993 s%@GMSGFMT@%$GMSGFMT%g
4994 s%@XGETTEXT@%$XGETTEXT%g
4995 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4996 s%@CATALOGS@%$CATALOGS%g
4997 s%@CATOBJEXT@%$CATOBJEXT%g
4998 s%@DATADIRNAME@%$DATADIRNAME%g
4999 s%@GMOFILES@%$GMOFILES%g
5000 s%@INSTOBJEXT@%$INSTOBJEXT%g
5001 s%@INTLDEPS@%$INTLDEPS%g
5002 s%@INTLLIBS@%$INTLLIBS%g
5003 s%@INTLOBJS@%$INTLOBJS%g
5004 s%@POFILES@%$POFILES%g
5006 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5008 s%@GT_YES@%$GT_YES%g
5009 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5012 s%@host_alias@%$host_alias%g
5013 s%@host_cpu@%$host_cpu%g
5014 s%@host_vendor@%$host_vendor%g
5015 s%@host_os@%$host_os%g
5016 s%@target@%$target%g
5017 s%@target_alias@%$target_alias%g
5018 s%@target_cpu@%$target_cpu%g
5019 s%@target_vendor@%$target_vendor%g
5020 s%@target_os@%$target_os%g
5022 s%@build_alias@%$build_alias%g
5023 s%@build_cpu@%$build_cpu%g
5024 s%@build_vendor@%$build_vendor%g
5025 s%@build_os@%$build_os%g
5026 s%@LIBOBJS@%$LIBOBJS%g
5027 s%@EXEEXT@%$EXEEXT%g
5028 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5029 s%@HDEFINES@%$HDEFINES%g
5031 s%@sim_cflags@%$sim_cflags%g
5032 s%@sim_warnings@%$sim_warnings%g
5033 s%@sim_line_nr@%$sim_line_nr%g
5034 s%@sim_config@%$sim_config%g
5035 s%@sim_opcode@%$sim_opcode%g
5036 s%@sim_switch@%$sim_switch%g
5037 s%@sim_dup@%$sim_dup%g
5038 s%@sim_decode_mechanism@%$sim_decode_mechanism%g
5039 s%@sim_jump@%$sim_jump%g
5040 s%@sim_filter@%$sim_filter%g
5041 s%@sim_icache@%$sim_icache%g
5042 s%@sim_hw_src@%$sim_hw_src%g
5043 s%@sim_hw_obj@%$sim_hw_obj%g
5044 s%@sim_pk_src@%$sim_pk_src%g
5045 s%@sim_pk_obj@%$sim_pk_obj%g
5046 s%@sim_bswap@%$sim_bswap%g
5047 s%@sim_igen_smp@%$sim_igen_smp%g
5048 s%@sim_hostbitsize@%$sim_hostbitsize%g
5049 s%@sim_env@%$sim_env%g
5050 s%@sim_timebase@%$sim_timebase%g
5051 s%@sim_trace@%$sim_trace%g
5052 s%@sim_reserved@%$sim_reserved%g
5053 s%@sim_monitor@%$sim_monitor%g
5054 s%@sim_model@%$sim_model%g
5055 s%@sim_model_issue@%$sim_model_issue%g
5056 s%@sim_stdio@%$sim_stdio%g
5057 s%@sim_termio@%$sim_termio%g
5058 s%@sim_devzero@%$sim_devzero%g
5059 s%@sim_callback@%$sim_callback%g
5060 s%@sim_targ_vals@%$sim_targ_vals%g
5065 cat >> $CONFIG_STATUS <<\EOF
5067 # Split the substitutions into bite-sized pieces for seds with
5068 # small command number limits, like on Digital OSF/1 and HP-UX.
5069 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5070 ac_file
=1 # Number of current file.
5071 ac_beg
=1 # First line for current file.
5072 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5075 while $ac_more_lines; do
5076 if test $ac_beg -gt 1; then
5077 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5079 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5081 if test ! -s conftest.s
$ac_file; then
5083 rm -f conftest.s
$ac_file
5085 if test -z "$ac_sed_cmds"; then
5086 ac_sed_cmds
="sed -f conftest.s$ac_file"
5088 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5090 ac_file
=`expr $ac_file + 1`
5092 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5095 if test -z "$ac_sed_cmds"; then
5100 cat >> $CONFIG_STATUS <<EOF
5102 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5104 cat >> $CONFIG_STATUS <<\EOF
5105 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5108 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5109 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5110 *) ac_file_in
="${ac_file}.in" ;;
5113 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5115 # Remove last slash and all that follows it. Not all systems have dirname.
5116 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5117 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5118 # The file is in a subdirectory.
5119 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5120 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5121 # A "../" for each directory in $ac_dir_suffix.
5122 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5124 ac_dir_suffix
= ac_dots
=
5127 case "$ac_given_srcdir" in
5129 if test -z "$ac_dots"; then top_srcdir
=.
5130 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5131 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5133 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5134 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5137 case "$ac_given_INSTALL" in
5138 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5139 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5142 echo creating
"$ac_file"
5144 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5146 *Makefile
*) ac_comsub
="1i\\
5147 # $configure_input" ;;
5151 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5153 s%@configure_input@%$configure_input%g
5154 s%@srcdir@%$srcdir%g
5155 s%@top_srcdir@%$top_srcdir%g
5156 s%@INSTALL@%$INSTALL%g
5157 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5161 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5162 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5164 # ac_d sets the value in "#define NAME VALUE" lines.
5165 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5166 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5169 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5170 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5171 ac_uB
='\([ ]\)%\1#\2define\3'
5174 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5175 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5176 ac_eB
='$%\1#\2define\3'
5180 if test "${CONFIG_HEADERS+set}" != set; then
5182 cat >> $CONFIG_STATUS <<EOF
5183 CONFIG_HEADERS="config.h:config.in"
5185 cat >> $CONFIG_STATUS <<\EOF
5187 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5188 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5190 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5191 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5192 *) ac_file_in
="${ac_file}.in" ;;
5195 echo creating
$ac_file
5197 rm -f conftest.frag conftest.
in conftest.out
5198 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5199 cat $ac_file_inputs > conftest.
in
5203 # Transform confdefs.h into a sed script conftest.vals that substitutes
5204 # the proper values into config.h.in to produce config.h. And first:
5205 # Protect against being on the right side of a sed subst in config.status.
5206 # Protect against being in an unquoted here document in config.status.
5208 cat > conftest.hdr
<<\EOF
5211 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5215 sed -n -f conftest.hdr confdefs.h > conftest.vals
5218 # This sed command replaces #undef with comments. This is necessary, for
5219 # example, in the case of _POSIX_SOURCE, which is predefined and required
5220 # on some systems where configure will not decide to define it.
5221 cat >> conftest.vals <<\EOF
5222 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5225 # Break up conftest.vals because some shells have a limit on
5226 # the size of here documents, and old seds have small limits too.
5231 ac_lines=`grep -c . conftest.vals
`
5232 # grep -c gives empty output for an empty file on some AIX systems.
5233 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5234 # Write a limited-size here document to conftest.frag.
5235 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5236 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5238 sed -f conftest.frag conftest.in > conftest.out
5240 mv conftest.out conftest.in
5242 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5244 mv conftest.tail conftest.vals
5248 cat >> $CONFIG_STATUS <<\EOF
5249 rm -f conftest.frag conftest.h
5250 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5251 cat conftest.in >> conftest.h
5253 if cmp -s $ac_file conftest.h 2>/dev/null; then
5254 echo "$ac_file is unchanged"
5257 # Remove last slash and all that follows it. Not all systems have dirname.
5258 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5259 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5260 # The file is in a subdirectory.
5261 test ! -d "$ac_dir" && mkdir "$ac_dir"
5264 mv conftest.h $ac_file
5269 cat >> $CONFIG_STATUS <<EOF
5272 cat >> $CONFIG_STATUS <<\EOF
5273 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
5276 chmod +x $CONFIG_STATUS
5277 rm -fr confdefs* $ac_clean_files
5278 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1