45 sim_inline
="-DDEFAULT_INLINE=0"
81 # This file is derived from `gettext.m4'. The difference is that the
82 # included macros assume Cygnus-style source and build trees.
84 # Macro to add for using GNU gettext.
85 # Ulrich Drepper <drepper@cygnus.com>, 1995.
87 # This file file be copied and used freely without restrictions. It can
88 # be used in projects which are not available under the GNU Public License
89 # but which still want to provide support for the GNU gettext functionality.
90 # Please note that the actual code is *not* freely available.
98 # Search path for a program which passes the given test.
99 # Ulrich Drepper <drepper@cygnus.com>, 1996.
101 # This file file be copied and used freely without restrictions. It can
102 # be used in projects which are not available under the GNU Public License
103 # but which still want to provide support for the GNU gettext functionality.
104 # Please note that the actual code is *not* freely available.
110 # Check whether LC_MESSAGES is available in <locale.h>.
111 # Ulrich Drepper <drepper@cygnus.com>, 1995.
113 # This file file be copied and used freely without restrictions. It can
114 # be used in projects which are not available under the GNU Public License
115 # but which still want to provide support for the GNU gettext functionality.
116 # Please note that the actual code is *not* freely available.
125 # Guess values for system-dependent variables and create Makefiles.
126 # Generated automatically using autoconf version 2.13
127 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
129 # This configure script is free software; the Free Software Foundation
130 # gives unlimited permission to copy, distribute and modify it.
134 ac_default_prefix
=/usr
/local
135 # Any additions from configure.in:
137 --disable-nls do not use Native Language Support"
139 --with-included-gettext use the GNU gettext library included here"
141 --enable-maintainer-mode Enable developer functionality."
143 --enable-sim-bswap Use Host specific BSWAP instruction."
145 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
147 --enable-sim-debug=opts Enable debugging flags"
149 --enable-sim-stdio Specify whether to use stdio for console input/output."
151 --enable-sim-trace=opts Enable tracing flags"
153 --enable-sim-profile=opts Enable profiling flags"
155 --enable-sim-endian=endian Specify target byte endian orientation."
157 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
159 --enable-sim-hostendian=end Specify host byte endian orientation."
161 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
163 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
165 --enable-sim-bitsize=N Specify target bitsize (32 or 64)."
167 --enable-sim-inline=inlines Specify which functions should be inlined."
169 --enable-sim-hardware=LIST Specify the hardware to be included in the build."
171 --enable-sim-common Enable common simulator"
173 # Initialize some variables set by options.
174 # The variables have the same names as the options, with
175 # dashes changed to underlines.
177 cache_file
=.
/config.cache
186 program_transform_name
=s
,x
,x
,
195 bindir
='${exec_prefix}/bin'
196 sbindir
='${exec_prefix}/sbin'
197 libexecdir
='${exec_prefix}/libexec'
198 datadir
='${prefix}/share'
199 sysconfdir
='${prefix}/etc'
200 sharedstatedir
='${prefix}/com'
201 localstatedir
='${prefix}/var'
202 libdir
='${exec_prefix}/lib'
203 includedir
='${prefix}/include'
204 oldincludedir
='/usr/include'
205 infodir
='${prefix}/info'
206 mandir
='${prefix}/man'
208 # Initialize some other variables.
211 SHELL
=${CONFIG_SHELL-/bin/sh}
212 # Maximum number of lines to put in a shell here document.
219 # If the previous option needs an argument, assign it.
220 if test -n "$ac_prev"; then
221 eval "$ac_prev=\$ac_option"
227 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
231 # Accept the important Cygnus configure options, so we can diagnose typos.
235 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
237 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
238 bindir
="$ac_optarg" ;;
240 -build |
--build |
--buil |
--bui |
--bu)
242 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
243 build
="$ac_optarg" ;;
245 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
246 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
247 ac_prev
=cache_file
;;
248 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
249 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
250 cache_file
="$ac_optarg" ;;
252 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
254 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
256 datadir
="$ac_optarg" ;;
258 -disable-* |
--disable-*)
259 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
260 # Reject names that are not valid shell variable names.
261 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
262 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
264 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
265 eval "enable_${ac_feature}=no" ;;
267 -enable-* |
--enable-*)
268 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
269 # Reject names that are not valid shell variable names.
270 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
271 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
273 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
278 eval "enable_${ac_feature}='$ac_optarg'" ;;
280 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
281 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
282 |
--exec |
--exe |
--ex)
283 ac_prev
=exec_prefix
;;
284 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
285 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
286 |
--exec=* |
--exe=* |
--ex=*)
287 exec_prefix
="$ac_optarg" ;;
289 -gas |
--gas |
--ga |
--g)
290 # Obsolete; use --with-gas.
293 -help |
--help |
--hel |
--he)
294 # Omit some internal or obsolete options to make the list less imposing.
295 # This message is too long to be a string in the A/UX 3.1 sh.
297 Usage: configure [options] [host]
298 Options: [defaults in brackets after descriptions]
300 --cache-file=FILE cache test results in FILE
301 --help print this message
302 --no-create do not create output files
303 --quiet, --silent do not print \`checking...' messages
304 --site-file=FILE use FILE as the site file
305 --version print the version of autoconf that created configure
306 Directory and file names:
307 --prefix=PREFIX install architecture-independent files in PREFIX
309 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
311 --bindir=DIR user executables in DIR [EPREFIX/bin]
312 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
313 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
314 --datadir=DIR read-only architecture-independent data in DIR
316 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
317 --sharedstatedir=DIR modifiable architecture-independent data in DIR
319 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
320 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
321 --includedir=DIR C header files in DIR [PREFIX/include]
322 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
323 --infodir=DIR info documentation in DIR [PREFIX/info]
324 --mandir=DIR man documentation in DIR [PREFIX/man]
325 --srcdir=DIR find the sources in DIR [configure dir or ..]
326 --program-prefix=PREFIX prepend PREFIX to installed program names
327 --program-suffix=SUFFIX append SUFFIX to installed program names
328 --program-transform-name=PROGRAM
329 run sed PROGRAM on installed program names
333 --build=BUILD configure for building on BUILD [BUILD=HOST]
334 --host=HOST configure for HOST [guessed]
335 --target=TARGET configure for TARGET [TARGET=HOST]
336 Features and packages:
337 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
338 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
339 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
340 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
341 --x-includes=DIR X include files are in DIR
342 --x-libraries=DIR X library files are in DIR
344 if test -n "$ac_help"; then
345 echo "--enable and --with options recognized:$ac_help"
349 -host |
--host |
--hos |
--ho)
351 -host=* |
--host=* |
--hos=* |
--ho=*)
354 -includedir |
--includedir |
--includedi |
--included |
--include \
355 |
--includ |
--inclu |
--incl |
--inc)
356 ac_prev
=includedir
;;
357 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
358 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
359 includedir
="$ac_optarg" ;;
361 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
363 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
364 infodir
="$ac_optarg" ;;
366 -libdir |
--libdir |
--libdi |
--libd)
368 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
369 libdir
="$ac_optarg" ;;
371 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
372 |
--libexe |
--libex |
--libe)
373 ac_prev
=libexecdir
;;
374 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
375 |
--libexe=* |
--libex=* |
--libe=*)
376 libexecdir
="$ac_optarg" ;;
378 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
379 |
--localstate |
--localstat |
--localsta |
--localst \
380 |
--locals |
--local |
--loca |
--loc |
--lo)
381 ac_prev
=localstatedir
;;
382 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
383 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
384 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
385 localstatedir
="$ac_optarg" ;;
387 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
389 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
390 mandir
="$ac_optarg" ;;
393 # Obsolete; use --without-fp.
396 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
400 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
401 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
404 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
405 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
406 |
--oldin |
--oldi |
--old |
--ol |
--o)
407 ac_prev
=oldincludedir
;;
408 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
409 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
410 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
411 oldincludedir
="$ac_optarg" ;;
413 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
415 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
416 prefix
="$ac_optarg" ;;
418 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
419 |
--program-pre |
--program-pr |
--program-p)
420 ac_prev
=program_prefix
;;
421 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
422 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
423 program_prefix
="$ac_optarg" ;;
425 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
426 |
--program-suf |
--program-su |
--program-s)
427 ac_prev
=program_suffix
;;
428 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
429 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
430 program_suffix
="$ac_optarg" ;;
432 -program-transform-name |
--program-transform-name \
433 |
--program-transform-nam |
--program-transform-na \
434 |
--program-transform-n |
--program-transform- \
435 |
--program-transform |
--program-transfor \
436 |
--program-transfo |
--program-transf \
437 |
--program-trans |
--program-tran \
438 |
--progr-tra |
--program-tr |
--program-t)
439 ac_prev
=program_transform_name
;;
440 -program-transform-name=* |
--program-transform-name=* \
441 |
--program-transform-nam=* |
--program-transform-na=* \
442 |
--program-transform-n=* |
--program-transform-=* \
443 |
--program-transform=* |
--program-transfor=* \
444 |
--program-transfo=* |
--program-transf=* \
445 |
--program-trans=* |
--program-tran=* \
446 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
447 program_transform_name
="$ac_optarg" ;;
449 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
450 |
-silent |
--silent |
--silen |
--sile |
--sil)
453 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
455 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
457 sbindir
="$ac_optarg" ;;
459 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
460 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
461 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
463 ac_prev
=sharedstatedir
;;
464 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
465 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
466 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
468 sharedstatedir
="$ac_optarg" ;;
470 -site |
--site |
--sit)
472 -site=* |
--site=* |
--sit=*)
475 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
477 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
478 sitefile
="$ac_optarg" ;;
480 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
482 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
483 srcdir
="$ac_optarg" ;;
485 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
486 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
487 ac_prev
=sysconfdir
;;
488 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
489 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
490 sysconfdir
="$ac_optarg" ;;
492 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
494 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
495 target
="$ac_optarg" ;;
497 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
500 -version |
--version |
--versio |
--versi |
--vers)
501 echo "configure generated by autoconf version 2.13"
505 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
506 # Reject names that are not valid shell variable names.
507 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
508 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
510 ac_package
=`echo $ac_package| sed 's/-/_/g'`
515 eval "with_${ac_package}='$ac_optarg'" ;;
517 -without-* |
--without-*)
518 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
519 # Reject names that are not valid shell variable names.
520 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
521 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
523 ac_package
=`echo $ac_package| sed 's/-/_/g'`
524 eval "with_${ac_package}=no" ;;
527 # Obsolete; use --with-x.
530 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
531 |
--x-incl |
--x-inc |
--x-in |
--x-i)
532 ac_prev
=x_includes
;;
533 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
534 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
535 x_includes
="$ac_optarg" ;;
537 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
538 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
539 ac_prev
=x_libraries
;;
540 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
541 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
542 x_libraries
="$ac_optarg" ;;
544 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
548 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
549 echo "configure: warning: $ac_option: invalid host type" 1>&2
551 if test "x$nonopt" != xNONE
; then
552 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
560 if test -n "$ac_prev"; then
561 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
564 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
566 # File descriptor usage:
569 # 2 errors and warnings
570 # 3 some systems may open it to /dev/tty
571 # 4 used on the Kubota Titan
572 # 6 checking for... messages and results
573 # 5 compiler messages saved in config.log
574 if test "$silent" = yes; then
582 This file contains any messages produced by compilers while
583 running configure, to aid debugging if configure makes a mistake.
586 # Strip out --no-create and --no-recursion so they do not pile up.
587 # Also quote any args containing shell metacharacters.
592 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
593 |
--no-cr |
--no-c) ;;
594 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
595 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
596 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
597 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
598 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
603 # Only set these to C if already set. These must not be set unconditionally
604 # because not all systems understand e.g. LANG=C (notably SCO).
605 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
606 # Non-C LC_CTYPE values break the ctype check.
607 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
608 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
609 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
610 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
612 # confdefs.h avoids OS command line length limits that DEFS can exceed.
613 rm -rf conftest
* confdefs.h
614 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
617 # A filename unique to this package, relative to the directory that
618 # configure is in, which we can look for to find out if srcdir is correct.
619 ac_unique_file
=Makefile.
in
621 # Find the source files, if location was not specified.
622 if test -z "$srcdir"; then
623 ac_srcdir_defaulted
=yes
624 # Try the directory containing this script, then its parent.
626 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
627 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
629 if test ! -r $srcdir/$ac_unique_file; then
633 ac_srcdir_defaulted
=no
635 if test ! -r $srcdir/$ac_unique_file; then
636 if test "$ac_srcdir_defaulted" = yes; then
637 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
639 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
642 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
644 # Prefer explicitly selected file to automatically selected ones.
645 if test -z "$sitefile"; then
646 if test -z "$CONFIG_SITE"; then
647 if test "x$prefix" != xNONE
; then
648 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
650 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
654 CONFIG_SITE
="$sitefile"
656 for ac_site_file
in $CONFIG_SITE; do
657 if test -r "$ac_site_file"; then
658 echo "loading site script $ac_site_file"
663 if test -r "$cache_file"; then
664 echo "loading cache $cache_file"
667 echo "creating cache $cache_file"
672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
673 ac_cpp
='$CPP $CPPFLAGS'
674 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
675 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
676 cross_compiling
=$ac_cv_prog_cc_cross
680 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
681 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
682 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
689 ac_n
= ac_c
='\c' ac_t
=
694 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
695 echo "configure:696: checking how to run the C preprocessor" >&5
696 # On Suns, sometimes $CPP names a directory.
697 if test -n "$CPP" && test -d "$CPP"; then
700 if test -z "$CPP"; then
701 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
704 # This must be in double quotes, not single quotes, because CPP may get
705 # substituted into the Makefile and "${CC-cc}" will confuse make.
707 # On the NeXT, cc -E runs the code through the compiler's parser,
708 # not just through cpp.
709 cat > conftest.
$ac_ext <<EOF
710 #line 711 "configure"
711 #include "confdefs.h"
715 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
716 { (eval echo configure
:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
717 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
718 if test -z "$ac_err"; then
722 echo "configure: failed program was:" >&5
723 cat conftest.
$ac_ext >&5
725 CPP
="${CC-cc} -E -traditional-cpp"
726 cat > conftest.
$ac_ext <<EOF
727 #line 728 "configure"
728 #include "confdefs.h"
732 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
733 { (eval echo configure
:734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
734 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
735 if test -z "$ac_err"; then
739 echo "configure: failed program was:" >&5
740 cat conftest.
$ac_ext >&5
742 CPP
="${CC-cc} -nologo -E"
743 cat > conftest.
$ac_ext <<EOF
744 #line 745 "configure"
745 #include "confdefs.h"
749 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
750 { (eval echo configure
:751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
751 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
752 if test -z "$ac_err"; then
756 echo "configure: failed program was:" >&5
757 cat conftest.
$ac_ext >&5
766 ac_cv_prog_CPP
="$CPP"
768 CPP
="$ac_cv_prog_CPP"
770 ac_cv_prog_CPP
="$CPP"
772 echo "$ac_t""$CPP" 1>&6
774 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
775 echo "configure:776: checking whether ${MAKE-make} sets \${MAKE}" >&5
776 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
777 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 cat > conftestmake
<<\EOF
782 @
echo 'ac_maketemp="${MAKE}"'
784 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
785 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
786 if test -n "$ac_maketemp"; then
787 eval ac_cv_prog_make_
${ac_make}_set
=yes
789 eval ac_cv_prog_make_
${ac_make}_set
=no
793 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
794 echo "$ac_t""yes" 1>&6
797 echo "$ac_t""no" 1>&6
798 SET_MAKE
="MAKE=${MAKE-make}"
801 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
802 echo "configure:803: checking for POSIXized ISC" >&5
803 if test -d /etc
/conf
/kconfig.d
&&
804 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
806 echo "$ac_t""yes" 1>&6
807 ISC
=yes # If later tests want to check for ISC.
808 cat >> confdefs.h
<<\EOF
809 #define _POSIX_SOURCE 1
812 if test "$GCC" = yes; then
818 echo "$ac_t""no" 1>&6
822 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
823 echo "configure:824: checking for ANSI C header files" >&5
824 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 cat > conftest.
$ac_ext <<EOF
828 #line 829 "configure"
829 #include "confdefs.h"
835 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
836 { (eval echo configure
:837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
837 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
838 if test -z "$ac_err"; then
840 ac_cv_header_stdc
=yes
843 echo "configure: failed program was:" >&5
844 cat conftest.
$ac_ext >&5
850 if test $ac_cv_header_stdc = yes; then
851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
852 cat > conftest.
$ac_ext <<EOF
853 #line 854 "configure"
854 #include "confdefs.h"
857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
858 egrep "memchr" >/dev
/null
2>&1; then
868 if test $ac_cv_header_stdc = yes; then
869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
870 cat > conftest.
$ac_ext <<EOF
871 #line 872 "configure"
872 #include "confdefs.h"
875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
876 egrep "free" >/dev
/null
2>&1; then
886 if test $ac_cv_header_stdc = yes; then
887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
888 if test "$cross_compiling" = yes; then
891 cat > conftest.
$ac_ext <<EOF
892 #line 893 "configure"
893 #include "confdefs.h"
895 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
896 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
898 int main () { int i; for (i = 0; i < 256; i++)
899 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
903 if { (eval echo configure
:904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
907 echo "configure: failed program was:" >&5
908 cat conftest.
$ac_ext >&5
918 echo "$ac_t""$ac_cv_header_stdc" 1>&6
919 if test $ac_cv_header_stdc = yes; then
920 cat >> confdefs.h
<<\EOF
921 #define STDC_HEADERS 1
926 echo $ac_n "checking for working const""... $ac_c" 1>&6
927 echo "configure:928: checking for working const" >&5
928 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
931 cat > conftest.
$ac_ext <<EOF
932 #line 933 "configure"
933 #include "confdefs.h"
937 /* Ultrix mips cc rejects this. */
938 typedef int charset[2]; const charset x;
939 /* SunOS 4.1.1 cc rejects this. */
940 char const *const *ccp;
942 /* NEC SVR4.0.2 mips cc rejects this. */
943 struct point {int x, y;};
944 static struct point const zero = {0,0};
945 /* AIX XL C 1.02.0.0 rejects this.
946 It does not let you subtract one const X* pointer from another in an arm
947 of an if-expression whose if-part is not a constant expression */
948 const char *g = "string";
949 ccp = &g + (g ? g-g : 0);
950 /* HPUX 7.0 cc rejects these. */
953 ccp = (char const *const *) p;
954 { /* SCO 3.2v4 cc rejects this. */
956 char const *s = 0 ? (char *) 0 : (char const *) 0;
960 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
962 const int *foo = &x[0];
965 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
966 typedef const int *iptr;
970 { /* AIX XL C 1.02.0.0 rejects this saying
971 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
972 struct s { int j; const int *ap[3]; };
973 struct s *b; b->j = 5;
975 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
981 if { (eval echo configure
:982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
985 echo "configure: failed program was:" >&5
986 cat conftest.
$ac_ext >&5
993 echo "$ac_t""$ac_cv_c_const" 1>&6
994 if test $ac_cv_c_const = no
; then
995 cat >> confdefs.h
<<\EOF
1001 echo $ac_n "checking for inline""... $ac_c" 1>&6
1002 echo "configure:1003: checking for inline" >&5
1003 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1007 for ac_kw
in inline __inline__ __inline
; do
1008 cat > conftest.
$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1016 if { (eval echo configure
:1017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1018 ac_cv_c_inline
=$ac_kw; break
1020 echo "configure: failed program was:" >&5
1021 cat conftest.
$ac_ext >&5
1028 echo "$ac_t""$ac_cv_c_inline" 1>&6
1029 case "$ac_cv_c_inline" in
1031 no
) cat >> confdefs.h
<<\EOF
1035 *) cat >> confdefs.h
<<EOF
1036 #define inline $ac_cv_c_inline
1041 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1042 echo "configure:1043: checking for off_t" >&5
1043 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 cat > conftest.
$ac_ext <<EOF
1047 #line 1048 "configure"
1048 #include "confdefs.h"
1049 #include <sys/types.h>
1055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1056 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1058 ac_cv_type_off_t
=yes
1066 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1067 if test $ac_cv_type_off_t = no
; then
1068 cat >> confdefs.h
<<\EOF
1074 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1075 echo "configure:1076: checking for size_t" >&5
1076 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1079 cat > conftest.
$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1082 #include <sys/types.h>
1088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1089 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1091 ac_cv_type_size_t
=yes
1094 ac_cv_type_size_t
=no
1099 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1100 if test $ac_cv_type_size_t = no
; then
1101 cat >> confdefs.h
<<\EOF
1102 #define size_t unsigned
1107 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1108 # for constant arguments. Useless!
1109 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1110 echo "configure:1111: checking for working alloca.h" >&5
1111 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1114 cat > conftest.
$ac_ext <<EOF
1115 #line 1116 "configure"
1116 #include "confdefs.h"
1119 char *p = alloca(2 * sizeof(int));
1122 if { (eval echo configure
:1123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1124 ac_cv_header_alloca_h
=yes
1126 echo "configure: failed program was:" >&5
1127 cat conftest.
$ac_ext >&5
1129 ac_cv_header_alloca_h
=no
1134 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1135 if test $ac_cv_header_alloca_h = yes; then
1136 cat >> confdefs.h
<<\EOF
1137 #define HAVE_ALLOCA_H 1
1142 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1143 echo "configure:1144: checking for alloca" >&5
1144 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 cat > conftest.
$ac_ext <<EOF
1148 #line 1149 "configure"
1149 #include "confdefs.h"
1152 # define alloca __builtin_alloca
1155 # include <malloc.h>
1156 # define alloca _alloca
1159 # include <alloca.h>
1164 # ifndef alloca /* predefined by HP cc +Olibcalls */
1173 char *p = (char *) alloca(1);
1176 if { (eval echo configure
:1177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1178 ac_cv_func_alloca_works
=yes
1180 echo "configure: failed program was:" >&5
1181 cat conftest.
$ac_ext >&5
1183 ac_cv_func_alloca_works
=no
1188 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1189 if test $ac_cv_func_alloca_works = yes; then
1190 cat >> confdefs.h
<<\EOF
1191 #define HAVE_ALLOCA 1
1196 if test $ac_cv_func_alloca_works = no
; then
1197 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1198 # that cause trouble. Some versions do not even contain alloca or
1199 # contain a buggy version. If you still want to use their alloca,
1200 # use ar to extract alloca.o from them instead of compiling alloca.c.
1201 ALLOCA
=alloca.
${ac_objext}
1202 cat >> confdefs.h
<<\EOF
1207 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether alloca needs Cray hooks" >&5
1209 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 cat > conftest.
$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1215 #if defined(CRAY) && ! defined(CRAY2)
1222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1223 egrep "webecray" >/dev
/null
2>&1; then
1234 echo "$ac_t""$ac_cv_os_cray" 1>&6
1235 if test $ac_cv_os_cray = yes; then
1236 for ac_func
in _getb67 GETB67 getb67
; do
1237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1238 echo "configure:1239: checking for $ac_func" >&5
1239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1242 cat > conftest.
$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1245 /* System header to define __stub macros and hopefully few prototypes,
1246 which can conflict with char $ac_func(); below. */
1248 /* Override any gcc2 internal prototype to avoid an error. */
1249 /* We use char because int might match the return type of a gcc2
1250 builtin and then its argument prototype would still apply. */
1255 /* The GNU C library defines this for functions which it implements
1256 to always fail with ENOSYS. Some functions are actually named
1257 something starting with __ and the normal name is an alias. */
1258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1266 if { (eval echo configure
:1267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1268 eval "ac_cv_func_$ac_func=yes"
1270 echo "configure: failed program was:" >&5
1271 cat conftest.
$ac_ext >&5
1273 eval "ac_cv_func_$ac_func=no"
1278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1279 echo "$ac_t""yes" 1>&6
1280 cat >> confdefs.h
<<EOF
1281 #define CRAY_STACKSEG_END $ac_func
1286 echo "$ac_t""no" 1>&6
1292 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1293 echo "configure:1294: checking stack direction for C alloca" >&5
1294 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 if test "$cross_compiling" = yes; then
1298 ac_cv_c_stack_direction
=0
1300 cat > conftest.
$ac_ext <<EOF
1301 #line 1302 "configure"
1302 #include "confdefs.h"
1303 find_stack_direction ()
1305 static char *addr = 0;
1310 return find_stack_direction ();
1313 return (&dummy > addr) ? 1 : -1;
1317 exit (find_stack_direction() < 0);
1320 if { (eval echo configure
:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1322 ac_cv_c_stack_direction
=1
1324 echo "configure: failed program was:" >&5
1325 cat conftest.
$ac_ext >&5
1327 ac_cv_c_stack_direction
=-1
1334 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1335 cat >> confdefs.h
<<EOF
1336 #define STACK_DIRECTION $ac_cv_c_stack_direction
1341 for ac_hdr
in unistd.h
1343 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1345 echo "configure:1346: checking for $ac_hdr" >&5
1346 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 cat > conftest.
$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1354 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1355 { (eval echo configure
:1356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1356 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1357 if test -z "$ac_err"; then
1359 eval "ac_cv_header_$ac_safe=yes"
1362 echo "configure: failed program was:" >&5
1363 cat conftest.
$ac_ext >&5
1365 eval "ac_cv_header_$ac_safe=no"
1369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1370 echo "$ac_t""yes" 1>&6
1371 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1372 cat >> confdefs.h
<<EOF
1373 #define $ac_tr_hdr 1
1377 echo "$ac_t""no" 1>&6
1381 for ac_func
in getpagesize
1383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1384 echo "configure:1385: checking for $ac_func" >&5
1385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 cat > conftest.
$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1391 /* System header to define __stub macros and hopefully few prototypes,
1392 which can conflict with char $ac_func(); below. */
1394 /* Override any gcc2 internal prototype to avoid an error. */
1395 /* We use char because int might match the return type of a gcc2
1396 builtin and then its argument prototype would still apply. */
1401 /* The GNU C library defines this for functions which it implements
1402 to always fail with ENOSYS. Some functions are actually named
1403 something starting with __ and the normal name is an alias. */
1404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1412 if { (eval echo configure
:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1414 eval "ac_cv_func_$ac_func=yes"
1416 echo "configure: failed program was:" >&5
1417 cat conftest.
$ac_ext >&5
1419 eval "ac_cv_func_$ac_func=no"
1424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1425 echo "$ac_t""yes" 1>&6
1426 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1427 cat >> confdefs.h
<<EOF
1428 #define $ac_tr_func 1
1432 echo "$ac_t""no" 1>&6
1436 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1437 echo "configure:1438: checking for working mmap" >&5
1438 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 if test "$cross_compiling" = yes; then
1442 ac_cv_func_mmap_fixed_mapped
=no
1444 cat > conftest.
$ac_ext <<EOF
1445 #line 1446 "configure"
1446 #include "confdefs.h"
1448 /* Thanks to Mike Haertel and Jim Avera for this test.
1449 Here is a matrix of mmap possibilities:
1450 mmap private not fixed
1451 mmap private fixed at somewhere currently unmapped
1452 mmap private fixed at somewhere already mapped
1453 mmap shared not fixed
1454 mmap shared fixed at somewhere currently unmapped
1455 mmap shared fixed at somewhere already mapped
1456 For private mappings, we should verify that changes cannot be read()
1457 back from the file, nor mmap's back from the file at a different
1458 address. (There have been systems where private was not correctly
1459 implemented like the infamous i386 svr4.0, and systems where the
1460 VM page cache was not coherent with the filesystem buffer cache
1461 like early versions of FreeBSD and possibly contemporary NetBSD.)
1462 For shared mappings, we should conversely verify that changes get
1463 propogated back to all the places they're supposed to be.
1465 Grep wants private fixed already mapped.
1466 The main things grep needs to know about mmap are:
1467 * does it exist and is it safe to write into the mmap'd area
1468 * how to use it (BSD variants) */
1469 #include <sys/types.h>
1471 #include <sys/mman.h>
1473 /* This mess was copied from the GNU getpagesize.h. */
1474 #ifndef HAVE_GETPAGESIZE
1475 # ifdef HAVE_UNISTD_H
1476 # include <unistd.h>
1479 /* Assume that all systems that can run configure have sys/param.h. */
1480 # ifndef HAVE_SYS_PARAM_H
1481 # define HAVE_SYS_PARAM_H 1
1484 # ifdef _SC_PAGESIZE
1485 # define getpagesize() sysconf(_SC_PAGESIZE)
1486 # else /* no _SC_PAGESIZE */
1487 # ifdef HAVE_SYS_PARAM_H
1488 # include <sys/param.h>
1489 # ifdef EXEC_PAGESIZE
1490 # define getpagesize() EXEC_PAGESIZE
1491 # else /* no EXEC_PAGESIZE */
1493 # define getpagesize() NBPG * CLSIZE
1496 # endif /* no CLSIZE */
1497 # else /* no NBPG */
1499 # define getpagesize() NBPC
1500 # else /* no NBPC */
1502 # define getpagesize() PAGESIZE
1503 # endif /* PAGESIZE */
1504 # endif /* no NBPC */
1505 # endif /* no NBPG */
1506 # endif /* no EXEC_PAGESIZE */
1507 # else /* no HAVE_SYS_PARAM_H */
1508 # define getpagesize() 8192 /* punt totally */
1509 # endif /* no HAVE_SYS_PARAM_H */
1510 # endif /* no _SC_PAGESIZE */
1512 #endif /* no HAVE_GETPAGESIZE */
1515 extern "C" { void *malloc(unsigned); }
1523 char *data, *data2, *data3;
1527 pagesize = getpagesize();
1530 * First, make a file with some known garbage in it.
1532 data = malloc(pagesize);
1535 for (i = 0; i < pagesize; ++i)
1536 *(data + i) = rand();
1538 fd = creat("conftestmmap", 0600);
1541 if (write(fd, data, pagesize) != pagesize)
1546 * Next, try to mmap the file at a fixed address which
1547 * already has something else allocated at it. If we can,
1548 * also make sure that we see the same garbage.
1550 fd = open("conftestmmap", O_RDWR);
1553 data2 = malloc(2 * pagesize);
1556 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1557 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1558 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1560 for (i = 0; i < pagesize; ++i)
1561 if (*(data + i) != *(data2 + i))
1565 * Finally, make sure that changes to the mapped area
1566 * do not percolate back to the file as seen by read().
1567 * (This is a bug on some variants of i386 svr4.0.)
1569 for (i = 0; i < pagesize; ++i)
1570 *(data2 + i) = *(data2 + i) + 1;
1571 data3 = malloc(pagesize);
1574 if (read(fd, data3, pagesize) != pagesize)
1576 for (i = 0; i < pagesize; ++i)
1577 if (*(data + i) != *(data3 + i))
1580 unlink("conftestmmap");
1585 if { (eval echo configure
:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1587 ac_cv_func_mmap_fixed_mapped
=yes
1589 echo "configure: failed program was:" >&5
1590 cat conftest.
$ac_ext >&5
1592 ac_cv_func_mmap_fixed_mapped
=no
1599 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1600 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1601 cat >> confdefs.h
<<\EOF
1607 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1608 echo "configure:1609: checking for Cygwin environment" >&5
1609 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 cat > conftest.
$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1619 #define __CYGWIN__ __CYGWIN32__
1624 if { (eval echo configure
:1625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1628 echo "configure: failed program was:" >&5
1629 cat conftest.
$ac_ext >&5
1637 echo "$ac_t""$ac_cv_cygwin" 1>&6
1639 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1640 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1641 echo "configure:1642: checking for mingw32 environment" >&5
1642 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1645 cat > conftest.
$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1653 if { (eval echo configure
:1654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1657 echo "configure: failed program was:" >&5
1658 cat conftest.
$ac_ext >&5
1666 echo "$ac_t""$ac_cv_mingw32" 1>&6
1668 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1670 # autoconf.info says this should be called right after AC_INIT.
1674 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1675 if test -f $ac_dir/install-sh
; then
1677 ac_install_sh
="$ac_aux_dir/install-sh -c"
1679 elif test -f $ac_dir/install.sh
; then
1681 ac_install_sh
="$ac_aux_dir/install.sh -c"
1685 if test -z "$ac_aux_dir"; then
1686 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1688 ac_config_guess
=$ac_aux_dir/config.guess
1689 ac_config_sub
=$ac_aux_dir/config.sub
1690 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1693 # Do some error checking and defaulting for the host and target type.
1695 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1698 # 1. You are not allowed to specify --host, --target, and nonopt at the
1700 # 2. Host defaults to nonopt.
1701 # 3. If nonopt is not specified, then host defaults to the current host,
1702 # as determined by config.guess.
1703 # 4. Target and build default to nonopt.
1704 # 5. If nonopt is not specified, then target and build default to host.
1706 # The aliases save the names the user supplied, while $host etc.
1707 # will get canonicalized.
1708 case $host---$target---$nonopt in
1709 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1710 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1714 # Make sure we can run config.sub.
1715 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1716 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1719 echo $ac_n "checking host system type""... $ac_c" 1>&6
1720 echo "configure:1721: checking host system type" >&5
1723 case "$host_alias" in
1727 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1728 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1730 *) host_alias
=$nonopt ;;
1734 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1735 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1736 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1737 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1738 echo "$ac_t""$host" 1>&6
1740 echo $ac_n "checking target system type""... $ac_c" 1>&6
1741 echo "configure:1742: checking target system type" >&5
1743 target_alias
=$target
1744 case "$target_alias" in
1747 NONE
) target_alias
=$host_alias ;;
1748 *) target_alias
=$nonopt ;;
1752 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1753 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1754 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1755 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1756 echo "$ac_t""$target" 1>&6
1758 echo $ac_n "checking build system type""... $ac_c" 1>&6
1759 echo "configure:1760: checking build system type" >&5
1762 case "$build_alias" in
1765 NONE
) build_alias
=$host_alias ;;
1766 *) build_alias
=$nonopt ;;
1770 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1771 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1772 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1773 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1774 echo "$ac_t""$build" 1>&6
1776 test "$host_alias" != "$target_alias" &&
1777 test "$program_prefix$program_suffix$program_transform_name" = \
1779 program_prefix
=${target_alias}-
1781 if test "$program_transform_name" = s
,x
,x
,; then
1782 program_transform_name
=
1784 # Double any \ or $. echo might interpret backslashes.
1785 cat <<\EOF_SED
> conftestsed
1786 s
,\\,\\\\,g
; s
,\$
,$$
,g
1788 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1791 test "$program_prefix" != NONE
&&
1792 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1793 # Use a double $ so make ignores it.
1794 test "$program_suffix" != NONE
&&
1795 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1797 # sed with no file args requires a program.
1798 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1800 # Extract the first word of "gcc", so it can be a program name with args.
1801 set dummy gcc
; ac_word
=$2
1802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1803 echo "configure:1804: checking for $ac_word" >&5
1804 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 if test -n "$CC"; then
1808 ac_cv_prog_CC
="$CC" # Let the user override the test.
1810 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1812 for ac_dir
in $ac_dummy; do
1813 test -z "$ac_dir" && ac_dir
=.
1814 if test -f $ac_dir/$ac_word; then
1823 if test -n "$CC"; then
1824 echo "$ac_t""$CC" 1>&6
1826 echo "$ac_t""no" 1>&6
1829 if test -z "$CC"; then
1830 # Extract the first word of "cc", so it can be a program name with args.
1831 set dummy cc
; ac_word
=$2
1832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_word" >&5
1834 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 if test -n "$CC"; then
1838 ac_cv_prog_CC
="$CC" # Let the user override the test.
1840 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1843 for ac_dir
in $ac_dummy; do
1844 test -z "$ac_dir" && ac_dir
=.
1845 if test -f $ac_dir/$ac_word; then
1846 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1847 ac_prog_rejected
=yes
1855 if test $ac_prog_rejected = yes; then
1856 # We found a bogon in the path, so make sure we never use it.
1857 set dummy
$ac_cv_prog_CC
1859 if test $# -gt 0; then
1860 # We chose a different compiler from the bogus one.
1861 # However, it has the same basename, so the bogon will be chosen
1862 # first if we set CC to just the basename; use the full file name.
1864 set dummy
"$ac_dir/$ac_word" "$@"
1872 if test -n "$CC"; then
1873 echo "$ac_t""$CC" 1>&6
1875 echo "$ac_t""no" 1>&6
1878 if test -z "$CC"; then
1879 case "`uname -s`" in
1881 # Extract the first word of "cl", so it can be a program name with args.
1882 set dummy cl
; ac_word
=$2
1883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1884 echo "configure:1885: checking for $ac_word" >&5
1885 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC
="$CC" # Let the user override the test.
1891 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1893 for ac_dir
in $ac_dummy; do
1894 test -z "$ac_dir" && ac_dir
=.
1895 if test -f $ac_dir/$ac_word; then
1904 if test -n "$CC"; then
1905 echo "$ac_t""$CC" 1>&6
1907 echo "$ac_t""no" 1>&6
1912 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1915 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1916 echo "configure:1917: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1920 ac_cpp
='$CPP $CPPFLAGS'
1921 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1922 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1923 cross_compiling
=$ac_cv_prog_cc_cross
1925 cat > conftest.
$ac_ext << EOF
1927 #line 1928 "configure"
1928 #include "confdefs.h"
1932 if { (eval echo configure
:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1933 ac_cv_prog_cc_works
=yes
1934 # If we can't run a trivial program, we are probably using a cross compiler.
1935 if (.
/conftest
; exit) 2>/dev
/null
; then
1936 ac_cv_prog_cc_cross
=no
1938 ac_cv_prog_cc_cross
=yes
1941 echo "configure: failed program was:" >&5
1942 cat conftest.
$ac_ext >&5
1943 ac_cv_prog_cc_works
=no
1947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1948 ac_cpp
='$CPP $CPPFLAGS'
1949 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1950 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1951 cross_compiling
=$ac_cv_prog_cc_cross
1953 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1954 if test $ac_cv_prog_cc_works = no
; then
1955 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1957 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1958 echo "configure:1959: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1959 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1960 cross_compiling
=$ac_cv_prog_cc_cross
1962 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1963 echo "configure:1964: checking whether we are using GNU C" >&5
1964 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 cat > conftest.c
<<EOF
1972 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1979 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1981 if test $ac_cv_prog_gcc = yes; then
1987 ac_test_CFLAGS
="${CFLAGS+set}"
1988 ac_save_CFLAGS
="$CFLAGS"
1990 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1991 echo "configure:1992: checking whether ${CC-cc} accepts -g" >&5
1992 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 echo 'void f(){}' > conftest.c
1996 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2005 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2006 if test "$ac_test_CFLAGS" = set; then
2007 CFLAGS
="$ac_save_CFLAGS"
2008 elif test $ac_cv_prog_cc_g = yes; then
2009 if test "$GCC" = yes; then
2015 if test "$GCC" = yes; then
2022 # Find a good install program. We prefer a C program (faster),
2023 # so one script is as good as another. But avoid the broken or
2024 # incompatible versions:
2025 # SysV /etc/install, /usr/sbin/install
2026 # SunOS /usr/etc/install
2027 # IRIX /sbin/install
2029 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2030 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2031 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2032 # ./install, which can be erroneously created by make from ./install.sh.
2033 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2034 echo "configure:2035: checking for a BSD compatible install" >&5
2035 if test -z "$INSTALL"; then
2036 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2040 for ac_dir
in $PATH; do
2041 # Account for people who put trailing slashes in PATH elements.
2043 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2045 # OSF1 and SCO ODT 3.0 have their own names for install.
2046 # Don't use installbsd from OSF since it installs stuff as root
2048 for ac_prog
in ginstall scoinst
install; do
2049 if test -f $ac_dir/$ac_prog; then
2050 if test $ac_prog = install &&
2051 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2052 # AIX install. It has an incompatible calling convention.
2055 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2066 if test "${ac_cv_path_install+set}" = set; then
2067 INSTALL
="$ac_cv_path_install"
2069 # As a last resort, use the slow shell script. We don't cache a
2070 # path for INSTALL within a source directory, because that will
2071 # break other packages using the cache if that directory is
2072 # removed, or if the path is relative.
2073 INSTALL
="$ac_install_sh"
2076 echo "$ac_t""$INSTALL" 1>&6
2078 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2079 # It thinks the first close brace ends the variable substitution.
2080 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2084 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2087 # Put a plausible default for CC_FOR_BUILD in Makefile.
2088 if test "x$cross_compiling" = "xno"; then
2089 CC_FOR_BUILD
='$(CC)'
2099 # Extract the first word of "ranlib", so it can be a program name with args.
2100 set dummy ranlib
; ac_word
=$2
2101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2102 echo "configure:2103: checking for $ac_word" >&5
2103 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 if test -n "$RANLIB"; then
2107 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2109 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2111 for ac_dir
in $ac_dummy; do
2112 test -z "$ac_dir" && ac_dir
=.
2113 if test -f $ac_dir/$ac_word; then
2114 ac_cv_prog_RANLIB
="ranlib"
2119 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2122 RANLIB
="$ac_cv_prog_RANLIB"
2123 if test -n "$RANLIB"; then
2124 echo "$ac_t""$RANLIB" 1>&6
2126 echo "$ac_t""no" 1>&6
2132 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2133 unistd.h values.h sys
/param.h
2135 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2137 echo "configure:2138: checking for $ac_hdr" >&5
2138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 cat > conftest.
$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2146 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2147 { (eval echo configure
:2148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2148 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2149 if test -z "$ac_err"; then
2151 eval "ac_cv_header_$ac_safe=yes"
2154 echo "configure: failed program was:" >&5
2155 cat conftest.
$ac_ext >&5
2157 eval "ac_cv_header_$ac_safe=no"
2161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2162 echo "$ac_t""yes" 1>&6
2163 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2164 cat >> confdefs.h
<<EOF
2165 #define $ac_tr_hdr 1
2169 echo "$ac_t""no" 1>&6
2173 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2174 __argz_count __argz_stringify __argz_next
2176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2177 echo "configure:2178: checking for $ac_func" >&5
2178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2181 cat > conftest.
$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2184 /* System header to define __stub macros and hopefully few prototypes,
2185 which can conflict with char $ac_func(); below. */
2187 /* Override any gcc2 internal prototype to avoid an error. */
2188 /* We use char because int might match the return type of a gcc2
2189 builtin and then its argument prototype would still apply. */
2194 /* The GNU C library defines this for functions which it implements
2195 to always fail with ENOSYS. Some functions are actually named
2196 something starting with __ and the normal name is an alias. */
2197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2205 if { (eval echo configure
:2206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2207 eval "ac_cv_func_$ac_func=yes"
2209 echo "configure: failed program was:" >&5
2210 cat conftest.
$ac_ext >&5
2212 eval "ac_cv_func_$ac_func=no"
2217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2218 echo "$ac_t""yes" 1>&6
2219 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2220 cat >> confdefs.h
<<EOF
2221 #define $ac_tr_func 1
2225 echo "$ac_t""no" 1>&6
2230 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2231 for ac_func
in stpcpy
2233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_func" >&5
2235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.
$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2241 /* System header to define __stub macros and hopefully few prototypes,
2242 which can conflict with char $ac_func(); below. */
2244 /* Override any gcc2 internal prototype to avoid an error. */
2245 /* We use char because int might match the return type of a gcc2
2246 builtin and then its argument prototype would still apply. */
2251 /* The GNU C library defines this for functions which it implements
2252 to always fail with ENOSYS. Some functions are actually named
2253 something starting with __ and the normal name is an alias. */
2254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2262 if { (eval echo configure
:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2264 eval "ac_cv_func_$ac_func=yes"
2266 echo "configure: failed program was:" >&5
2267 cat conftest.
$ac_ext >&5
2269 eval "ac_cv_func_$ac_func=no"
2274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2277 cat >> confdefs.h
<<EOF
2278 #define $ac_tr_func 1
2282 echo "$ac_t""no" 1>&6
2287 if test "${ac_cv_func_stpcpy}" = "yes"; then
2288 cat >> confdefs.h
<<\EOF
2289 #define HAVE_STPCPY 1
2294 if test $ac_cv_header_locale_h = yes; then
2295 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2296 echo "configure:2297: checking for LC_MESSAGES" >&5
2297 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2308 if { (eval echo configure
:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2310 am_cv_val_LC_MESSAGES
=yes
2312 echo "configure: failed program was:" >&5
2313 cat conftest.
$ac_ext >&5
2315 am_cv_val_LC_MESSAGES
=no
2320 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2321 if test $am_cv_val_LC_MESSAGES = yes; then
2322 cat >> confdefs.h
<<\EOF
2323 #define HAVE_LC_MESSAGES 1
2328 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2329 echo "configure:2330: checking whether NLS is requested" >&5
2330 # Check whether --enable-nls or --disable-nls was given.
2331 if test "${enable_nls+set}" = set; then
2332 enableval
="$enable_nls"
2338 echo "$ac_t""$USE_NLS" 1>&6
2341 USE_INCLUDED_LIBINTL
=no
2343 if test "$USE_NLS" = "yes"; then
2344 cat >> confdefs.h
<<\EOF
2345 #define ENABLE_NLS 1
2348 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2349 echo "configure:2350: checking whether included gettext is requested" >&5
2350 # Check whether --with-included-gettext or --without-included-gettext was given.
2351 if test "${with_included_gettext+set}" = set; then
2352 withval
="$with_included_gettext"
2353 nls_cv_force_use_gnu_gettext
=$withval
2355 nls_cv_force_use_gnu_gettext
=no
2358 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2360 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2361 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2363 nls_cv_header_libgt
=
2366 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2367 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2368 echo "configure:2369: checking for libintl.h" >&5
2369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 cat > conftest.
$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2375 #include <libintl.h>
2377 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2378 { (eval echo configure
:2379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2379 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2380 if test -z "$ac_err"; then
2382 eval "ac_cv_header_$ac_safe=yes"
2385 echo "configure: failed program was:" >&5
2386 cat conftest.
$ac_ext >&5
2388 eval "ac_cv_header_$ac_safe=no"
2392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2393 echo "$ac_t""yes" 1>&6
2394 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2395 echo "configure:2396: checking for gettext in libc" >&5
2396 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.
$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 #include <libintl.h>
2404 return (int) gettext ("")
2407 if { (eval echo configure
:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2409 gt_cv_func_gettext_libc
=yes
2411 echo "configure: failed program was:" >&5
2412 cat conftest.
$ac_ext >&5
2414 gt_cv_func_gettext_libc
=no
2419 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2421 if test "$gt_cv_func_gettext_libc" != "yes"; then
2422 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2423 echo "configure:2424: checking for bindtextdomain in -lintl" >&5
2424 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 ac_save_LIBS
="$LIBS"
2430 cat > conftest.
$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 /* Override any gcc2 internal prototype to avoid an error. */
2434 /* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2436 char bindtextdomain();
2442 if { (eval echo configure
:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2444 eval "ac_cv_lib_$ac_lib_var=yes"
2446 echo "configure: failed program was:" >&5
2447 cat conftest.
$ac_ext >&5
2449 eval "ac_cv_lib_$ac_lib_var=no"
2452 LIBS
="$ac_save_LIBS"
2455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2456 echo "$ac_t""yes" 1>&6
2457 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2458 echo "configure:2459: checking for gettext in libintl" >&5
2459 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 cat > conftest.
$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2467 return (int) gettext ("")
2470 if { (eval echo configure
:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2472 gt_cv_func_gettext_libintl
=yes
2474 echo "configure: failed program was:" >&5
2475 cat conftest.
$ac_ext >&5
2477 gt_cv_func_gettext_libintl
=no
2482 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2484 echo "$ac_t""no" 1>&6
2489 if test "$gt_cv_func_gettext_libc" = "yes" \
2490 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2491 cat >> confdefs.h
<<\EOF
2492 #define HAVE_GETTEXT 1
2495 # Extract the first word of "msgfmt", so it can be a program name with args.
2496 set dummy msgfmt
; ac_word
=$2
2497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2498 echo "configure:2499: checking for $ac_word" >&5
2499 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2504 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2507 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2508 for ac_dir
in $PATH; do
2509 test -z "$ac_dir" && ac_dir
=.
2510 if test -f $ac_dir/$ac_word; then
2511 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2512 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2518 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2522 MSGFMT
="$ac_cv_path_MSGFMT"
2523 if test -n "$MSGFMT"; then
2524 echo "$ac_t""$MSGFMT" 1>&6
2526 echo "$ac_t""no" 1>&6
2528 if test "$MSGFMT" != "no"; then
2529 for ac_func
in dcgettext
2531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_func" >&5
2533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 /* System header to define __stub macros and hopefully few prototypes,
2540 which can conflict with char $ac_func(); below. */
2542 /* Override any gcc2 internal prototype to avoid an error. */
2543 /* We use char because int might match the return type of a gcc2
2544 builtin and then its argument prototype would still apply. */
2549 /* The GNU C library defines this for functions which it implements
2550 to always fail with ENOSYS. Some functions are actually named
2551 something starting with __ and the normal name is an alias. */
2552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2560 if { (eval echo configure
:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2562 eval "ac_cv_func_$ac_func=yes"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.
$ac_ext >&5
2567 eval "ac_cv_func_$ac_func=no"
2572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2574 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2575 cat >> confdefs.h
<<EOF
2576 #define $ac_tr_func 1
2580 echo "$ac_t""no" 1>&6
2584 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2585 set dummy gmsgfmt
; ac_word
=$2
2586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_word" >&5
2588 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2593 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2596 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2601 for ac_dir
in $ac_dummy; do
2602 test -z "$ac_dir" && ac_dir
=.
2603 if test -f $ac_dir/$ac_word; then
2604 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2609 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2613 GMSGFMT
="$ac_cv_path_GMSGFMT"
2614 if test -n "$GMSGFMT"; then
2615 echo "$ac_t""$GMSGFMT" 1>&6
2617 echo "$ac_t""no" 1>&6
2620 # Extract the first word of "xgettext", so it can be a program name with args.
2621 set dummy xgettext
; ac_word
=$2
2622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2623 echo "configure:2624: checking for $ac_word" >&5
2624 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2629 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2632 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2633 for ac_dir
in $PATH; do
2634 test -z "$ac_dir" && ac_dir
=.
2635 if test -f $ac_dir/$ac_word; then
2636 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2637 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2643 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2647 XGETTEXT
="$ac_cv_path_XGETTEXT"
2648 if test -n "$XGETTEXT"; then
2649 echo "$ac_t""$XGETTEXT" 1>&6
2651 echo "$ac_t""no" 1>&6
2654 cat > conftest.
$ac_ext <<EOF
2655 #line 2656 "configure"
2656 #include "confdefs.h"
2659 extern int _nl_msg_cat_cntr;
2660 return _nl_msg_cat_cntr
2663 if { (eval echo configure
:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2668 echo "configure: failed program was:" >&5
2669 cat conftest.
$ac_ext >&5
2680 echo "$ac_t""no" 1>&6
2685 if test "$CATOBJEXT" = "NONE"; then
2686 nls_cv_use_gnu_gettext
=yes
2690 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2691 INTLOBJS
="\$(GETTOBJS)"
2692 # Extract the first word of "msgfmt", so it can be a program name with args.
2693 set dummy msgfmt
; ac_word
=$2
2694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_word" >&5
2696 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2701 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2704 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2705 for ac_dir
in $PATH; do
2706 test -z "$ac_dir" && ac_dir
=.
2707 if test -f $ac_dir/$ac_word; then
2708 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2709 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2715 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2719 MSGFMT
="$ac_cv_path_MSGFMT"
2720 if test -n "$MSGFMT"; then
2721 echo "$ac_t""$MSGFMT" 1>&6
2723 echo "$ac_t""no" 1>&6
2726 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2727 set dummy gmsgfmt
; ac_word
=$2
2728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2729 echo "configure:2730: checking for $ac_word" >&5
2730 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2735 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2738 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2741 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2743 for ac_dir
in $ac_dummy; do
2744 test -z "$ac_dir" && ac_dir
=.
2745 if test -f $ac_dir/$ac_word; then
2746 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2751 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2755 GMSGFMT
="$ac_cv_path_GMSGFMT"
2756 if test -n "$GMSGFMT"; then
2757 echo "$ac_t""$GMSGFMT" 1>&6
2759 echo "$ac_t""no" 1>&6
2762 # Extract the first word of "xgettext", so it can be a program name with args.
2763 set dummy xgettext
; ac_word
=$2
2764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2765 echo "configure:2766: checking for $ac_word" >&5
2766 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2771 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2774 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2775 for ac_dir
in $PATH; do
2776 test -z "$ac_dir" && ac_dir
=.
2777 if test -f $ac_dir/$ac_word; then
2778 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2779 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2785 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2789 XGETTEXT
="$ac_cv_path_XGETTEXT"
2790 if test -n "$XGETTEXT"; then
2791 echo "$ac_t""$XGETTEXT" 1>&6
2793 echo "$ac_t""no" 1>&6
2797 USE_INCLUDED_LIBINTL
=yes
2801 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2803 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2804 nls_cv_header_intl
=libintl.h
2805 nls_cv_header_libgt
=libgettext.h
2808 if test "$XGETTEXT" != ":"; then
2809 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2812 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2817 # We need to process the po/ directory.
2821 nls_cv_header_intl
=libintl.h
2822 nls_cv_header_libgt
=libgettext.h
2825 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2826 # because some of the sources are only built for this goal.
2827 if test "$PACKAGE" = gettext; then
2829 USE_INCLUDED_LIBINTL
=yes
2832 for lang
in $ALL_LINGUAS; do
2833 GMOFILES
="$GMOFILES $lang.gmo"
2834 POFILES
="$POFILES $lang.po"
2850 if test "x$CATOBJEXT" != "x"; then
2851 if test "x$ALL_LINGUAS" = "x"; then
2854 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2855 echo "configure:2856: checking for catalogs to be installed" >&5
2857 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2858 case "$ALL_LINGUAS" in
2859 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2862 LINGUAS
=$NEW_LINGUAS
2863 echo "$ac_t""$LINGUAS" 1>&6
2866 if test -n "$LINGUAS"; then
2867 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2871 if test $ac_cv_header_locale_h = yes; then
2872 INCLUDE_LOCALE_H
="#include <locale.h>"
2875 /* The system does not provide the header <locale.h>. Take care yourself. */"
2879 if test -f $srcdir/po2tbl.
sed.
in; then
2880 if test "$CATOBJEXT" = ".cat"; then
2881 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2882 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2883 echo "configure:2884: checking for linux/version.h" >&5
2884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2887 cat > conftest.
$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 #include <linux/version.h>
2892 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2893 { (eval echo configure
:2894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2894 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2895 if test -z "$ac_err"; then
2897 eval "ac_cv_header_$ac_safe=yes"
2900 echo "configure: failed program was:" >&5
2901 cat conftest.
$ac_ext >&5
2903 eval "ac_cv_header_$ac_safe=no"
2907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2908 echo "$ac_t""yes" 1>&6
2911 echo "$ac_t""no" 1>&6
2916 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2918 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2919 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2922 if test "$PACKAGE" = "gettext"; then
2932 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2938 if test -d $srcdir/po
; then
2939 test -d po || mkdir po
2940 if test "x$srcdir" != "x."; then
2941 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2942 posrcprefix
="$srcdir/"
2944 posrcprefix
="../$srcdir/"
2950 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2951 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2955 # Check for common headers.
2956 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2957 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2958 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2960 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2962 echo "configure:2963: checking for $ac_hdr" >&5
2963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 cat > conftest.
$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2971 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2972 { (eval echo configure
:2973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2973 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2974 if test -z "$ac_err"; then
2976 eval "ac_cv_header_$ac_safe=yes"
2979 echo "configure: failed program was:" >&5
2980 cat conftest.
$ac_ext >&5
2982 eval "ac_cv_header_$ac_safe=no"
2986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
2988 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2989 cat >> confdefs.h
<<EOF
2990 #define $ac_tr_hdr 1
2994 echo "$ac_t""no" 1>&6
2998 for ac_hdr
in sys
/time.h sys
/resource.h
3000 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3002 echo "configure:3003: checking for $ac_hdr" >&5
3003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3006 cat > conftest.
$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3011 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3012 { (eval echo configure
:3013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3013 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3014 if test -z "$ac_err"; then
3016 eval "ac_cv_header_$ac_safe=yes"
3019 echo "configure: failed program was:" >&5
3020 cat conftest.
$ac_ext >&5
3022 eval "ac_cv_header_$ac_safe=no"
3026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3027 echo "$ac_t""yes" 1>&6
3028 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3029 cat >> confdefs.h
<<EOF
3030 #define $ac_tr_hdr 1
3034 echo "$ac_t""no" 1>&6
3038 for ac_hdr
in fcntl.h fpu_control.h
3040 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3042 echo "configure:3043: checking for $ac_hdr" >&5
3043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6
3046 cat > conftest.
$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3051 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3052 { (eval echo configure
:3053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3053 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3054 if test -z "$ac_err"; then
3056 eval "ac_cv_header_$ac_safe=yes"
3059 echo "configure: failed program was:" >&5
3060 cat conftest.
$ac_ext >&5
3062 eval "ac_cv_header_$ac_safe=no"
3066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3067 echo "$ac_t""yes" 1>&6
3068 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3069 cat >> confdefs.h
<<EOF
3070 #define $ac_tr_hdr 1
3074 echo "$ac_t""no" 1>&6
3078 for ac_hdr
in dlfcn.h errno.h sys
/stat.h
3080 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3082 echo "configure:3083: checking for $ac_hdr" >&5
3083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3086 cat > conftest.
$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3091 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3092 { (eval echo configure
:3093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3093 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3094 if test -z "$ac_err"; then
3096 eval "ac_cv_header_$ac_safe=yes"
3099 echo "configure: failed program was:" >&5
3100 cat conftest.
$ac_ext >&5
3102 eval "ac_cv_header_$ac_safe=no"
3106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3109 cat >> confdefs.h
<<EOF
3110 #define $ac_tr_hdr 1
3114 echo "$ac_t""no" 1>&6
3118 for ac_func
in getrusage
time sigaction __setfpucw
3120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3121 echo "configure:3122: checking for $ac_func" >&5
3122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 cat > conftest.
$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 /* System header to define __stub macros and hopefully few prototypes,
3129 which can conflict with char $ac_func(); below. */
3131 /* Override any gcc2 internal prototype to avoid an error. */
3132 /* We use char because int might match the return type of a gcc2
3133 builtin and then its argument prototype would still apply. */
3138 /* The GNU C library defines this for functions which it implements
3139 to always fail with ENOSYS. Some functions are actually named
3140 something starting with __ and the normal name is an alias. */
3141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3149 if { (eval echo configure
:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3151 eval "ac_cv_func_$ac_func=yes"
3153 echo "configure: failed program was:" >&5
3154 cat conftest.
$ac_ext >&5
3156 eval "ac_cv_func_$ac_func=no"
3161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3162 echo "$ac_t""yes" 1>&6
3163 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3164 cat >> confdefs.h
<<EOF
3165 #define $ac_tr_func 1
3169 echo "$ac_t""no" 1>&6
3174 # Check for socket libraries
3175 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3176 echo "configure:3177: checking for bind in -lsocket" >&5
3177 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 ac_save_LIBS
="$LIBS"
3182 LIBS
="-lsocket $LIBS"
3183 cat > conftest.
$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186 /* Override any gcc2 internal prototype to avoid an error. */
3187 /* We use char because int might match the return type of a gcc2
3188 builtin and then its argument prototype would still apply. */
3195 if { (eval echo configure
:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3197 eval "ac_cv_lib_$ac_lib_var=yes"
3199 echo "configure: failed program was:" >&5
3200 cat conftest.
$ac_ext >&5
3202 eval "ac_cv_lib_$ac_lib_var=no"
3205 LIBS
="$ac_save_LIBS"
3208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3209 echo "$ac_t""yes" 1>&6
3210 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3211 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3212 cat >> confdefs.h
<<EOF
3213 #define $ac_tr_lib 1
3216 LIBS
="-lsocket $LIBS"
3219 echo "$ac_t""no" 1>&6
3222 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3223 echo "configure:3224: checking for gethostbyname in -lnsl" >&5
3224 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 ac_save_LIBS
="$LIBS"
3230 cat > conftest.
$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 /* Override any gcc2 internal prototype to avoid an error. */
3234 /* We use char because int might match the return type of a gcc2
3235 builtin and then its argument prototype would still apply. */
3236 char gethostbyname();
3242 if { (eval echo configure
:3243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3244 eval "ac_cv_lib_$ac_lib_var=yes"
3246 echo "configure: failed program was:" >&5
3247 cat conftest.
$ac_ext >&5
3249 eval "ac_cv_lib_$ac_lib_var=no"
3252 LIBS
="$ac_save_LIBS"
3255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3256 echo "$ac_t""yes" 1>&6
3257 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3259 cat >> confdefs.h
<<EOF
3260 #define $ac_tr_lib 1
3266 echo "$ac_t""no" 1>&6
3270 .
${srcdir}/..
/..
/bfd
/configure.
host
3274 USE_MAINTAINER_MODE
=no
3275 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3276 if test "${enable_maintainer_mode+set}" = set; then
3277 enableval
="$enable_maintainer_mode"
3278 case "${enableval}" in
3279 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3281 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3283 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3284 echo "Setting maintainer mode" 6>&1
3292 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3293 if test "${enable_sim_bswap+set}" = set; then
3294 enableval
="$enable_sim_bswap"
3295 case "${enableval}" in
3296 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3297 no
) sim_bswap
="-DWITH_BSWAP=0";;
3298 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3300 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3301 echo "Setting bswap flags = $sim_bswap" 6>&1
3309 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3310 if test "${enable_sim_cflags+set}" = set; then
3311 enableval
="$enable_sim_cflags"
3312 case "${enableval}" in
3313 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3314 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3316 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3318 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3319 echo "Setting sim cflags = $sim_cflags" 6>&1
3327 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3328 if test "${enable_sim_debug+set}" = set; then
3329 enableval
="$enable_sim_debug"
3330 case "${enableval}" in
3331 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3332 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3333 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3335 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3336 echo "Setting sim debug = $sim_debug" 6>&1
3344 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3345 if test "${enable_sim_stdio+set}" = set; then
3346 enableval
="$enable_sim_stdio"
3347 case "${enableval}" in
3348 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3349 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3350 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3352 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3353 echo "Setting stdio flags = $sim_stdio" 6>&1
3361 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3362 if test "${enable_sim_trace+set}" = set; then
3363 enableval
="$enable_sim_trace"
3364 case "${enableval}" in
3365 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3366 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3368 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3371 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3372 if test x
"$sim_trace" = x
; then
3373 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3375 sim_trace
="${sim_trace}|TRACE_$x"
3378 sim_trace
="$sim_trace)'" ;;
3380 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3381 echo "Setting sim trace = $sim_trace" 6>&1
3389 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3390 if test "${enable_sim_profile+set}" = set; then
3391 enableval
="$enable_sim_profile"
3392 case "${enableval}" in
3393 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3394 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3396 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3399 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3400 if test x
"$sim_profile" = x
; then
3401 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3403 sim_profile
="${sim_profile}|PROFILE_$x"
3406 sim_profile
="$sim_profile)'" ;;
3408 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3409 echo "Setting sim profile = $sim_profile" 6>&1
3417 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3418 echo "configure:3419: checking return type of signal handlers" >&5
3419 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3422 cat > conftest.
$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3425 #include <sys/types.h>
3431 extern "C" void (*signal (int, void (*)(int)))(int);
3433 void (*signal ()) ();
3440 if { (eval echo configure
:3441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3442 ac_cv_type_signal
=void
3444 echo "configure: failed program was:" >&5
3445 cat conftest.
$ac_ext >&5
3447 ac_cv_type_signal
=int
3452 echo "$ac_t""$ac_cv_type_signal" 1>&6
3453 cat >> confdefs.h
<<EOF
3454 #define RETSIGTYPE $ac_cv_type_signal
3461 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3462 echo "configure:3463: checking for executable suffix" >&5
3463 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3466 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3470 echo 'int main () { return 0; }' > conftest.
$ac_ext
3472 if { (eval echo configure
:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3473 for file in conftest.
*; do
3475 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3476 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3480 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3483 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3488 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3489 echo "$ac_t""${ac_cv_exeext}" 1>&6
3496 sim_link_links
=tconfig.h
3497 if test -f ${srcdir}/tconfig.
in
3499 sim_link_files
=tconfig.
in
3501 sim_link_files
=..
/common
/tconfig.
in
3504 # targ-vals.def points to the libc macro description file.
3506 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3508 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3509 sim_link_links
="${sim_link_links} targ-vals.def"
3514 wire_endian
="LITTLE_ENDIAN"
3516 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3517 if test "${enable_sim_endian+set}" = set; then
3518 enableval
="$enable_sim_endian"
3519 case "${enableval}" in
3520 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3521 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3522 yes) if test x
"$wire_endian" != x
; then
3523 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3525 if test x
"$default_endian" != x
; then
3526 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3528 echo "No hard-wired endian for target $target" 1>&6
3529 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
3532 no
) if test x
"$default_endian" != x
; then
3533 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3535 if test x
"$wire_endian" != x
; then
3536 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3538 echo "No default endian for target $target" 1>&6
3539 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3542 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
3544 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
3545 echo "Setting endian flags = $sim_endian" 6>&1
3548 if test x
"$default_endian" != x
; then
3549 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3551 if test x
"$wire_endian" != x
; then
3552 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3559 wire_alignment
="NONSTRICT_ALIGNMENT"
3560 default_alignment
=""
3562 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3563 if test "${enable_sim_alignment+set}" = set; then
3564 enableval
="$enable_sim_alignment"
3565 case "${enableval}" in
3566 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3567 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3568 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3569 yes) if test x
"$wire_alignment" != x
; then
3570 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3572 if test x
"$default_alignment" != x
; then
3573 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3575 echo "No hard-wired alignment for target $target" 1>&6
3576 sim_alignment
="-DWITH_ALIGNMENT=0"
3579 no
) if test x
"$default_alignment" != x
; then
3580 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3582 if test x
"$wire_alignment" != x
; then
3583 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3585 echo "No default alignment for target $target" 1>&6
3586 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3589 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3591 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3592 echo "Setting alignment flags = $sim_alignment" 6>&1
3595 if test x
"$default_alignment" != x
; then
3596 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3598 if test x
"$wire_alignment" != x
; then
3599 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3607 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3608 if test "${enable_sim_hostendian+set}" = set; then
3609 enableval
="$enable_sim_hostendian"
3610 case "${enableval}" in
3611 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3612 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3613 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3614 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3616 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3617 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3621 if test "x$cross_compiling" = "xno"; then
3622 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3623 echo "configure:3624: checking whether byte ordering is bigendian" >&5
3624 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3625 echo $ac_n "(cached) $ac_c" 1>&6
3627 ac_cv_c_bigendian
=unknown
3628 # See if sys/param.h defines the BYTE_ORDER macro.
3629 cat > conftest.
$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 #include <sys/types.h>
3633 #include <sys/param.h>
3636 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3641 if { (eval echo configure
:3642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3643 # It does; now see whether it defined to BIG_ENDIAN or not.
3644 cat > conftest.
$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3647 #include <sys/types.h>
3648 #include <sys/param.h>
3651 #if BYTE_ORDER != BIG_ENDIAN
3656 if { (eval echo configure
:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3658 ac_cv_c_bigendian
=yes
3660 echo "configure: failed program was:" >&5
3661 cat conftest.
$ac_ext >&5
3663 ac_cv_c_bigendian
=no
3667 echo "configure: failed program was:" >&5
3668 cat conftest.
$ac_ext >&5
3671 if test $ac_cv_c_bigendian = unknown
; then
3672 if test "$cross_compiling" = yes; then
3673 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3675 cat > conftest.
$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3679 /* Are we little or big endian? From Harbison&Steele. */
3683 char c[sizeof (long)];
3686 exit (u.c[sizeof (long) - 1] == 1);
3689 if { (eval echo configure
:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3691 ac_cv_c_bigendian
=no
3693 echo "configure: failed program was:" >&5
3694 cat conftest.
$ac_ext >&5
3696 ac_cv_c_bigendian
=yes
3704 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3705 if test $ac_cv_c_bigendian = yes; then
3706 cat >> confdefs.h
<<\EOF
3707 #define WORDS_BIGENDIAN 1
3712 if test $ac_cv_c_bigendian = yes; then
3713 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3715 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3718 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3723 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3724 if test "${enable_build_warnings+set}" = set; then
3725 enableval
="$enable_build_warnings"
3726 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
3727 case "${enableval}" in
3729 no
) build_warnings
="-w";;
3730 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3731 build_warnings
="${build_warnings} ${t}";;
3732 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3733 build_warnings
="${t} ${build_warnings}";;
3734 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3736 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3737 echo "Setting warning flags = $build_warnings" 6>&1
3744 default_sim_reserved_bits
="1"
3745 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3746 if test "${enable_sim_reserved_bits+set}" = set; then
3747 enableval
="$enable_sim_reserved_bits"
3748 case "${enableval}" in
3749 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
3750 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
3751 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value
"" 1>&2; exit 1; }; sim_reserved_bits
="";;
3753 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
3754 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
3757 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
3760 wire_word_bitsize
="32"
3762 wire_address_bitsize
=""
3763 wire_cell_bitsize
=""
3764 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3765 if test "${enable_sim_bitsize+set}" = set; then
3766 enableval
="$enable_sim_bitsize"
3768 case "${enableval}" in
3769 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3770 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3771 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3772 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3773 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3774 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3776 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3778 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3779 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3781 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3783 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3786 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3789 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3790 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3791 * ) { echo "configure: error: "--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3794 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3797 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3798 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3799 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3801 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
3802 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3806 if test x
"$wire_word_bitsize" != x
; then
3807 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3809 if test x
"$wire_word_msb" != x
; then
3810 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3812 if test x
"$wire_address_bitsize" != x
; then
3813 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3815 if test x
"$wire_cell_bitsize" != x
; then
3816 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3821 default_sim_inline
=""
3822 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3823 if test "${enable_sim_inline+set}" = set; then
3824 enableval
="$enable_sim_inline"
3826 case "$enableval" in
3827 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3828 0) sim_inline
="-DDEFAULT_INLINE=0";;
3829 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
3830 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3831 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3834 *_INLINE
=*) new_flag
="-D$x";;
3835 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3836 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
3837 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
3839 if test x
"$sim_inline" = x
""; then
3840 sim_inline
="$new_flag"
3842 sim_inline
="$sim_inline $new_flag"
3846 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3847 echo "Setting inline flags = $sim_inline" 6>&1
3851 if test "x$cross_compiling" = "xno"; then
3852 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
3853 sim_inline
="${default_sim_inline}"
3854 if test x
"$silent" != x
"yes"; then
3855 echo "Setting inline flags = $sim_inline" 6>&1
3861 sim_inline
="-DDEFAULT_INLINE=0"
3866 if test x
"yes" = x
"yes"; then
3872 hardware
="core pal glue"
3874 hardware
="core pal glue mn103cpu mn103int mn103tim mn103ser mn103iop"
3876 sim_hw_cflags
="-DWITH_HW=1"
3878 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
3879 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
3880 if test "${enable_sim_hardware+set}" = set; then
3881 enableval
="$enable_sim_hardware"
3883 case "${enableval}" in
3886 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
3887 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
3888 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
3890 if test "$sim_hw_p" != yes; then
3892 sim_hw_cflags
="-DWITH_HW=0"
3895 sim_hw_cflags
="-DWITH_HW=1"
3898 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
3899 for i
in x
$hardware ; do
3903 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
3907 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
3908 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3912 if test "$sim_hw_p" != yes; then
3914 sim_hw_cflags
="-DWITH_HW=0"
3917 if test x
"$silent" != x
"yes"; then
3918 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3923 for ac_func
in time chmod utime fork execve execv chown
3925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3926 echo "configure:3927: checking for $ac_func" >&5
3927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3928 echo $ac_n "(cached) $ac_c" 1>&6
3930 cat > conftest.
$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3933 /* System header to define __stub macros and hopefully few prototypes,
3934 which can conflict with char $ac_func(); below. */
3936 /* Override any gcc2 internal prototype to avoid an error. */
3937 /* We use char because int might match the return type of a gcc2
3938 builtin and then its argument prototype would still apply. */
3943 /* The GNU C library defines this for functions which it implements
3944 to always fail with ENOSYS. Some functions are actually named
3945 something starting with __ and the normal name is an alias. */
3946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3954 if { (eval echo configure
:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3956 eval "ac_cv_func_$ac_func=yes"
3958 echo "configure: failed program was:" >&5
3959 cat conftest.
$ac_ext >&5
3961 eval "ac_cv_func_$ac_func=no"
3966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3967 echo "$ac_t""yes" 1>&6
3968 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3969 cat >> confdefs.h
<<EOF
3970 #define $ac_tr_func 1
3974 echo "$ac_t""no" 1>&6
3978 for ac_hdr
in unistd.h stdlib.h string.h
strings.h utime.h
time.h
3980 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3982 echo "configure:3983: checking for $ac_hdr" >&5
3983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3986 cat > conftest.
$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3991 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3992 { (eval echo configure
:3993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3993 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3994 if test -z "$ac_err"; then
3996 eval "ac_cv_header_$ac_safe=yes"
3999 echo "configure: failed program was:" >&5
4000 cat conftest.
$ac_ext >&5
4002 eval "ac_cv_header_$ac_safe=no"
4006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4007 echo "$ac_t""yes" 1>&6
4008 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4009 cat >> confdefs.h
<<EOF
4010 #define $ac_tr_hdr 1
4014 echo "$ac_t""no" 1>&6
4022 # Check whether --enable-sim-common or --disable-sim-common was given.
4023 if test "${enable_sim_common+set}" = set; then
4024 enableval
="$enable_sim_common"
4025 case "${enableval}" in
4026 yes) sim_gen
="-DWITH_COMMON=1"; mn10300_common
="WITH";;
4027 no
) sim_gen
="-DWITH_COMMON=0"; mn10300_common
="WITHOUT";;
4028 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-common"" 1>&2; exit 1; }; sim_gen
="";;
4030 if test x
"$silent" != x
"yes" && test x
"$sim_gen" != x
""; then
4031 echo "Setting sim_common = $sim_common" 6>&1
4034 sim_gen
="-DWITH_COMMON=1"; mn10300_common
="WITH"
4042 cat > confcache
<<\EOF
4043 # This file is a shell script that caches the results of configure
4044 # tests run on this system so they can be shared between configure
4045 # scripts and configure runs. It is not useful on other systems.
4046 # If it contains results you don't want to keep, you may remove or edit it.
4048 # By default, configure uses ./config.cache as the cache file,
4049 # creating it if it does not exist already. You can give configure
4050 # the --cache-file=FILE option to use a different cache file; that is
4051 # what configure does when it calls configure scripts in
4052 # subdirectories, so they share the cache.
4053 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4054 # config.status only pays attention to the cache file if you give it the
4055 # --recheck option to rerun configure.
4058 # The following way of writing the cache mishandles newlines in values,
4059 # but we know of no workaround that is simple, portable, and efficient.
4060 # So, don't put newlines in cache variables' values.
4061 # Ultrix sh set writes to stderr and can't be redirected directly,
4062 # and sets the high bit in the cache file unless we assign to the vars.
4064 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4066 # `set' does not quote correctly, so add quotes (double-quote substitution
4067 # turns \\\\ into \\, and sed turns \\ into \).
4069 -e "s/'/'\\\\''/g" \
4070 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4073 # `set' quotes correctly as required by POSIX, so do not add quotes.
4074 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4077 if cmp -s $cache_file confcache
; then
4080 if test -w $cache_file; then
4081 echo "updating cache $cache_file"
4082 cat confcache
> $cache_file
4084 echo "not updating unwritable cache $cache_file"
4089 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4091 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4092 # Let make expand exec_prefix.
4093 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4095 # Any assignment to VPATH causes Sun make to only execute
4096 # the first set of double-colon rules, so remove it if not needed.
4097 # If there is a colon in the path, we need to keep it.
4098 if test "x$srcdir" = x.
; then
4099 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4102 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4104 DEFS
=-DHAVE_CONFIG_H
4106 # Without the "./", some shells look in PATH for config.status.
4107 : ${CONFIG_STATUS=./config.status}
4109 echo creating
$CONFIG_STATUS
4110 rm -f $CONFIG_STATUS
4111 cat > $CONFIG_STATUS <<EOF
4113 # Generated automatically by configure.
4114 # Run this file to recreate the current configuration.
4115 # This directory was configured as follows,
4116 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4118 # $0 $ac_configure_args
4120 # Compiler output produced by configure, useful for debugging
4121 # configure, is in ./config.log if it exists.
4123 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4126 case "\$ac_option" in
4127 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4128 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4129 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4130 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4131 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4133 -help | --help | --hel | --he | --h)
4134 echo "\$ac_cs_usage"; exit 0 ;;
4135 *) echo "\$ac_cs_usage"; exit 1 ;;
4139 ac_given_srcdir=$srcdir
4140 ac_given_INSTALL="$INSTALL"
4142 trap 'rm -fr `echo "Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4144 cat >> $CONFIG_STATUS <<EOF
4146 # Protect against being on the right side of a sed subst in config.status.
4147 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4148 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4151 s%@sim_environment@%$sim_environment%g
4152 s%@sim_alignment@%$sim_alignment%g
4153 s%@sim_assert@%$sim_assert%g
4154 s%@sim_bitsize@%$sim_bitsize%g
4155 s%@sim_endian@%$sim_endian%g
4156 s%@sim_hostendian@%$sim_hostendian%g
4157 s%@sim_float@%$sim_float%g
4158 s%@sim_scache@%$sim_scache%g
4159 s%@sim_default_model@%$sim_default_model%g
4160 s%@sim_hw_cflags@%$sim_hw_cflags%g
4161 s%@sim_hw_objs@%$sim_hw_objs%g
4162 s%@sim_hw@%$sim_hw%g
4163 s%@sim_inline@%$sim_inline%g
4164 s%@sim_packages@%$sim_packages%g
4165 s%@sim_regparm@%$sim_regparm%g
4166 s%@sim_reserved_bits@%$sim_reserved_bits%g
4167 s%@sim_smp@%$sim_smp%g
4168 s%@sim_stdcall@%$sim_stdcall%g
4169 s%@sim_xor_endian@%$sim_xor_endian%g
4170 s%@build_warnings@%$build_warnings%g
4172 s%@CFLAGS@%$CFLAGS%g
4173 s%@CPPFLAGS@%$CPPFLAGS%g
4174 s%@CXXFLAGS@%$CXXFLAGS%g
4175 s%@FFLAGS@%$FFLAGS%g
4177 s%@LDFLAGS@%$LDFLAGS%g
4179 s%@exec_prefix@%$exec_prefix%g
4180 s%@prefix@%$prefix%g
4181 s%@program_transform_name@%$program_transform_name%g
4182 s%@bindir@%$bindir%g
4183 s%@sbindir@%$sbindir%g
4184 s%@libexecdir@%$libexecdir%g
4185 s%@datadir@%$datadir%g
4186 s%@sysconfdir@%$sysconfdir%g
4187 s%@sharedstatedir@%$sharedstatedir%g
4188 s%@localstatedir@%$localstatedir%g
4189 s%@libdir@%$libdir%g
4190 s%@includedir@%$includedir%g
4191 s%@oldincludedir@%$oldincludedir%g
4192 s%@infodir@%$infodir%g
4193 s%@mandir@%$mandir%g
4195 s%@host_alias@%$host_alias%g
4196 s%@host_cpu@%$host_cpu%g
4197 s%@host_vendor@%$host_vendor%g
4198 s%@host_os@%$host_os%g
4199 s%@target@%$target%g
4200 s%@target_alias@%$target_alias%g
4201 s%@target_cpu@%$target_cpu%g
4202 s%@target_vendor@%$target_vendor%g
4203 s%@target_os@%$target_os%g
4205 s%@build_alias@%$build_alias%g
4206 s%@build_cpu@%$build_cpu%g
4207 s%@build_vendor@%$build_vendor%g
4208 s%@build_os@%$build_os%g
4210 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4211 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4212 s%@INSTALL_DATA@%$INSTALL_DATA%g
4213 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4214 s%@HDEFINES@%$HDEFINES%g
4216 s%@RANLIB@%$RANLIB%g
4217 s%@SET_MAKE@%$SET_MAKE%g
4219 s%@ALLOCA@%$ALLOCA%g
4220 s%@USE_NLS@%$USE_NLS%g
4221 s%@MSGFMT@%$MSGFMT%g
4222 s%@GMSGFMT@%$GMSGFMT%g
4223 s%@XGETTEXT@%$XGETTEXT%g
4224 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4225 s%@CATALOGS@%$CATALOGS%g
4226 s%@CATOBJEXT@%$CATOBJEXT%g
4227 s%@DATADIRNAME@%$DATADIRNAME%g
4228 s%@GMOFILES@%$GMOFILES%g
4229 s%@INSTOBJEXT@%$INSTOBJEXT%g
4230 s%@INTLDEPS@%$INTLDEPS%g
4231 s%@INTLLIBS@%$INTLLIBS%g
4232 s%@INTLOBJS@%$INTLOBJS%g
4233 s%@POFILES@%$POFILES%g
4235 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4237 s%@GT_YES@%$GT_YES%g
4238 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4241 s%@sim_bswap@%$sim_bswap%g
4242 s%@sim_cflags@%$sim_cflags%g
4243 s%@sim_debug@%$sim_debug%g
4244 s%@sim_stdio@%$sim_stdio%g
4245 s%@sim_trace@%$sim_trace%g
4246 s%@sim_profile@%$sim_profile%g
4247 s%@EXEEXT@%$EXEEXT%g
4248 s%@sim_gen@%$sim_gen%g
4249 s%@mn10300_common@%$mn10300_common%g
4254 cat >> $CONFIG_STATUS <<\EOF
4256 # Split the substitutions into bite-sized pieces for seds with
4257 # small command number limits, like on Digital OSF/1 and HP-UX.
4258 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4259 ac_file
=1 # Number of current file.
4260 ac_beg
=1 # First line for current file.
4261 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4264 while $ac_more_lines; do
4265 if test $ac_beg -gt 1; then
4266 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4268 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4270 if test ! -s conftest.s
$ac_file; then
4272 rm -f conftest.s
$ac_file
4274 if test -z "$ac_sed_cmds"; then
4275 ac_sed_cmds
="sed -f conftest.s$ac_file"
4277 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4279 ac_file
=`expr $ac_file + 1`
4281 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4284 if test -z "$ac_sed_cmds"; then
4289 cat >> $CONFIG_STATUS <<EOF
4291 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4293 cat >> $CONFIG_STATUS <<\EOF
4294 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4295 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4297 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4298 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4299 *) ac_file_in
="${ac_file}.in" ;;
4302 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4304 # Remove last slash and all that follows it. Not all systems have dirname.
4305 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4306 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4307 # The file is in a subdirectory.
4308 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4309 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4310 # A "../" for each directory in $ac_dir_suffix.
4311 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4313 ac_dir_suffix
= ac_dots
=
4316 case "$ac_given_srcdir" in
4318 if test -z "$ac_dots"; then top_srcdir
=.
4319 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4320 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4322 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4323 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4326 case "$ac_given_INSTALL" in
4327 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4328 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4331 echo creating
"$ac_file"
4333 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4335 *Makefile
*) ac_comsub
="1i\\
4336 # $configure_input" ;;
4340 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4342 s%@configure_input@%$configure_input%g
4343 s%@srcdir@%$srcdir%g
4344 s%@top_srcdir@%$top_srcdir%g
4345 s%@INSTALL@%$INSTALL%g
4346 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4350 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4351 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4353 # ac_d sets the value in "#define NAME VALUE" lines.
4354 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4355 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4358 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4359 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4360 ac_uB
='\([ ]\)%\1#\2define\3'
4363 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4364 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4365 ac_eB
='$%\1#\2define\3'
4369 if test "${CONFIG_HEADERS+set}" != set; then
4371 cat >> $CONFIG_STATUS <<EOF
4372 CONFIG_HEADERS="config.h:config.in"
4374 cat >> $CONFIG_STATUS <<\EOF
4376 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4377 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4379 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4380 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4381 *) ac_file_in
="${ac_file}.in" ;;
4384 echo creating
$ac_file
4386 rm -f conftest.frag conftest.
in conftest.out
4387 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4388 cat $ac_file_inputs > conftest.
in
4392 # Transform confdefs.h into a sed script conftest.vals that substitutes
4393 # the proper values into config.h.in to produce config.h. And first:
4394 # Protect against being on the right side of a sed subst in config.status.
4395 # Protect against being in an unquoted here document in config.status.
4397 cat > conftest.hdr
<<\EOF
4400 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4404 sed -n -f conftest.hdr confdefs.h > conftest.vals
4407 # This sed command replaces #undef with comments. This is necessary, for
4408 # example, in the case of _POSIX_SOURCE, which is predefined and required
4409 # on some systems where configure will not decide to define it.
4410 cat >> conftest.vals <<\EOF
4411 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4414 # Break up conftest.vals because some shells have a limit on
4415 # the size of here documents, and old seds have small limits too.
4420 ac_lines=`grep -c . conftest.vals
`
4421 # grep -c gives empty output for an empty file on some AIX systems.
4422 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4423 # Write a limited-size here document to conftest.frag.
4424 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4425 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4427 sed -f conftest.frag conftest.in > conftest.out
4429 mv conftest.out conftest.in
4431 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4433 mv conftest.tail conftest.vals
4437 cat >> $CONFIG_STATUS <<\EOF
4438 rm -f conftest.frag conftest.h
4439 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4440 cat conftest.in >> conftest.h
4442 if cmp -s $ac_file conftest.h 2>/dev/null; then
4443 echo "$ac_file is unchanged"
4446 # Remove last slash and all that follows it. Not all systems have dirname.
4447 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4448 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4449 # The file is in a subdirectory.
4450 test ! -d "$ac_dir" && mkdir "$ac_dir"
4453 mv conftest.h $ac_file
4459 cat >> $CONFIG_STATUS <<EOF
4460 ac_sources="$sim_link_files"
4461 ac_dests="$sim_link_links"
4464 cat >> $CONFIG_STATUS <<\EOF
4465 srcdir=$ac_given_srcdir
4466 while test -n "$ac_sources"; do
4467 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4468 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4470 echo "linking $srcdir/$ac_source to $ac_dest"
4472 if test ! -r $srcdir/$ac_source; then
4473 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4477 # Make relative symlinks.
4478 # Remove last slash and all that follows it. Not all systems have dirname.
4479 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4480 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4481 # The dest file is in a subdirectory.
4482 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4483 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4484 # A "../" for each directory in $ac_dest_dir_suffix.
4485 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4487 ac_dest_dir_suffix= ac_dots=
4491 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4492 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4495 # Make a symlink if possible; otherwise try a hard link.
4496 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4497 ln $srcdir/$ac_source $ac_dest; then :
4499 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4503 cat >> $CONFIG_STATUS <<EOF
4506 cat >> $CONFIG_STATUS <<\EOF
4507 case "x$CONFIG_FILES" in
4509 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4510 rm -f Makesim1.tmp Makesim2.tmp Makefile
4511 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4512 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4513 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4514 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4515 <Makefile.sim >Makefile
4516 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4519 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4523 chmod +x $CONFIG_STATUS
4524 rm -fr confdefs* $ac_clean_files
4525 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1