45 sim_inline="-DDEFAULT_INLINE=0"
81 # This file is derived from `gettext.m4'. The difference is that the
82 # included macros assume Cygnus-style source and build trees.
84 # Macro to add for using GNU gettext.
85 # Ulrich Drepper <drepper@cygnus.com>, 1995.
87 # This file file be copied and used freely without restrictions. It can
88 # be used in projects which are not available under the GNU Public License
89 # but which still want to provide support for the GNU gettext functionality.
90 # Please note that the actual code is *not* freely available.
98 # Search path for a program which passes the given test.
99 # Ulrich Drepper <drepper@cygnus.com>, 1996.
101 # This file file be copied and used freely without restrictions. It can
102 # be used in projects which are not available under the GNU Public License
103 # but which still want to provide support for the GNU gettext functionality.
104 # Please note that the actual code is *not* freely available.
110 # Check whether LC_MESSAGES is available in <locale.h>.
111 # Ulrich Drepper <drepper@cygnus.com>, 1995.
113 # This file file be copied and used freely without restrictions. It can
114 # be used in projects which are not available under the GNU Public License
115 # but which still want to provide support for the GNU gettext functionality.
116 # Please note that the actual code is *not* freely available.
122 # Check to see if we're running under Cygwin32, without using
123 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
124 # Otherwise set it to "no".
128 # Check to see if we're running under Win32, without using
129 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
130 # Otherwise set it to "".
135 # Guess values for system-dependent variables and create Makefiles.
136 # Generated automatically using autoconf version 2.12.2
137 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
139 # This configure script is free software; the Free Software Foundation
140 # gives unlimited permission to copy, distribute and modify it.
144 ac_default_prefix=/usr/local
145 # Any additions from configure.in:
147 --disable-nls do not use Native Language Support"
149 --with-included-gettext use the GNU gettext library included here"
151 --enable-maintainer-mode Enable developer functionality."
153 --enable-sim-bswap Use Host specific BSWAP instruction."
155 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
157 --enable-sim-debug=opts Enable debugging flags"
159 --enable-sim-stdio Specify whether to use stdio for console input/output."
161 --enable-sim-trace=opts Enable tracing flags"
163 --enable-sim-profile=opts Enable profiling flags"
165 # Initialize some variables set by options.
166 # The variables have the same names as the options, with
167 # dashes changed to underlines.
169 cache_file=./config.cache
178 program_transform_name=s,x,x,
186 bindir='${exec_prefix}/bin'
187 sbindir='${exec_prefix}/sbin'
188 libexecdir='${exec_prefix}/libexec'
189 datadir='${prefix}/share'
190 sysconfdir='${prefix}/etc'
191 sharedstatedir='${prefix}/com'
192 localstatedir='${prefix}/var'
193 libdir='${exec_prefix}/lib'
194 includedir='${prefix}/include'
195 oldincludedir='/usr/include'
196 infodir='${prefix}/info'
197 mandir='${prefix}/man'
199 # Initialize some other variables.
202 SHELL=${CONFIG_SHELL-/bin/sh}
203 # Maximum number of lines to put in a shell here document.
210 # If the previous option needs an argument, assign it.
211 if test -n "$ac_prev"; then
212 eval "$ac_prev=\$ac_option"
218 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
222 # Accept the important Cygnus configure options, so we can diagnose typos.
226 -bindir | --bindir | --bindi | --bind | --bin | --bi)
228 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
229 bindir="$ac_optarg" ;;
231 -build | --build | --buil | --bui | --bu)
233 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
234 build="$ac_optarg" ;;
236 -cache-file | --cache-file | --cache-fil | --cache-fi \
237 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
238 ac_prev=cache_file ;;
239 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
240 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
241 cache_file="$ac_optarg" ;;
243 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
245 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
247 datadir="$ac_optarg" ;;
249 -disable-* | --disable-*)
250 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
251 # Reject names that are not valid shell variable names.
252 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
253 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
255 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
256 eval "enable_${ac_feature}=no" ;;
258 -enable-* | --enable-*)
259 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
269 eval "enable_${ac_feature}='$ac_optarg'" ;;
271 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
272 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
273 | --exec | --exe | --ex)
274 ac_prev=exec_prefix ;;
275 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
276 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
277 | --exec=* | --exe=* | --ex=*)
278 exec_prefix="$ac_optarg" ;;
280 -gas | --gas | --ga | --g)
281 # Obsolete; use --with-gas.
284 -help | --help | --hel | --he)
285 # Omit some internal or obsolete options to make the list less imposing.
286 # This message is too long to be a string in the A/UX 3.1 sh.
288 Usage: configure [options] [host]
289 Options: [defaults in brackets after descriptions]
291 --cache-file=FILE cache test results in FILE
292 --help print this message
293 --no-create do not create output files
294 --quiet, --silent do not print \`checking...' messages
295 --version print the version of autoconf that created configure
296 Directory and file names:
297 --prefix=PREFIX install architecture-independent files in PREFIX
299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
301 --bindir=DIR user executables in DIR [EPREFIX/bin]
302 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
303 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
304 --datadir=DIR read-only architecture-independent data in DIR
306 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
307 --sharedstatedir=DIR modifiable architecture-independent data in DIR
309 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
310 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
311 --includedir=DIR C header files in DIR [PREFIX/include]
312 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
313 --infodir=DIR info documentation in DIR [PREFIX/info]
314 --mandir=DIR man documentation in DIR [PREFIX/man]
315 --srcdir=DIR find the sources in DIR [configure dir or ..]
316 --program-prefix=PREFIX prepend PREFIX to installed program names
317 --program-suffix=SUFFIX append SUFFIX to installed program names
318 --program-transform-name=PROGRAM
319 run sed PROGRAM on installed program names
323 --build=BUILD configure for building on BUILD [BUILD=HOST]
324 --host=HOST configure for HOST [guessed]
325 --target=TARGET configure for TARGET [TARGET=HOST]
326 Features and packages:
327 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
328 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
329 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
330 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
331 --x-includes=DIR X include files are in DIR
332 --x-libraries=DIR X library files are in DIR
334 if test -n "$ac_help"; then
335 echo "--enable and --with options recognized:$ac_help"
339 -host | --host | --hos | --ho)
341 -host=* | --host=* | --hos=* | --ho=*)
344 -includedir | --includedir | --includedi | --included | --include \
345 | --includ | --inclu | --incl | --inc)
346 ac_prev=includedir ;;
347 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
348 | --includ=* | --inclu=* | --incl=* | --inc=*)
349 includedir="$ac_optarg" ;;
351 -infodir | --infodir | --infodi | --infod | --info | --inf)
353 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
354 infodir="$ac_optarg" ;;
356 -libdir | --libdir | --libdi | --libd)
358 -libdir=* | --libdir=* | --libdi=* | --libd=*)
359 libdir="$ac_optarg" ;;
361 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
362 | --libexe | --libex | --libe)
363 ac_prev=libexecdir ;;
364 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
365 | --libexe=* | --libex=* | --libe=*)
366 libexecdir="$ac_optarg" ;;
368 -localstatedir | --localstatedir | --localstatedi | --localstated \
369 | --localstate | --localstat | --localsta | --localst \
370 | --locals | --local | --loca | --loc | --lo)
371 ac_prev=localstatedir ;;
372 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
373 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
374 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
375 localstatedir="$ac_optarg" ;;
377 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
379 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
380 mandir="$ac_optarg" ;;
383 # Obsolete; use --without-fp.
386 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
390 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
391 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
394 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
395 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
396 | --oldin | --oldi | --old | --ol | --o)
397 ac_prev=oldincludedir ;;
398 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
399 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
400 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
401 oldincludedir="$ac_optarg" ;;
403 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
405 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
406 prefix="$ac_optarg" ;;
408 -program-prefix | --program-prefix | --program-prefi | --program-pref \
409 | --program-pre | --program-pr | --program-p)
410 ac_prev=program_prefix ;;
411 -program-prefix=* | --program-prefix=* | --program-prefi=* \
412 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
413 program_prefix="$ac_optarg" ;;
415 -program-suffix | --program-suffix | --program-suffi | --program-suff \
416 | --program-suf | --program-su | --program-s)
417 ac_prev=program_suffix ;;
418 -program-suffix=* | --program-suffix=* | --program-suffi=* \
419 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
420 program_suffix="$ac_optarg" ;;
422 -program-transform-name | --program-transform-name \
423 | --program-transform-nam | --program-transform-na \
424 | --program-transform-n | --program-transform- \
425 | --program-transform | --program-transfor \
426 | --program-transfo | --program-transf \
427 | --program-trans | --program-tran \
428 | --progr-tra | --program-tr | --program-t)
429 ac_prev=program_transform_name ;;
430 -program-transform-name=* | --program-transform-name=* \
431 | --program-transform-nam=* | --program-transform-na=* \
432 | --program-transform-n=* | --program-transform-=* \
433 | --program-transform=* | --program-transfor=* \
434 | --program-transfo=* | --program-transf=* \
435 | --program-trans=* | --program-tran=* \
436 | --progr-tra=* | --program-tr=* | --program-t=*)
437 program_transform_name="$ac_optarg" ;;
439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
440 | -silent | --silent | --silen | --sile | --sil)
443 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
445 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
447 sbindir="$ac_optarg" ;;
449 -sharedstatedir | --sharedstatedir | --sharedstatedi \
450 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
451 | --sharedst | --shareds | --shared | --share | --shar \
453 ac_prev=sharedstatedir ;;
454 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
455 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
456 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
458 sharedstatedir="$ac_optarg" ;;
460 -site | --site | --sit)
462 -site=* | --site=* | --sit=*)
465 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
467 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
468 srcdir="$ac_optarg" ;;
470 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
471 | --syscon | --sysco | --sysc | --sys | --sy)
472 ac_prev=sysconfdir ;;
473 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
474 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
475 sysconfdir="$ac_optarg" ;;
477 -target | --target | --targe | --targ | --tar | --ta | --t)
479 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
480 target="$ac_optarg" ;;
482 -v | -verbose | --verbose | --verbos | --verbo | --verb)
485 -version | --version | --versio | --versi | --vers)
486 echo "configure generated by autoconf version 2.12.2"
490 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
491 # Reject names that are not valid shell variable names.
492 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
493 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
495 ac_package=`echo $ac_package| sed 's/-/_/g'`
500 eval "with_${ac_package}='$ac_optarg'" ;;
502 -without-* | --without-*)
503 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
504 # Reject names that are not valid shell variable names.
505 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
506 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
508 ac_package=`echo $ac_package| sed 's/-/_/g'`
509 eval "with_${ac_package}=no" ;;
512 # Obsolete; use --with-x.
515 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
516 | --x-incl | --x-inc | --x-in | --x-i)
517 ac_prev=x_includes ;;
518 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
519 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
520 x_includes="$ac_optarg" ;;
522 -x-libraries | --x-libraries | --x-librarie | --x-librari \
523 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
524 ac_prev=x_libraries ;;
525 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
526 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
527 x_libraries="$ac_optarg" ;;
529 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
533 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
534 echo "configure: warning: $ac_option: invalid host type" 1>&2
536 if test "x$nonopt" != xNONE; then
537 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
545 if test -n "$ac_prev"; then
546 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
549 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
551 # File descriptor usage:
554 # 2 errors and warnings
555 # 3 some systems may open it to /dev/tty
556 # 4 used on the Kubota Titan
557 # 6 checking for... messages and results
558 # 5 compiler messages saved in config.log
559 if test "$silent" = yes; then
567 This file contains any messages produced by compilers while
568 running configure, to aid debugging if configure makes a mistake.
571 # Strip out --no-create and --no-recursion so they do not pile up.
572 # Also quote any args containing shell metacharacters.
577 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
578 | --no-cr | --no-c) ;;
579 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
580 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
581 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
582 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
583 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
588 # Only set these to C if already set. These must not be set unconditionally
589 # because not all systems understand e.g. LANG=C (notably SCO).
590 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
591 # Non-C LC_CTYPE values break the ctype check.
592 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
593 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
594 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
595 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
597 # confdefs.h avoids OS command line length limits that DEFS can exceed.
598 rm -rf conftest* confdefs.h
599 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
602 # A filename unique to this package, relative to the directory that
603 # configure is in, which we can look for to find out if srcdir is correct.
604 ac_unique_file=Makefile.in
606 # Find the source files, if location was not specified.
607 if test -z "$srcdir"; then
608 ac_srcdir_defaulted=yes
609 # Try the directory containing this script, then its parent.
611 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
612 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
614 if test ! -r $srcdir/$ac_unique_file; then
618 ac_srcdir_defaulted=no
620 if test ! -r $srcdir/$ac_unique_file; then
621 if test "$ac_srcdir_defaulted" = yes; then
622 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
624 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
627 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
629 # Prefer explicitly selected file to automatically selected ones.
630 if test -z "$CONFIG_SITE"; then
631 if test "x$prefix" != xNONE; then
632 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
634 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
637 for ac_site_file in $CONFIG_SITE; do
638 if test -r "$ac_site_file"; then
639 echo "loading site script $ac_site_file"
644 if test -r "$cache_file"; then
645 echo "loading cache $cache_file"
648 echo "creating cache $cache_file"
653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
654 ac_cpp='$CPP $CPPFLAGS'
655 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
656 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
657 cross_compiling=$ac_cv_prog_cc_cross
661 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
662 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
663 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
670 ac_n= ac_c='\c' ac_t=
675 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
676 echo "configure:677: checking how to run the C preprocessor" >&5
677 # On Suns, sometimes $CPP names a directory.
678 if test -n "$CPP" && test -d "$CPP"; then
681 if test -z "$CPP"; then
682 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
685 # This must be in double quotes, not single quotes, because CPP may get
686 # substituted into the Makefile and "${CC-cc}" will confuse make.
688 # On the NeXT, cc -E runs the code through the compiler's parser,
689 # not just through cpp.
690 cat > conftest.$ac_ext <<EOF
691 #line 692 "configure"
692 #include "confdefs.h"
696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
697 { (eval echo configure:698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
699 if test -z "$ac_err"; then
703 echo "configure: failed program was:" >&5
704 cat conftest.$ac_ext >&5
706 CPP="${CC-cc} -E -traditional-cpp"
707 cat > conftest.$ac_ext <<EOF
708 #line 709 "configure"
709 #include "confdefs.h"
713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
714 { (eval echo configure:715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
715 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
716 if test -z "$ac_err"; then
720 echo "configure: failed program was:" >&5
721 cat conftest.$ac_ext >&5
723 CPP="${CC-cc} -nologo -E"
724 cat > conftest.$ac_ext <<EOF
725 #line 726 "configure"
726 #include "confdefs.h"
730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
731 { (eval echo configure:732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
733 if test -z "$ac_err"; then
737 echo "configure: failed program was:" >&5
738 cat conftest.$ac_ext >&5
747 ac_cv_prog_CPP="$CPP"
749 CPP="$ac_cv_prog_CPP"
751 ac_cv_prog_CPP="$CPP"
753 echo "$ac_t""$CPP" 1>&6
755 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
756 echo "configure:757: checking whether ${MAKE-make} sets \${MAKE}" >&5
757 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
758 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 cat > conftestmake <<\EOF
763 @echo 'ac_maketemp="${MAKE}"'
765 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
766 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
767 if test -n "$ac_maketemp"; then
768 eval ac_cv_prog_make_${ac_make}_set=yes
770 eval ac_cv_prog_make_${ac_make}_set=no
774 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
775 echo "$ac_t""yes" 1>&6
778 echo "$ac_t""no" 1>&6
779 SET_MAKE="MAKE=${MAKE-make}"
782 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
783 echo "configure:784: checking for POSIXized ISC" >&5
784 if test -d /etc/conf/kconfig.d &&
785 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
787 echo "$ac_t""yes" 1>&6
788 ISC=yes # If later tests want to check for ISC.
789 cat >> confdefs.h <<\EOF
790 #define _POSIX_SOURCE 1
793 if test "$GCC" = yes; then
799 echo "$ac_t""no" 1>&6
803 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
804 echo "configure:805: checking for ANSI C header files" >&5
805 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 cat > conftest.$ac_ext <<EOF
809 #line 810 "configure"
810 #include "confdefs.h"
816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
817 { (eval echo configure:818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
819 if test -z "$ac_err"; then
821 ac_cv_header_stdc=yes
824 echo "configure: failed program was:" >&5
825 cat conftest.$ac_ext >&5
831 if test $ac_cv_header_stdc = yes; then
832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
833 cat > conftest.$ac_ext <<EOF
834 #line 835 "configure"
835 #include "confdefs.h"
838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
839 egrep "memchr" >/dev/null 2>&1; then
849 if test $ac_cv_header_stdc = yes; then
850 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
851 cat > conftest.$ac_ext <<EOF
852 #line 853 "configure"
853 #include "confdefs.h"
856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
857 egrep "free" >/dev/null 2>&1; then
867 if test $ac_cv_header_stdc = yes; then
868 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
869 if test "$cross_compiling" = yes; then
872 cat > conftest.$ac_ext <<EOF
873 #line 874 "configure"
874 #include "confdefs.h"
876 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
877 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
878 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
879 int main () { int i; for (i = 0; i < 256; i++)
880 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
884 if { (eval echo configure:885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
888 echo "configure: failed program was:" >&5
889 cat conftest.$ac_ext >&5
899 echo "$ac_t""$ac_cv_header_stdc" 1>&6
900 if test $ac_cv_header_stdc = yes; then
901 cat >> confdefs.h <<\EOF
902 #define STDC_HEADERS 1
907 echo $ac_n "checking for working const""... $ac_c" 1>&6
908 echo "configure:909: checking for working const" >&5
909 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
912 cat > conftest.$ac_ext <<EOF
913 #line 914 "configure"
914 #include "confdefs.h"
918 /* Ultrix mips cc rejects this. */
919 typedef int charset[2]; const charset x;
920 /* SunOS 4.1.1 cc rejects this. */
921 char const *const *ccp;
923 /* NEC SVR4.0.2 mips cc rejects this. */
924 struct point {int x, y;};
925 static struct point const zero = {0,0};
926 /* AIX XL C 1.02.0.0 rejects this.
927 It does not let you subtract one const X* pointer from another in an arm
928 of an if-expression whose if-part is not a constant expression */
929 const char *g = "string";
930 ccp = &g + (g ? g-g : 0);
931 /* HPUX 7.0 cc rejects these. */
934 ccp = (char const *const *) p;
935 { /* SCO 3.2v4 cc rejects this. */
937 char const *s = 0 ? (char *) 0 : (char const *) 0;
941 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
943 const int *foo = &x[0];
946 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
947 typedef const int *iptr;
951 { /* AIX XL C 1.02.0.0 rejects this saying
952 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
953 struct s { int j; const int *ap[3]; };
954 struct s *b; b->j = 5;
956 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
962 if { (eval echo configure:963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
966 echo "configure: failed program was:" >&5
967 cat conftest.$ac_ext >&5
974 echo "$ac_t""$ac_cv_c_const" 1>&6
975 if test $ac_cv_c_const = no; then
976 cat >> confdefs.h <<\EOF
982 echo $ac_n "checking for inline""... $ac_c" 1>&6
983 echo "configure:984: checking for inline" >&5
984 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
988 for ac_kw in inline __inline__ __inline; do
989 cat > conftest.$ac_ext <<EOF
990 #line 991 "configure"
991 #include "confdefs.h"
997 if { (eval echo configure:998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
999 ac_cv_c_inline=$ac_kw; break
1001 echo "configure: failed program was:" >&5
1002 cat conftest.$ac_ext >&5
1009 echo "$ac_t""$ac_cv_c_inline" 1>&6
1010 case "$ac_cv_c_inline" in
1012 no) cat >> confdefs.h <<\EOF
1016 *) cat >> confdefs.h <<EOF
1017 #define inline $ac_cv_c_inline
1022 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1023 echo "configure:1024: checking for off_t" >&5
1024 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 cat > conftest.$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1030 #include <sys/types.h>
1036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1037 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1039 ac_cv_type_off_t=yes
1047 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1048 if test $ac_cv_type_off_t = no; then
1049 cat >> confdefs.h <<\EOF
1055 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1056 echo "configure:1057: checking for size_t" >&5
1057 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1060 cat > conftest.$ac_ext <<EOF
1061 #line 1062 "configure"
1062 #include "confdefs.h"
1063 #include <sys/types.h>
1069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1070 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1072 ac_cv_type_size_t=yes
1075 ac_cv_type_size_t=no
1080 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1081 if test $ac_cv_type_size_t = no; then
1082 cat >> confdefs.h <<\EOF
1083 #define size_t unsigned
1088 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1089 # for constant arguments. Useless!
1090 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1091 echo "configure:1092: checking for working alloca.h" >&5
1092 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 cat > conftest.$ac_ext <<EOF
1096 #line 1097 "configure"
1097 #include "confdefs.h"
1100 char *p = alloca(2 * sizeof(int));
1103 if { (eval echo configure:1104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1105 ac_cv_header_alloca_h=yes
1107 echo "configure: failed program was:" >&5
1108 cat conftest.$ac_ext >&5
1110 ac_cv_header_alloca_h=no
1115 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1116 if test $ac_cv_header_alloca_h = yes; then
1117 cat >> confdefs.h <<\EOF
1118 #define HAVE_ALLOCA_H 1
1123 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1124 echo "configure:1125: checking for alloca" >&5
1125 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1128 cat > conftest.$ac_ext <<EOF
1129 #line 1130 "configure"
1130 #include "confdefs.h"
1133 # define alloca __builtin_alloca
1136 # include <malloc.h>
1137 # define alloca _alloca
1140 # include <alloca.h>
1145 # ifndef alloca /* predefined by HP cc +Olibcalls */
1154 char *p = (char *) alloca(1);
1157 if { (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1159 ac_cv_func_alloca_works=yes
1161 echo "configure: failed program was:" >&5
1162 cat conftest.$ac_ext >&5
1164 ac_cv_func_alloca_works=no
1169 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1170 if test $ac_cv_func_alloca_works = yes; then
1171 cat >> confdefs.h <<\EOF
1172 #define HAVE_ALLOCA 1
1177 if test $ac_cv_func_alloca_works = no; then
1178 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1179 # that cause trouble. Some versions do not even contain alloca or
1180 # contain a buggy version. If you still want to use their alloca,
1181 # use ar to extract alloca.o from them instead of compiling alloca.c.
1182 ALLOCA=alloca.${ac_objext}
1183 cat >> confdefs.h <<\EOF
1188 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1189 echo "configure:1190: checking whether alloca needs Cray hooks" >&5
1190 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 cat > conftest.$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1196 #if defined(CRAY) && ! defined(CRAY2)
1203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1204 egrep "webecray" >/dev/null 2>&1; then
1215 echo "$ac_t""$ac_cv_os_cray" 1>&6
1216 if test $ac_cv_os_cray = yes; then
1217 for ac_func in _getb67 GETB67 getb67; do
1218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_func" >&5
1220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 cat > conftest.$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1226 /* System header to define __stub macros and hopefully few prototypes,
1227 which can conflict with char $ac_func(); below. */
1229 /* Override any gcc2 internal prototype to avoid an error. */
1230 /* We use char because int might match the return type of a gcc2
1231 builtin and then its argument prototype would still apply. */
1236 /* The GNU C library defines this for functions which it implements
1237 to always fail with ENOSYS. Some functions are actually named
1238 something starting with __ and the normal name is an alias. */
1239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1247 if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1249 eval "ac_cv_func_$ac_func=yes"
1251 echo "configure: failed program was:" >&5
1252 cat conftest.$ac_ext >&5
1254 eval "ac_cv_func_$ac_func=no"
1259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1260 echo "$ac_t""yes" 1>&6
1261 cat >> confdefs.h <<EOF
1262 #define CRAY_STACKSEG_END $ac_func
1267 echo "$ac_t""no" 1>&6
1273 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1274 echo "configure:1275: checking stack direction for C alloca" >&5
1275 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 if test "$cross_compiling" = yes; then
1279 ac_cv_c_stack_direction=0
1281 cat > conftest.$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1284 find_stack_direction ()
1286 static char *addr = 0;
1291 return find_stack_direction ();
1294 return (&dummy > addr) ? 1 : -1;
1298 exit (find_stack_direction() < 0);
1301 if { (eval echo configure:1302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1303 ac_cv_c_stack_direction=1
1305 echo "configure: failed program was:" >&5
1306 cat conftest.$ac_ext >&5
1308 ac_cv_c_stack_direction=-1
1315 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1316 cat >> confdefs.h <<EOF
1317 #define STACK_DIRECTION $ac_cv_c_stack_direction
1322 for ac_hdr in unistd.h
1324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1326 echo "configure:1327: checking for $ac_hdr" >&5
1327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 cat > conftest.$ac_ext <<EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1336 { (eval echo configure:1337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1338 if test -z "$ac_err"; then
1340 eval "ac_cv_header_$ac_safe=yes"
1343 echo "configure: failed program was:" >&5
1344 cat conftest.$ac_ext >&5
1346 eval "ac_cv_header_$ac_safe=no"
1350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1351 echo "$ac_t""yes" 1>&6
1352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1353 cat >> confdefs.h <<EOF
1354 #define $ac_tr_hdr 1
1358 echo "$ac_t""no" 1>&6
1362 for ac_func in getpagesize
1364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1365 echo "configure:1366: checking for $ac_func" >&5
1366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 cat > conftest.$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1372 /* System header to define __stub macros and hopefully few prototypes,
1373 which can conflict with char $ac_func(); below. */
1375 /* Override any gcc2 internal prototype to avoid an error. */
1376 /* We use char because int might match the return type of a gcc2
1377 builtin and then its argument prototype would still apply. */
1382 /* The GNU C library defines this for functions which it implements
1383 to always fail with ENOSYS. Some functions are actually named
1384 something starting with __ and the normal name is an alias. */
1385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1393 if { (eval echo configure:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1395 eval "ac_cv_func_$ac_func=yes"
1397 echo "configure: failed program was:" >&5
1398 cat conftest.$ac_ext >&5
1400 eval "ac_cv_func_$ac_func=no"
1405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1406 echo "$ac_t""yes" 1>&6
1407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1408 cat >> confdefs.h <<EOF
1409 #define $ac_tr_func 1
1413 echo "$ac_t""no" 1>&6
1417 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1418 echo "configure:1419: checking for working mmap" >&5
1419 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 if test "$cross_compiling" = yes; then
1423 ac_cv_func_mmap_fixed_mapped=no
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1429 /* Thanks to Mike Haertel and Jim Avera for this test.
1430 Here is a matrix of mmap possibilities:
1431 mmap private not fixed
1432 mmap private fixed at somewhere currently unmapped
1433 mmap private fixed at somewhere already mapped
1434 mmap shared not fixed
1435 mmap shared fixed at somewhere currently unmapped
1436 mmap shared fixed at somewhere already mapped
1437 For private mappings, we should verify that changes cannot be read()
1438 back from the file, nor mmap's back from the file at a different
1439 address. (There have been systems where private was not correctly
1440 implemented like the infamous i386 svr4.0, and systems where the
1441 VM page cache was not coherent with the filesystem buffer cache
1442 like early versions of FreeBSD and possibly contemporary NetBSD.)
1443 For shared mappings, we should conversely verify that changes get
1444 propogated back to all the places they're supposed to be.
1446 Grep wants private fixed already mapped.
1447 The main things grep needs to know about mmap are:
1448 * does it exist and is it safe to write into the mmap'd area
1449 * how to use it (BSD variants) */
1450 #include <sys/types.h>
1452 #include <sys/mman.h>
1454 /* This mess was copied from the GNU getpagesize.h. */
1455 #ifndef HAVE_GETPAGESIZE
1456 # ifdef HAVE_UNISTD_H
1457 # include <unistd.h>
1460 /* Assume that all systems that can run configure have sys/param.h. */
1461 # ifndef HAVE_SYS_PARAM_H
1462 # define HAVE_SYS_PARAM_H 1
1465 # ifdef _SC_PAGESIZE
1466 # define getpagesize() sysconf(_SC_PAGESIZE)
1467 # else /* no _SC_PAGESIZE */
1468 # ifdef HAVE_SYS_PARAM_H
1469 # include <sys/param.h>
1470 # ifdef EXEC_PAGESIZE
1471 # define getpagesize() EXEC_PAGESIZE
1472 # else /* no EXEC_PAGESIZE */
1474 # define getpagesize() NBPG * CLSIZE
1477 # endif /* no CLSIZE */
1478 # else /* no NBPG */
1480 # define getpagesize() NBPC
1481 # else /* no NBPC */
1483 # define getpagesize() PAGESIZE
1484 # endif /* PAGESIZE */
1485 # endif /* no NBPC */
1486 # endif /* no NBPG */
1487 # endif /* no EXEC_PAGESIZE */
1488 # else /* no HAVE_SYS_PARAM_H */
1489 # define getpagesize() 8192 /* punt totally */
1490 # endif /* no HAVE_SYS_PARAM_H */
1491 # endif /* no _SC_PAGESIZE */
1493 #endif /* no HAVE_GETPAGESIZE */
1496 extern "C" { void *malloc(unsigned); }
1504 char *data, *data2, *data3;
1508 pagesize = getpagesize();
1511 * First, make a file with some known garbage in it.
1513 data = malloc(pagesize);
1516 for (i = 0; i < pagesize; ++i)
1517 *(data + i) = rand();
1519 fd = creat("conftestmmap", 0600);
1522 if (write(fd, data, pagesize) != pagesize)
1527 * Next, try to mmap the file at a fixed address which
1528 * already has something else allocated at it. If we can,
1529 * also make sure that we see the same garbage.
1531 fd = open("conftestmmap", O_RDWR);
1534 data2 = malloc(2 * pagesize);
1537 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1538 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1539 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1541 for (i = 0; i < pagesize; ++i)
1542 if (*(data + i) != *(data2 + i))
1546 * Finally, make sure that changes to the mapped area
1547 * do not percolate back to the file as seen by read().
1548 * (This is a bug on some variants of i386 svr4.0.)
1550 for (i = 0; i < pagesize; ++i)
1551 *(data2 + i) = *(data2 + i) + 1;
1552 data3 = malloc(pagesize);
1555 if (read(fd, data3, pagesize) != pagesize)
1557 for (i = 0; i < pagesize; ++i)
1558 if (*(data + i) != *(data3 + i))
1561 unlink("conftestmmap");
1566 if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1568 ac_cv_func_mmap_fixed_mapped=yes
1570 echo "configure: failed program was:" >&5
1571 cat conftest.$ac_ext >&5
1573 ac_cv_func_mmap_fixed_mapped=no
1580 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1581 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1582 cat >> confdefs.h <<\EOF
1589 # autoconf.info says this should be called right after AC_INIT.
1593 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1594 if test -f $ac_dir/install-sh; then
1596 ac_install_sh="$ac_aux_dir/install-sh -c"
1598 elif test -f $ac_dir/install.sh; then
1600 ac_install_sh="$ac_aux_dir/install.sh -c"
1604 if test -z "$ac_aux_dir"; then
1605 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1607 ac_config_guess=$ac_aux_dir/config.guess
1608 ac_config_sub=$ac_aux_dir/config.sub
1609 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1612 # Do some error checking and defaulting for the host and target type.
1614 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1617 # 1. You are not allowed to specify --host, --target, and nonopt at the
1619 # 2. Host defaults to nonopt.
1620 # 3. If nonopt is not specified, then host defaults to the current host,
1621 # as determined by config.guess.
1622 # 4. Target and build default to nonopt.
1623 # 5. If nonopt is not specified, then target and build default to host.
1625 # The aliases save the names the user supplied, while $host etc.
1626 # will get canonicalized.
1627 case $host---$target---$nonopt in
1628 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1629 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1633 # Make sure we can run config.sub.
1634 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1635 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1638 echo $ac_n "checking host system type""... $ac_c" 1>&6
1639 echo "configure:1640: checking host system type" >&5
1642 case "$host_alias" in
1646 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1647 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1649 *) host_alias=$nonopt ;;
1653 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1654 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1657 echo "$ac_t""$host" 1>&6
1659 echo $ac_n "checking target system type""... $ac_c" 1>&6
1660 echo "configure:1661: checking target system type" >&5
1662 target_alias=$target
1663 case "$target_alias" in
1666 NONE) target_alias=$host_alias ;;
1667 *) target_alias=$nonopt ;;
1671 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1672 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1675 echo "$ac_t""$target" 1>&6
1677 echo $ac_n "checking build system type""... $ac_c" 1>&6
1678 echo "configure:1679: checking build system type" >&5
1681 case "$build_alias" in
1684 NONE) build_alias=$host_alias ;;
1685 *) build_alias=$nonopt ;;
1689 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1690 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693 echo "$ac_t""$build" 1>&6
1695 test "$host_alias" != "$target_alias" &&
1696 test "$program_prefix$program_suffix$program_transform_name" = \
1698 program_prefix=${target_alias}-
1700 if test "$program_transform_name" = s,x,x,; then
1701 program_transform_name=
1703 # Double any \ or $. echo might interpret backslashes.
1704 cat <<\EOF_SED > conftestsed
1705 s,\\,\\\\,g; s,\$,$$,g
1707 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1710 test "$program_prefix" != NONE &&
1711 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1712 # Use a double $ so make ignores it.
1713 test "$program_suffix" != NONE &&
1714 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1716 # sed with no file args requires a program.
1717 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1719 # Extract the first word of "gcc", so it can be a program name with args.
1720 set dummy gcc; ac_word=$2
1721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1722 echo "configure:1723: checking for $ac_word" >&5
1723 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 if test -n "$CC"; then
1727 ac_cv_prog_CC="$CC" # Let the user override the test.
1729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1730 for ac_dir in $PATH; do
1731 test -z "$ac_dir" && ac_dir=.
1732 if test -f $ac_dir/$ac_word; then
1741 if test -n "$CC"; then
1742 echo "$ac_t""$CC" 1>&6
1744 echo "$ac_t""no" 1>&6
1747 if test -z "$CC"; then
1748 # Extract the first word of "cc", so it can be a program name with args.
1749 set dummy cc; ac_word=$2
1750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_word" >&5
1752 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC="$CC" # Let the user override the test.
1758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1760 for ac_dir in $PATH; do
1761 test -z "$ac_dir" && ac_dir=.
1762 if test -f $ac_dir/$ac_word; then
1763 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1764 ac_prog_rejected=yes
1772 if test $ac_prog_rejected = yes; then
1773 # We found a bogon in the path, so make sure we never use it.
1774 set dummy $ac_cv_prog_CC
1776 if test $# -gt 0; then
1777 # We chose a different compiler from the bogus one.
1778 # However, it has the same basename, so the bogon will be chosen
1779 # first if we set CC to just the basename; use the full file name.
1781 set dummy "$ac_dir/$ac_word" "$@"
1789 if test -n "$CC"; then
1790 echo "$ac_t""$CC" 1>&6
1792 echo "$ac_t""no" 1>&6
1795 if test -z "$CC"; then
1796 case "`uname -s`" in
1798 # Extract the first word of "cl", so it can be a program name with args.
1799 set dummy cl; ac_word=$2
1800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1801 echo "configure:1802: checking for $ac_word" >&5
1802 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 if test -n "$CC"; then
1806 ac_cv_prog_CC="$CC" # Let the user override the test.
1808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1809 for ac_dir in $PATH; do
1810 test -z "$ac_dir" && ac_dir=.
1811 if test -f $ac_dir/$ac_word; then
1820 if test -n "$CC"; then
1821 echo "$ac_t""$CC" 1>&6
1823 echo "$ac_t""no" 1>&6
1828 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1831 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1832 echo "configure:1833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1836 ac_cpp='$CPP $CPPFLAGS'
1837 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1838 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1839 cross_compiling=$ac_cv_prog_cc_cross
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1847 ac_cv_prog_cc_works=yes
1848 # If we can't run a trivial program, we are probably using a cross compiler.
1849 if (./conftest; exit) 2>/dev/null; then
1850 ac_cv_prog_cc_cross=no
1852 ac_cv_prog_cc_cross=yes
1855 echo "configure: failed program was:" >&5
1856 cat conftest.$ac_ext >&5
1857 ac_cv_prog_cc_works=no
1861 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1862 if test $ac_cv_prog_cc_works = no; then
1863 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1865 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1866 echo "configure:1867: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1867 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1868 cross_compiling=$ac_cv_prog_cc_cross
1870 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1871 echo "configure:1872: checking whether we are using GNU C" >&5
1872 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 cat > conftest.c <<EOF
1880 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1887 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1889 if test $ac_cv_prog_gcc = yes; then
1895 ac_test_CFLAGS="${CFLAGS+set}"
1896 ac_save_CFLAGS="$CFLAGS"
1898 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1899 echo "configure:1900: checking whether ${CC-cc} accepts -g" >&5
1900 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1903 echo 'void f(){}' > conftest.c
1904 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1913 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1914 if test "$ac_test_CFLAGS" = set; then
1915 CFLAGS="$ac_save_CFLAGS"
1916 elif test $ac_cv_prog_cc_g = yes; then
1917 if test "$GCC" = yes; then
1923 if test "$GCC" = yes; then
1930 # Find a good install program. We prefer a C program (faster),
1931 # so one script is as good as another. But avoid the broken or
1932 # incompatible versions:
1933 # SysV /etc/install, /usr/sbin/install
1934 # SunOS /usr/etc/install
1935 # IRIX /sbin/install
1937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1940 # ./install, which can be erroneously created by make from ./install.sh.
1941 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1942 echo "configure:1943: checking for a BSD compatible install" >&5
1943 if test -z "$INSTALL"; then
1944 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1947 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1948 for ac_dir in $PATH; do
1949 # Account for people who put trailing slashes in PATH elements.
1951 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1953 # OSF1 and SCO ODT 3.0 have their own names for install.
1954 # Don't use installbsd from OSF since it installs stuff as root
1956 for ac_prog in ginstall scoinst install; do
1957 if test -f $ac_dir/$ac_prog; then
1958 if test $ac_prog = install &&
1959 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1960 # AIX install. It has an incompatible calling convention.
1963 ac_cv_path_install="$ac_dir/$ac_prog -c"
1974 if test "${ac_cv_path_install+set}" = set; then
1975 INSTALL="$ac_cv_path_install"
1977 # As a last resort, use the slow shell script. We don't cache a
1978 # path for INSTALL within a source directory, because that will
1979 # break other packages using the cache if that directory is
1980 # removed, or if the path is relative.
1981 INSTALL="$ac_install_sh"
1984 echo "$ac_t""$INSTALL" 1>&6
1986 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1987 # It thinks the first close brace ends the variable substitution.
1988 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1993 # Put a plausible default for CC_FOR_BUILD in Makefile.
1994 if test "x$cross_compiling" = "xno"; then
1995 CC_FOR_BUILD='$(CC)'
2005 # Extract the first word of "ranlib", so it can be a program name with args.
2006 set dummy ranlib; ac_word=$2
2007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2008 echo "configure:2009: checking for $ac_word" >&5
2009 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 if test -n "$RANLIB"; then
2013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2016 for ac_dir in $PATH; do
2017 test -z "$ac_dir" && ac_dir=.
2018 if test -f $ac_dir/$ac_word; then
2019 ac_cv_prog_RANLIB="ranlib"
2024 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2027 RANLIB="$ac_cv_prog_RANLIB"
2028 if test -n "$RANLIB"; then
2029 echo "$ac_t""$RANLIB" 1>&6
2031 echo "$ac_t""no" 1>&6
2037 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2038 unistd.h values.h sys/param.h
2040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2042 echo "configure:2043: checking for $ac_hdr" >&5
2043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2052 { (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2054 if test -z "$ac_err"; then
2056 eval "ac_cv_header_$ac_safe=yes"
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2062 eval "ac_cv_header_$ac_safe=no"
2066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2069 cat >> confdefs.h <<EOF
2070 #define $ac_tr_hdr 1
2074 echo "$ac_t""no" 1>&6
2078 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2079 __argz_count __argz_stringify __argz_next
2081 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2082 echo "configure:2083: checking for $ac_func" >&5
2083 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2086 cat > conftest.$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2089 /* System header to define __stub macros and hopefully few prototypes,
2090 which can conflict with char $ac_func(); below. */
2092 /* Override any gcc2 internal prototype to avoid an error. */
2093 /* We use char because int might match the return type of a gcc2
2094 builtin and then its argument prototype would still apply. */
2099 /* The GNU C library defines this for functions which it implements
2100 to always fail with ENOSYS. Some functions are actually named
2101 something starting with __ and the normal name is an alias. */
2102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2110 if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2112 eval "ac_cv_func_$ac_func=yes"
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2117 eval "ac_cv_func_$ac_func=no"
2122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2123 echo "$ac_t""yes" 1>&6
2124 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2125 cat >> confdefs.h <<EOF
2126 #define $ac_tr_func 1
2130 echo "$ac_t""no" 1>&6
2135 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2136 for ac_func in stpcpy
2138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2139 echo "configure:2140: checking for $ac_func" >&5
2140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 cat > conftest.$ac_ext <<EOF
2144 #line 2145 "configure"
2145 #include "confdefs.h"
2146 /* System header to define __stub macros and hopefully few prototypes,
2147 which can conflict with char $ac_func(); below. */
2149 /* Override any gcc2 internal prototype to avoid an error. */
2150 /* We use char because int might match the return type of a gcc2
2151 builtin and then its argument prototype would still apply. */
2156 /* The GNU C library defines this for functions which it implements
2157 to always fail with ENOSYS. Some functions are actually named
2158 something starting with __ and the normal name is an alias. */
2159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2169 eval "ac_cv_func_$ac_func=yes"
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2174 eval "ac_cv_func_$ac_func=no"
2179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2182 cat >> confdefs.h <<EOF
2183 #define $ac_tr_func 1
2187 echo "$ac_t""no" 1>&6
2192 if test "${ac_cv_func_stpcpy}" = "yes"; then
2193 cat >> confdefs.h <<\EOF
2194 #define HAVE_STPCPY 1
2199 if test $ac_cv_header_locale_h = yes; then
2200 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2201 echo "configure:2202: checking for LC_MESSAGES" >&5
2202 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2213 if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2215 am_cv_val_LC_MESSAGES=yes
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 am_cv_val_LC_MESSAGES=no
2225 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2226 if test $am_cv_val_LC_MESSAGES = yes; then
2227 cat >> confdefs.h <<\EOF
2228 #define HAVE_LC_MESSAGES 1
2233 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2234 echo "configure:2235: checking whether NLS is requested" >&5
2235 # Check whether --enable-nls or --disable-nls was given.
2236 if test "${enable_nls+set}" = set; then
2237 enableval="$enable_nls"
2243 echo "$ac_t""$USE_NLS" 1>&6
2246 USE_INCLUDED_LIBINTL=no
2248 if test "$USE_NLS" = "yes"; then
2249 cat >> confdefs.h <<\EOF
2250 #define ENABLE_NLS 1
2253 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2254 echo "configure:2255: checking whether included gettext is requested" >&5
2255 # Check whether --with-included-gettext or --without-included-gettext was given.
2256 if test "${with_included_gettext+set}" = set; then
2257 withval="$with_included_gettext"
2258 nls_cv_force_use_gnu_gettext=$withval
2260 nls_cv_force_use_gnu_gettext=no
2263 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2265 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2266 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2268 nls_cv_header_libgt=
2271 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2272 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2273 echo "configure:2274: checking for libintl.h" >&5
2274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 #include <libintl.h>
2282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2283 { (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2285 if test -z "$ac_err"; then
2287 eval "ac_cv_header_$ac_safe=yes"
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2293 eval "ac_cv_header_$ac_safe=no"
2297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2298 echo "$ac_t""yes" 1>&6
2299 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2300 echo "configure:2301: checking for gettext in libc" >&5
2301 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2307 #include <libintl.h>
2309 return (int) gettext ("")
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2314 gt_cv_func_gettext_libc=yes
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2319 gt_cv_func_gettext_libc=no
2324 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2326 if test "$gt_cv_func_gettext_libc" != "yes"; then
2327 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2328 echo "configure:2329: checking for bindtextdomain in -lintl" >&5
2329 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 ac_save_LIBS="$LIBS"
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 /* Override any gcc2 internal prototype to avoid an error. */
2339 /* We use char because int might match the return type of a gcc2
2340 builtin and then its argument prototype would still apply. */
2341 char bindtextdomain();
2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2349 eval "ac_cv_lib_$ac_lib_var=yes"
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2354 eval "ac_cv_lib_$ac_lib_var=no"
2357 LIBS="$ac_save_LIBS"
2360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2361 echo "$ac_t""yes" 1>&6
2362 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2363 echo "configure:2364: checking for gettext in libintl" >&5
2364 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 cat > conftest.$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2372 return (int) gettext ("")
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2377 gt_cv_func_gettext_libintl=yes
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2382 gt_cv_func_gettext_libintl=no
2387 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2389 echo "$ac_t""no" 1>&6
2394 if test "$gt_cv_func_gettext_libc" = "yes" \
2395 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2396 cat >> confdefs.h <<\EOF
2397 #define HAVE_GETTEXT 1
2400 # Extract the first word of "msgfmt", so it can be a program name with args.
2401 set dummy msgfmt; ac_word=$2
2402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2403 echo "configure:2404: checking for $ac_word" >&5
2404 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2409 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2413 for ac_dir in $PATH; do
2414 test -z "$ac_dir" && ac_dir=.
2415 if test -f $ac_dir/$ac_word; then
2416 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2417 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2423 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2427 MSGFMT="$ac_cv_path_MSGFMT"
2428 if test -n "$MSGFMT"; then
2429 echo "$ac_t""$MSGFMT" 1>&6
2431 echo "$ac_t""no" 1>&6
2433 if test "$MSGFMT" != "no"; then
2434 for ac_func in dcgettext
2436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_func" >&5
2438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 cat > conftest.$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2444 /* System header to define __stub macros and hopefully few prototypes,
2445 which can conflict with char $ac_func(); below. */
2447 /* Override any gcc2 internal prototype to avoid an error. */
2448 /* We use char because int might match the return type of a gcc2
2449 builtin and then its argument prototype would still apply. */
2454 /* The GNU C library defines this for functions which it implements
2455 to always fail with ENOSYS. Some functions are actually named
2456 something starting with __ and the normal name is an alias. */
2457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2465 if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2467 eval "ac_cv_func_$ac_func=yes"
2469 echo "configure: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2472 eval "ac_cv_func_$ac_func=no"
2477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2478 echo "$ac_t""yes" 1>&6
2479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2480 cat >> confdefs.h <<EOF
2481 #define $ac_tr_func 1
2485 echo "$ac_t""no" 1>&6
2489 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2490 set dummy gmsgfmt; ac_word=$2
2491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2492 echo "configure:2493: checking for $ac_word" >&5
2493 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2498 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2501 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2505 for ac_dir in $PATH; do
2506 test -z "$ac_dir" && ac_dir=.
2507 if test -f $ac_dir/$ac_word; then
2508 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2513 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2517 GMSGFMT="$ac_cv_path_GMSGFMT"
2518 if test -n "$GMSGFMT"; then
2519 echo "$ac_t""$GMSGFMT" 1>&6
2521 echo "$ac_t""no" 1>&6
2524 # Extract the first word of "xgettext", so it can be a program name with args.
2525 set dummy xgettext; ac_word=$2
2526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2527 echo "configure:2528: checking for $ac_word" >&5
2528 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2533 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2537 for ac_dir in $PATH; do
2538 test -z "$ac_dir" && ac_dir=.
2539 if test -f $ac_dir/$ac_word; then
2540 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2541 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2547 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2551 XGETTEXT="$ac_cv_path_XGETTEXT"
2552 if test -n "$XGETTEXT"; then
2553 echo "$ac_t""$XGETTEXT" 1>&6
2555 echo "$ac_t""no" 1>&6
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2563 extern int _nl_msg_cat_cntr;
2564 return _nl_msg_cat_cntr
2567 if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2572 echo "configure: failed program was:" >&5
2573 cat conftest.$ac_ext >&5
2584 echo "$ac_t""no" 1>&6
2589 if test "$CATOBJEXT" = "NONE"; then
2590 nls_cv_use_gnu_gettext=yes
2594 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2595 INTLOBJS="\$(GETTOBJS)"
2596 # Extract the first word of "msgfmt", so it can be a program name with args.
2597 set dummy msgfmt; ac_word=$2
2598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2599 echo "configure:2600: checking for $ac_word" >&5
2600 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2605 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2609 for ac_dir in $PATH; do
2610 test -z "$ac_dir" && ac_dir=.
2611 if test -f $ac_dir/$ac_word; then
2612 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2613 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2619 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2623 MSGFMT="$ac_cv_path_MSGFMT"
2624 if test -n "$MSGFMT"; then
2625 echo "$ac_t""$MSGFMT" 1>&6
2627 echo "$ac_t""no" 1>&6
2630 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2631 set dummy gmsgfmt; ac_word=$2
2632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2633 echo "configure:2634: checking for $ac_word" >&5
2634 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2639 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2642 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2646 for ac_dir in $PATH; do
2647 test -z "$ac_dir" && ac_dir=.
2648 if test -f $ac_dir/$ac_word; then
2649 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2654 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2658 GMSGFMT="$ac_cv_path_GMSGFMT"
2659 if test -n "$GMSGFMT"; then
2660 echo "$ac_t""$GMSGFMT" 1>&6
2662 echo "$ac_t""no" 1>&6
2665 # Extract the first word of "xgettext", so it can be a program name with args.
2666 set dummy xgettext; ac_word=$2
2667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2668 echo "configure:2669: checking for $ac_word" >&5
2669 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2674 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2678 for ac_dir in $PATH; do
2679 test -z "$ac_dir" && ac_dir=.
2680 if test -f $ac_dir/$ac_word; then
2681 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2682 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2688 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2692 XGETTEXT="$ac_cv_path_XGETTEXT"
2693 if test -n "$XGETTEXT"; then
2694 echo "$ac_t""$XGETTEXT" 1>&6
2696 echo "$ac_t""no" 1>&6
2700 USE_INCLUDED_LIBINTL=yes
2704 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2706 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2707 nls_cv_header_intl=libintl.h
2708 nls_cv_header_libgt=libgettext.h
2711 if test "$XGETTEXT" != ":"; then
2712 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2715 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2720 # We need to process the po/ directory.
2724 nls_cv_header_intl=libintl.h
2725 nls_cv_header_libgt=libgettext.h
2728 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2729 # because some of the sources are only built for this goal.
2730 if test "$PACKAGE" = gettext; then
2732 USE_INCLUDED_LIBINTL=yes
2735 for lang in $ALL_LINGUAS; do
2736 GMOFILES="$GMOFILES $lang.gmo"
2737 POFILES="$POFILES $lang.po"
2753 if test "x$CATOBJEXT" != "x"; then
2754 if test "x$ALL_LINGUAS" = "x"; then
2757 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2758 echo "configure:2759: checking for catalogs to be installed" >&5
2760 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2761 case "$ALL_LINGUAS" in
2762 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2765 LINGUAS=$NEW_LINGUAS
2766 echo "$ac_t""$LINGUAS" 1>&6
2769 if test -n "$LINGUAS"; then
2770 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2774 if test $ac_cv_header_locale_h = yes; then
2775 INCLUDE_LOCALE_H="#include <locale.h>"
2778 /* The system does not provide the header <locale.h>. Take care yourself. */"
2782 if test -f $srcdir/po2tbl.sed.in; then
2783 if test "$CATOBJEXT" = ".cat"; then
2784 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2785 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2786 echo "configure:2787: checking for linux/version.h" >&5
2787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2790 cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2793 #include <linux/version.h>
2795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2796 { (eval echo configure:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2798 if test -z "$ac_err"; then
2800 eval "ac_cv_header_$ac_safe=yes"
2803 echo "configure: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2806 eval "ac_cv_header_$ac_safe=no"
2810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2811 echo "$ac_t""yes" 1>&6
2814 echo "$ac_t""no" 1>&6
2819 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2821 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2822 $srcdir/po2tbl.sed.in > po2tbl.sed
2825 if test "$PACKAGE" = "gettext"; then
2835 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2841 if test -d $srcdir/po; then
2842 test -d po || mkdir po
2843 if test "x$srcdir" != "x."; then
2844 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2845 posrcprefix="$srcdir/"
2847 posrcprefix="../$srcdir/"
2853 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2854 < $srcdir/po/POTFILES.in > po/POTFILES
2858 # Check for common headers.
2859 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2860 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2861 for ac_hdr in stdlib.h string.h strings.h unistd.h time.h
2863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_hdr" >&5
2866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2875 { (eval echo configure:2876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2877 if test -z "$ac_err"; then
2879 eval "ac_cv_header_$ac_safe=yes"
2882 echo "configure: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2885 eval "ac_cv_header_$ac_safe=no"
2889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
2891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2892 cat >> confdefs.h <<EOF
2893 #define $ac_tr_hdr 1
2897 echo "$ac_t""no" 1>&6
2901 for ac_hdr in sys/time.h sys/resource.h
2903 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2904 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2905 echo "configure:2906: checking for $ac_hdr" >&5
2906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2915 { (eval echo configure:2916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2917 if test -z "$ac_err"; then
2919 eval "ac_cv_header_$ac_safe=yes"
2922 echo "configure: failed program was:" >&5
2923 cat conftest.$ac_ext >&5
2925 eval "ac_cv_header_$ac_safe=no"
2929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2930 echo "$ac_t""yes" 1>&6
2931 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2932 cat >> confdefs.h <<EOF
2933 #define $ac_tr_hdr 1
2937 echo "$ac_t""no" 1>&6
2941 for ac_hdr in fcntl.h fpu_control.h
2943 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2944 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2945 echo "configure:2946: checking for $ac_hdr" >&5
2946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2955 { (eval echo configure:2956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2957 if test -z "$ac_err"; then
2959 eval "ac_cv_header_$ac_safe=yes"
2962 echo "configure: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2965 eval "ac_cv_header_$ac_safe=no"
2969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2970 echo "$ac_t""yes" 1>&6
2971 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2972 cat >> confdefs.h <<EOF
2973 #define $ac_tr_hdr 1
2977 echo "$ac_t""no" 1>&6
2981 for ac_func in getrusage time sigaction __setfpucw
2983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2984 echo "configure:2985: checking for $ac_func" >&5
2985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991 /* System header to define __stub macros and hopefully few prototypes,
2992 which can conflict with char $ac_func(); below. */
2994 /* Override any gcc2 internal prototype to avoid an error. */
2995 /* We use char because int might match the return type of a gcc2
2996 builtin and then its argument prototype would still apply. */
3001 /* The GNU C library defines this for functions which it implements
3002 to always fail with ENOSYS. Some functions are actually named
3003 something starting with __ and the normal name is an alias. */
3004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3012 if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3014 eval "ac_cv_func_$ac_func=yes"
3016 echo "configure: failed program was:" >&5
3017 cat conftest.$ac_ext >&5
3019 eval "ac_cv_func_$ac_func=no"
3024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3025 echo "$ac_t""yes" 1>&6
3026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3027 cat >> confdefs.h <<EOF
3028 #define $ac_tr_func 1
3032 echo "$ac_t""no" 1>&6
3037 # Check for socket libraries
3038 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3039 echo "configure:3040: checking for bind in -lsocket" >&5
3040 ac_lib_var=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 ac_save_LIBS="$LIBS"
3045 LIBS="-lsocket $LIBS"
3046 cat > conftest.$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3049 /* Override any gcc2 internal prototype to avoid an error. */
3050 /* We use char because int might match the return type of a gcc2
3051 builtin and then its argument prototype would still apply. */
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3060 eval "ac_cv_lib_$ac_lib_var=yes"
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 eval "ac_cv_lib_$ac_lib_var=no"
3068 LIBS="$ac_save_LIBS"
3071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3072 echo "$ac_t""yes" 1>&6
3073 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3074 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3075 cat >> confdefs.h <<EOF
3076 #define $ac_tr_lib 1
3079 LIBS="-lsocket $LIBS"
3082 echo "$ac_t""no" 1>&6
3085 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3086 echo "configure:3087: checking for gethostbyname in -lnsl" >&5
3087 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 ac_save_LIBS="$LIBS"
3093 cat > conftest.$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3096 /* Override any gcc2 internal prototype to avoid an error. */
3097 /* We use char because int might match the return type of a gcc2
3098 builtin and then its argument prototype would still apply. */
3099 char gethostbyname();
3105 if { (eval echo configure:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3107 eval "ac_cv_lib_$ac_lib_var=yes"
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3112 eval "ac_cv_lib_$ac_lib_var=no"
3115 LIBS="$ac_save_LIBS"
3118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3119 echo "$ac_t""yes" 1>&6
3120 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3121 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3122 cat >> confdefs.h <<EOF
3123 #define $ac_tr_lib 1
3129 echo "$ac_t""no" 1>&6
3133 . ${srcdir}/../../bfd/configure.host
3137 USE_MAINTAINER_MODE=no
3138 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3139 if test "${enable_maintainer_mode+set}" = set; then
3140 enableval="$enable_maintainer_mode"
3141 case "${enableval}" in
3142 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
3144 *) { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;
3146 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
3147 echo "Setting maintainer mode" 6>&1
3155 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3156 if test "${enable_sim_bswap+set}" = set; then
3157 enableval="$enable_sim_bswap"
3158 case "${enableval}" in
3159 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3160 no) sim_bswap="-DWITH_BSWAP=0";;
3161 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
3163 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3164 echo "Setting bswap flags = $sim_bswap" 6>&1
3172 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3173 if test "${enable_sim_cflags+set}" = set; then
3174 enableval="$enable_sim_cflags"
3175 case "${enableval}" in
3176 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3177 trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
3179 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3181 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3182 echo "Setting sim cflags = $sim_cflags" 6>&1
3190 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3191 if test "${enable_sim_debug+set}" = set; then
3192 enableval="$enable_sim_debug"
3193 case "${enableval}" in
3194 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
3195 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
3196 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3198 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
3199 echo "Setting sim debug = $sim_debug" 6>&1
3207 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3208 if test "${enable_sim_stdio+set}" = set; then
3209 enableval="$enable_sim_stdio"
3210 case "${enableval}" in
3211 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3212 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3213 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
3215 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3216 echo "Setting stdio flags = $sim_stdio" 6>&1
3224 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3225 if test "${enable_sim_trace+set}" = set; then
3226 enableval="$enable_sim_trace"
3227 case "${enableval}" in
3228 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
3229 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
3231 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3234 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3235 if test x"$sim_trace" = x; then
3236 sim_trace="-DWITH_TRACE='(TRACE_$x"
3238 sim_trace="${sim_trace}|TRACE_$x"
3241 sim_trace="$sim_trace)'" ;;
3243 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3244 echo "Setting sim trace = $sim_trace" 6>&1
3252 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3253 if test "${enable_sim_profile+set}" = set; then
3254 enableval="$enable_sim_profile"
3255 case "${enableval}" in
3256 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
3257 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
3259 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3262 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3263 if test x"$sim_profile" = x; then
3264 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
3266 sim_profile="${sim_profile}|PROFILE_$x"
3269 sim_profile="$sim_profile)'" ;;
3271 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
3272 echo "Setting sim profile = $sim_profile" 6>&1
3280 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3281 echo "configure:3282: checking return type of signal handlers" >&5
3282 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 #include <sys/types.h>
3294 extern "C" void (*signal (int, void (*)(int)))(int);
3296 void (*signal ()) ();
3303 if { (eval echo configure:3304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3305 ac_cv_type_signal=void
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3310 ac_cv_type_signal=int
3315 echo "$ac_t""$ac_cv_type_signal" 1>&6
3316 cat >> confdefs.h <<EOF
3317 #define RETSIGTYPE $ac_cv_type_signal
3322 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3323 echo "configure:3324: checking for executable suffix" >&5
3324 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3327 if test "$CYGWIN32" = yes; then
3330 cat > am_c_test.c << 'EOF'
3332 /* Nothing needed here */
3335 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
3336 am_cv_exeext=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
3340 test x"${am_cv_exeext}" = x && am_cv_exeext=no
3343 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
3344 echo "$ac_t""${am_cv_exeext}" 1>&6
3350 sim_link_links=tconfig.h
3351 if test -f ${srcdir}/tconfig.in
3353 sim_link_files=tconfig.in
3355 sim_link_files=../common/tconfig.in
3358 # targ-vals.def points to the libc macro description file.
3360 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
3362 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
3363 sim_link_links="${sim_link_links} targ-vals.def"
3367 for ac_hdr in stdlib.h
3369 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3370 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3371 echo "configure:3372: checking for $ac_hdr" >&5
3372 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3381 { (eval echo configure:3382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3383 if test -z "$ac_err"; then
3385 eval "ac_cv_header_$ac_safe=yes"
3388 echo "configure: failed program was:" >&5
3389 cat conftest.$ac_ext >&5
3391 eval "ac_cv_header_$ac_safe=no"
3395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3396 echo "$ac_t""yes" 1>&6
3397 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3398 cat >> confdefs.h <<EOF
3399 #define $ac_tr_hdr 1
3403 echo "$ac_t""no" 1>&6
3408 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
3409 echo "configure:3410: checking for main in -ltermcap" >&5
3410 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
3411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 ac_save_LIBS="$LIBS"
3415 LIBS="-ltermcap $LIBS"
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3424 if { (eval echo configure:3425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3426 eval "ac_cv_lib_$ac_lib_var=yes"
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3431 eval "ac_cv_lib_$ac_lib_var=no"
3434 LIBS="$ac_save_LIBS"
3437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3438 echo "$ac_t""yes" 1>&6
3441 echo "$ac_t""no" 1>&6
3450 cat > confcache <<\EOF
3451 # This file is a shell script that caches the results of configure
3452 # tests run on this system so they can be shared between configure
3453 # scripts and configure runs. It is not useful on other systems.
3454 # If it contains results you don't want to keep, you may remove or edit it.
3456 # By default, configure uses ./config.cache as the cache file,
3457 # creating it if it does not exist already. You can give configure
3458 # the --cache-file=FILE option to use a different cache file; that is
3459 # what configure does when it calls configure scripts in
3460 # subdirectories, so they share the cache.
3461 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3462 # config.status only pays attention to the cache file if you give it the
3463 # --recheck option to rerun configure.
3466 # The following way of writing the cache mishandles newlines in values,
3467 # but we know of no workaround that is simple, portable, and efficient.
3468 # So, don't put newlines in cache variables' values.
3469 # Ultrix sh set writes to stderr and can't be redirected directly,
3470 # and sets the high bit in the cache file unless we assign to the vars.
3472 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3474 # `set' does not quote correctly, so add quotes (double-quote substitution
3475 # turns \\\\ into \\, and sed turns \\ into \).
3477 -e "s/'/'\\\\''/g" \
3478 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3481 # `set' quotes correctly as required by POSIX, so do not add quotes.
3482 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3485 if cmp -s $cache_file confcache; then
3488 if test -w $cache_file; then
3489 echo "updating cache $cache_file"
3490 cat confcache > $cache_file
3492 echo "not updating unwritable cache $cache_file"
3497 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3499 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3500 # Let make expand exec_prefix.
3501 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3503 # Any assignment to VPATH causes Sun make to only execute
3504 # the first set of double-colon rules, so remove it if not needed.
3505 # If there is a colon in the path, we need to keep it.
3506 if test "x$srcdir" = x.; then
3507 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3510 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3512 DEFS=-DHAVE_CONFIG_H
3514 # Without the "./", some shells look in PATH for config.status.
3515 : ${CONFIG_STATUS=./config.status}
3517 echo creating $CONFIG_STATUS
3518 rm -f $CONFIG_STATUS
3519 cat > $CONFIG_STATUS <<EOF
3521 # Generated automatically by configure.
3522 # Run this file to recreate the current configuration.
3523 # This directory was configured as follows,
3524 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3526 # $0 $ac_configure_args
3528 # Compiler output produced by configure, useful for debugging
3529 # configure, is in ./config.log if it exists.
3531 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3534 case "\$ac_option" in
3535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3536 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3537 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3538 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3539 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
3541 -help | --help | --hel | --he | --h)
3542 echo "\$ac_cs_usage"; exit 0 ;;
3543 *) echo "\$ac_cs_usage"; exit 1 ;;
3547 ac_given_srcdir=$srcdir
3548 ac_given_INSTALL="$INSTALL"
3550 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
3552 cat >> $CONFIG_STATUS <<EOF
3554 # Protect against being on the right side of a sed subst in config.status.
3555 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3556 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3559 s%@sim_environment@%$sim_environment%g
3560 s%@sim_alignment@%$sim_alignment%g
3561 s%@sim_assert@%$sim_assert%g
3562 s%@sim_bitsize@%$sim_bitsize%g
3563 s%@sim_endian@%$sim_endian%g
3564 s%@sim_hostendian@%$sim_hostendian%g
3565 s%@sim_float@%$sim_float%g
3566 s%@sim_scache@%$sim_scache%g
3567 s%@sim_default_model@%$sim_default_model%g
3568 s%@sim_hw_cflags@%$sim_hw_cflags%g
3569 s%@sim_hw_objs@%$sim_hw_objs%g
3570 s%@sim_hw@%$sim_hw%g
3571 s%@sim_inline@%$sim_inline%g
3572 s%@sim_packages@%$sim_packages%g
3573 s%@sim_regparm@%$sim_regparm%g
3574 s%@sim_reserved_bits@%$sim_reserved_bits%g
3575 s%@sim_smp@%$sim_smp%g
3576 s%@sim_stdcall@%$sim_stdcall%g
3577 s%@sim_xor_endian@%$sim_xor_endian%g
3578 s%@build_warnings@%$build_warnings%g
3580 s%@CFLAGS@%$CFLAGS%g
3581 s%@CPPFLAGS@%$CPPFLAGS%g
3582 s%@CXXFLAGS@%$CXXFLAGS%g
3584 s%@LDFLAGS@%$LDFLAGS%g
3586 s%@exec_prefix@%$exec_prefix%g
3587 s%@prefix@%$prefix%g
3588 s%@program_transform_name@%$program_transform_name%g
3589 s%@bindir@%$bindir%g
3590 s%@sbindir@%$sbindir%g
3591 s%@libexecdir@%$libexecdir%g
3592 s%@datadir@%$datadir%g
3593 s%@sysconfdir@%$sysconfdir%g
3594 s%@sharedstatedir@%$sharedstatedir%g
3595 s%@localstatedir@%$localstatedir%g
3596 s%@libdir@%$libdir%g
3597 s%@includedir@%$includedir%g
3598 s%@oldincludedir@%$oldincludedir%g
3599 s%@infodir@%$infodir%g
3600 s%@mandir@%$mandir%g
3602 s%@host_alias@%$host_alias%g
3603 s%@host_cpu@%$host_cpu%g
3604 s%@host_vendor@%$host_vendor%g
3605 s%@host_os@%$host_os%g
3606 s%@target@%$target%g
3607 s%@target_alias@%$target_alias%g
3608 s%@target_cpu@%$target_cpu%g
3609 s%@target_vendor@%$target_vendor%g
3610 s%@target_os@%$target_os%g
3612 s%@build_alias@%$build_alias%g
3613 s%@build_cpu@%$build_cpu%g
3614 s%@build_vendor@%$build_vendor%g
3615 s%@build_os@%$build_os%g
3617 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3618 s%@INSTALL_DATA@%$INSTALL_DATA%g
3619 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3620 s%@HDEFINES@%$HDEFINES%g
3622 s%@RANLIB@%$RANLIB%g
3623 s%@SET_MAKE@%$SET_MAKE%g
3625 s%@ALLOCA@%$ALLOCA%g
3626 s%@USE_NLS@%$USE_NLS%g
3627 s%@MSGFMT@%$MSGFMT%g
3628 s%@GMSGFMT@%$GMSGFMT%g
3629 s%@XGETTEXT@%$XGETTEXT%g
3630 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3631 s%@CATALOGS@%$CATALOGS%g
3632 s%@CATOBJEXT@%$CATOBJEXT%g
3633 s%@DATADIRNAME@%$DATADIRNAME%g
3634 s%@GMOFILES@%$GMOFILES%g
3635 s%@INSTOBJEXT@%$INSTOBJEXT%g
3636 s%@INTLDEPS@%$INTLDEPS%g
3637 s%@INTLLIBS@%$INTLLIBS%g
3638 s%@INTLOBJS@%$INTLOBJS%g
3639 s%@POFILES@%$POFILES%g
3641 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3643 s%@GT_YES@%$GT_YES%g
3644 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3647 s%@sim_bswap@%$sim_bswap%g
3648 s%@sim_cflags@%$sim_cflags%g
3649 s%@sim_debug@%$sim_debug%g
3650 s%@sim_stdio@%$sim_stdio%g
3651 s%@sim_trace@%$sim_trace%g
3652 s%@sim_profile@%$sim_profile%g
3653 s%@EXEEXT@%$EXEEXT%g
3654 s%@TERMCAP@%$TERMCAP%g
3659 cat >> $CONFIG_STATUS <<\EOF
3661 # Split the substitutions into bite-sized pieces for seds with
3662 # small command number limits, like on Digital OSF/1 and HP-UX.
3663 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3664 ac_file=1 # Number of current file.
3665 ac_beg=1 # First line for current file.
3666 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3669 while $ac_more_lines; do
3670 if test $ac_beg -gt 1; then
3671 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3673 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3675 if test ! -s conftest.s$ac_file; then
3677 rm -f conftest.s$ac_file
3679 if test -z "$ac_sed_cmds"; then
3680 ac_sed_cmds="sed -f conftest.s$ac_file"
3682 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3684 ac_file=`expr $ac_file + 1`
3686 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3689 if test -z "$ac_sed_cmds"; then
3694 cat >> $CONFIG_STATUS <<EOF
3696 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
3698 cat >> $CONFIG_STATUS <<\EOF
3699 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3700 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3702 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3703 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3704 *) ac_file_in="${ac_file}.in" ;;
3707 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3709 # Remove last slash and all that follows it. Not all systems have dirname.
3710 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3711 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3712 # The file is in a subdirectory.
3713 test ! -d "$ac_dir" && mkdir "$ac_dir"
3714 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3715 # A "../" for each directory in $ac_dir_suffix.
3716 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3718 ac_dir_suffix= ac_dots=
3721 case "$ac_given_srcdir" in
3723 if test -z "$ac_dots"; then top_srcdir=.
3724 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3725 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3727 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3728 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3731 case "$ac_given_INSTALL" in
3732 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3733 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3736 echo creating "$ac_file"
3738 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3740 *Makefile*) ac_comsub="1i\\
3741 # $configure_input" ;;
3745 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3747 s%@configure_input@%$configure_input%g
3748 s%@srcdir@%$srcdir%g
3749 s%@top_srcdir@%$top_srcdir%g
3750 s%@INSTALL@%$INSTALL%g
3751 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3755 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3756 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3758 # ac_d sets the value in "#define NAME VALUE" lines.
3759 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3760 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3763 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3764 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3765 ac_uB='\([ ]\)%\1#\2define\3'
3768 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3769 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3770 ac_eB='$%\1#\2define\3'
3774 if test "${CONFIG_HEADERS+set}" != set; then
3776 cat >> $CONFIG_STATUS <<EOF
3777 CONFIG_HEADERS="config.h:config.in"
3779 cat >> $CONFIG_STATUS <<\EOF
3781 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3784 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3785 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3786 *) ac_file_in="${ac_file}.in" ;;
3789 echo creating $ac_file
3791 rm -f conftest.frag conftest.in conftest.out
3792 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3793 cat $ac_file_inputs > conftest.in
3797 # Transform confdefs.h into a sed script conftest.vals that substitutes
3798 # the proper values into config.h.in to produce config.h. And first:
3799 # Protect against being on the right side of a sed subst in config.status.
3800 # Protect against being in an unquoted here document in config.status.
3802 cat > conftest.hdr <<\EOF
3805 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3809 sed -n -f conftest.hdr confdefs.h > conftest.vals
3812 # This sed command replaces #undef with comments. This is necessary, for
3813 # example, in the case of _POSIX_SOURCE, which is predefined and required
3814 # on some systems where configure will not decide to define it.
3815 cat >> conftest.vals <<\EOF
3816 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3819 # Break up conftest.vals because some shells have a limit on
3820 # the size of here documents, and old seds have small limits too.
3825 ac_lines=`grep -c . conftest.vals`
3826 # grep -c gives empty output for an empty file on some AIX systems.
3827 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3828 # Write a limited-size here document to conftest.frag.
3829 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3830 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3832 sed -f conftest.frag conftest.in > conftest.out
3834 mv conftest.out conftest.in
3836 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3838 mv conftest.tail conftest.vals
3842 cat >> $CONFIG_STATUS <<\EOF
3843 rm -f conftest.frag conftest.h
3844 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3845 cat conftest.in >> conftest.h
3847 if cmp -s $ac_file conftest.h 2>/dev/null; then
3848 echo "$ac_file is unchanged"
3851 # Remove last slash and all that follows it. Not all systems have dirname.
3852 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3853 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3854 # The file is in a subdirectory.
3855 test ! -d "$ac_dir" && mkdir "$ac_dir"
3858 mv conftest.h $ac_file
3864 cat >> $CONFIG_STATUS <<EOF
3865 ac_sources="$sim_link_files"
3866 ac_dests="$sim_link_links"
3869 cat >> $CONFIG_STATUS <<\EOF
3870 srcdir=$ac_given_srcdir
3871 while test -n "$ac_sources"; do
3872 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3873 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3875 echo "linking $srcdir/$ac_source to $ac_dest"
3877 if test ! -r $srcdir/$ac_source; then
3878 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3882 # Make relative symlinks.
3883 # Remove last slash and all that follows it. Not all systems have dirname.
3884 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3885 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3886 # The dest file is in a subdirectory.
3887 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3888 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3889 # A "../" for each directory in $ac_dest_dir_suffix.
3890 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3892 ac_dest_dir_suffix= ac_dots=
3896 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3897 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3900 # Make a symlink if possible; otherwise try a hard link.
3901 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3902 ln $srcdir/$ac_source $ac_dest; then :
3904 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3908 cat >> $CONFIG_STATUS <<EOF
3911 cat >> $CONFIG_STATUS <<\EOF
3912 case "x$CONFIG_FILES" in
3914 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
3915 rm -f Makesim1.tmp Makesim2.tmp Makefile
3916 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
3917 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
3918 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
3919 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
3920 <Makefile.sim >Makefile
3921 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
3924 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
3928 chmod +x $CONFIG_STATUS
3929 rm -fr confdefs* $ac_clean_files
3930 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1