45 sim_inline="-DDEFAULT_INLINE=0"
82 # This file is derived from `gettext.m4'. The difference is that the
83 # included macros assume Cygnus-style source and build trees.
85 # Macro to add for using GNU gettext.
88 # This file file be copied and used freely without restrictions. It can
89 # be used in projects which are not available under the GNU Public License
90 # but which still want to provide support for the GNU gettext functionality.
91 # Please note that the actual code is *not* freely available.
99 # Search path for a program which passes the given test.
102 # This file file be copied and used freely without restrictions. It can
103 # be used in projects which are not available under the GNU Public License
104 # but which still want to provide support for the GNU gettext functionality.
105 # Please note that the actual code is *not* freely available.
111 # Check whether LC_MESSAGES is available in <locale.h>.
114 # This file file be copied and used freely without restrictions. It can
115 # be used in projects which are not available under the GNU Public License
116 # but which still want to provide support for the GNU gettext functionality.
117 # Please note that the actual code is *not* freely available.
126 # Guess values for system-dependent variables and create Makefiles.
127 # Generated automatically using autoconf version 2.13
128 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 # This configure script is free software; the Free Software Foundation
131 # gives unlimited permission to copy, distribute and modify it.
135 ac_default_prefix=/usr/local
136 # Any additions from configure.in:
138 --disable-nls do not use Native Language Support"
140 --with-included-gettext use the GNU gettext library included here"
142 --enable-maintainer-mode Enable developer functionality."
144 --enable-sim-bswap Use Host specific BSWAP instruction."
146 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
148 --enable-sim-debug=opts Enable debugging flags"
150 --enable-sim-stdio Specify whether to use stdio for console input/output."
152 --enable-sim-trace=opts Enable tracing flags"
154 --enable-sim-profile=opts Enable profiling flags"
156 --enable-sim-endian=endian Specify target byte endian orientation."
158 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
160 --enable-sim-hostendian=end Specify host byte endian orientation."
162 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
164 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
166 --enable-sim-bitsize=N Specify target bitsize (32 or 64)."
168 --enable-sim-inline=inlines Specify which functions should be inlined."
170 --enable-sim-hardware=LIST Specify the hardware to be included in the build."
172 --enable-sim-common Enable common simulator"
174 # Initialize some variables set by options.
175 # The variables have the same names as the options, with
176 # dashes changed to underlines.
178 cache_file=./config.cache
187 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 --version print the version of autoconf that created configure
305 Directory and file names:
306 --prefix=PREFIX install architecture-independent files in PREFIX
308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
310 --bindir=DIR user executables in DIR [EPREFIX/bin]
311 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
312 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
313 --datadir=DIR read-only architecture-independent data in DIR
315 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
316 --sharedstatedir=DIR modifiable architecture-independent data in DIR
318 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
319 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
320 --includedir=DIR C header files in DIR [PREFIX/include]
321 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
322 --infodir=DIR info documentation in DIR [PREFIX/info]
323 --mandir=DIR man documentation in DIR [PREFIX/man]
324 --srcdir=DIR find the sources in DIR [configure dir or ..]
325 --program-prefix=PREFIX prepend PREFIX to installed program names
326 --program-suffix=SUFFIX append SUFFIX to installed program names
327 --program-transform-name=PROGRAM
328 run sed PROGRAM on installed program names
332 --build=BUILD configure for building on BUILD [BUILD=HOST]
333 --host=HOST configure for HOST [guessed]
334 --target=TARGET configure for TARGET [TARGET=HOST]
335 Features and packages:
336 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
337 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
338 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
339 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
340 --x-includes=DIR X include files are in DIR
341 --x-libraries=DIR X library files are in DIR
343 if test -n "$ac_help"; then
344 echo "--enable and --with options recognized:$ac_help"
348 -host | --host | --hos | --ho)
350 -host=* | --host=* | --hos=* | --ho=*)
353 -includedir | --includedir | --includedi | --included | --include \
354 | --includ | --inclu | --incl | --inc)
355 ac_prev=includedir ;;
356 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
357 | --includ=* | --inclu=* | --incl=* | --inc=*)
358 includedir="$ac_optarg" ;;
360 -infodir | --infodir | --infodi | --infod | --info | --inf)
362 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
363 infodir="$ac_optarg" ;;
365 -libdir | --libdir | --libdi | --libd)
367 -libdir=* | --libdir=* | --libdi=* | --libd=*)
368 libdir="$ac_optarg" ;;
370 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
371 | --libexe | --libex | --libe)
372 ac_prev=libexecdir ;;
373 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
374 | --libexe=* | --libex=* | --libe=*)
375 libexecdir="$ac_optarg" ;;
377 -localstatedir | --localstatedir | --localstatedi | --localstated \
378 | --localstate | --localstat | --localsta | --localst \
379 | --locals | --local | --loca | --loc | --lo)
380 ac_prev=localstatedir ;;
381 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
382 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
383 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
384 localstatedir="$ac_optarg" ;;
386 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
388 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
389 mandir="$ac_optarg" ;;
392 # Obsolete; use --without-fp.
395 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
399 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
400 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
403 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
404 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
405 | --oldin | --oldi | --old | --ol | --o)
406 ac_prev=oldincludedir ;;
407 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
408 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
409 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
410 oldincludedir="$ac_optarg" ;;
412 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
414 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
415 prefix="$ac_optarg" ;;
417 -program-prefix | --program-prefix | --program-prefi | --program-pref \
418 | --program-pre | --program-pr | --program-p)
419 ac_prev=program_prefix ;;
420 -program-prefix=* | --program-prefix=* | --program-prefi=* \
421 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
422 program_prefix="$ac_optarg" ;;
424 -program-suffix | --program-suffix | --program-suffi | --program-suff \
425 | --program-suf | --program-su | --program-s)
426 ac_prev=program_suffix ;;
427 -program-suffix=* | --program-suffix=* | --program-suffi=* \
428 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
429 program_suffix="$ac_optarg" ;;
431 -program-transform-name | --program-transform-name \
432 | --program-transform-nam | --program-transform-na \
433 | --program-transform-n | --program-transform- \
434 | --program-transform | --program-transfor \
435 | --program-transfo | --program-transf \
436 | --program-trans | --program-tran \
437 | --progr-tra | --program-tr | --program-t)
438 ac_prev=program_transform_name ;;
439 -program-transform-name=* | --program-transform-name=* \
440 | --program-transform-nam=* | --program-transform-na=* \
441 | --program-transform-n=* | --program-transform-=* \
442 | --program-transform=* | --program-transfor=* \
443 | --program-transfo=* | --program-transf=* \
444 | --program-trans=* | --program-tran=* \
445 | --progr-tra=* | --program-tr=* | --program-t=*)
446 program_transform_name="$ac_optarg" ;;
448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
449 | -silent | --silent | --silen | --sile | --sil)
452 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
454 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
456 sbindir="$ac_optarg" ;;
458 -sharedstatedir | --sharedstatedir | --sharedstatedi \
459 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
460 | --sharedst | --shareds | --shared | --share | --shar \
462 ac_prev=sharedstatedir ;;
463 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
464 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
465 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
467 sharedstatedir="$ac_optarg" ;;
469 -site | --site | --sit)
471 -site=* | --site=* | --sit=*)
474 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
476 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
477 srcdir="$ac_optarg" ;;
479 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
480 | --syscon | --sysco | --sysc | --sys | --sy)
481 ac_prev=sysconfdir ;;
482 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
483 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
484 sysconfdir="$ac_optarg" ;;
486 -target | --target | --targe | --targ | --tar | --ta | --t)
488 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
489 target="$ac_optarg" ;;
491 -v | -verbose | --verbose | --verbos | --verbo | --verb)
494 -version | --version | --versio | --versi | --vers)
495 echo "configure generated by autoconf version 2.13"
499 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
500 # Reject names that are not valid shell variable names.
501 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
502 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
504 ac_package=`echo $ac_package| sed 's/-/_/g'`
509 eval "with_${ac_package}='$ac_optarg'" ;;
511 -without-* | --without-*)
512 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
513 # Reject names that are not valid shell variable names.
514 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
515 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
517 ac_package=`echo $ac_package| sed 's/-/_/g'`
518 eval "with_${ac_package}=no" ;;
521 # Obsolete; use --with-x.
524 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
525 | --x-incl | --x-inc | --x-in | --x-i)
526 ac_prev=x_includes ;;
527 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
528 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
529 x_includes="$ac_optarg" ;;
531 -x-libraries | --x-libraries | --x-librarie | --x-librari \
532 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
533 ac_prev=x_libraries ;;
534 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
535 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
536 x_libraries="$ac_optarg" ;;
538 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
542 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
543 echo "configure: warning: $ac_option: invalid host type" 1>&2
545 if test "x$nonopt" != xNONE; then
546 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
554 if test -n "$ac_prev"; then
555 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
558 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
560 # File descriptor usage:
563 # 2 errors and warnings
564 # 3 some systems may open it to /dev/tty
565 # 4 used on the Kubota Titan
566 # 6 checking for... messages and results
567 # 5 compiler messages saved in config.log
568 if test "$silent" = yes; then
576 This file contains any messages produced by compilers while
577 running configure, to aid debugging if configure makes a mistake.
580 # Strip out --no-create and --no-recursion so they do not pile up.
581 # Also quote any args containing shell metacharacters.
586 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
587 | --no-cr | --no-c) ;;
588 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
589 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
590 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
591 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
592 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
597 # Only set these to C if already set. These must not be set unconditionally
598 # because not all systems understand e.g. LANG=C (notably SCO).
599 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
600 # Non-C LC_CTYPE values break the ctype check.
601 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
602 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
603 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
604 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
606 # confdefs.h avoids OS command line length limits that DEFS can exceed.
607 rm -rf conftest* confdefs.h
608 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
611 # A filename unique to this package, relative to the directory that
612 # configure is in, which we can look for to find out if srcdir is correct.
613 ac_unique_file=Makefile.in
615 # Find the source files, if location was not specified.
616 if test -z "$srcdir"; then
617 ac_srcdir_defaulted=yes
618 # Try the directory containing this script, then its parent.
620 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
621 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
623 if test ! -r $srcdir/$ac_unique_file; then
627 ac_srcdir_defaulted=no
629 if test ! -r $srcdir/$ac_unique_file; then
630 if test "$ac_srcdir_defaulted" = yes; then
631 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
633 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
636 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
638 # Prefer explicitly selected file to automatically selected ones.
639 if test -z "$CONFIG_SITE"; then
640 if test "x$prefix" != xNONE; then
641 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
643 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
646 for ac_site_file in $CONFIG_SITE; do
647 if test -r "$ac_site_file"; then
648 echo "loading site script $ac_site_file"
653 if test -r "$cache_file"; then
654 echo "loading cache $cache_file"
657 echo "creating cache $cache_file"
662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
663 ac_cpp='$CPP $CPPFLAGS'
664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
666 cross_compiling=$ac_cv_prog_cc_cross
670 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
672 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
679 ac_n= ac_c='\c' ac_t=
684 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
685 echo "configure:686: checking how to run the C preprocessor" >&5
686 # On Suns, sometimes $CPP names a directory.
687 if test -n "$CPP" && test -d "$CPP"; then
690 if test -z "$CPP"; then
691 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&6
694 # This must be in double quotes, not single quotes, because CPP may get
695 # substituted into the Makefile and "${CC-cc}" will confuse make.
697 # On the NeXT, cc -E runs the code through the compiler's parser,
698 # not just through cpp.
699 cat > conftest.$ac_ext <<EOF
700 #line 701 "configure"
701 #include "confdefs.h"
705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
706 { (eval echo configure:707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
708 if test -z "$ac_err"; then
712 echo "configure: failed program was:" >&5
713 cat conftest.$ac_ext >&5
715 CPP="${CC-cc} -E -traditional-cpp"
716 cat > conftest.$ac_ext <<EOF
717 #line 718 "configure"
718 #include "confdefs.h"
722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
723 { (eval echo configure:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
725 if test -z "$ac_err"; then
729 echo "configure: failed program was:" >&5
730 cat conftest.$ac_ext >&5
732 CPP="${CC-cc} -nologo -E"
733 cat > conftest.$ac_ext <<EOF
734 #line 735 "configure"
735 #include "confdefs.h"
739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
740 { (eval echo configure:741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
742 if test -z "$ac_err"; then
746 echo "configure: failed program was:" >&5
747 cat conftest.$ac_ext >&5
756 ac_cv_prog_CPP="$CPP"
758 CPP="$ac_cv_prog_CPP"
760 ac_cv_prog_CPP="$CPP"
762 echo "$ac_t""$CPP" 1>&6
764 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
765 echo "configure:766: checking whether ${MAKE-make} sets \${MAKE}" >&5
766 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
767 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
770 cat > conftestmake <<\EOF
772 @echo 'ac_maketemp="${MAKE}"'
774 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
775 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
776 if test -n "$ac_maketemp"; then
777 eval ac_cv_prog_make_${ac_make}_set=yes
779 eval ac_cv_prog_make_${ac_make}_set=no
783 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
784 echo "$ac_t""yes" 1>&6
787 echo "$ac_t""no" 1>&6
788 SET_MAKE="MAKE=${MAKE-make}"
791 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
792 echo "configure:793: checking for POSIXized ISC" >&5
793 if test -d /etc/conf/kconfig.d &&
794 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
796 echo "$ac_t""yes" 1>&6
797 ISC=yes # If later tests want to check for ISC.
798 cat >> confdefs.h <<\EOF
799 #define _POSIX_SOURCE 1
802 if test "$GCC" = yes; then
808 echo "$ac_t""no" 1>&6
812 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
813 echo "configure:814: checking for ANSI C header files" >&5
814 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 cat > conftest.$ac_ext <<EOF
818 #line 819 "configure"
819 #include "confdefs.h"
825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
826 { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
828 if test -z "$ac_err"; then
830 ac_cv_header_stdc=yes
833 echo "configure: failed program was:" >&5
834 cat conftest.$ac_ext >&5
840 if test $ac_cv_header_stdc = yes; then
841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
842 cat > conftest.$ac_ext <<EOF
843 #line 844 "configure"
844 #include "confdefs.h"
847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
848 egrep "memchr" >/dev/null 2>&1; then
858 if test $ac_cv_header_stdc = yes; then
859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
860 cat > conftest.$ac_ext <<EOF
861 #line 862 "configure"
862 #include "confdefs.h"
865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
866 egrep "free" >/dev/null 2>&1; then
876 if test $ac_cv_header_stdc = yes; then
877 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
878 if test "$cross_compiling" = yes; then
881 cat > conftest.$ac_ext <<EOF
882 #line 883 "configure"
883 #include "confdefs.h"
885 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
886 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
888 int main () { int i; for (i = 0; i < 256; i++)
889 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
893 if { (eval echo configure:894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
897 echo "configure: failed program was:" >&5
898 cat conftest.$ac_ext >&5
908 echo "$ac_t""$ac_cv_header_stdc" 1>&6
909 if test $ac_cv_header_stdc = yes; then
910 cat >> confdefs.h <<\EOF
911 #define STDC_HEADERS 1
916 echo $ac_n "checking for working const""... $ac_c" 1>&6
917 echo "configure:918: checking for working const" >&5
918 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 cat > conftest.$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
927 /* Ultrix mips cc rejects this. */
928 typedef int charset[2]; const charset x;
929 /* SunOS 4.1.1 cc rejects this. */
930 char const *const *ccp;
932 /* NEC SVR4.0.2 mips cc rejects this. */
933 struct point {int x, y;};
934 static struct point const zero = {0,0};
935 /* AIX XL C 1.02.0.0 rejects this.
936 It does not let you subtract one const X* pointer from another in an arm
937 of an if-expression whose if-part is not a constant expression */
938 const char *g = "string";
939 ccp = &g + (g ? g-g : 0);
940 /* HPUX 7.0 cc rejects these. */
943 ccp = (char const *const *) p;
944 { /* SCO 3.2v4 cc rejects this. */
946 char const *s = 0 ? (char *) 0 : (char const *) 0;
950 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
952 const int *foo = &x[0];
955 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
956 typedef const int *iptr;
960 { /* AIX XL C 1.02.0.0 rejects this saying
961 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
962 struct s { int j; const int *ap[3]; };
963 struct s *b; b->j = 5;
965 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
971 if { (eval echo configure:972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
975 echo "configure: failed program was:" >&5
976 cat conftest.$ac_ext >&5
983 echo "$ac_t""$ac_cv_c_const" 1>&6
984 if test $ac_cv_c_const = no; then
985 cat >> confdefs.h <<\EOF
991 echo $ac_n "checking for inline""... $ac_c" 1>&6
992 echo "configure:993: checking for inline" >&5
993 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
997 for ac_kw in inline __inline__ __inline; do
998 cat > conftest.$ac_ext <<EOF
999 #line 1000 "configure"
1000 #include "confdefs.h"
1006 if { (eval echo configure:1007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1008 ac_cv_c_inline=$ac_kw; break
1010 echo "configure: failed program was:" >&5
1011 cat conftest.$ac_ext >&5
1018 echo "$ac_t""$ac_cv_c_inline" 1>&6
1019 case "$ac_cv_c_inline" in
1021 no) cat >> confdefs.h <<\EOF
1025 *) cat >> confdefs.h <<EOF
1026 #define inline $ac_cv_c_inline
1031 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1032 echo "configure:1033: checking for off_t" >&5
1033 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 cat > conftest.$ac_ext <<EOF
1037 #line 1038 "configure"
1038 #include "confdefs.h"
1039 #include <sys/types.h>
1045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1046 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1048 ac_cv_type_off_t=yes
1056 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1057 if test $ac_cv_type_off_t = no; then
1058 cat >> confdefs.h <<\EOF
1064 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1065 echo "configure:1066: checking for size_t" >&5
1066 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1069 cat > conftest.$ac_ext <<EOF
1070 #line 1071 "configure"
1071 #include "confdefs.h"
1072 #include <sys/types.h>
1078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1079 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1081 ac_cv_type_size_t=yes
1084 ac_cv_type_size_t=no
1089 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1090 if test $ac_cv_type_size_t = no; then
1091 cat >> confdefs.h <<\EOF
1092 #define size_t unsigned
1097 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1098 # for constant arguments. Useless!
1099 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1100 echo "configure:1101: checking for working alloca.h" >&5
1101 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 cat > conftest.$ac_ext <<EOF
1105 #line 1106 "configure"
1106 #include "confdefs.h"
1109 char *p = alloca(2 * sizeof(int));
1112 if { (eval echo configure:1113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1114 ac_cv_header_alloca_h=yes
1116 echo "configure: failed program was:" >&5
1117 cat conftest.$ac_ext >&5
1119 ac_cv_header_alloca_h=no
1124 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1125 if test $ac_cv_header_alloca_h = yes; then
1126 cat >> confdefs.h <<\EOF
1127 #define HAVE_ALLOCA_H 1
1132 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1133 echo "configure:1134: checking for alloca" >&5
1134 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1137 cat > conftest.$ac_ext <<EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1142 # define alloca __builtin_alloca
1145 # include <malloc.h>
1146 # define alloca _alloca
1149 # include <alloca.h>
1154 # ifndef alloca /* predefined by HP cc +Olibcalls */
1163 char *p = (char *) alloca(1);
1166 if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1168 ac_cv_func_alloca_works=yes
1170 echo "configure: failed program was:" >&5
1171 cat conftest.$ac_ext >&5
1173 ac_cv_func_alloca_works=no
1178 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1179 if test $ac_cv_func_alloca_works = yes; then
1180 cat >> confdefs.h <<\EOF
1181 #define HAVE_ALLOCA 1
1186 if test $ac_cv_func_alloca_works = no; then
1187 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1188 # that cause trouble. Some versions do not even contain alloca or
1189 # contain a buggy version. If you still want to use their alloca,
1190 # use ar to extract alloca.o from them instead of compiling alloca.c.
1191 ALLOCA=alloca.${ac_objext}
1192 cat >> confdefs.h <<\EOF
1197 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1198 echo "configure:1199: checking whether alloca needs Cray hooks" >&5
1199 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 cat > conftest.$ac_ext <<EOF
1203 #line 1204 "configure"
1204 #include "confdefs.h"
1205 #if defined(CRAY) && ! defined(CRAY2)
1212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1213 egrep "webecray" >/dev/null 2>&1; then
1224 echo "$ac_t""$ac_cv_os_cray" 1>&6
1225 if test $ac_cv_os_cray = yes; then
1226 for ac_func in _getb67 GETB67 getb67; do
1227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1228 echo "configure:1229: checking for $ac_func" >&5
1229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 cat > conftest.$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1235 /* System header to define __stub macros and hopefully few prototypes,
1236 which can conflict with char $ac_func(); below. */
1238 /* Override any gcc2 internal prototype to avoid an error. */
1239 /* We use char because int might match the return type of a gcc2
1240 builtin and then its argument prototype would still apply. */
1245 /* The GNU C library defines this for functions which it implements
1246 to always fail with ENOSYS. Some functions are actually named
1247 something starting with __ and the normal name is an alias. */
1248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1256 if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1258 eval "ac_cv_func_$ac_func=yes"
1260 echo "configure: failed program was:" >&5
1261 cat conftest.$ac_ext >&5
1263 eval "ac_cv_func_$ac_func=no"
1268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1269 echo "$ac_t""yes" 1>&6
1270 cat >> confdefs.h <<EOF
1271 #define CRAY_STACKSEG_END $ac_func
1276 echo "$ac_t""no" 1>&6
1282 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1283 echo "configure:1284: checking stack direction for C alloca" >&5
1284 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 if test "$cross_compiling" = yes; then
1288 ac_cv_c_stack_direction=0
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1293 find_stack_direction ()
1295 static char *addr = 0;
1300 return find_stack_direction ();
1303 return (&dummy > addr) ? 1 : -1;
1307 exit (find_stack_direction() < 0);
1310 if { (eval echo configure:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1312 ac_cv_c_stack_direction=1
1314 echo "configure: failed program was:" >&5
1315 cat conftest.$ac_ext >&5
1317 ac_cv_c_stack_direction=-1
1324 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1325 cat >> confdefs.h <<EOF
1326 #define STACK_DIRECTION $ac_cv_c_stack_direction
1331 for ac_hdr in unistd.h
1333 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1334 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1335 echo "configure:1336: checking for $ac_hdr" >&5
1336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1345 { (eval echo configure:1346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1347 if test -z "$ac_err"; then
1349 eval "ac_cv_header_$ac_safe=yes"
1352 echo "configure: failed program was:" >&5
1353 cat conftest.$ac_ext >&5
1355 eval "ac_cv_header_$ac_safe=no"
1359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1360 echo "$ac_t""yes" 1>&6
1361 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1362 cat >> confdefs.h <<EOF
1363 #define $ac_tr_hdr 1
1367 echo "$ac_t""no" 1>&6
1371 for ac_func in getpagesize
1373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_func" >&5
1375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1381 /* System header to define __stub macros and hopefully few prototypes,
1382 which can conflict with char $ac_func(); below. */
1384 /* Override any gcc2 internal prototype to avoid an error. */
1385 /* We use char because int might match the return type of a gcc2
1386 builtin and then its argument prototype would still apply. */
1391 /* The GNU C library defines this for functions which it implements
1392 to always fail with ENOSYS. Some functions are actually named
1393 something starting with __ and the normal name is an alias. */
1394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1402 if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1404 eval "ac_cv_func_$ac_func=yes"
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1409 eval "ac_cv_func_$ac_func=no"
1414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1415 echo "$ac_t""yes" 1>&6
1416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1417 cat >> confdefs.h <<EOF
1418 #define $ac_tr_func 1
1422 echo "$ac_t""no" 1>&6
1426 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1427 echo "configure:1428: checking for working mmap" >&5
1428 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 if test "$cross_compiling" = yes; then
1432 ac_cv_func_mmap_fixed_mapped=no
1434 cat > conftest.$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1438 /* Thanks to Mike Haertel and Jim Avera for this test.
1439 Here is a matrix of mmap possibilities:
1440 mmap private not fixed
1441 mmap private fixed at somewhere currently unmapped
1442 mmap private fixed at somewhere already mapped
1443 mmap shared not fixed
1444 mmap shared fixed at somewhere currently unmapped
1445 mmap shared fixed at somewhere already mapped
1446 For private mappings, we should verify that changes cannot be read()
1447 back from the file, nor mmap's back from the file at a different
1448 address. (There have been systems where private was not correctly
1449 implemented like the infamous i386 svr4.0, and systems where the
1450 VM page cache was not coherent with the filesystem buffer cache
1451 like early versions of FreeBSD and possibly contemporary NetBSD.)
1452 For shared mappings, we should conversely verify that changes get
1453 propogated back to all the places they're supposed to be.
1455 Grep wants private fixed already mapped.
1456 The main things grep needs to know about mmap are:
1457 * does it exist and is it safe to write into the mmap'd area
1458 * how to use it (BSD variants) */
1459 #include <sys/types.h>
1461 #include <sys/mman.h>
1463 /* This mess was copied from the GNU getpagesize.h. */
1464 #ifndef HAVE_GETPAGESIZE
1465 # ifdef HAVE_UNISTD_H
1466 # include <unistd.h>
1469 /* Assume that all systems that can run configure have sys/param.h. */
1470 # ifndef HAVE_SYS_PARAM_H
1471 # define HAVE_SYS_PARAM_H 1
1474 # ifdef _SC_PAGESIZE
1475 # define getpagesize() sysconf(_SC_PAGESIZE)
1476 # else /* no _SC_PAGESIZE */
1477 # ifdef HAVE_SYS_PARAM_H
1478 # include <sys/param.h>
1479 # ifdef EXEC_PAGESIZE
1480 # define getpagesize() EXEC_PAGESIZE
1481 # else /* no EXEC_PAGESIZE */
1483 # define getpagesize() NBPG * CLSIZE
1486 # endif /* no CLSIZE */
1487 # else /* no NBPG */
1489 # define getpagesize() NBPC
1490 # else /* no NBPC */
1492 # define getpagesize() PAGESIZE
1493 # endif /* PAGESIZE */
1494 # endif /* no NBPC */
1495 # endif /* no NBPG */
1496 # endif /* no EXEC_PAGESIZE */
1497 # else /* no HAVE_SYS_PARAM_H */
1498 # define getpagesize() 8192 /* punt totally */
1499 # endif /* no HAVE_SYS_PARAM_H */
1500 # endif /* no _SC_PAGESIZE */
1502 #endif /* no HAVE_GETPAGESIZE */
1505 extern "C" { void *malloc(unsigned); }
1513 char *data, *data2, *data3;
1517 pagesize = getpagesize();
1520 * First, make a file with some known garbage in it.
1522 data = malloc(pagesize);
1525 for (i = 0; i < pagesize; ++i)
1526 *(data + i) = rand();
1528 fd = creat("conftestmmap", 0600);
1531 if (write(fd, data, pagesize) != pagesize)
1536 * Next, try to mmap the file at a fixed address which
1537 * already has something else allocated at it. If we can,
1538 * also make sure that we see the same garbage.
1540 fd = open("conftestmmap", O_RDWR);
1543 data2 = malloc(2 * pagesize);
1546 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1547 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1548 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1550 for (i = 0; i < pagesize; ++i)
1551 if (*(data + i) != *(data2 + i))
1555 * Finally, make sure that changes to the mapped area
1556 * do not percolate back to the file as seen by read().
1557 * (This is a bug on some variants of i386 svr4.0.)
1559 for (i = 0; i < pagesize; ++i)
1560 *(data2 + i) = *(data2 + i) + 1;
1561 data3 = malloc(pagesize);
1564 if (read(fd, data3, pagesize) != pagesize)
1566 for (i = 0; i < pagesize; ++i)
1567 if (*(data + i) != *(data3 + i))
1570 unlink("conftestmmap");
1575 if { (eval echo configure:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1577 ac_cv_func_mmap_fixed_mapped=yes
1579 echo "configure: failed program was:" >&5
1580 cat conftest.$ac_ext >&5
1582 ac_cv_func_mmap_fixed_mapped=no
1589 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1590 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1591 cat >> confdefs.h <<\EOF
1597 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1598 echo "configure:1599: checking for Cygwin environment" >&5
1599 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1609 #define __CYGWIN__ __CYGWIN32__
1614 if { (eval echo configure:1615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1627 echo "$ac_t""$ac_cv_cygwin" 1>&6
1629 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1630 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1631 echo "configure:1632: checking for mingw32 environment" >&5
1632 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 cat > conftest.$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1643 if { (eval echo configure:1644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1647 echo "configure: failed program was:" >&5
1648 cat conftest.$ac_ext >&5
1656 echo "$ac_t""$ac_cv_mingw32" 1>&6
1658 test "$ac_cv_mingw32" = yes && MINGW32=yes
1660 # autoconf.info says this should be called right after AC_INIT.
1664 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1665 if test -f $ac_dir/install-sh; then
1667 ac_install_sh="$ac_aux_dir/install-sh -c"
1669 elif test -f $ac_dir/install.sh; then
1671 ac_install_sh="$ac_aux_dir/install.sh -c"
1675 if test -z "$ac_aux_dir"; then
1676 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1678 ac_config_guess=$ac_aux_dir/config.guess
1679 ac_config_sub=$ac_aux_dir/config.sub
1680 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1683 # Do some error checking and defaulting for the host and target type.
1685 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1688 # 1. You are not allowed to specify --host, --target, and nonopt at the
1690 # 2. Host defaults to nonopt.
1691 # 3. If nonopt is not specified, then host defaults to the current host,
1692 # as determined by config.guess.
1693 # 4. Target and build default to nonopt.
1694 # 5. If nonopt is not specified, then target and build default to host.
1696 # The aliases save the names the user supplied, while $host etc.
1697 # will get canonicalized.
1698 case $host---$target---$nonopt in
1699 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1700 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1704 # Make sure we can run config.sub.
1705 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1706 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1709 echo $ac_n "checking host system type""... $ac_c" 1>&6
1710 echo "configure:1711: checking host system type" >&5
1713 case "$host_alias" in
1717 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1718 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1720 *) host_alias=$nonopt ;;
1724 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1725 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1726 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1727 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1728 echo "$ac_t""$host" 1>&6
1730 echo $ac_n "checking target system type""... $ac_c" 1>&6
1731 echo "configure:1732: checking target system type" >&5
1733 target_alias=$target
1734 case "$target_alias" in
1737 NONE) target_alias=$host_alias ;;
1738 *) target_alias=$nonopt ;;
1742 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1743 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1744 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1745 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746 echo "$ac_t""$target" 1>&6
1748 echo $ac_n "checking build system type""... $ac_c" 1>&6
1749 echo "configure:1750: checking build system type" >&5
1752 case "$build_alias" in
1755 NONE) build_alias=$host_alias ;;
1756 *) build_alias=$nonopt ;;
1760 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1761 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1762 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1763 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1764 echo "$ac_t""$build" 1>&6
1766 test "$host_alias" != "$target_alias" &&
1767 test "$program_prefix$program_suffix$program_transform_name" = \
1769 program_prefix=${target_alias}-
1771 if test "$program_transform_name" = s,x,x,; then
1772 program_transform_name=
1774 # Double any \ or $. echo might interpret backslashes.
1775 cat <<\EOF_SED > conftestsed
1776 s,\\,\\\\,g; s,\$,$$,g
1778 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1781 test "$program_prefix" != NONE &&
1782 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1783 # Use a double $ so make ignores it.
1784 test "$program_suffix" != NONE &&
1785 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1787 # sed with no file args requires a program.
1788 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1790 # Extract the first word of "gcc", so it can be a program name with args.
1791 set dummy gcc; ac_word=$2
1792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1793 echo "configure:1794: checking for $ac_word" >&5
1794 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 if test -n "$CC"; then
1798 ac_cv_prog_CC="$CC" # Let the user override the test.
1800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1802 for ac_dir in $ac_dummy; do
1803 test -z "$ac_dir" && ac_dir=.
1804 if test -f $ac_dir/$ac_word; then
1813 if test -n "$CC"; then
1814 echo "$ac_t""$CC" 1>&6
1816 echo "$ac_t""no" 1>&6
1819 if test -z "$CC"; then
1820 # Extract the first word of "cc", so it can be a program name with args.
1821 set dummy cc; ac_word=$2
1822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1823 echo "configure:1824: checking for $ac_word" >&5
1824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1833 for ac_dir in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir=.
1835 if test -f $ac_dir/$ac_word; then
1836 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1837 ac_prog_rejected=yes
1845 if test $ac_prog_rejected = yes; then
1846 # We found a bogon in the path, so make sure we never use it.
1847 set dummy $ac_cv_prog_CC
1849 if test $# -gt 0; then
1850 # We chose a different compiler from the bogus one.
1851 # However, it has the same basename, so the bogon will be chosen
1852 # first if we set CC to just the basename; use the full file name.
1854 set dummy "$ac_dir/$ac_word" "$@"
1862 if test -n "$CC"; then
1863 echo "$ac_t""$CC" 1>&6
1865 echo "$ac_t""no" 1>&6
1868 if test -z "$CC"; then
1869 case "`uname -s`" in
1871 # Extract the first word of "cl", so it can be a program name with args.
1872 set dummy cl; ac_word=$2
1873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1874 echo "configure:1875: checking for $ac_word" >&5
1875 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1883 for ac_dir in $ac_dummy; do
1884 test -z "$ac_dir" && ac_dir=.
1885 if test -f $ac_dir/$ac_word; then
1894 if test -n "$CC"; then
1895 echo "$ac_t""$CC" 1>&6
1897 echo "$ac_t""no" 1>&6
1902 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1905 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1906 echo "configure:1907: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1913 cross_compiling=$ac_cv_prog_cc_cross
1915 cat > conftest.$ac_ext << EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1922 if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1923 ac_cv_prog_cc_works=yes
1924 # If we can't run a trivial program, we are probably using a cross compiler.
1925 if (./conftest; exit) 2>/dev/null; then
1926 ac_cv_prog_cc_cross=no
1928 ac_cv_prog_cc_cross=yes
1931 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1933 ac_cv_prog_cc_works=no
1937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1941 cross_compiling=$ac_cv_prog_cc_cross
1943 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1944 if test $ac_cv_prog_cc_works = no; then
1945 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1948 echo "configure:1949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1949 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1950 cross_compiling=$ac_cv_prog_cc_cross
1952 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether we are using GNU C" >&5
1954 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 cat > conftest.c <<EOF
1962 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1969 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1971 if test $ac_cv_prog_gcc = yes; then
1977 ac_test_CFLAGS="${CFLAGS+set}"
1978 ac_save_CFLAGS="$CFLAGS"
1980 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1981 echo "configure:1982: checking whether ${CC-cc} accepts -g" >&5
1982 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 echo 'void f(){}' > conftest.c
1986 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1995 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1996 if test "$ac_test_CFLAGS" = set; then
1997 CFLAGS="$ac_save_CFLAGS"
1998 elif test $ac_cv_prog_cc_g = yes; then
1999 if test "$GCC" = yes; then
2005 if test "$GCC" = yes; then
2012 # Find a good install program. We prefer a C program (faster),
2013 # so one script is as good as another. But avoid the broken or
2014 # incompatible versions:
2015 # SysV /etc/install, /usr/sbin/install
2016 # SunOS /usr/etc/install
2017 # IRIX /sbin/install
2019 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2022 # ./install, which can be erroneously created by make from ./install.sh.
2023 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2024 echo "configure:2025: checking for a BSD compatible install" >&5
2025 if test -z "$INSTALL"; then
2026 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2030 for ac_dir in $PATH; do
2031 # Account for people who put trailing slashes in PATH elements.
2033 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2035 # OSF1 and SCO ODT 3.0 have their own names for install.
2036 # Don't use installbsd from OSF since it installs stuff as root
2038 for ac_prog in ginstall scoinst install; do
2039 if test -f $ac_dir/$ac_prog; then
2040 if test $ac_prog = install &&
2041 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2042 # AIX install. It has an incompatible calling convention.
2045 ac_cv_path_install="$ac_dir/$ac_prog -c"
2056 if test "${ac_cv_path_install+set}" = set; then
2057 INSTALL="$ac_cv_path_install"
2059 # As a last resort, use the slow shell script. We don't cache a
2060 # path for INSTALL within a source directory, because that will
2061 # break other packages using the cache if that directory is
2062 # removed, or if the path is relative.
2063 INSTALL="$ac_install_sh"
2066 echo "$ac_t""$INSTALL" 1>&6
2068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2069 # It thinks the first close brace ends the variable substitution.
2070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2072 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2074 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2077 # Put a plausible default for CC_FOR_BUILD in Makefile.
2078 if test "x$cross_compiling" = "xno"; then
2079 CC_FOR_BUILD='$(CC)'
2089 # Extract the first word of "ranlib", so it can be a program name with args.
2090 set dummy ranlib; ac_word=$2
2091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2092 echo "configure:2093: checking for $ac_word" >&5
2093 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 if test -n "$RANLIB"; then
2097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2101 for ac_dir in $ac_dummy; do
2102 test -z "$ac_dir" && ac_dir=.
2103 if test -f $ac_dir/$ac_word; then
2104 ac_cv_prog_RANLIB="ranlib"
2109 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2112 RANLIB="$ac_cv_prog_RANLIB"
2113 if test -n "$RANLIB"; then
2114 echo "$ac_t""$RANLIB" 1>&6
2116 echo "$ac_t""no" 1>&6
2122 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2123 unistd.h values.h sys/param.h
2125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2127 echo "configure:2128: checking for $ac_hdr" >&5
2128 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 cat > conftest.$ac_ext <<EOF
2132 #line 2133 "configure"
2133 #include "confdefs.h"
2136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2137 { (eval echo configure:2138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2139 if test -z "$ac_err"; then
2141 eval "ac_cv_header_$ac_safe=yes"
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2147 eval "ac_cv_header_$ac_safe=no"
2151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2152 echo "$ac_t""yes" 1>&6
2153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2154 cat >> confdefs.h <<EOF
2155 #define $ac_tr_hdr 1
2159 echo "$ac_t""no" 1>&6
2163 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2164 __argz_count __argz_stringify __argz_next
2166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2167 echo "configure:2168: checking for $ac_func" >&5
2168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 cat > conftest.$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2174 /* System header to define __stub macros and hopefully few prototypes,
2175 which can conflict with char $ac_func(); below. */
2177 /* Override any gcc2 internal prototype to avoid an error. */
2178 /* We use char because int might match the return type of a gcc2
2179 builtin and then its argument prototype would still apply. */
2184 /* The GNU C library defines this for functions which it implements
2185 to always fail with ENOSYS. Some functions are actually named
2186 something starting with __ and the normal name is an alias. */
2187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2195 if { (eval echo configure:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2197 eval "ac_cv_func_$ac_func=yes"
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2202 eval "ac_cv_func_$ac_func=no"
2207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2210 cat >> confdefs.h <<EOF
2211 #define $ac_tr_func 1
2215 echo "$ac_t""no" 1>&6
2220 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2221 for ac_func in stpcpy
2223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2224 echo "configure:2225: checking for $ac_func" >&5
2225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 /* System header to define __stub macros and hopefully few prototypes,
2232 which can conflict with char $ac_func(); below. */
2234 /* Override any gcc2 internal prototype to avoid an error. */
2235 /* We use char because int might match the return type of a gcc2
2236 builtin and then its argument prototype would still apply. */
2241 /* The GNU C library defines this for functions which it implements
2242 to always fail with ENOSYS. Some functions are actually named
2243 something starting with __ and the normal name is an alias. */
2244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2252 if { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2254 eval "ac_cv_func_$ac_func=yes"
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2259 eval "ac_cv_func_$ac_func=no"
2264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2267 cat >> confdefs.h <<EOF
2268 #define $ac_tr_func 1
2272 echo "$ac_t""no" 1>&6
2277 if test "${ac_cv_func_stpcpy}" = "yes"; then
2278 cat >> confdefs.h <<\EOF
2279 #define HAVE_STPCPY 1
2284 if test $ac_cv_header_locale_h = yes; then
2285 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2286 echo "configure:2287: checking for LC_MESSAGES" >&5
2287 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2300 am_cv_val_LC_MESSAGES=yes
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2305 am_cv_val_LC_MESSAGES=no
2310 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2311 if test $am_cv_val_LC_MESSAGES = yes; then
2312 cat >> confdefs.h <<\EOF
2313 #define HAVE_LC_MESSAGES 1
2318 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2319 echo "configure:2320: checking whether NLS is requested" >&5
2320 # Check whether --enable-nls or --disable-nls was given.
2321 if test "${enable_nls+set}" = set; then
2322 enableval="$enable_nls"
2328 echo "$ac_t""$USE_NLS" 1>&6
2331 USE_INCLUDED_LIBINTL=no
2333 if test "$USE_NLS" = "yes"; then
2334 cat >> confdefs.h <<\EOF
2335 #define ENABLE_NLS 1
2338 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2339 echo "configure:2340: checking whether included gettext is requested" >&5
2340 # Check whether --with-included-gettext or --without-included-gettext was given.
2341 if test "${with_included_gettext+set}" = set; then
2342 withval="$with_included_gettext"
2343 nls_cv_force_use_gnu_gettext=$withval
2345 nls_cv_force_use_gnu_gettext=no
2348 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2350 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2351 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2353 nls_cv_header_libgt=
2356 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2357 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2358 echo "configure:2359: checking for libintl.h" >&5
2359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 cat > conftest.$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2365 #include <libintl.h>
2367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2368 { (eval echo configure:2369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2370 if test -z "$ac_err"; then
2372 eval "ac_cv_header_$ac_safe=yes"
2375 echo "configure: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2378 eval "ac_cv_header_$ac_safe=no"
2382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2383 echo "$ac_t""yes" 1>&6
2384 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2385 echo "configure:2386: checking for gettext in libc" >&5
2386 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 cat > conftest.$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2392 #include <libintl.h>
2394 return (int) gettext ("")
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2399 gt_cv_func_gettext_libc=yes
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2404 gt_cv_func_gettext_libc=no
2409 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2411 if test "$gt_cv_func_gettext_libc" != "yes"; then
2412 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2413 echo "configure:2414: checking for bindtextdomain in -lintl" >&5
2414 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2416 echo $ac_n "(cached) $ac_c" 1>&6
2418 ac_save_LIBS="$LIBS"
2420 cat > conftest.$ac_ext <<EOF
2421 #line 2422 "configure"
2422 #include "confdefs.h"
2423 /* Override any gcc2 internal prototype to avoid an error. */
2424 /* We use char because int might match the return type of a gcc2
2425 builtin and then its argument prototype would still apply. */
2426 char bindtextdomain();
2432 if { (eval echo configure:2433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2434 eval "ac_cv_lib_$ac_lib_var=yes"
2436 echo "configure: failed program was:" >&5
2437 cat conftest.$ac_ext >&5
2439 eval "ac_cv_lib_$ac_lib_var=no"
2442 LIBS="$ac_save_LIBS"
2445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2446 echo "$ac_t""yes" 1>&6
2447 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2448 echo "configure:2449: checking for gettext in libintl" >&5
2449 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2457 return (int) gettext ("")
2460 if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2462 gt_cv_func_gettext_libintl=yes
2464 echo "configure: failed program was:" >&5
2465 cat conftest.$ac_ext >&5
2467 gt_cv_func_gettext_libintl=no
2472 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2474 echo "$ac_t""no" 1>&6
2479 if test "$gt_cv_func_gettext_libc" = "yes" \
2480 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2481 cat >> confdefs.h <<\EOF
2482 #define HAVE_GETTEXT 1
2485 # Extract the first word of "msgfmt", so it can be a program name with args.
2486 set dummy msgfmt; ac_word=$2
2487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2488 echo "configure:2489: checking for $ac_word" >&5
2489 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2494 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2498 for ac_dir in $PATH; do
2499 test -z "$ac_dir" && ac_dir=.
2500 if test -f $ac_dir/$ac_word; then
2501 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2502 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2508 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2512 MSGFMT="$ac_cv_path_MSGFMT"
2513 if test -n "$MSGFMT"; then
2514 echo "$ac_t""$MSGFMT" 1>&6
2516 echo "$ac_t""no" 1>&6
2518 if test "$MSGFMT" != "no"; then
2519 for ac_func in dcgettext
2521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2522 echo "configure:2523: checking for $ac_func" >&5
2523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2526 cat > conftest.$ac_ext <<EOF
2527 #line 2528 "configure"
2528 #include "confdefs.h"
2529 /* System header to define __stub macros and hopefully few prototypes,
2530 which can conflict with char $ac_func(); below. */
2532 /* Override any gcc2 internal prototype to avoid an error. */
2533 /* We use char because int might match the return type of a gcc2
2534 builtin and then its argument prototype would still apply. */
2539 /* The GNU C library defines this for functions which it implements
2540 to always fail with ENOSYS. Some functions are actually named
2541 something starting with __ and the normal name is an alias. */
2542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2550 if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2552 eval "ac_cv_func_$ac_func=yes"
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2557 eval "ac_cv_func_$ac_func=no"
2562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2563 echo "$ac_t""yes" 1>&6
2564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2565 cat >> confdefs.h <<EOF
2566 #define $ac_tr_func 1
2570 echo "$ac_t""no" 1>&6
2574 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2575 set dummy gmsgfmt; ac_word=$2
2576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2577 echo "configure:2578: checking for $ac_word" >&5
2578 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2583 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2586 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2591 for ac_dir in $ac_dummy; do
2592 test -z "$ac_dir" && ac_dir=.
2593 if test -f $ac_dir/$ac_word; then
2594 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2599 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2603 GMSGFMT="$ac_cv_path_GMSGFMT"
2604 if test -n "$GMSGFMT"; then
2605 echo "$ac_t""$GMSGFMT" 1>&6
2607 echo "$ac_t""no" 1>&6
2610 # Extract the first word of "xgettext", so it can be a program name with args.
2611 set dummy xgettext; ac_word=$2
2612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2613 echo "configure:2614: checking for $ac_word" >&5
2614 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2619 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2623 for ac_dir in $PATH; do
2624 test -z "$ac_dir" && ac_dir=.
2625 if test -f $ac_dir/$ac_word; then
2626 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2627 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2633 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2637 XGETTEXT="$ac_cv_path_XGETTEXT"
2638 if test -n "$XGETTEXT"; then
2639 echo "$ac_t""$XGETTEXT" 1>&6
2641 echo "$ac_t""no" 1>&6
2644 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2649 extern int _nl_msg_cat_cntr;
2650 return _nl_msg_cat_cntr
2653 if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2658 echo "configure: failed program was:" >&5
2659 cat conftest.$ac_ext >&5
2670 echo "$ac_t""no" 1>&6
2675 if test "$CATOBJEXT" = "NONE"; then
2676 nls_cv_use_gnu_gettext=yes
2680 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2681 INTLOBJS="\$(GETTOBJS)"
2682 # Extract the first word of "msgfmt", so it can be a program name with args.
2683 set dummy msgfmt; ac_word=$2
2684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2685 echo "configure:2686: checking for $ac_word" >&5
2686 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2691 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2695 for ac_dir in $PATH; do
2696 test -z "$ac_dir" && ac_dir=.
2697 if test -f $ac_dir/$ac_word; then
2698 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2699 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2705 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2709 MSGFMT="$ac_cv_path_MSGFMT"
2710 if test -n "$MSGFMT"; then
2711 echo "$ac_t""$MSGFMT" 1>&6
2713 echo "$ac_t""no" 1>&6
2716 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2717 set dummy gmsgfmt; ac_word=$2
2718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2719 echo "configure:2720: checking for $ac_word" >&5
2720 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2725 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2728 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2733 for ac_dir in $ac_dummy; do
2734 test -z "$ac_dir" && ac_dir=.
2735 if test -f $ac_dir/$ac_word; then
2736 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2741 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2745 GMSGFMT="$ac_cv_path_GMSGFMT"
2746 if test -n "$GMSGFMT"; then
2747 echo "$ac_t""$GMSGFMT" 1>&6
2749 echo "$ac_t""no" 1>&6
2752 # Extract the first word of "xgettext", so it can be a program name with args.
2753 set dummy xgettext; ac_word=$2
2754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2755 echo "configure:2756: checking for $ac_word" >&5
2756 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2761 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2765 for ac_dir in $PATH; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f $ac_dir/$ac_word; then
2768 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2769 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2775 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2779 XGETTEXT="$ac_cv_path_XGETTEXT"
2780 if test -n "$XGETTEXT"; then
2781 echo "$ac_t""$XGETTEXT" 1>&6
2783 echo "$ac_t""no" 1>&6
2787 USE_INCLUDED_LIBINTL=yes
2791 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2793 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2794 nls_cv_header_intl=libintl.h
2795 nls_cv_header_libgt=libgettext.h
2798 if test "$XGETTEXT" != ":"; then
2799 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2802 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2807 # We need to process the po/ directory.
2811 nls_cv_header_intl=libintl.h
2812 nls_cv_header_libgt=libgettext.h
2815 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2816 # because some of the sources are only built for this goal.
2817 if test "$PACKAGE" = gettext; then
2819 USE_INCLUDED_LIBINTL=yes
2822 for lang in $ALL_LINGUAS; do
2823 GMOFILES="$GMOFILES $lang.gmo"
2824 POFILES="$POFILES $lang.po"
2840 if test "x$CATOBJEXT" != "x"; then
2841 if test "x$ALL_LINGUAS" = "x"; then
2844 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2845 echo "configure:2846: checking for catalogs to be installed" >&5
2847 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2848 case "$ALL_LINGUAS" in
2849 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2852 LINGUAS=$NEW_LINGUAS
2853 echo "$ac_t""$LINGUAS" 1>&6
2856 if test -n "$LINGUAS"; then
2857 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2861 if test $ac_cv_header_locale_h = yes; then
2862 INCLUDE_LOCALE_H="#include <locale.h>"
2865 /* The system does not provide the header <locale.h>. Take care yourself. */"
2869 if test -f $srcdir/po2tbl.sed.in; then
2870 if test "$CATOBJEXT" = ".cat"; then
2871 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2872 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2873 echo "configure:2874: checking for linux/version.h" >&5
2874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2877 cat > conftest.$ac_ext <<EOF
2878 #line 2879 "configure"
2879 #include "confdefs.h"
2880 #include <linux/version.h>
2882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2883 { (eval echo configure:2884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2885 if test -z "$ac_err"; then
2887 eval "ac_cv_header_$ac_safe=yes"
2890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2893 eval "ac_cv_header_$ac_safe=no"
2897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2898 echo "$ac_t""yes" 1>&6
2901 echo "$ac_t""no" 1>&6
2906 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2908 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2909 $srcdir/po2tbl.sed.in > po2tbl.sed
2912 if test "$PACKAGE" = "gettext"; then
2922 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2928 if test -d $srcdir/po; then
2929 test -d po || mkdir po
2930 if test "x$srcdir" != "x."; then
2931 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2932 posrcprefix="$srcdir/"
2934 posrcprefix="../$srcdir/"
2940 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2941 < $srcdir/po/POTFILES.in > po/POTFILES
2945 # Check for common headers.
2946 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2947 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2948 for ac_hdr in stdlib.h string.h strings.h unistd.h time.h
2950 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2952 echo "configure:2953: checking for $ac_hdr" >&5
2953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2956 cat > conftest.$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2962 { (eval echo configure:2963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2964 if test -z "$ac_err"; then
2966 eval "ac_cv_header_$ac_safe=yes"
2969 echo "configure: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2972 eval "ac_cv_header_$ac_safe=no"
2976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2977 echo "$ac_t""yes" 1>&6
2978 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2979 cat >> confdefs.h <<EOF
2980 #define $ac_tr_hdr 1
2984 echo "$ac_t""no" 1>&6
2988 for ac_hdr in sys/time.h sys/resource.h
2990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2992 echo "configure:2993: checking for $ac_hdr" >&5
2993 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2996 cat > conftest.$ac_ext <<EOF
2997 #line 2998 "configure"
2998 #include "confdefs.h"
3001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3002 { (eval echo configure:3003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3004 if test -z "$ac_err"; then
3006 eval "ac_cv_header_$ac_safe=yes"
3009 echo "configure: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3012 eval "ac_cv_header_$ac_safe=no"
3016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3017 echo "$ac_t""yes" 1>&6
3018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3019 cat >> confdefs.h <<EOF
3020 #define $ac_tr_hdr 1
3024 echo "$ac_t""no" 1>&6
3028 for ac_hdr in fcntl.h fpu_control.h
3030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3032 echo "configure:3033: checking for $ac_hdr" >&5
3033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3042 { (eval echo configure:3043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3044 if test -z "$ac_err"; then
3046 eval "ac_cv_header_$ac_safe=yes"
3049 echo "configure: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3052 eval "ac_cv_header_$ac_safe=no"
3056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3057 echo "$ac_t""yes" 1>&6
3058 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3059 cat >> confdefs.h <<EOF
3060 #define $ac_tr_hdr 1
3064 echo "$ac_t""no" 1>&6
3068 for ac_hdr in dlfcn.h errno.h sys/stat.h
3070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3072 echo "configure:3073: checking for $ac_hdr" >&5
3073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3076 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3082 { (eval echo configure:3083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3084 if test -z "$ac_err"; then
3086 eval "ac_cv_header_$ac_safe=yes"
3089 echo "configure: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3092 eval "ac_cv_header_$ac_safe=no"
3096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3097 echo "$ac_t""yes" 1>&6
3098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3099 cat >> confdefs.h <<EOF
3100 #define $ac_tr_hdr 1
3104 echo "$ac_t""no" 1>&6
3108 for ac_func in getrusage time sigaction __setfpucw
3110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3111 echo "configure:3112: checking for $ac_func" >&5
3112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 cat > conftest.$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3118 /* System header to define __stub macros and hopefully few prototypes,
3119 which can conflict with char $ac_func(); below. */
3121 /* Override any gcc2 internal prototype to avoid an error. */
3122 /* We use char because int might match the return type of a gcc2
3123 builtin and then its argument prototype would still apply. */
3128 /* The GNU C library defines this for functions which it implements
3129 to always fail with ENOSYS. Some functions are actually named
3130 something starting with __ and the normal name is an alias. */
3131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3139 if { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3141 eval "ac_cv_func_$ac_func=yes"
3143 echo "configure: failed program was:" >&5
3144 cat conftest.$ac_ext >&5
3146 eval "ac_cv_func_$ac_func=no"
3151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3152 echo "$ac_t""yes" 1>&6
3153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3154 cat >> confdefs.h <<EOF
3155 #define $ac_tr_func 1
3159 echo "$ac_t""no" 1>&6
3164 # Check for socket libraries
3165 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3166 echo "configure:3167: checking for bind in -lsocket" >&5
3167 ac_lib_var=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3171 ac_save_LIBS="$LIBS"
3172 LIBS="-lsocket $LIBS"
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 /* Override any gcc2 internal prototype to avoid an error. */
3177 /* We use char because int might match the return type of a gcc2
3178 builtin and then its argument prototype would still apply. */
3185 if { (eval echo configure:3186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3187 eval "ac_cv_lib_$ac_lib_var=yes"
3189 echo "configure: failed program was:" >&5
3190 cat conftest.$ac_ext >&5
3192 eval "ac_cv_lib_$ac_lib_var=no"
3195 LIBS="$ac_save_LIBS"
3198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3199 echo "$ac_t""yes" 1>&6
3200 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3201 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3202 cat >> confdefs.h <<EOF
3203 #define $ac_tr_lib 1
3206 LIBS="-lsocket $LIBS"
3209 echo "$ac_t""no" 1>&6
3212 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3213 echo "configure:3214: checking for gethostbyname in -lnsl" >&5
3214 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 ac_save_LIBS="$LIBS"
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3223 /* Override any gcc2 internal prototype to avoid an error. */
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3226 char gethostbyname();
3232 if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3234 eval "ac_cv_lib_$ac_lib_var=yes"
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3239 eval "ac_cv_lib_$ac_lib_var=no"
3242 LIBS="$ac_save_LIBS"
3245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3246 echo "$ac_t""yes" 1>&6
3247 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3248 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3249 cat >> confdefs.h <<EOF
3250 #define $ac_tr_lib 1
3256 echo "$ac_t""no" 1>&6
3260 . ${srcdir}/../../bfd/configure.host
3264 USE_MAINTAINER_MODE=no
3265 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3266 if test "${enable_maintainer_mode+set}" = set; then
3267 enableval="$enable_maintainer_mode"
3268 case "${enableval}" in
3269 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
3271 *) { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;
3273 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
3274 echo "Setting maintainer mode" 6>&1
3282 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3283 if test "${enable_sim_bswap+set}" = set; then
3284 enableval="$enable_sim_bswap"
3285 case "${enableval}" in
3286 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3287 no) sim_bswap="-DWITH_BSWAP=0";;
3288 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
3290 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3291 echo "Setting bswap flags = $sim_bswap" 6>&1
3299 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3300 if test "${enable_sim_cflags+set}" = set; then
3301 enableval="$enable_sim_cflags"
3302 case "${enableval}" in
3303 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3304 trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
3306 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3308 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3309 echo "Setting sim cflags = $sim_cflags" 6>&1
3317 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3318 if test "${enable_sim_debug+set}" = set; then
3319 enableval="$enable_sim_debug"
3320 case "${enableval}" in
3321 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
3322 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
3323 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3325 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
3326 echo "Setting sim debug = $sim_debug" 6>&1
3334 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3335 if test "${enable_sim_stdio+set}" = set; then
3336 enableval="$enable_sim_stdio"
3337 case "${enableval}" in
3338 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3339 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3340 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
3342 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3343 echo "Setting stdio flags = $sim_stdio" 6>&1
3351 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3352 if test "${enable_sim_trace+set}" = set; then
3353 enableval="$enable_sim_trace"
3354 case "${enableval}" in
3355 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
3356 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
3358 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3361 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3362 if test x"$sim_trace" = x; then
3363 sim_trace="-DWITH_TRACE='(TRACE_$x"
3365 sim_trace="${sim_trace}|TRACE_$x"
3368 sim_trace="$sim_trace)'" ;;
3370 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3371 echo "Setting sim trace = $sim_trace" 6>&1
3379 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3380 if test "${enable_sim_profile+set}" = set; then
3381 enableval="$enable_sim_profile"
3382 case "${enableval}" in
3383 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
3384 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
3386 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3389 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3390 if test x"$sim_profile" = x; then
3391 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
3393 sim_profile="${sim_profile}|PROFILE_$x"
3396 sim_profile="$sim_profile)'" ;;
3398 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
3399 echo "Setting sim profile = $sim_profile" 6>&1
3407 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3408 echo "configure:3409: checking return type of signal handlers" >&5
3409 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <sys/types.h>
3421 extern "C" void (*signal (int, void (*)(int)))(int);
3423 void (*signal ()) ();
3430 if { (eval echo configure:3431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3432 ac_cv_type_signal=void
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3437 ac_cv_type_signal=int
3442 echo "$ac_t""$ac_cv_type_signal" 1>&6
3443 cat >> confdefs.h <<EOF
3444 #define RETSIGTYPE $ac_cv_type_signal
3451 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3452 echo "configure:3453: checking for executable suffix" >&5
3453 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3456 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3460 echo 'int main () { return 0; }' > conftest.$ac_ext
3462 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3463 for file in conftest.*; do
3465 *.c | *.o | *.obj) ;;
3466 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3470 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3473 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3478 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3479 echo "$ac_t""${ac_cv_exeext}" 1>&6
3486 sim_link_links=tconfig.h
3487 if test -f ${srcdir}/tconfig.in
3489 sim_link_files=tconfig.in
3491 sim_link_files=../common/tconfig.in
3494 # targ-vals.def points to the libc macro description file.
3496 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
3498 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
3499 sim_link_links="${sim_link_links} targ-vals.def"
3504 wire_endian="LITTLE_ENDIAN"
3506 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3507 if test "${enable_sim_endian+set}" = set; then
3508 enableval="$enable_sim_endian"
3509 case "${enableval}" in
3510 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3511 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3512 yes) if test x"$wire_endian" != x; then
3513 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3515 if test x"$default_endian" != x; then
3516 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3518 echo "No hard-wired endian for target $target" 1>&6
3519 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
3522 no) if test x"$default_endian" != x; then
3523 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3525 if test x"$wire_endian" != x; then
3526 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3528 echo "No default endian for target $target" 1>&6
3529 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3532 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian="";;
3534 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3535 echo "Setting endian flags = $sim_endian" 6>&1
3538 if test x"$default_endian" != x; then
3539 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3541 if test x"$wire_endian" != x; then
3542 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3549 wire_alignment="NONSTRICT_ALIGNMENT"
3550 default_alignment=""
3552 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3553 if test "${enable_sim_alignment+set}" = set; then
3554 enableval="$enable_sim_alignment"
3555 case "${enableval}" in
3556 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3557 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3558 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3559 yes) if test x"$wire_alignment" != x; then
3560 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
3562 if test x"$default_alignment" != x; then
3563 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
3565 echo "No hard-wired alignment for target $target" 1>&6
3566 sim_alignment="-DWITH_ALIGNMENT=0"
3569 no) if test x"$default_alignment" != x; then
3570 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3572 if test x"$wire_alignment" != x; then
3573 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3575 echo "No default alignment for target $target" 1>&6
3576 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
3579 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment="";;
3581 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
3582 echo "Setting alignment flags = $sim_alignment" 6>&1
3585 if test x"$default_alignment" != x; then
3586 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3588 if test x"$wire_alignment" != x; then
3589 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
3597 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3598 if test "${enable_sim_hostendian+set}" = set; then
3599 enableval="$enable_sim_hostendian"
3600 case "${enableval}" in
3601 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
3602 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3603 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3604 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian="";;
3606 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
3607 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3611 if test "x$cross_compiling" = "xno"; then
3612 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3613 echo "configure:3614: checking whether byte ordering is bigendian" >&5
3614 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 ac_cv_c_bigendian=unknown
3618 # See if sys/param.h defines the BYTE_ORDER macro.
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 #include <sys/types.h>
3623 #include <sys/param.h>
3626 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3631 if { (eval echo configure:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3633 # It does; now see whether it defined to BIG_ENDIAN or not.
3634 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 #include <sys/types.h>
3638 #include <sys/param.h>
3641 #if BYTE_ORDER != BIG_ENDIAN
3646 if { (eval echo configure:3647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3648 ac_cv_c_bigendian=yes
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3653 ac_cv_c_bigendian=no
3657 echo "configure: failed program was:" >&5
3658 cat conftest.$ac_ext >&5
3661 if test $ac_cv_c_bigendian = unknown; then
3662 if test "$cross_compiling" = yes; then
3663 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3669 /* Are we little or big endian? From Harbison&Steele. */
3673 char c[sizeof (long)];
3676 exit (u.c[sizeof (long) - 1] == 1);
3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3681 ac_cv_c_bigendian=no
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3686 ac_cv_c_bigendian=yes
3694 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3695 if test $ac_cv_c_bigendian = yes; then
3696 cat >> confdefs.h <<\EOF
3697 #define WORDS_BIGENDIAN 1
3702 if test $ac_cv_c_bigendian = yes; then
3703 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3705 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3708 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
3713 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3714 if test "${enable_build_warnings+set}" = set; then
3715 enableval="$enable_build_warnings"
3716 build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
3717 case "${enableval}" in
3719 no) build_warnings="-w";;
3720 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3721 build_warnings="${build_warnings} ${t}";;
3722 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3723 build_warnings="${t} ${build_warnings}";;
3724 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3726 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3727 echo "Setting warning flags = $build_warnings" 6>&1
3731 if test "x${build_warnings}" != x -a "x$GCC" = xyes
3733 # Separate out the -Werror flag as some files just cannot be
3734 # compiled with it enabled.
3735 for w in ${build_warnings}; do
3737 -Werr*) WERROR_CFLAGS=-Werror ;;
3738 *) WARN_CFLAGS="${WARN_CFLAGS} $w"
3747 default_sim_reserved_bits="1"
3748 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3749 if test "${enable_sim_reserved_bits+set}" = set; then
3750 enableval="$enable_sim_reserved_bits"
3751 case "${enableval}" in
3752 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
3753 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
3754 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value"" 1>&2; exit 1; }; sim_reserved_bits="";;
3756 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
3757 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
3760 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
3763 wire_word_bitsize="32"
3765 wire_address_bitsize=""
3766 wire_cell_bitsize=""
3767 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3768 if test "${enable_sim_bitsize+set}" = set; then
3769 enableval="$enable_sim_bitsize"
3771 case "${enableval}" in
3772 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3773 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3774 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3775 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3776 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
3777 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3779 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3781 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
3782 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3784 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3786 *) { echo "configure: error: "--enable-sim-bitsize was given $enableval. Expected 32 or 64"" 1>&2; exit 1; } ;;
3789 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3792 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3793 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3794 * ) { echo "configure: error: "--enable-sim-bitsize was given address size $enableval. Expected 32 or 64"" 1>&2; exit 1; } ;;
3797 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3800 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3801 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3802 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64"" 1>&2; exit 1; } ;;
3804 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3805 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3809 if test x"$wire_word_bitsize" != x; then
3810 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3812 if test x"$wire_word_msb" != x; then
3813 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3815 if test x"$wire_address_bitsize" != x; then
3816 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3818 if test x"$wire_cell_bitsize" != x; then
3819 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3824 default_sim_inline=""
3825 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3826 if test "${enable_sim_inline+set}" = set; then
3827 enableval="$enable_sim_inline"
3829 case "$enableval" in
3830 no) sim_inline="-DDEFAULT_INLINE=0";;
3831 0) sim_inline="-DDEFAULT_INLINE=0";;
3832 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
3833 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
3834 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3837 *_INLINE=*) new_flag="-D$x";;
3838 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3839 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
3840 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
3842 if test x"$sim_inline" = x""; then
3843 sim_inline="$new_flag"
3845 sim_inline="$sim_inline $new_flag"
3849 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
3850 echo "Setting inline flags = $sim_inline" 6>&1
3854 if test "x$cross_compiling" = "xno"; then
3855 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
3856 sim_inline="${default_sim_inline}"
3857 if test x"$silent" != x"yes"; then
3858 echo "Setting inline flags = $sim_inline" 6>&1
3864 sim_inline="-DDEFAULT_INLINE=0"
3869 if test x"yes" = x"yes"; then
3875 hardware="core pal glue"
3877 hardware="core pal glue mn103cpu mn103int mn103tim mn103ser mn103iop"
3879 sim_hw_cflags="-DWITH_HW=1"
3881 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
3882 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
3883 if test "${enable_sim_hardware+set}" = set; then
3884 enableval="$enable_sim_hardware"
3886 case "${enableval}" in
3889 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
3890 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
3891 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
3893 if test "$sim_hw_p" != yes; then
3895 sim_hw_cflags="-DWITH_HW=0"
3898 sim_hw_cflags="-DWITH_HW=1"
3901 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
3902 for i in x $hardware ; do
3906 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
3910 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
3911 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3915 if test "$sim_hw_p" != yes; then
3917 sim_hw_cflags="-DWITH_HW=0"
3920 if test x"$silent" != x"yes"; then
3921 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3926 for ac_func in time chmod utime fork execve execv chown
3928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3929 echo "configure:3930: checking for $ac_func" >&5
3930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3933 cat > conftest.$ac_ext <<EOF
3934 #line 3935 "configure"
3935 #include "confdefs.h"
3936 /* System header to define __stub macros and hopefully few prototypes,
3937 which can conflict with char $ac_func(); below. */
3939 /* Override any gcc2 internal prototype to avoid an error. */
3940 /* We use char because int might match the return type of a gcc2
3941 builtin and then its argument prototype would still apply. */
3946 /* The GNU C library defines this for functions which it implements
3947 to always fail with ENOSYS. Some functions are actually named
3948 something starting with __ and the normal name is an alias. */
3949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3957 if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3959 eval "ac_cv_func_$ac_func=yes"
3961 echo "configure: failed program was:" >&5
3962 cat conftest.$ac_ext >&5
3964 eval "ac_cv_func_$ac_func=no"
3969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3970 echo "$ac_t""yes" 1>&6
3971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3972 cat >> confdefs.h <<EOF
3973 #define $ac_tr_func 1
3977 echo "$ac_t""no" 1>&6
3981 for ac_hdr in unistd.h stdlib.h string.h strings.h utime.h time.h
3983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3985 echo "configure:3986: checking for $ac_hdr" >&5
3986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3987 echo $ac_n "(cached) $ac_c" 1>&6
3989 cat > conftest.$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3995 { (eval echo configure:3996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3997 if test -z "$ac_err"; then
3999 eval "ac_cv_header_$ac_safe=yes"
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4005 eval "ac_cv_header_$ac_safe=no"
4009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4012 cat >> confdefs.h <<EOF
4013 #define $ac_tr_hdr 1
4017 echo "$ac_t""no" 1>&6
4025 # Check whether --enable-sim-common or --disable-sim-common was given.
4026 if test "${enable_sim_common+set}" = set; then
4027 enableval="$enable_sim_common"
4028 case "${enableval}" in
4029 yes) sim_gen="-DWITH_COMMON=1"; mn10300_common="WITH";;
4030 no) sim_gen="-DWITH_COMMON=0"; mn10300_common="WITHOUT";;
4031 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-common"" 1>&2; exit 1; }; sim_gen="";;
4033 if test x"$silent" != x"yes" && test x"$sim_gen" != x""; then
4034 echo "Setting sim_common = $sim_common" 6>&1
4037 sim_gen="-DWITH_COMMON=1"; mn10300_common="WITH"
4045 cat > confcache <<\EOF
4046 # This file is a shell script that caches the results of configure
4047 # tests run on this system so they can be shared between configure
4048 # scripts and configure runs. It is not useful on other systems.
4049 # If it contains results you don't want to keep, you may remove or edit it.
4051 # By default, configure uses ./config.cache as the cache file,
4052 # creating it if it does not exist already. You can give configure
4053 # the --cache-file=FILE option to use a different cache file; that is
4054 # what configure does when it calls configure scripts in
4055 # subdirectories, so they share the cache.
4056 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4057 # config.status only pays attention to the cache file if you give it the
4058 # --recheck option to rerun configure.
4061 # The following way of writing the cache mishandles newlines in values,
4062 # but we know of no workaround that is simple, portable, and efficient.
4063 # So, don't put newlines in cache variables' values.
4064 # Ultrix sh set writes to stderr and can't be redirected directly,
4065 # and sets the high bit in the cache file unless we assign to the vars.
4067 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4069 # `set' does not quote correctly, so add quotes (double-quote substitution
4070 # turns \\\\ into \\, and sed turns \\ into \).
4072 -e "s/'/'\\\\''/g" \
4073 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4076 # `set' quotes correctly as required by POSIX, so do not add quotes.
4077 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4080 if cmp -s $cache_file confcache; then
4083 if test -w $cache_file; then
4084 echo "updating cache $cache_file"
4085 cat confcache > $cache_file
4087 echo "not updating unwritable cache $cache_file"
4092 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4094 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4095 # Let make expand exec_prefix.
4096 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4098 # Any assignment to VPATH causes Sun make to only execute
4099 # the first set of double-colon rules, so remove it if not needed.
4100 # If there is a colon in the path, we need to keep it.
4101 if test "x$srcdir" = x.; then
4102 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4105 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4107 DEFS=-DHAVE_CONFIG_H
4109 # Without the "./", some shells look in PATH for config.status.
4110 : ${CONFIG_STATUS=./config.status}
4112 echo creating $CONFIG_STATUS
4113 rm -f $CONFIG_STATUS
4114 cat > $CONFIG_STATUS <<EOF
4116 # Generated automatically by configure.
4117 # Run this file to recreate the current configuration.
4118 # This directory was configured as follows,
4119 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4121 # $0 $ac_configure_args
4123 # Compiler output produced by configure, useful for debugging
4124 # configure, is in ./config.log if it exists.
4126 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4129 case "\$ac_option" in
4130 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4131 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4132 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4133 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4134 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4136 -help | --help | --hel | --he | --h)
4137 echo "\$ac_cs_usage"; exit 0 ;;
4138 *) echo "\$ac_cs_usage"; exit 1 ;;
4142 ac_given_srcdir=$srcdir
4143 ac_given_INSTALL="$INSTALL"
4145 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
4147 cat >> $CONFIG_STATUS <<EOF
4149 # Protect against being on the right side of a sed subst in config.status.
4150 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4151 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4154 s%@sim_environment@%$sim_environment%g
4155 s%@sim_alignment@%$sim_alignment%g
4156 s%@sim_assert@%$sim_assert%g
4157 s%@sim_bitsize@%$sim_bitsize%g
4158 s%@sim_endian@%$sim_endian%g
4159 s%@sim_hostendian@%$sim_hostendian%g
4160 s%@sim_float@%$sim_float%g
4161 s%@sim_scache@%$sim_scache%g
4162 s%@sim_default_model@%$sim_default_model%g
4163 s%@sim_hw_cflags@%$sim_hw_cflags%g
4164 s%@sim_hw_objs@%$sim_hw_objs%g
4165 s%@sim_hw@%$sim_hw%g
4166 s%@sim_inline@%$sim_inline%g
4167 s%@sim_packages@%$sim_packages%g
4168 s%@sim_regparm@%$sim_regparm%g
4169 s%@sim_reserved_bits@%$sim_reserved_bits%g
4170 s%@sim_smp@%$sim_smp%g
4171 s%@sim_stdcall@%$sim_stdcall%g
4172 s%@sim_xor_endian@%$sim_xor_endian%g
4173 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4174 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
4176 s%@CFLAGS@%$CFLAGS%g
4177 s%@CPPFLAGS@%$CPPFLAGS%g
4178 s%@CXXFLAGS@%$CXXFLAGS%g
4179 s%@FFLAGS@%$FFLAGS%g
4181 s%@LDFLAGS@%$LDFLAGS%g
4183 s%@exec_prefix@%$exec_prefix%g
4184 s%@prefix@%$prefix%g
4185 s%@program_transform_name@%$program_transform_name%g
4186 s%@bindir@%$bindir%g
4187 s%@sbindir@%$sbindir%g
4188 s%@libexecdir@%$libexecdir%g
4189 s%@datadir@%$datadir%g
4190 s%@sysconfdir@%$sysconfdir%g
4191 s%@sharedstatedir@%$sharedstatedir%g
4192 s%@localstatedir@%$localstatedir%g
4193 s%@libdir@%$libdir%g
4194 s%@includedir@%$includedir%g
4195 s%@oldincludedir@%$oldincludedir%g
4196 s%@infodir@%$infodir%g
4197 s%@mandir@%$mandir%g
4199 s%@host_alias@%$host_alias%g
4200 s%@host_cpu@%$host_cpu%g
4201 s%@host_vendor@%$host_vendor%g
4202 s%@host_os@%$host_os%g
4203 s%@target@%$target%g
4204 s%@target_alias@%$target_alias%g
4205 s%@target_cpu@%$target_cpu%g
4206 s%@target_vendor@%$target_vendor%g
4207 s%@target_os@%$target_os%g
4209 s%@build_alias@%$build_alias%g
4210 s%@build_cpu@%$build_cpu%g
4211 s%@build_vendor@%$build_vendor%g
4212 s%@build_os@%$build_os%g
4214 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4215 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4216 s%@INSTALL_DATA@%$INSTALL_DATA%g
4217 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4218 s%@HDEFINES@%$HDEFINES%g
4220 s%@RANLIB@%$RANLIB%g
4221 s%@SET_MAKE@%$SET_MAKE%g
4223 s%@ALLOCA@%$ALLOCA%g
4224 s%@USE_NLS@%$USE_NLS%g
4225 s%@MSGFMT@%$MSGFMT%g
4226 s%@GMSGFMT@%$GMSGFMT%g
4227 s%@XGETTEXT@%$XGETTEXT%g
4228 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4229 s%@CATALOGS@%$CATALOGS%g
4230 s%@CATOBJEXT@%$CATOBJEXT%g
4231 s%@DATADIRNAME@%$DATADIRNAME%g
4232 s%@GMOFILES@%$GMOFILES%g
4233 s%@INSTOBJEXT@%$INSTOBJEXT%g
4234 s%@INTLDEPS@%$INTLDEPS%g
4235 s%@INTLLIBS@%$INTLLIBS%g
4236 s%@INTLOBJS@%$INTLOBJS%g
4237 s%@POFILES@%$POFILES%g
4239 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4241 s%@GT_YES@%$GT_YES%g
4242 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4245 s%@sim_bswap@%$sim_bswap%g
4246 s%@sim_cflags@%$sim_cflags%g
4247 s%@sim_debug@%$sim_debug%g
4248 s%@sim_stdio@%$sim_stdio%g
4249 s%@sim_trace@%$sim_trace%g
4250 s%@sim_profile@%$sim_profile%g
4251 s%@EXEEXT@%$EXEEXT%g
4252 s%@sim_gen@%$sim_gen%g
4253 s%@mn10300_common@%$mn10300_common%g
4258 cat >> $CONFIG_STATUS <<\EOF
4260 # Split the substitutions into bite-sized pieces for seds with
4261 # small command number limits, like on Digital OSF/1 and HP-UX.
4262 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4263 ac_file=1 # Number of current file.
4264 ac_beg=1 # First line for current file.
4265 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4268 while $ac_more_lines; do
4269 if test $ac_beg -gt 1; then
4270 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4272 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4274 if test ! -s conftest.s$ac_file; then
4276 rm -f conftest.s$ac_file
4278 if test -z "$ac_sed_cmds"; then
4279 ac_sed_cmds="sed -f conftest.s$ac_file"
4281 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4283 ac_file=`expr $ac_file + 1`
4285 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4288 if test -z "$ac_sed_cmds"; then
4293 cat >> $CONFIG_STATUS <<EOF
4295 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4297 cat >> $CONFIG_STATUS <<\EOF
4298 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4301 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4302 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4303 *) ac_file_in="${ac_file}.in" ;;
4306 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4308 # Remove last slash and all that follows it. Not all systems have dirname.
4309 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4310 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4311 # The file is in a subdirectory.
4312 test ! -d "$ac_dir" && mkdir "$ac_dir"
4313 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4314 # A "../" for each directory in $ac_dir_suffix.
4315 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4317 ac_dir_suffix= ac_dots=
4320 case "$ac_given_srcdir" in
4322 if test -z "$ac_dots"; then top_srcdir=.
4323 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4324 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4326 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4327 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4330 case "$ac_given_INSTALL" in
4331 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4332 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4335 echo creating "$ac_file"
4337 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4339 *Makefile*) ac_comsub="1i\\
4340 # $configure_input" ;;
4344 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4346 s%@configure_input@%$configure_input%g
4347 s%@srcdir@%$srcdir%g
4348 s%@top_srcdir@%$top_srcdir%g
4349 s%@INSTALL@%$INSTALL%g
4350 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4354 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4355 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4357 # ac_d sets the value in "#define NAME VALUE" lines.
4358 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4359 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4362 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4363 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4364 ac_uB='\([ ]\)%\1#\2define\3'
4367 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4368 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4369 ac_eB='$%\1#\2define\3'
4373 if test "${CONFIG_HEADERS+set}" != set; then
4375 cat >> $CONFIG_STATUS <<EOF
4376 CONFIG_HEADERS="config.h:config.in"
4378 cat >> $CONFIG_STATUS <<\EOF
4380 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4381 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4383 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4384 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4385 *) ac_file_in="${ac_file}.in" ;;
4388 echo creating $ac_file
4390 rm -f conftest.frag conftest.in conftest.out
4391 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4392 cat $ac_file_inputs > conftest.in
4396 # Transform confdefs.h into a sed script conftest.vals that substitutes
4397 # the proper values into config.h.in to produce config.h. And first:
4398 # Protect against being on the right side of a sed subst in config.status.
4399 # Protect against being in an unquoted here document in config.status.
4401 cat > conftest.hdr <<\EOF
4404 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4408 sed -n -f conftest.hdr confdefs.h > conftest.vals
4411 # This sed command replaces #undef with comments. This is necessary, for
4412 # example, in the case of _POSIX_SOURCE, which is predefined and required
4413 # on some systems where configure will not decide to define it.
4414 cat >> conftest.vals <<\EOF
4415 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4418 # Break up conftest.vals because some shells have a limit on
4419 # the size of here documents, and old seds have small limits too.
4424 ac_lines=`grep -c . conftest.vals`
4425 # grep -c gives empty output for an empty file on some AIX systems.
4426 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4427 # Write a limited-size here document to conftest.frag.
4428 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4429 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4431 sed -f conftest.frag conftest.in > conftest.out
4433 mv conftest.out conftest.in
4435 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4437 mv conftest.tail conftest.vals
4441 cat >> $CONFIG_STATUS <<\EOF
4442 rm -f conftest.frag conftest.h
4443 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4444 cat conftest.in >> conftest.h
4446 if cmp -s $ac_file conftest.h 2>/dev/null; then
4447 echo "$ac_file is unchanged"
4450 # Remove last slash and all that follows it. Not all systems have dirname.
4451 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4452 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4453 # The file is in a subdirectory.
4454 test ! -d "$ac_dir" && mkdir "$ac_dir"
4457 mv conftest.h $ac_file
4463 cat >> $CONFIG_STATUS <<EOF
4464 ac_sources="$sim_link_files"
4465 ac_dests="$sim_link_links"
4468 cat >> $CONFIG_STATUS <<\EOF
4469 srcdir=$ac_given_srcdir
4470 while test -n "$ac_sources"; do
4471 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4472 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4474 echo "linking $srcdir/$ac_source to $ac_dest"
4476 if test ! -r $srcdir/$ac_source; then
4477 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4481 # Make relative symlinks.
4482 # Remove last slash and all that follows it. Not all systems have dirname.
4483 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4484 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4485 # The dest file is in a subdirectory.
4486 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4487 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4488 # A "../" for each directory in $ac_dest_dir_suffix.
4489 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4491 ac_dest_dir_suffix= ac_dots=
4495 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4496 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4499 # Make a symlink if possible; otherwise try a hard link.
4500 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4501 ln $srcdir/$ac_source $ac_dest; then :
4503 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4507 cat >> $CONFIG_STATUS <<EOF
4510 cat >> $CONFIG_STATUS <<\EOF
4511 case "x$CONFIG_FILES" in
4513 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4514 rm -f Makesim1.tmp Makesim2.tmp Makefile
4515 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4516 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4517 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4518 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4519 <Makefile.sim >Makefile
4520 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4523 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4527 chmod +x $CONFIG_STATUS
4528 rm -fr confdefs* $ac_clean_files
4529 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1