45 sim_inline="-DDEFAULT_INLINE=0"
82 # This file is derived from `gettext.m4'. The difference is that the
83 # included macros assume Cygnus-style source and build trees.
85 # Macro to add for using GNU gettext.
86 # Ulrich Drepper <drepper@cygnus.com>, 1995.
88 # This file file be copied and used freely without restrictions. It can
89 # be used in projects which are not available under the GNU Public License
90 # but which still want to provide support for the GNU gettext functionality.
91 # Please note that the actual code is *not* freely available.
99 # Search path for a program which passes the given test.
100 # Ulrich Drepper <drepper@cygnus.com>, 1996.
102 # This file file be copied and used freely without restrictions. It can
103 # be used in projects which are not available under the GNU Public License
104 # but which still want to provide support for the GNU gettext functionality.
105 # Please note that the actual code is *not* freely available.
111 # Check whether LC_MESSAGES is available in <locale.h>.
112 # Ulrich Drepper <drepper@cygnus.com>, 1995.
114 # This file file be copied and used freely without restrictions. It can
115 # be used in projects which are not available under the GNU Public License
116 # but which still want to provide support for the GNU gettext functionality.
117 # Please note that the actual code is *not* freely available.
126 # Guess values for system-dependent variables and create Makefiles.
127 # Generated automatically using autoconf version 2.13
128 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 # This configure script is free software; the Free Software Foundation
131 # gives unlimited permission to copy, distribute and modify it.
135 ac_default_prefix=/usr/local
136 # Any additions from configure.in:
138 --disable-nls do not use Native Language Support"
140 --with-included-gettext use the GNU gettext library included here"
142 --enable-maintainer-mode Enable developer functionality."
144 --enable-sim-bswap Use Host specific BSWAP instruction."
146 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
148 --enable-sim-debug=opts Enable debugging flags"
150 --enable-sim-stdio Specify whether to use stdio for console input/output."
152 --enable-sim-trace=opts Enable tracing flags"
154 --enable-sim-profile=opts Enable profiling flags"
156 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
158 # Initialize some variables set by options.
159 # The variables have the same names as the options, with
160 # dashes changed to underlines.
162 cache_file=./config.cache
171 program_transform_name=s,x,x,
179 bindir='${exec_prefix}/bin'
180 sbindir='${exec_prefix}/sbin'
181 libexecdir='${exec_prefix}/libexec'
182 datadir='${prefix}/share'
183 sysconfdir='${prefix}/etc'
184 sharedstatedir='${prefix}/com'
185 localstatedir='${prefix}/var'
186 libdir='${exec_prefix}/lib'
187 includedir='${prefix}/include'
188 oldincludedir='/usr/include'
189 infodir='${prefix}/info'
190 mandir='${prefix}/man'
192 # Initialize some other variables.
195 SHELL=${CONFIG_SHELL-/bin/sh}
196 # Maximum number of lines to put in a shell here document.
203 # If the previous option needs an argument, assign it.
204 if test -n "$ac_prev"; then
205 eval "$ac_prev=\$ac_option"
211 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
215 # Accept the important Cygnus configure options, so we can diagnose typos.
219 -bindir | --bindir | --bindi | --bind | --bin | --bi)
221 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
222 bindir="$ac_optarg" ;;
224 -build | --build | --buil | --bui | --bu)
226 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
227 build="$ac_optarg" ;;
229 -cache-file | --cache-file | --cache-fil | --cache-fi \
230 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
231 ac_prev=cache_file ;;
232 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
233 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
234 cache_file="$ac_optarg" ;;
236 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
238 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
240 datadir="$ac_optarg" ;;
242 -disable-* | --disable-*)
243 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
244 # Reject names that are not valid shell variable names.
245 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
246 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
248 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
249 eval "enable_${ac_feature}=no" ;;
251 -enable-* | --enable-*)
252 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
253 # Reject names that are not valid shell variable names.
254 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
255 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
257 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
262 eval "enable_${ac_feature}='$ac_optarg'" ;;
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix="$ac_optarg" ;;
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
277 -help | --help | --hel | --he)
278 # Omit some internal or obsolete options to make the list less imposing.
279 # This message is too long to be a string in the A/UX 3.1 sh.
281 Usage: configure [options] [host]
282 Options: [defaults in brackets after descriptions]
284 --cache-file=FILE cache test results in FILE
285 --help print this message
286 --no-create do not create output files
287 --quiet, --silent do not print \`checking...' messages
288 --version print the version of autoconf that created configure
289 Directory and file names:
290 --prefix=PREFIX install architecture-independent files in PREFIX
292 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
294 --bindir=DIR user executables in DIR [EPREFIX/bin]
295 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
296 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
297 --datadir=DIR read-only architecture-independent data in DIR
299 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
300 --sharedstatedir=DIR modifiable architecture-independent data in DIR
302 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
303 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
304 --includedir=DIR C header files in DIR [PREFIX/include]
305 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
306 --infodir=DIR info documentation in DIR [PREFIX/info]
307 --mandir=DIR man documentation in DIR [PREFIX/man]
308 --srcdir=DIR find the sources in DIR [configure dir or ..]
309 --program-prefix=PREFIX prepend PREFIX to installed program names
310 --program-suffix=SUFFIX append SUFFIX to installed program names
311 --program-transform-name=PROGRAM
312 run sed PROGRAM on installed program names
316 --build=BUILD configure for building on BUILD [BUILD=HOST]
317 --host=HOST configure for HOST [guessed]
318 --target=TARGET configure for TARGET [TARGET=HOST]
319 Features and packages:
320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
322 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
323 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
324 --x-includes=DIR X include files are in DIR
325 --x-libraries=DIR X library files are in DIR
327 if test -n "$ac_help"; then
328 echo "--enable and --with options recognized:$ac_help"
332 -host | --host | --hos | --ho)
334 -host=* | --host=* | --hos=* | --ho=*)
337 -includedir | --includedir | --includedi | --included | --include \
338 | --includ | --inclu | --incl | --inc)
339 ac_prev=includedir ;;
340 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
341 | --includ=* | --inclu=* | --incl=* | --inc=*)
342 includedir="$ac_optarg" ;;
344 -infodir | --infodir | --infodi | --infod | --info | --inf)
346 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
347 infodir="$ac_optarg" ;;
349 -libdir | --libdir | --libdi | --libd)
351 -libdir=* | --libdir=* | --libdi=* | --libd=*)
352 libdir="$ac_optarg" ;;
354 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
355 | --libexe | --libex | --libe)
356 ac_prev=libexecdir ;;
357 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
358 | --libexe=* | --libex=* | --libe=*)
359 libexecdir="$ac_optarg" ;;
361 -localstatedir | --localstatedir | --localstatedi | --localstated \
362 | --localstate | --localstat | --localsta | --localst \
363 | --locals | --local | --loca | --loc | --lo)
364 ac_prev=localstatedir ;;
365 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
366 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
367 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
368 localstatedir="$ac_optarg" ;;
370 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
372 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
373 mandir="$ac_optarg" ;;
376 # Obsolete; use --without-fp.
379 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
383 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
384 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
387 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
388 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
389 | --oldin | --oldi | --old | --ol | --o)
390 ac_prev=oldincludedir ;;
391 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
392 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
393 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
394 oldincludedir="$ac_optarg" ;;
396 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
398 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
399 prefix="$ac_optarg" ;;
401 -program-prefix | --program-prefix | --program-prefi | --program-pref \
402 | --program-pre | --program-pr | --program-p)
403 ac_prev=program_prefix ;;
404 -program-prefix=* | --program-prefix=* | --program-prefi=* \
405 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
406 program_prefix="$ac_optarg" ;;
408 -program-suffix | --program-suffix | --program-suffi | --program-suff \
409 | --program-suf | --program-su | --program-s)
410 ac_prev=program_suffix ;;
411 -program-suffix=* | --program-suffix=* | --program-suffi=* \
412 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
413 program_suffix="$ac_optarg" ;;
415 -program-transform-name | --program-transform-name \
416 | --program-transform-nam | --program-transform-na \
417 | --program-transform-n | --program-transform- \
418 | --program-transform | --program-transfor \
419 | --program-transfo | --program-transf \
420 | --program-trans | --program-tran \
421 | --progr-tra | --program-tr | --program-t)
422 ac_prev=program_transform_name ;;
423 -program-transform-name=* | --program-transform-name=* \
424 | --program-transform-nam=* | --program-transform-na=* \
425 | --program-transform-n=* | --program-transform-=* \
426 | --program-transform=* | --program-transfor=* \
427 | --program-transfo=* | --program-transf=* \
428 | --program-trans=* | --program-tran=* \
429 | --progr-tra=* | --program-tr=* | --program-t=*)
430 program_transform_name="$ac_optarg" ;;
432 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
433 | -silent | --silent | --silen | --sile | --sil)
436 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
438 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
440 sbindir="$ac_optarg" ;;
442 -sharedstatedir | --sharedstatedir | --sharedstatedi \
443 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
444 | --sharedst | --shareds | --shared | --share | --shar \
446 ac_prev=sharedstatedir ;;
447 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
448 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
449 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
451 sharedstatedir="$ac_optarg" ;;
453 -site | --site | --sit)
455 -site=* | --site=* | --sit=*)
458 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
460 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
461 srcdir="$ac_optarg" ;;
463 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
464 | --syscon | --sysco | --sysc | --sys | --sy)
465 ac_prev=sysconfdir ;;
466 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
467 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
468 sysconfdir="$ac_optarg" ;;
470 -target | --target | --targe | --targ | --tar | --ta | --t)
472 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
473 target="$ac_optarg" ;;
475 -v | -verbose | --verbose | --verbos | --verbo | --verb)
478 -version | --version | --versio | --versi | --vers)
479 echo "configure generated by autoconf version 2.13"
483 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
484 # Reject names that are not valid shell variable names.
485 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
486 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
488 ac_package=`echo $ac_package| sed 's/-/_/g'`
493 eval "with_${ac_package}='$ac_optarg'" ;;
495 -without-* | --without-*)
496 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
497 # Reject names that are not valid shell variable names.
498 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
499 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
501 ac_package=`echo $ac_package| sed 's/-/_/g'`
502 eval "with_${ac_package}=no" ;;
505 # Obsolete; use --with-x.
508 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
509 | --x-incl | --x-inc | --x-in | --x-i)
510 ac_prev=x_includes ;;
511 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
512 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
513 x_includes="$ac_optarg" ;;
515 -x-libraries | --x-libraries | --x-librarie | --x-librari \
516 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
517 ac_prev=x_libraries ;;
518 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
519 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
520 x_libraries="$ac_optarg" ;;
522 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
526 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
527 echo "configure: warning: $ac_option: invalid host type" 1>&2
529 if test "x$nonopt" != xNONE; then
530 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
538 if test -n "$ac_prev"; then
539 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
542 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
544 # File descriptor usage:
547 # 2 errors and warnings
548 # 3 some systems may open it to /dev/tty
549 # 4 used on the Kubota Titan
550 # 6 checking for... messages and results
551 # 5 compiler messages saved in config.log
552 if test "$silent" = yes; then
560 This file contains any messages produced by compilers while
561 running configure, to aid debugging if configure makes a mistake.
564 # Strip out --no-create and --no-recursion so they do not pile up.
565 # Also quote any args containing shell metacharacters.
570 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
571 | --no-cr | --no-c) ;;
572 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
573 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
574 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
575 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
576 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
581 # Only set these to C if already set. These must not be set unconditionally
582 # because not all systems understand e.g. LANG=C (notably SCO).
583 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
584 # Non-C LC_CTYPE values break the ctype check.
585 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
586 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
587 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
588 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
590 # confdefs.h avoids OS command line length limits that DEFS can exceed.
591 rm -rf conftest* confdefs.h
592 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
595 # A filename unique to this package, relative to the directory that
596 # configure is in, which we can look for to find out if srcdir is correct.
597 ac_unique_file=Makefile.in
599 # Find the source files, if location was not specified.
600 if test -z "$srcdir"; then
601 ac_srcdir_defaulted=yes
602 # Try the directory containing this script, then its parent.
604 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
605 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
607 if test ! -r $srcdir/$ac_unique_file; then
611 ac_srcdir_defaulted=no
613 if test ! -r $srcdir/$ac_unique_file; then
614 if test "$ac_srcdir_defaulted" = yes; then
615 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
617 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
620 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
622 # Prefer explicitly selected file to automatically selected ones.
623 if test -z "$CONFIG_SITE"; then
624 if test "x$prefix" != xNONE; then
625 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
627 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
630 for ac_site_file in $CONFIG_SITE; do
631 if test -r "$ac_site_file"; then
632 echo "loading site script $ac_site_file"
637 if test -r "$cache_file"; then
638 echo "loading cache $cache_file"
641 echo "creating cache $cache_file"
646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
647 ac_cpp='$CPP $CPPFLAGS'
648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
650 cross_compiling=$ac_cv_prog_cc_cross
654 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
655 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
656 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
663 ac_n= ac_c='\c' ac_t=
668 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
669 echo "configure:670: checking how to run the C preprocessor" >&5
670 # On Suns, sometimes $CPP names a directory.
671 if test -n "$CPP" && test -d "$CPP"; then
674 if test -z "$CPP"; then
675 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
676 echo $ac_n "(cached) $ac_c" 1>&6
678 # This must be in double quotes, not single quotes, because CPP may get
679 # substituted into the Makefile and "${CC-cc}" will confuse make.
681 # On the NeXT, cc -E runs the code through the compiler's parser,
682 # not just through cpp.
683 cat > conftest.$ac_ext <<EOF
684 #line 685 "configure"
685 #include "confdefs.h"
689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
690 { (eval echo configure:691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
692 if test -z "$ac_err"; then
696 echo "configure: failed program was:" >&5
697 cat conftest.$ac_ext >&5
699 CPP="${CC-cc} -E -traditional-cpp"
700 cat > conftest.$ac_ext <<EOF
701 #line 702 "configure"
702 #include "confdefs.h"
706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
707 { (eval echo configure:708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
709 if test -z "$ac_err"; then
713 echo "configure: failed program was:" >&5
714 cat conftest.$ac_ext >&5
716 CPP="${CC-cc} -nologo -E"
717 cat > conftest.$ac_ext <<EOF
718 #line 719 "configure"
719 #include "confdefs.h"
723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
724 { (eval echo configure:725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
726 if test -z "$ac_err"; then
730 echo "configure: failed program was:" >&5
731 cat conftest.$ac_ext >&5
740 ac_cv_prog_CPP="$CPP"
742 CPP="$ac_cv_prog_CPP"
744 ac_cv_prog_CPP="$CPP"
746 echo "$ac_t""$CPP" 1>&6
748 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
749 echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
751 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftestmake <<\EOF
756 @echo 'ac_maketemp="${MAKE}"'
758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
759 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
760 if test -n "$ac_maketemp"; then
761 eval ac_cv_prog_make_${ac_make}_set=yes
763 eval ac_cv_prog_make_${ac_make}_set=no
767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
771 echo "$ac_t""no" 1>&6
772 SET_MAKE="MAKE=${MAKE-make}"
775 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
776 echo "configure:777: checking for POSIXized ISC" >&5
777 if test -d /etc/conf/kconfig.d &&
778 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
780 echo "$ac_t""yes" 1>&6
781 ISC=yes # If later tests want to check for ISC.
782 cat >> confdefs.h <<\EOF
783 #define _POSIX_SOURCE 1
786 if test "$GCC" = yes; then
792 echo "$ac_t""no" 1>&6
796 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
797 echo "configure:798: checking for ANSI C header files" >&5
798 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
810 { (eval echo configure:811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
812 if test -z "$ac_err"; then
814 ac_cv_header_stdc=yes
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
824 if test $ac_cv_header_stdc = yes; then
825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
826 cat > conftest.$ac_ext <<EOF
827 #line 828 "configure"
828 #include "confdefs.h"
831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
832 egrep "memchr" >/dev/null 2>&1; then
842 if test $ac_cv_header_stdc = yes; then
843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
844 cat > conftest.$ac_ext <<EOF
845 #line 846 "configure"
846 #include "confdefs.h"
849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
850 egrep "free" >/dev/null 2>&1; then
860 if test $ac_cv_header_stdc = yes; then
861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
862 if test "$cross_compiling" = yes; then
865 cat > conftest.$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
869 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
870 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
871 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
872 int main () { int i; for (i = 0; i < 256; i++)
873 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
877 if { (eval echo configure:878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
881 echo "configure: failed program was:" >&5
882 cat conftest.$ac_ext >&5
892 echo "$ac_t""$ac_cv_header_stdc" 1>&6
893 if test $ac_cv_header_stdc = yes; then
894 cat >> confdefs.h <<\EOF
895 #define STDC_HEADERS 1
900 echo $ac_n "checking for working const""... $ac_c" 1>&6
901 echo "configure:902: checking for working const" >&5
902 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 cat > conftest.$ac_ext <<EOF
906 #line 907 "configure"
907 #include "confdefs.h"
911 /* Ultrix mips cc rejects this. */
912 typedef int charset[2]; const charset x;
913 /* SunOS 4.1.1 cc rejects this. */
914 char const *const *ccp;
916 /* NEC SVR4.0.2 mips cc rejects this. */
917 struct point {int x, y;};
918 static struct point const zero = {0,0};
919 /* AIX XL C 1.02.0.0 rejects this.
920 It does not let you subtract one const X* pointer from another in an arm
921 of an if-expression whose if-part is not a constant expression */
922 const char *g = "string";
923 ccp = &g + (g ? g-g : 0);
924 /* HPUX 7.0 cc rejects these. */
927 ccp = (char const *const *) p;
928 { /* SCO 3.2v4 cc rejects this. */
930 char const *s = 0 ? (char *) 0 : (char const *) 0;
934 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
936 const int *foo = &x[0];
939 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
940 typedef const int *iptr;
944 { /* AIX XL C 1.02.0.0 rejects this saying
945 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
946 struct s { int j; const int *ap[3]; };
947 struct s *b; b->j = 5;
949 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
955 if { (eval echo configure:956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
959 echo "configure: failed program was:" >&5
960 cat conftest.$ac_ext >&5
967 echo "$ac_t""$ac_cv_c_const" 1>&6
968 if test $ac_cv_c_const = no; then
969 cat >> confdefs.h <<\EOF
975 echo $ac_n "checking for inline""... $ac_c" 1>&6
976 echo "configure:977: checking for inline" >&5
977 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
981 for ac_kw in inline __inline__ __inline; do
982 cat > conftest.$ac_ext <<EOF
983 #line 984 "configure"
984 #include "confdefs.h"
990 if { (eval echo configure:991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
992 ac_cv_c_inline=$ac_kw; break
994 echo "configure: failed program was:" >&5
995 cat conftest.$ac_ext >&5
1002 echo "$ac_t""$ac_cv_c_inline" 1>&6
1003 case "$ac_cv_c_inline" in
1005 no) cat >> confdefs.h <<\EOF
1009 *) cat >> confdefs.h <<EOF
1010 #define inline $ac_cv_c_inline
1015 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1016 echo "configure:1017: checking for off_t" >&5
1017 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1018 echo $ac_n "(cached) $ac_c" 1>&6
1020 cat > conftest.$ac_ext <<EOF
1021 #line 1022 "configure"
1022 #include "confdefs.h"
1023 #include <sys/types.h>
1029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1030 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1032 ac_cv_type_off_t=yes
1040 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1041 if test $ac_cv_type_off_t = no; then
1042 cat >> confdefs.h <<\EOF
1048 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1049 echo "configure:1050: checking for size_t" >&5
1050 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 cat > conftest.$ac_ext <<EOF
1054 #line 1055 "configure"
1055 #include "confdefs.h"
1056 #include <sys/types.h>
1062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1063 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1065 ac_cv_type_size_t=yes
1068 ac_cv_type_size_t=no
1073 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1074 if test $ac_cv_type_size_t = no; then
1075 cat >> confdefs.h <<\EOF
1076 #define size_t unsigned
1081 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1082 # for constant arguments. Useless!
1083 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1084 echo "configure:1085: checking for working alloca.h" >&5
1085 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 cat > conftest.$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1093 char *p = alloca(2 * sizeof(int));
1096 if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1098 ac_cv_header_alloca_h=yes
1100 echo "configure: failed program was:" >&5
1101 cat conftest.$ac_ext >&5
1103 ac_cv_header_alloca_h=no
1108 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1109 if test $ac_cv_header_alloca_h = yes; then
1110 cat >> confdefs.h <<\EOF
1111 #define HAVE_ALLOCA_H 1
1116 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1117 echo "configure:1118: checking for alloca" >&5
1118 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 cat > conftest.$ac_ext <<EOF
1122 #line 1123 "configure"
1123 #include "confdefs.h"
1126 # define alloca __builtin_alloca
1129 # include <malloc.h>
1130 # define alloca _alloca
1133 # include <alloca.h>
1138 # ifndef alloca /* predefined by HP cc +Olibcalls */
1147 char *p = (char *) alloca(1);
1150 if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1152 ac_cv_func_alloca_works=yes
1154 echo "configure: failed program was:" >&5
1155 cat conftest.$ac_ext >&5
1157 ac_cv_func_alloca_works=no
1162 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1163 if test $ac_cv_func_alloca_works = yes; then
1164 cat >> confdefs.h <<\EOF
1165 #define HAVE_ALLOCA 1
1170 if test $ac_cv_func_alloca_works = no; then
1171 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1172 # that cause trouble. Some versions do not even contain alloca or
1173 # contain a buggy version. If you still want to use their alloca,
1174 # use ar to extract alloca.o from them instead of compiling alloca.c.
1175 ALLOCA=alloca.${ac_objext}
1176 cat >> confdefs.h <<\EOF
1181 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether alloca needs Cray hooks" >&5
1183 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1186 cat > conftest.$ac_ext <<EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1189 #if defined(CRAY) && ! defined(CRAY2)
1196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1197 egrep "webecray" >/dev/null 2>&1; then
1208 echo "$ac_t""$ac_cv_os_cray" 1>&6
1209 if test $ac_cv_os_cray = yes; then
1210 for ac_func in _getb67 GETB67 getb67; do
1211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1212 echo "configure:1213: checking for $ac_func" >&5
1213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1219 /* System header to define __stub macros and hopefully few prototypes,
1220 which can conflict with char $ac_func(); below. */
1222 /* Override any gcc2 internal prototype to avoid an error. */
1223 /* We use char because int might match the return type of a gcc2
1224 builtin and then its argument prototype would still apply. */
1229 /* The GNU C library defines this for functions which it implements
1230 to always fail with ENOSYS. Some functions are actually named
1231 something starting with __ and the normal name is an alias. */
1232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1240 if { (eval echo configure:1241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1242 eval "ac_cv_func_$ac_func=yes"
1244 echo "configure: failed program was:" >&5
1245 cat conftest.$ac_ext >&5
1247 eval "ac_cv_func_$ac_func=no"
1252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1253 echo "$ac_t""yes" 1>&6
1254 cat >> confdefs.h <<EOF
1255 #define CRAY_STACKSEG_END $ac_func
1260 echo "$ac_t""no" 1>&6
1266 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1267 echo "configure:1268: checking stack direction for C alloca" >&5
1268 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1271 if test "$cross_compiling" = yes; then
1272 ac_cv_c_stack_direction=0
1274 cat > conftest.$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1277 find_stack_direction ()
1279 static char *addr = 0;
1284 return find_stack_direction ();
1287 return (&dummy > addr) ? 1 : -1;
1291 exit (find_stack_direction() < 0);
1294 if { (eval echo configure:1295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1296 ac_cv_c_stack_direction=1
1298 echo "configure: failed program was:" >&5
1299 cat conftest.$ac_ext >&5
1301 ac_cv_c_stack_direction=-1
1308 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1309 cat >> confdefs.h <<EOF
1310 #define STACK_DIRECTION $ac_cv_c_stack_direction
1315 for ac_hdr in unistd.h
1317 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1318 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1319 echo "configure:1320: checking for $ac_hdr" >&5
1320 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1323 cat > conftest.$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1329 { (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1331 if test -z "$ac_err"; then
1333 eval "ac_cv_header_$ac_safe=yes"
1336 echo "configure: failed program was:" >&5
1337 cat conftest.$ac_ext >&5
1339 eval "ac_cv_header_$ac_safe=no"
1343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1344 echo "$ac_t""yes" 1>&6
1345 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1346 cat >> confdefs.h <<EOF
1347 #define $ac_tr_hdr 1
1351 echo "$ac_t""no" 1>&6
1355 for ac_func in getpagesize
1357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1358 echo "configure:1359: checking for $ac_func" >&5
1359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1365 /* System header to define __stub macros and hopefully few prototypes,
1366 which can conflict with char $ac_func(); below. */
1368 /* Override any gcc2 internal prototype to avoid an error. */
1369 /* We use char because int might match the return type of a gcc2
1370 builtin and then its argument prototype would still apply. */
1375 /* The GNU C library defines this for functions which it implements
1376 to always fail with ENOSYS. Some functions are actually named
1377 something starting with __ and the normal name is an alias. */
1378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1386 if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1388 eval "ac_cv_func_$ac_func=yes"
1390 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5
1393 eval "ac_cv_func_$ac_func=no"
1398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1399 echo "$ac_t""yes" 1>&6
1400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1401 cat >> confdefs.h <<EOF
1402 #define $ac_tr_func 1
1406 echo "$ac_t""no" 1>&6
1410 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1411 echo "configure:1412: checking for working mmap" >&5
1412 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1413 echo $ac_n "(cached) $ac_c" 1>&6
1415 if test "$cross_compiling" = yes; then
1416 ac_cv_func_mmap_fixed_mapped=no
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1422 /* Thanks to Mike Haertel and Jim Avera for this test.
1423 Here is a matrix of mmap possibilities:
1424 mmap private not fixed
1425 mmap private fixed at somewhere currently unmapped
1426 mmap private fixed at somewhere already mapped
1427 mmap shared not fixed
1428 mmap shared fixed at somewhere currently unmapped
1429 mmap shared fixed at somewhere already mapped
1430 For private mappings, we should verify that changes cannot be read()
1431 back from the file, nor mmap's back from the file at a different
1432 address. (There have been systems where private was not correctly
1433 implemented like the infamous i386 svr4.0, and systems where the
1434 VM page cache was not coherent with the filesystem buffer cache
1435 like early versions of FreeBSD and possibly contemporary NetBSD.)
1436 For shared mappings, we should conversely verify that changes get
1437 propogated back to all the places they're supposed to be.
1439 Grep wants private fixed already mapped.
1440 The main things grep needs to know about mmap are:
1441 * does it exist and is it safe to write into the mmap'd area
1442 * how to use it (BSD variants) */
1443 #include <sys/types.h>
1445 #include <sys/mman.h>
1447 /* This mess was copied from the GNU getpagesize.h. */
1448 #ifndef HAVE_GETPAGESIZE
1449 # ifdef HAVE_UNISTD_H
1450 # include <unistd.h>
1453 /* Assume that all systems that can run configure have sys/param.h. */
1454 # ifndef HAVE_SYS_PARAM_H
1455 # define HAVE_SYS_PARAM_H 1
1458 # ifdef _SC_PAGESIZE
1459 # define getpagesize() sysconf(_SC_PAGESIZE)
1460 # else /* no _SC_PAGESIZE */
1461 # ifdef HAVE_SYS_PARAM_H
1462 # include <sys/param.h>
1463 # ifdef EXEC_PAGESIZE
1464 # define getpagesize() EXEC_PAGESIZE
1465 # else /* no EXEC_PAGESIZE */
1467 # define getpagesize() NBPG * CLSIZE
1470 # endif /* no CLSIZE */
1471 # else /* no NBPG */
1473 # define getpagesize() NBPC
1474 # else /* no NBPC */
1476 # define getpagesize() PAGESIZE
1477 # endif /* PAGESIZE */
1478 # endif /* no NBPC */
1479 # endif /* no NBPG */
1480 # endif /* no EXEC_PAGESIZE */
1481 # else /* no HAVE_SYS_PARAM_H */
1482 # define getpagesize() 8192 /* punt totally */
1483 # endif /* no HAVE_SYS_PARAM_H */
1484 # endif /* no _SC_PAGESIZE */
1486 #endif /* no HAVE_GETPAGESIZE */
1489 extern "C" { void *malloc(unsigned); }
1497 char *data, *data2, *data3;
1501 pagesize = getpagesize();
1504 * First, make a file with some known garbage in it.
1506 data = malloc(pagesize);
1509 for (i = 0; i < pagesize; ++i)
1510 *(data + i) = rand();
1512 fd = creat("conftestmmap", 0600);
1515 if (write(fd, data, pagesize) != pagesize)
1520 * Next, try to mmap the file at a fixed address which
1521 * already has something else allocated at it. If we can,
1522 * also make sure that we see the same garbage.
1524 fd = open("conftestmmap", O_RDWR);
1527 data2 = malloc(2 * pagesize);
1530 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1531 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1532 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1534 for (i = 0; i < pagesize; ++i)
1535 if (*(data + i) != *(data2 + i))
1539 * Finally, make sure that changes to the mapped area
1540 * do not percolate back to the file as seen by read().
1541 * (This is a bug on some variants of i386 svr4.0.)
1543 for (i = 0; i < pagesize; ++i)
1544 *(data2 + i) = *(data2 + i) + 1;
1545 data3 = malloc(pagesize);
1548 if (read(fd, data3, pagesize) != pagesize)
1550 for (i = 0; i < pagesize; ++i)
1551 if (*(data + i) != *(data3 + i))
1554 unlink("conftestmmap");
1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1561 ac_cv_func_mmap_fixed_mapped=yes
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1566 ac_cv_func_mmap_fixed_mapped=no
1573 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1574 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1575 cat >> confdefs.h <<\EOF
1581 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1582 echo "configure:1583: checking for Cygwin environment" >&5
1583 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 cat > conftest.$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1593 #define __CYGWIN__ __CYGWIN32__
1598 if { (eval echo configure:1599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1602 echo "configure: failed program was:" >&5
1603 cat conftest.$ac_ext >&5
1611 echo "$ac_t""$ac_cv_cygwin" 1>&6
1613 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1614 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1615 echo "configure:1616: checking for mingw32 environment" >&5
1616 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 cat > conftest.$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1627 if { (eval echo configure:1628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1640 echo "$ac_t""$ac_cv_mingw32" 1>&6
1642 test "$ac_cv_mingw32" = yes && MINGW32=yes
1644 # autoconf.info says this should be called right after AC_INIT.
1648 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1649 if test -f $ac_dir/install-sh; then
1651 ac_install_sh="$ac_aux_dir/install-sh -c"
1653 elif test -f $ac_dir/install.sh; then
1655 ac_install_sh="$ac_aux_dir/install.sh -c"
1659 if test -z "$ac_aux_dir"; then
1660 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1662 ac_config_guess=$ac_aux_dir/config.guess
1663 ac_config_sub=$ac_aux_dir/config.sub
1664 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1667 # Do some error checking and defaulting for the host and target type.
1669 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1672 # 1. You are not allowed to specify --host, --target, and nonopt at the
1674 # 2. Host defaults to nonopt.
1675 # 3. If nonopt is not specified, then host defaults to the current host,
1676 # as determined by config.guess.
1677 # 4. Target and build default to nonopt.
1678 # 5. If nonopt is not specified, then target and build default to host.
1680 # The aliases save the names the user supplied, while $host etc.
1681 # will get canonicalized.
1682 case $host---$target---$nonopt in
1683 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1684 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1688 # Make sure we can run config.sub.
1689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1693 echo $ac_n "checking host system type""... $ac_c" 1>&6
1694 echo "configure:1695: checking host system type" >&5
1697 case "$host_alias" in
1701 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1702 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1704 *) host_alias=$nonopt ;;
1708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1712 echo "$ac_t""$host" 1>&6
1714 echo $ac_n "checking target system type""... $ac_c" 1>&6
1715 echo "configure:1716: checking target system type" >&5
1717 target_alias=$target
1718 case "$target_alias" in
1721 NONE) target_alias=$host_alias ;;
1722 *) target_alias=$nonopt ;;
1726 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1727 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1728 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1729 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1730 echo "$ac_t""$target" 1>&6
1732 echo $ac_n "checking build system type""... $ac_c" 1>&6
1733 echo "configure:1734: checking build system type" >&5
1736 case "$build_alias" in
1739 NONE) build_alias=$host_alias ;;
1740 *) build_alias=$nonopt ;;
1744 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1745 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1746 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1747 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1748 echo "$ac_t""$build" 1>&6
1750 test "$host_alias" != "$target_alias" &&
1751 test "$program_prefix$program_suffix$program_transform_name" = \
1753 program_prefix=${target_alias}-
1755 if test "$program_transform_name" = s,x,x,; then
1756 program_transform_name=
1758 # Double any \ or $. echo might interpret backslashes.
1759 cat <<\EOF_SED > conftestsed
1760 s,\\,\\\\,g; s,\$,$$,g
1762 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1765 test "$program_prefix" != NONE &&
1766 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1767 # Use a double $ so make ignores it.
1768 test "$program_suffix" != NONE &&
1769 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1771 # sed with no file args requires a program.
1772 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1774 # Extract the first word of "gcc", so it can be a program name with args.
1775 set dummy gcc; ac_word=$2
1776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1777 echo "configure:1778: checking for $ac_word" >&5
1778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1786 for ac_dir in $ac_dummy; do
1787 test -z "$ac_dir" && ac_dir=.
1788 if test -f $ac_dir/$ac_word; then
1797 if test -n "$CC"; then
1798 echo "$ac_t""$CC" 1>&6
1800 echo "$ac_t""no" 1>&6
1803 if test -z "$CC"; then
1804 # Extract the first word of "cc", so it can be a program name with args.
1805 set dummy cc; ac_word=$2
1806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_word" >&5
1808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 if test -n "$CC"; then
1812 ac_cv_prog_CC="$CC" # Let the user override the test.
1814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1817 for ac_dir in $ac_dummy; do
1818 test -z "$ac_dir" && ac_dir=.
1819 if test -f $ac_dir/$ac_word; then
1820 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1821 ac_prog_rejected=yes
1829 if test $ac_prog_rejected = yes; then
1830 # We found a bogon in the path, so make sure we never use it.
1831 set dummy $ac_cv_prog_CC
1833 if test $# -gt 0; then
1834 # We chose a different compiler from the bogus one.
1835 # However, it has the same basename, so the bogon will be chosen
1836 # first if we set CC to just the basename; use the full file name.
1838 set dummy "$ac_dir/$ac_word" "$@"
1846 if test -n "$CC"; then
1847 echo "$ac_t""$CC" 1>&6
1849 echo "$ac_t""no" 1>&6
1852 if test -z "$CC"; then
1853 case "`uname -s`" in
1855 # Extract the first word of "cl", so it can be a program name with args.
1856 set dummy cl; ac_word=$2
1857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1858 echo "configure:1859: checking for $ac_word" >&5
1859 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1862 if test -n "$CC"; then
1863 ac_cv_prog_CC="$CC" # Let the user override the test.
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1867 for ac_dir in $ac_dummy; do
1868 test -z "$ac_dir" && ac_dir=.
1869 if test -f $ac_dir/$ac_word; then
1878 if test -n "$CC"; then
1879 echo "$ac_t""$CC" 1>&6
1881 echo "$ac_t""no" 1>&6
1886 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1889 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1890 echo "configure:1891: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1894 ac_cpp='$CPP $CPPFLAGS'
1895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1897 cross_compiling=$ac_cv_prog_cc_cross
1899 cat > conftest.$ac_ext << EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1906 if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1907 ac_cv_prog_cc_works=yes
1908 # If we can't run a trivial program, we are probably using a cross compiler.
1909 if (./conftest; exit) 2>/dev/null; then
1910 ac_cv_prog_cc_cross=no
1912 ac_cv_prog_cc_cross=yes
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1917 ac_cv_prog_cc_works=no
1921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1922 ac_cpp='$CPP $CPPFLAGS'
1923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1925 cross_compiling=$ac_cv_prog_cc_cross
1927 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1928 if test $ac_cv_prog_cc_works = no; then
1929 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1931 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1932 echo "configure:1933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1933 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1934 cross_compiling=$ac_cv_prog_cc_cross
1936 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1937 echo "configure:1938: checking whether we are using GNU C" >&5
1938 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1941 cat > conftest.c <<EOF
1946 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1953 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1955 if test $ac_cv_prog_gcc = yes; then
1961 ac_test_CFLAGS="${CFLAGS+set}"
1962 ac_save_CFLAGS="$CFLAGS"
1964 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1965 echo "configure:1966: checking whether ${CC-cc} accepts -g" >&5
1966 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 echo 'void f(){}' > conftest.c
1970 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1979 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1980 if test "$ac_test_CFLAGS" = set; then
1981 CFLAGS="$ac_save_CFLAGS"
1982 elif test $ac_cv_prog_cc_g = yes; then
1983 if test "$GCC" = yes; then
1989 if test "$GCC" = yes; then
1996 # Find a good install program. We prefer a C program (faster),
1997 # so one script is as good as another. But avoid the broken or
1998 # incompatible versions:
1999 # SysV /etc/install, /usr/sbin/install
2000 # SunOS /usr/etc/install
2001 # IRIX /sbin/install
2003 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2004 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2005 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2006 # ./install, which can be erroneously created by make from ./install.sh.
2007 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2008 echo "configure:2009: checking for a BSD compatible install" >&5
2009 if test -z "$INSTALL"; then
2010 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2014 for ac_dir in $PATH; do
2015 # Account for people who put trailing slashes in PATH elements.
2017 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2019 # OSF1 and SCO ODT 3.0 have their own names for install.
2020 # Don't use installbsd from OSF since it installs stuff as root
2022 for ac_prog in ginstall scoinst install; do
2023 if test -f $ac_dir/$ac_prog; then
2024 if test $ac_prog = install &&
2025 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2026 # AIX install. It has an incompatible calling convention.
2029 ac_cv_path_install="$ac_dir/$ac_prog -c"
2040 if test "${ac_cv_path_install+set}" = set; then
2041 INSTALL="$ac_cv_path_install"
2043 # As a last resort, use the slow shell script. We don't cache a
2044 # path for INSTALL within a source directory, because that will
2045 # break other packages using the cache if that directory is
2046 # removed, or if the path is relative.
2047 INSTALL="$ac_install_sh"
2050 echo "$ac_t""$INSTALL" 1>&6
2052 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2053 # It thinks the first close brace ends the variable substitution.
2054 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2056 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2058 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2061 # Put a plausible default for CC_FOR_BUILD in Makefile.
2062 if test "x$cross_compiling" = "xno"; then
2063 CC_FOR_BUILD='$(CC)'
2073 # Extract the first word of "ranlib", so it can be a program name with args.
2074 set dummy ranlib; ac_word=$2
2075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2076 echo "configure:2077: checking for $ac_word" >&5
2077 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2080 if test -n "$RANLIB"; then
2081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2085 for ac_dir in $ac_dummy; do
2086 test -z "$ac_dir" && ac_dir=.
2087 if test -f $ac_dir/$ac_word; then
2088 ac_cv_prog_RANLIB="ranlib"
2093 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2096 RANLIB="$ac_cv_prog_RANLIB"
2097 if test -n "$RANLIB"; then
2098 echo "$ac_t""$RANLIB" 1>&6
2100 echo "$ac_t""no" 1>&6
2106 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2107 unistd.h values.h sys/param.h
2109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2111 echo "configure:2112: checking for $ac_hdr" >&5
2112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2121 { (eval echo configure:2122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2123 if test -z "$ac_err"; then
2125 eval "ac_cv_header_$ac_safe=yes"
2128 echo "configure: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2131 eval "ac_cv_header_$ac_safe=no"
2135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2136 echo "$ac_t""yes" 1>&6
2137 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2138 cat >> confdefs.h <<EOF
2139 #define $ac_tr_hdr 1
2143 echo "$ac_t""no" 1>&6
2147 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2148 __argz_count __argz_stringify __argz_next
2150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2151 echo "configure:2152: checking for $ac_func" >&5
2152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 /* System header to define __stub macros and hopefully few prototypes,
2159 which can conflict with char $ac_func(); below. */
2161 /* Override any gcc2 internal prototype to avoid an error. */
2162 /* We use char because int might match the return type of a gcc2
2163 builtin and then its argument prototype would still apply. */
2168 /* The GNU C library defines this for functions which it implements
2169 to always fail with ENOSYS. Some functions are actually named
2170 something starting with __ and the normal name is an alias. */
2171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2179 if { (eval echo configure:2180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2181 eval "ac_cv_func_$ac_func=yes"
2183 echo "configure: failed program was:" >&5
2184 cat conftest.$ac_ext >&5
2186 eval "ac_cv_func_$ac_func=no"
2191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2192 echo "$ac_t""yes" 1>&6
2193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2194 cat >> confdefs.h <<EOF
2195 #define $ac_tr_func 1
2199 echo "$ac_t""no" 1>&6
2204 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2205 for ac_func in stpcpy
2207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2208 echo "configure:2209: checking for $ac_func" >&5
2209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 cat > conftest.$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2215 /* System header to define __stub macros and hopefully few prototypes,
2216 which can conflict with char $ac_func(); below. */
2218 /* Override any gcc2 internal prototype to avoid an error. */
2219 /* We use char because int might match the return type of a gcc2
2220 builtin and then its argument prototype would still apply. */
2225 /* The GNU C library defines this for functions which it implements
2226 to always fail with ENOSYS. Some functions are actually named
2227 something starting with __ and the normal name is an alias. */
2228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2236 if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2238 eval "ac_cv_func_$ac_func=yes"
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2243 eval "ac_cv_func_$ac_func=no"
2248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2249 echo "$ac_t""yes" 1>&6
2250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2251 cat >> confdefs.h <<EOF
2252 #define $ac_tr_func 1
2256 echo "$ac_t""no" 1>&6
2261 if test "${ac_cv_func_stpcpy}" = "yes"; then
2262 cat >> confdefs.h <<\EOF
2263 #define HAVE_STPCPY 1
2268 if test $ac_cv_header_locale_h = yes; then
2269 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2270 echo "configure:2271: checking for LC_MESSAGES" >&5
2271 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2274 cat > conftest.$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2282 if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2284 am_cv_val_LC_MESSAGES=yes
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2289 am_cv_val_LC_MESSAGES=no
2294 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2295 if test $am_cv_val_LC_MESSAGES = yes; then
2296 cat >> confdefs.h <<\EOF
2297 #define HAVE_LC_MESSAGES 1
2302 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2303 echo "configure:2304: checking whether NLS is requested" >&5
2304 # Check whether --enable-nls or --disable-nls was given.
2305 if test "${enable_nls+set}" = set; then
2306 enableval="$enable_nls"
2312 echo "$ac_t""$USE_NLS" 1>&6
2315 USE_INCLUDED_LIBINTL=no
2317 if test "$USE_NLS" = "yes"; then
2318 cat >> confdefs.h <<\EOF
2319 #define ENABLE_NLS 1
2322 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2323 echo "configure:2324: checking whether included gettext is requested" >&5
2324 # Check whether --with-included-gettext or --without-included-gettext was given.
2325 if test "${with_included_gettext+set}" = set; then
2326 withval="$with_included_gettext"
2327 nls_cv_force_use_gnu_gettext=$withval
2329 nls_cv_force_use_gnu_gettext=no
2332 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2334 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2335 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2337 nls_cv_header_libgt=
2340 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2341 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2342 echo "configure:2343: checking for libintl.h" >&5
2343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 #include <libintl.h>
2351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2352 { (eval echo configure:2353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2354 if test -z "$ac_err"; then
2356 eval "ac_cv_header_$ac_safe=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2362 eval "ac_cv_header_$ac_safe=no"
2366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2369 echo "configure:2370: checking for gettext in libc" >&5
2370 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2376 #include <libintl.h>
2378 return (int) gettext ("")
2381 if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2383 gt_cv_func_gettext_libc=yes
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 gt_cv_func_gettext_libc=no
2393 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2395 if test "$gt_cv_func_gettext_libc" != "yes"; then
2396 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2397 echo "configure:2398: checking for bindtextdomain in -lintl" >&5
2398 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 ac_save_LIBS="$LIBS"
2404 cat > conftest.$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2407 /* Override any gcc2 internal prototype to avoid an error. */
2408 /* We use char because int might match the return type of a gcc2
2409 builtin and then its argument prototype would still apply. */
2410 char bindtextdomain();
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2418 eval "ac_cv_lib_$ac_lib_var=yes"
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 eval "ac_cv_lib_$ac_lib_var=no"
2426 LIBS="$ac_save_LIBS"
2429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2430 echo "$ac_t""yes" 1>&6
2431 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2432 echo "configure:2433: checking for gettext in libintl" >&5
2433 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2441 return (int) gettext ("")
2444 if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2446 gt_cv_func_gettext_libintl=yes
2448 echo "configure: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2451 gt_cv_func_gettext_libintl=no
2456 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2458 echo "$ac_t""no" 1>&6
2463 if test "$gt_cv_func_gettext_libc" = "yes" \
2464 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2465 cat >> confdefs.h <<\EOF
2466 #define HAVE_GETTEXT 1
2469 # Extract the first word of "msgfmt", so it can be a program name with args.
2470 set dummy msgfmt; ac_word=$2
2471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2472 echo "configure:2473: checking for $ac_word" >&5
2473 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2478 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2482 for ac_dir in $PATH; do
2483 test -z "$ac_dir" && ac_dir=.
2484 if test -f $ac_dir/$ac_word; then
2485 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2486 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2492 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2496 MSGFMT="$ac_cv_path_MSGFMT"
2497 if test -n "$MSGFMT"; then
2498 echo "$ac_t""$MSGFMT" 1>&6
2500 echo "$ac_t""no" 1>&6
2502 if test "$MSGFMT" != "no"; then
2503 for ac_func in dcgettext
2505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2506 echo "configure:2507: checking for $ac_func" >&5
2507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 /* System header to define __stub macros and hopefully few prototypes,
2514 which can conflict with char $ac_func(); below. */
2516 /* Override any gcc2 internal prototype to avoid an error. */
2517 /* We use char because int might match the return type of a gcc2
2518 builtin and then its argument prototype would still apply. */
2523 /* The GNU C library defines this for functions which it implements
2524 to always fail with ENOSYS. Some functions are actually named
2525 something starting with __ and the normal name is an alias. */
2526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2534 if { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2536 eval "ac_cv_func_$ac_func=yes"
2538 echo "configure: failed program was:" >&5
2539 cat conftest.$ac_ext >&5
2541 eval "ac_cv_func_$ac_func=no"
2546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2547 echo "$ac_t""yes" 1>&6
2548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2549 cat >> confdefs.h <<EOF
2550 #define $ac_tr_func 1
2554 echo "$ac_t""no" 1>&6
2558 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2559 set dummy gmsgfmt; ac_word=$2
2560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_word" >&5
2562 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2567 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2570 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2575 for ac_dir in $ac_dummy; do
2576 test -z "$ac_dir" && ac_dir=.
2577 if test -f $ac_dir/$ac_word; then
2578 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2583 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2587 GMSGFMT="$ac_cv_path_GMSGFMT"
2588 if test -n "$GMSGFMT"; then
2589 echo "$ac_t""$GMSGFMT" 1>&6
2591 echo "$ac_t""no" 1>&6
2594 # Extract the first word of "xgettext", so it can be a program name with args.
2595 set dummy xgettext; ac_word=$2
2596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2597 echo "configure:2598: checking for $ac_word" >&5
2598 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2603 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2607 for ac_dir in $PATH; do
2608 test -z "$ac_dir" && ac_dir=.
2609 if test -f $ac_dir/$ac_word; then
2610 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2611 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2617 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2621 XGETTEXT="$ac_cv_path_XGETTEXT"
2622 if test -n "$XGETTEXT"; then
2623 echo "$ac_t""$XGETTEXT" 1>&6
2625 echo "$ac_t""no" 1>&6
2628 cat > conftest.$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2633 extern int _nl_msg_cat_cntr;
2634 return _nl_msg_cat_cntr
2637 if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2642 echo "configure: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2654 echo "$ac_t""no" 1>&6
2659 if test "$CATOBJEXT" = "NONE"; then
2660 nls_cv_use_gnu_gettext=yes
2664 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2665 INTLOBJS="\$(GETTOBJS)"
2666 # Extract the first word of "msgfmt", so it can be a program name with args.
2667 set dummy msgfmt; ac_word=$2
2668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_word" >&5
2670 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2675 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2679 for ac_dir in $PATH; do
2680 test -z "$ac_dir" && ac_dir=.
2681 if test -f $ac_dir/$ac_word; then
2682 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2683 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2689 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2693 MSGFMT="$ac_cv_path_MSGFMT"
2694 if test -n "$MSGFMT"; then
2695 echo "$ac_t""$MSGFMT" 1>&6
2697 echo "$ac_t""no" 1>&6
2700 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2701 set dummy gmsgfmt; ac_word=$2
2702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2703 echo "configure:2704: checking for $ac_word" >&5
2704 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2709 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2712 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2717 for ac_dir in $ac_dummy; do
2718 test -z "$ac_dir" && ac_dir=.
2719 if test -f $ac_dir/$ac_word; then
2720 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2725 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2729 GMSGFMT="$ac_cv_path_GMSGFMT"
2730 if test -n "$GMSGFMT"; then
2731 echo "$ac_t""$GMSGFMT" 1>&6
2733 echo "$ac_t""no" 1>&6
2736 # Extract the first word of "xgettext", so it can be a program name with args.
2737 set dummy xgettext; ac_word=$2
2738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_word" >&5
2740 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2745 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2749 for ac_dir in $PATH; do
2750 test -z "$ac_dir" && ac_dir=.
2751 if test -f $ac_dir/$ac_word; then
2752 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2753 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2759 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2763 XGETTEXT="$ac_cv_path_XGETTEXT"
2764 if test -n "$XGETTEXT"; then
2765 echo "$ac_t""$XGETTEXT" 1>&6
2767 echo "$ac_t""no" 1>&6
2771 USE_INCLUDED_LIBINTL=yes
2775 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2777 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2778 nls_cv_header_intl=libintl.h
2779 nls_cv_header_libgt=libgettext.h
2782 if test "$XGETTEXT" != ":"; then
2783 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2786 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2791 # We need to process the po/ directory.
2795 nls_cv_header_intl=libintl.h
2796 nls_cv_header_libgt=libgettext.h
2799 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2800 # because some of the sources are only built for this goal.
2801 if test "$PACKAGE" = gettext; then
2803 USE_INCLUDED_LIBINTL=yes
2806 for lang in $ALL_LINGUAS; do
2807 GMOFILES="$GMOFILES $lang.gmo"
2808 POFILES="$POFILES $lang.po"
2824 if test "x$CATOBJEXT" != "x"; then
2825 if test "x$ALL_LINGUAS" = "x"; then
2828 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2829 echo "configure:2830: checking for catalogs to be installed" >&5
2831 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2832 case "$ALL_LINGUAS" in
2833 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2836 LINGUAS=$NEW_LINGUAS
2837 echo "$ac_t""$LINGUAS" 1>&6
2840 if test -n "$LINGUAS"; then
2841 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2845 if test $ac_cv_header_locale_h = yes; then
2846 INCLUDE_LOCALE_H="#include <locale.h>"
2849 /* The system does not provide the header <locale.h>. Take care yourself. */"
2853 if test -f $srcdir/po2tbl.sed.in; then
2854 if test "$CATOBJEXT" = ".cat"; then
2855 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2856 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2857 echo "configure:2858: checking for linux/version.h" >&5
2858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 cat > conftest.$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 #include <linux/version.h>
2866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2867 { (eval echo configure:2868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2869 if test -z "$ac_err"; then
2871 eval "ac_cv_header_$ac_safe=yes"
2874 echo "configure: failed program was:" >&5
2875 cat conftest.$ac_ext >&5
2877 eval "ac_cv_header_$ac_safe=no"
2881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2885 echo "$ac_t""no" 1>&6
2890 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2892 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2893 $srcdir/po2tbl.sed.in > po2tbl.sed
2896 if test "$PACKAGE" = "gettext"; then
2906 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2912 if test -d $srcdir/po; then
2913 test -d po || mkdir po
2914 if test "x$srcdir" != "x."; then
2915 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2916 posrcprefix="$srcdir/"
2918 posrcprefix="../$srcdir/"
2924 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2925 < $srcdir/po/POTFILES.in > po/POTFILES
2929 # Check for common headers.
2930 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2931 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2932 for ac_hdr in stdlib.h string.h strings.h unistd.h time.h
2934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2936 echo "configure:2937: checking for $ac_hdr" >&5
2937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2946 { (eval echo configure:2947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2948 if test -z "$ac_err"; then
2950 eval "ac_cv_header_$ac_safe=yes"
2953 echo "configure: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2956 eval "ac_cv_header_$ac_safe=no"
2960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2963 cat >> confdefs.h <<EOF
2964 #define $ac_tr_hdr 1
2968 echo "$ac_t""no" 1>&6
2972 for ac_hdr in sys/time.h sys/resource.h
2974 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2975 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2976 echo "configure:2977: checking for $ac_hdr" >&5
2977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2986 { (eval echo configure:2987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2988 if test -z "$ac_err"; then
2990 eval "ac_cv_header_$ac_safe=yes"
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2996 eval "ac_cv_header_$ac_safe=no"
3000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3001 echo "$ac_t""yes" 1>&6
3002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3003 cat >> confdefs.h <<EOF
3004 #define $ac_tr_hdr 1
3008 echo "$ac_t""no" 1>&6
3012 for ac_hdr in fcntl.h fpu_control.h
3014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3016 echo "configure:3017: checking for $ac_hdr" >&5
3017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3026 { (eval echo configure:3027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3028 if test -z "$ac_err"; then
3030 eval "ac_cv_header_$ac_safe=yes"
3033 echo "configure: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3036 eval "ac_cv_header_$ac_safe=no"
3040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3041 echo "$ac_t""yes" 1>&6
3042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3043 cat >> confdefs.h <<EOF
3044 #define $ac_tr_hdr 1
3048 echo "$ac_t""no" 1>&6
3052 for ac_hdr in dlfcn.h errno.h sys/stat.h
3054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3056 echo "configure:3057: checking for $ac_hdr" >&5
3057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3066 { (eval echo configure:3067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3068 if test -z "$ac_err"; then
3070 eval "ac_cv_header_$ac_safe=yes"
3073 echo "configure: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3076 eval "ac_cv_header_$ac_safe=no"
3080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3081 echo "$ac_t""yes" 1>&6
3082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3083 cat >> confdefs.h <<EOF
3084 #define $ac_tr_hdr 1
3088 echo "$ac_t""no" 1>&6
3092 for ac_func in getrusage time sigaction __setfpucw
3094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3095 echo "configure:3096: checking for $ac_func" >&5
3096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3099 cat > conftest.$ac_ext <<EOF
3100 #line 3101 "configure"
3101 #include "confdefs.h"
3102 /* System header to define __stub macros and hopefully few prototypes,
3103 which can conflict with char $ac_func(); below. */
3105 /* Override any gcc2 internal prototype to avoid an error. */
3106 /* We use char because int might match the return type of a gcc2
3107 builtin and then its argument prototype would still apply. */
3112 /* The GNU C library defines this for functions which it implements
3113 to always fail with ENOSYS. Some functions are actually named
3114 something starting with __ and the normal name is an alias. */
3115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3123 if { (eval echo configure:3124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3125 eval "ac_cv_func_$ac_func=yes"
3127 echo "configure: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3130 eval "ac_cv_func_$ac_func=no"
3135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3136 echo "$ac_t""yes" 1>&6
3137 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3138 cat >> confdefs.h <<EOF
3139 #define $ac_tr_func 1
3143 echo "$ac_t""no" 1>&6
3148 # Check for socket libraries
3149 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3150 echo "configure:3151: checking for bind in -lsocket" >&5
3151 ac_lib_var=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3152 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3155 ac_save_LIBS="$LIBS"
3156 LIBS="-lsocket $LIBS"
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 /* Override any gcc2 internal prototype to avoid an error. */
3161 /* We use char because int might match the return type of a gcc2
3162 builtin and then its argument prototype would still apply. */
3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3171 eval "ac_cv_lib_$ac_lib_var=yes"
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3176 eval "ac_cv_lib_$ac_lib_var=no"
3179 LIBS="$ac_save_LIBS"
3182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3183 echo "$ac_t""yes" 1>&6
3184 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3185 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3186 cat >> confdefs.h <<EOF
3187 #define $ac_tr_lib 1
3190 LIBS="-lsocket $LIBS"
3193 echo "$ac_t""no" 1>&6
3196 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3197 echo "configure:3198: checking for gethostbyname in -lnsl" >&5
3198 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 ac_save_LIBS="$LIBS"
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3207 /* Override any gcc2 internal prototype to avoid an error. */
3208 /* We use char because int might match the return type of a gcc2
3209 builtin and then its argument prototype would still apply. */
3210 char gethostbyname();
3216 if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3218 eval "ac_cv_lib_$ac_lib_var=yes"
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3223 eval "ac_cv_lib_$ac_lib_var=no"
3226 LIBS="$ac_save_LIBS"
3229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3231 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3232 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3233 cat >> confdefs.h <<EOF
3234 #define $ac_tr_lib 1
3240 echo "$ac_t""no" 1>&6
3244 . ${srcdir}/../../bfd/configure.host
3248 USE_MAINTAINER_MODE=no
3249 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3250 if test "${enable_maintainer_mode+set}" = set; then
3251 enableval="$enable_maintainer_mode"
3252 case "${enableval}" in
3253 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
3255 *) { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;
3257 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
3258 echo "Setting maintainer mode" 6>&1
3266 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3267 if test "${enable_sim_bswap+set}" = set; then
3268 enableval="$enable_sim_bswap"
3269 case "${enableval}" in
3270 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3271 no) sim_bswap="-DWITH_BSWAP=0";;
3272 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
3274 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3275 echo "Setting bswap flags = $sim_bswap" 6>&1
3283 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3284 if test "${enable_sim_cflags+set}" = set; then
3285 enableval="$enable_sim_cflags"
3286 case "${enableval}" in
3287 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3288 trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
3290 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3292 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3293 echo "Setting sim cflags = $sim_cflags" 6>&1
3301 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3302 if test "${enable_sim_debug+set}" = set; then
3303 enableval="$enable_sim_debug"
3304 case "${enableval}" in
3305 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
3306 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
3307 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3309 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
3310 echo "Setting sim debug = $sim_debug" 6>&1
3318 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3319 if test "${enable_sim_stdio+set}" = set; then
3320 enableval="$enable_sim_stdio"
3321 case "${enableval}" in
3322 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3323 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3324 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
3326 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3327 echo "Setting stdio flags = $sim_stdio" 6>&1
3335 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3336 if test "${enable_sim_trace+set}" = set; then
3337 enableval="$enable_sim_trace"
3338 case "${enableval}" in
3339 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
3340 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
3342 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3345 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3346 if test x"$sim_trace" = x; then
3347 sim_trace="-DWITH_TRACE='(TRACE_$x"
3349 sim_trace="${sim_trace}|TRACE_$x"
3352 sim_trace="$sim_trace)'" ;;
3354 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3355 echo "Setting sim trace = $sim_trace" 6>&1
3363 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3364 if test "${enable_sim_profile+set}" = set; then
3365 enableval="$enable_sim_profile"
3366 case "${enableval}" in
3367 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
3368 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
3370 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3373 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3374 if test x"$sim_profile" = x; then
3375 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
3377 sim_profile="${sim_profile}|PROFILE_$x"
3380 sim_profile="$sim_profile)'" ;;
3382 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
3383 echo "Setting sim profile = $sim_profile" 6>&1
3391 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3392 echo "configure:3393: checking return type of signal handlers" >&5
3393 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 #include <sys/types.h>
3405 extern "C" void (*signal (int, void (*)(int)))(int);
3407 void (*signal ()) ();
3414 if { (eval echo configure:3415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3416 ac_cv_type_signal=void
3418 echo "configure: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3421 ac_cv_type_signal=int
3426 echo "$ac_t""$ac_cv_type_signal" 1>&6
3427 cat >> confdefs.h <<EOF
3428 #define RETSIGTYPE $ac_cv_type_signal
3435 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3436 echo "configure:3437: checking for executable suffix" >&5
3437 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3444 echo 'int main () { return 0; }' > conftest.$ac_ext
3446 if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3447 for file in conftest.*; do
3449 *.c | *.o | *.obj) ;;
3450 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3454 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3457 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3462 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3463 echo "$ac_t""${ac_cv_exeext}" 1>&6
3470 sim_link_links=tconfig.h
3471 if test -f ${srcdir}/tconfig.in
3473 sim_link_files=tconfig.in
3475 sim_link_files=../common/tconfig.in
3478 # targ-vals.def points to the libc macro description file.
3480 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
3482 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
3483 sim_link_links="${sim_link_links} targ-vals.def"
3488 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3489 if test "${enable_build_warnings+set}" = set; then
3490 enableval="$enable_build_warnings"
3491 build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
3492 case "${enableval}" in
3494 no) build_warnings="-w";;
3495 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3496 build_warnings="${build_warnings} ${t}";;
3497 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3498 build_warnings="${t} ${build_warnings}";;
3499 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3501 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3502 echo "Setting warning flags = $build_warnings" 6>&1
3506 if test "x${build_warnings}" != x -a "x$GCC" = xyes
3508 # Separate out the -Werror flag as some files just cannot be
3509 # compiled with it enabled.
3510 for w in ${build_warnings}; do
3512 -Werr*) WERROR_CFLAGS=-Werror ;;
3513 *) WARN_CFLAGS="${WARN_CFLAGS} $w"
3522 for ac_hdr in unistd.h
3524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3526 echo "configure:3527: checking for $ac_hdr" >&5
3527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3536 { (eval echo configure:3537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3538 if test -z "$ac_err"; then
3540 eval "ac_cv_header_$ac_safe=yes"
3543 echo "configure: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3546 eval "ac_cv_header_$ac_safe=no"
3550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3551 echo "$ac_t""yes" 1>&6
3552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3553 cat >> confdefs.h <<EOF
3554 #define $ac_tr_hdr 1
3558 echo "$ac_t""no" 1>&6
3567 cat > confcache <<\EOF
3568 # This file is a shell script that caches the results of configure
3569 # tests run on this system so they can be shared between configure
3570 # scripts and configure runs. It is not useful on other systems.
3571 # If it contains results you don't want to keep, you may remove or edit it.
3573 # By default, configure uses ./config.cache as the cache file,
3574 # creating it if it does not exist already. You can give configure
3575 # the --cache-file=FILE option to use a different cache file; that is
3576 # what configure does when it calls configure scripts in
3577 # subdirectories, so they share the cache.
3578 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3579 # config.status only pays attention to the cache file if you give it the
3580 # --recheck option to rerun configure.
3583 # The following way of writing the cache mishandles newlines in values,
3584 # but we know of no workaround that is simple, portable, and efficient.
3585 # So, don't put newlines in cache variables' values.
3586 # Ultrix sh set writes to stderr and can't be redirected directly,
3587 # and sets the high bit in the cache file unless we assign to the vars.
3589 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3591 # `set' does not quote correctly, so add quotes (double-quote substitution
3592 # turns \\\\ into \\, and sed turns \\ into \).
3594 -e "s/'/'\\\\''/g" \
3595 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3598 # `set' quotes correctly as required by POSIX, so do not add quotes.
3599 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3602 if cmp -s $cache_file confcache; then
3605 if test -w $cache_file; then
3606 echo "updating cache $cache_file"
3607 cat confcache > $cache_file
3609 echo "not updating unwritable cache $cache_file"
3614 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3616 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3617 # Let make expand exec_prefix.
3618 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3620 # Any assignment to VPATH causes Sun make to only execute
3621 # the first set of double-colon rules, so remove it if not needed.
3622 # If there is a colon in the path, we need to keep it.
3623 if test "x$srcdir" = x.; then
3624 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3627 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3629 DEFS=-DHAVE_CONFIG_H
3631 # Without the "./", some shells look in PATH for config.status.
3632 : ${CONFIG_STATUS=./config.status}
3634 echo creating $CONFIG_STATUS
3635 rm -f $CONFIG_STATUS
3636 cat > $CONFIG_STATUS <<EOF
3638 # Generated automatically by configure.
3639 # Run this file to recreate the current configuration.
3640 # This directory was configured as follows,
3641 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3643 # $0 $ac_configure_args
3645 # Compiler output produced by configure, useful for debugging
3646 # configure, is in ./config.log if it exists.
3648 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3651 case "\$ac_option" in
3652 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3653 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3654 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3655 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3656 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3658 -help | --help | --hel | --he | --h)
3659 echo "\$ac_cs_usage"; exit 0 ;;
3660 *) echo "\$ac_cs_usage"; exit 1 ;;
3664 ac_given_srcdir=$srcdir
3665 ac_given_INSTALL="$INSTALL"
3667 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
3669 cat >> $CONFIG_STATUS <<EOF
3671 # Protect against being on the right side of a sed subst in config.status.
3672 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3673 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3676 s%@sim_environment@%$sim_environment%g
3677 s%@sim_alignment@%$sim_alignment%g
3678 s%@sim_assert@%$sim_assert%g
3679 s%@sim_bitsize@%$sim_bitsize%g
3680 s%@sim_endian@%$sim_endian%g
3681 s%@sim_hostendian@%$sim_hostendian%g
3682 s%@sim_float@%$sim_float%g
3683 s%@sim_scache@%$sim_scache%g
3684 s%@sim_default_model@%$sim_default_model%g
3685 s%@sim_hw_cflags@%$sim_hw_cflags%g
3686 s%@sim_hw_objs@%$sim_hw_objs%g
3687 s%@sim_hw@%$sim_hw%g
3688 s%@sim_inline@%$sim_inline%g
3689 s%@sim_packages@%$sim_packages%g
3690 s%@sim_regparm@%$sim_regparm%g
3691 s%@sim_reserved_bits@%$sim_reserved_bits%g
3692 s%@sim_smp@%$sim_smp%g
3693 s%@sim_stdcall@%$sim_stdcall%g
3694 s%@sim_xor_endian@%$sim_xor_endian%g
3695 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
3696 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
3698 s%@CFLAGS@%$CFLAGS%g
3699 s%@CPPFLAGS@%$CPPFLAGS%g
3700 s%@CXXFLAGS@%$CXXFLAGS%g
3701 s%@FFLAGS@%$FFLAGS%g
3703 s%@LDFLAGS@%$LDFLAGS%g
3705 s%@exec_prefix@%$exec_prefix%g
3706 s%@prefix@%$prefix%g
3707 s%@program_transform_name@%$program_transform_name%g
3708 s%@bindir@%$bindir%g
3709 s%@sbindir@%$sbindir%g
3710 s%@libexecdir@%$libexecdir%g
3711 s%@datadir@%$datadir%g
3712 s%@sysconfdir@%$sysconfdir%g
3713 s%@sharedstatedir@%$sharedstatedir%g
3714 s%@localstatedir@%$localstatedir%g
3715 s%@libdir@%$libdir%g
3716 s%@includedir@%$includedir%g
3717 s%@oldincludedir@%$oldincludedir%g
3718 s%@infodir@%$infodir%g
3719 s%@mandir@%$mandir%g
3721 s%@host_alias@%$host_alias%g
3722 s%@host_cpu@%$host_cpu%g
3723 s%@host_vendor@%$host_vendor%g
3724 s%@host_os@%$host_os%g
3725 s%@target@%$target%g
3726 s%@target_alias@%$target_alias%g
3727 s%@target_cpu@%$target_cpu%g
3728 s%@target_vendor@%$target_vendor%g
3729 s%@target_os@%$target_os%g
3731 s%@build_alias@%$build_alias%g
3732 s%@build_cpu@%$build_cpu%g
3733 s%@build_vendor@%$build_vendor%g
3734 s%@build_os@%$build_os%g
3736 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3737 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3738 s%@INSTALL_DATA@%$INSTALL_DATA%g
3739 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3740 s%@HDEFINES@%$HDEFINES%g
3742 s%@RANLIB@%$RANLIB%g
3743 s%@SET_MAKE@%$SET_MAKE%g
3745 s%@ALLOCA@%$ALLOCA%g
3746 s%@USE_NLS@%$USE_NLS%g
3747 s%@MSGFMT@%$MSGFMT%g
3748 s%@GMSGFMT@%$GMSGFMT%g
3749 s%@XGETTEXT@%$XGETTEXT%g
3750 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3751 s%@CATALOGS@%$CATALOGS%g
3752 s%@CATOBJEXT@%$CATOBJEXT%g
3753 s%@DATADIRNAME@%$DATADIRNAME%g
3754 s%@GMOFILES@%$GMOFILES%g
3755 s%@INSTOBJEXT@%$INSTOBJEXT%g
3756 s%@INTLDEPS@%$INTLDEPS%g
3757 s%@INTLLIBS@%$INTLLIBS%g
3758 s%@INTLOBJS@%$INTLOBJS%g
3759 s%@POFILES@%$POFILES%g
3761 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3763 s%@GT_YES@%$GT_YES%g
3764 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3767 s%@sim_bswap@%$sim_bswap%g
3768 s%@sim_cflags@%$sim_cflags%g
3769 s%@sim_debug@%$sim_debug%g
3770 s%@sim_stdio@%$sim_stdio%g
3771 s%@sim_trace@%$sim_trace%g
3772 s%@sim_profile@%$sim_profile%g
3773 s%@EXEEXT@%$EXEEXT%g
3778 cat >> $CONFIG_STATUS <<\EOF
3780 # Split the substitutions into bite-sized pieces for seds with
3781 # small command number limits, like on Digital OSF/1 and HP-UX.
3782 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3783 ac_file=1 # Number of current file.
3784 ac_beg=1 # First line for current file.
3785 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3788 while $ac_more_lines; do
3789 if test $ac_beg -gt 1; then
3790 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3792 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3794 if test ! -s conftest.s$ac_file; then
3796 rm -f conftest.s$ac_file
3798 if test -z "$ac_sed_cmds"; then
3799 ac_sed_cmds="sed -f conftest.s$ac_file"
3801 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3803 ac_file=`expr $ac_file + 1`
3805 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3808 if test -z "$ac_sed_cmds"; then
3813 cat >> $CONFIG_STATUS <<EOF
3815 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
3817 cat >> $CONFIG_STATUS <<\EOF
3818 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3821 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3822 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3823 *) ac_file_in="${ac_file}.in" ;;
3826 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3828 # Remove last slash and all that follows it. Not all systems have dirname.
3829 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3830 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3831 # The file is in a subdirectory.
3832 test ! -d "$ac_dir" && mkdir "$ac_dir"
3833 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3834 # A "../" for each directory in $ac_dir_suffix.
3835 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3837 ac_dir_suffix= ac_dots=
3840 case "$ac_given_srcdir" in
3842 if test -z "$ac_dots"; then top_srcdir=.
3843 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3844 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3846 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3847 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3850 case "$ac_given_INSTALL" in
3851 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3852 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3855 echo creating "$ac_file"
3857 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3859 *Makefile*) ac_comsub="1i\\
3860 # $configure_input" ;;
3864 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3866 s%@configure_input@%$configure_input%g
3867 s%@srcdir@%$srcdir%g
3868 s%@top_srcdir@%$top_srcdir%g
3869 s%@INSTALL@%$INSTALL%g
3870 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3874 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3875 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3877 # ac_d sets the value in "#define NAME VALUE" lines.
3878 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3879 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3882 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3883 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3884 ac_uB='\([ ]\)%\1#\2define\3'
3887 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3888 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3889 ac_eB='$%\1#\2define\3'
3893 if test "${CONFIG_HEADERS+set}" != set; then
3895 cat >> $CONFIG_STATUS <<EOF
3896 CONFIG_HEADERS="config.h:config.in"
3898 cat >> $CONFIG_STATUS <<\EOF
3900 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3901 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3903 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3904 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3905 *) ac_file_in="${ac_file}.in" ;;
3908 echo creating $ac_file
3910 rm -f conftest.frag conftest.in conftest.out
3911 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3912 cat $ac_file_inputs > conftest.in
3916 # Transform confdefs.h into a sed script conftest.vals that substitutes
3917 # the proper values into config.h.in to produce config.h. And first:
3918 # Protect against being on the right side of a sed subst in config.status.
3919 # Protect against being in an unquoted here document in config.status.
3921 cat > conftest.hdr <<\EOF
3924 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3928 sed -n -f conftest.hdr confdefs.h > conftest.vals
3931 # This sed command replaces #undef with comments. This is necessary, for
3932 # example, in the case of _POSIX_SOURCE, which is predefined and required
3933 # on some systems where configure will not decide to define it.
3934 cat >> conftest.vals <<\EOF
3935 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3938 # Break up conftest.vals because some shells have a limit on
3939 # the size of here documents, and old seds have small limits too.
3944 ac_lines=`grep -c . conftest.vals`
3945 # grep -c gives empty output for an empty file on some AIX systems.
3946 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3947 # Write a limited-size here document to conftest.frag.
3948 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3949 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3951 sed -f conftest.frag conftest.in > conftest.out
3953 mv conftest.out conftest.in
3955 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3957 mv conftest.tail conftest.vals
3961 cat >> $CONFIG_STATUS <<\EOF
3962 rm -f conftest.frag conftest.h
3963 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3964 cat conftest.in >> conftest.h
3966 if cmp -s $ac_file conftest.h 2>/dev/null; then
3967 echo "$ac_file is unchanged"
3970 # Remove last slash and all that follows it. Not all systems have dirname.
3971 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3972 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3973 # The file is in a subdirectory.
3974 test ! -d "$ac_dir" && mkdir "$ac_dir"
3977 mv conftest.h $ac_file
3983 cat >> $CONFIG_STATUS <<EOF
3984 ac_sources="$sim_link_files"
3985 ac_dests="$sim_link_links"
3988 cat >> $CONFIG_STATUS <<\EOF
3989 srcdir=$ac_given_srcdir
3990 while test -n "$ac_sources"; do
3991 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3992 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3994 echo "linking $srcdir/$ac_source to $ac_dest"
3996 if test ! -r $srcdir/$ac_source; then
3997 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4001 # Make relative symlinks.
4002 # Remove last slash and all that follows it. Not all systems have dirname.
4003 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4004 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4005 # The dest file is in a subdirectory.
4006 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4007 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4008 # A "../" for each directory in $ac_dest_dir_suffix.
4009 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4011 ac_dest_dir_suffix= ac_dots=
4015 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4016 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4019 # Make a symlink if possible; otherwise try a hard link.
4020 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4021 ln $srcdir/$ac_source $ac_dest; then :
4023 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4027 cat >> $CONFIG_STATUS <<EOF
4030 cat >> $CONFIG_STATUS <<\EOF
4031 case "x$CONFIG_FILES" in
4033 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4034 rm -f Makesim1.tmp Makesim2.tmp Makefile
4035 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4036 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4037 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4038 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4039 <Makefile.sim >Makefile
4040 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4043 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4047 chmod +x $CONFIG_STATUS
4048 rm -fr confdefs* $ac_clean_files
4049 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1