45 sim_inline="-DDEFAULT_INLINE=0"
82 # This file is derived from `gettext.m4'. The difference is that the
83 # included macros assume Cygnus-style source and build trees.
85 # Macro to add for using GNU gettext.
88 # This file file be copied and used freely without restrictions. It can
89 # be used in projects which are not available under the GNU Public License
90 # but which still want to provide support for the GNU gettext functionality.
91 # Please note that the actual code is *not* freely available.
99 # Search path for a program which passes the given test.
102 # This file file be copied and used freely without restrictions. It can
103 # be used in projects which are not available under the GNU Public License
104 # but which still want to provide support for the GNU gettext functionality.
105 # Please note that the actual code is *not* freely available.
111 # Check whether LC_MESSAGES is available in <locale.h>.
114 # This file file be copied and used freely without restrictions. It can
115 # be used in projects which are not available under the GNU Public License
116 # but which still want to provide support for the GNU gettext functionality.
117 # Please note that the actual code is *not* freely available.
126 # Guess values for system-dependent variables and create Makefiles.
127 # Generated automatically using autoconf version 2.13
128 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 # This configure script is free software; the Free Software Foundation
131 # gives unlimited permission to copy, distribute and modify it.
135 ac_default_prefix=/usr/local
136 # Any additions from configure.in:
138 --disable-nls do not use Native Language Support"
140 --with-included-gettext use the GNU gettext library included here"
142 # Initialize some variables set by options.
143 # The variables have the same names as the options, with
144 # dashes changed to underlines.
146 cache_file=./config.cache
155 program_transform_name=s,x,x,
163 bindir='${exec_prefix}/bin'
164 sbindir='${exec_prefix}/sbin'
165 libexecdir='${exec_prefix}/libexec'
166 datadir='${prefix}/share'
167 sysconfdir='${prefix}/etc'
168 sharedstatedir='${prefix}/com'
169 localstatedir='${prefix}/var'
170 libdir='${exec_prefix}/lib'
171 includedir='${prefix}/include'
172 oldincludedir='/usr/include'
173 infodir='${prefix}/info'
174 mandir='${prefix}/man'
176 # Initialize some other variables.
179 SHELL=${CONFIG_SHELL-/bin/sh}
180 # Maximum number of lines to put in a shell here document.
187 # If the previous option needs an argument, assign it.
188 if test -n "$ac_prev"; then
189 eval "$ac_prev=\$ac_option"
195 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
199 # Accept the important Cygnus configure options, so we can diagnose typos.
203 -bindir | --bindir | --bindi | --bind | --bin | --bi)
205 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
206 bindir="$ac_optarg" ;;
208 -build | --build | --buil | --bui | --bu)
210 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
211 build="$ac_optarg" ;;
213 -cache-file | --cache-file | --cache-fil | --cache-fi \
214 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
215 ac_prev=cache_file ;;
216 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
217 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
218 cache_file="$ac_optarg" ;;
220 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
222 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
224 datadir="$ac_optarg" ;;
226 -disable-* | --disable-*)
227 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
230 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
232 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
233 eval "enable_${ac_feature}=no" ;;
235 -enable-* | --enable-*)
236 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
239 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
241 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
246 eval "enable_${ac_feature}='$ac_optarg'" ;;
248 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
249 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
250 | --exec | --exe | --ex)
251 ac_prev=exec_prefix ;;
252 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
253 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
254 | --exec=* | --exe=* | --ex=*)
255 exec_prefix="$ac_optarg" ;;
257 -gas | --gas | --ga | --g)
258 # Obsolete; use --with-gas.
261 -help | --help | --hel | --he)
262 # Omit some internal or obsolete options to make the list less imposing.
263 # This message is too long to be a string in the A/UX 3.1 sh.
265 Usage: configure [options] [host]
266 Options: [defaults in brackets after descriptions]
268 --cache-file=FILE cache test results in FILE
269 --help print this message
270 --no-create do not create output files
271 --quiet, --silent do not print \`checking...' messages
272 --version print the version of autoconf that created configure
273 Directory and file names:
274 --prefix=PREFIX install architecture-independent files in PREFIX
276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
278 --bindir=DIR user executables in DIR [EPREFIX/bin]
279 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
280 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
281 --datadir=DIR read-only architecture-independent data in DIR
283 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
284 --sharedstatedir=DIR modifiable architecture-independent data in DIR
286 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
287 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
288 --includedir=DIR C header files in DIR [PREFIX/include]
289 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
290 --infodir=DIR info documentation in DIR [PREFIX/info]
291 --mandir=DIR man documentation in DIR [PREFIX/man]
292 --srcdir=DIR find the sources in DIR [configure dir or ..]
293 --program-prefix=PREFIX prepend PREFIX to installed program names
294 --program-suffix=SUFFIX append SUFFIX to installed program names
295 --program-transform-name=PROGRAM
296 run sed PROGRAM on installed program names
300 --build=BUILD configure for building on BUILD [BUILD=HOST]
301 --host=HOST configure for HOST [guessed]
302 --target=TARGET configure for TARGET [TARGET=HOST]
303 Features and packages:
304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
308 --x-includes=DIR X include files are in DIR
309 --x-libraries=DIR X library files are in DIR
311 if test -n "$ac_help"; then
312 echo "--enable and --with options recognized:$ac_help"
316 -host | --host | --hos | --ho)
318 -host=* | --host=* | --hos=* | --ho=*)
321 -includedir | --includedir | --includedi | --included | --include \
322 | --includ | --inclu | --incl | --inc)
323 ac_prev=includedir ;;
324 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
325 | --includ=* | --inclu=* | --incl=* | --inc=*)
326 includedir="$ac_optarg" ;;
328 -infodir | --infodir | --infodi | --infod | --info | --inf)
330 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
331 infodir="$ac_optarg" ;;
333 -libdir | --libdir | --libdi | --libd)
335 -libdir=* | --libdir=* | --libdi=* | --libd=*)
336 libdir="$ac_optarg" ;;
338 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
339 | --libexe | --libex | --libe)
340 ac_prev=libexecdir ;;
341 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
342 | --libexe=* | --libex=* | --libe=*)
343 libexecdir="$ac_optarg" ;;
345 -localstatedir | --localstatedir | --localstatedi | --localstated \
346 | --localstate | --localstat | --localsta | --localst \
347 | --locals | --local | --loca | --loc | --lo)
348 ac_prev=localstatedir ;;
349 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
350 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
351 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
352 localstatedir="$ac_optarg" ;;
354 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
356 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
357 mandir="$ac_optarg" ;;
360 # Obsolete; use --without-fp.
363 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
367 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
368 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
371 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
372 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
373 | --oldin | --oldi | --old | --ol | --o)
374 ac_prev=oldincludedir ;;
375 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
376 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
377 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
378 oldincludedir="$ac_optarg" ;;
380 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
382 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
383 prefix="$ac_optarg" ;;
385 -program-prefix | --program-prefix | --program-prefi | --program-pref \
386 | --program-pre | --program-pr | --program-p)
387 ac_prev=program_prefix ;;
388 -program-prefix=* | --program-prefix=* | --program-prefi=* \
389 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
390 program_prefix="$ac_optarg" ;;
392 -program-suffix | --program-suffix | --program-suffi | --program-suff \
393 | --program-suf | --program-su | --program-s)
394 ac_prev=program_suffix ;;
395 -program-suffix=* | --program-suffix=* | --program-suffi=* \
396 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
397 program_suffix="$ac_optarg" ;;
399 -program-transform-name | --program-transform-name \
400 | --program-transform-nam | --program-transform-na \
401 | --program-transform-n | --program-transform- \
402 | --program-transform | --program-transfor \
403 | --program-transfo | --program-transf \
404 | --program-trans | --program-tran \
405 | --progr-tra | --program-tr | --program-t)
406 ac_prev=program_transform_name ;;
407 -program-transform-name=* | --program-transform-name=* \
408 | --program-transform-nam=* | --program-transform-na=* \
409 | --program-transform-n=* | --program-transform-=* \
410 | --program-transform=* | --program-transfor=* \
411 | --program-transfo=* | --program-transf=* \
412 | --program-trans=* | --program-tran=* \
413 | --progr-tra=* | --program-tr=* | --program-t=*)
414 program_transform_name="$ac_optarg" ;;
416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
417 | -silent | --silent | --silen | --sile | --sil)
420 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
422 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
424 sbindir="$ac_optarg" ;;
426 -sharedstatedir | --sharedstatedir | --sharedstatedi \
427 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
428 | --sharedst | --shareds | --shared | --share | --shar \
430 ac_prev=sharedstatedir ;;
431 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
432 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
433 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
435 sharedstatedir="$ac_optarg" ;;
437 -site | --site | --sit)
439 -site=* | --site=* | --sit=*)
442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
445 srcdir="$ac_optarg" ;;
447 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
448 | --syscon | --sysco | --sysc | --sys | --sy)
449 ac_prev=sysconfdir ;;
450 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
451 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
452 sysconfdir="$ac_optarg" ;;
454 -target | --target | --targe | --targ | --tar | --ta | --t)
456 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
457 target="$ac_optarg" ;;
459 -v | -verbose | --verbose | --verbos | --verbo | --verb)
462 -version | --version | --versio | --versi | --vers)
463 echo "configure generated by autoconf version 2.13"
467 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
468 # Reject names that are not valid shell variable names.
469 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
470 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
472 ac_package=`echo $ac_package| sed 's/-/_/g'`
477 eval "with_${ac_package}='$ac_optarg'" ;;
479 -without-* | --without-*)
480 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
481 # Reject names that are not valid shell variable names.
482 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
483 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
485 ac_package=`echo $ac_package| sed 's/-/_/g'`
486 eval "with_${ac_package}=no" ;;
489 # Obsolete; use --with-x.
492 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
493 | --x-incl | --x-inc | --x-in | --x-i)
494 ac_prev=x_includes ;;
495 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
496 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
497 x_includes="$ac_optarg" ;;
499 -x-libraries | --x-libraries | --x-librarie | --x-librari \
500 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
501 ac_prev=x_libraries ;;
502 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
503 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
504 x_libraries="$ac_optarg" ;;
506 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
510 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
511 echo "configure: warning: $ac_option: invalid host type" 1>&2
513 if test "x$nonopt" != xNONE; then
514 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
522 if test -n "$ac_prev"; then
523 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
526 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
528 # File descriptor usage:
531 # 2 errors and warnings
532 # 3 some systems may open it to /dev/tty
533 # 4 used on the Kubota Titan
534 # 6 checking for... messages and results
535 # 5 compiler messages saved in config.log
536 if test "$silent" = yes; then
544 This file contains any messages produced by compilers while
545 running configure, to aid debugging if configure makes a mistake.
548 # Strip out --no-create and --no-recursion so they do not pile up.
549 # Also quote any args containing shell metacharacters.
554 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
555 | --no-cr | --no-c) ;;
556 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
557 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
558 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
559 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
560 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
565 # Only set these to C if already set. These must not be set unconditionally
566 # because not all systems understand e.g. LANG=C (notably SCO).
567 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
568 # Non-C LC_CTYPE values break the ctype check.
569 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
570 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
571 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
572 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
574 # confdefs.h avoids OS command line length limits that DEFS can exceed.
575 rm -rf conftest* confdefs.h
576 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
579 # A filename unique to this package, relative to the directory that
580 # configure is in, which we can look for to find out if srcdir is correct.
581 ac_unique_file=Makefile.in
583 # Find the source files, if location was not specified.
584 if test -z "$srcdir"; then
585 ac_srcdir_defaulted=yes
586 # Try the directory containing this script, then its parent.
588 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
589 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
591 if test ! -r $srcdir/$ac_unique_file; then
595 ac_srcdir_defaulted=no
597 if test ! -r $srcdir/$ac_unique_file; then
598 if test "$ac_srcdir_defaulted" = yes; then
599 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
601 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
604 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
606 # Prefer explicitly selected file to automatically selected ones.
607 if test -z "$CONFIG_SITE"; then
608 if test "x$prefix" != xNONE; then
609 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
611 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
614 for ac_site_file in $CONFIG_SITE; do
615 if test -r "$ac_site_file"; then
616 echo "loading site script $ac_site_file"
621 if test -r "$cache_file"; then
622 echo "loading cache $cache_file"
625 echo "creating cache $cache_file"
630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
631 ac_cpp='$CPP $CPPFLAGS'
632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
634 cross_compiling=$ac_cv_prog_cc_cross
638 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
640 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
647 ac_n= ac_c='\c' ac_t=
655 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
656 if test -f $ac_dir/install-sh; then
658 ac_install_sh="$ac_aux_dir/install-sh -c"
660 elif test -f $ac_dir/install.sh; then
662 ac_install_sh="$ac_aux_dir/install.sh -c"
666 if test -z "$ac_aux_dir"; then
667 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
669 ac_config_guess=$ac_aux_dir/config.guess
670 ac_config_sub=$ac_aux_dir/config.sub
671 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
674 # Do some error checking and defaulting for the host and target type.
676 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
679 # 1. You are not allowed to specify --host, --target, and nonopt at the
681 # 2. Host defaults to nonopt.
682 # 3. If nonopt is not specified, then host defaults to the current host,
683 # as determined by config.guess.
684 # 4. Target and build default to nonopt.
685 # 5. If nonopt is not specified, then target and build default to host.
687 # The aliases save the names the user supplied, while $host etc.
688 # will get canonicalized.
689 case $host---$target---$nonopt in
690 NONE---*---* | *---NONE---* | *---*---NONE) ;;
691 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
695 # Make sure we can run config.sub.
696 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
697 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
700 echo $ac_n "checking host system type""... $ac_c" 1>&6
701 echo "configure:702: checking host system type" >&5
704 case "$host_alias" in
708 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
709 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
711 *) host_alias=$nonopt ;;
715 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
716 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
717 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
718 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
719 echo "$ac_t""$host" 1>&6
721 echo $ac_n "checking target system type""... $ac_c" 1>&6
722 echo "configure:723: checking target system type" >&5
725 case "$target_alias" in
728 NONE) target_alias=$host_alias ;;
729 *) target_alias=$nonopt ;;
733 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
734 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
735 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
736 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
737 echo "$ac_t""$target" 1>&6
739 echo $ac_n "checking build system type""... $ac_c" 1>&6
740 echo "configure:741: checking build system type" >&5
743 case "$build_alias" in
746 NONE) build_alias=$host_alias ;;
747 *) build_alias=$nonopt ;;
751 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
752 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
753 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
754 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
755 echo "$ac_t""$build" 1>&6
757 test "$host_alias" != "$target_alias" &&
758 test "$program_prefix$program_suffix$program_transform_name" = \
760 program_prefix=${target_alias}-
762 if test "$program_transform_name" = s,x,x,; then
763 program_transform_name=
765 # Double any \ or $. echo might interpret backslashes.
766 cat <<\EOF_SED > conftestsed
767 s,\\,\\\\,g; s,\$,$$,g
769 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
772 test "$program_prefix" != NONE &&
773 program_transform_name="s,^,${program_prefix},; $program_transform_name"
774 # Use a double $ so make ignores it.
775 test "$program_suffix" != NONE &&
776 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
778 # sed with no file args requires a program.
779 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
781 # Extract the first word of "gcc", so it can be a program name with args.
782 set dummy gcc; ac_word=$2
783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
784 echo "configure:785: checking for $ac_word" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 if test -n "$CC"; then
789 ac_cv_prog_CC="$CC" # Let the user override the test.
791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
793 for ac_dir in $ac_dummy; do
794 test -z "$ac_dir" && ac_dir=.
795 if test -f $ac_dir/$ac_word; then
804 if test -n "$CC"; then
805 echo "$ac_t""$CC" 1>&6
807 echo "$ac_t""no" 1>&6
810 if test -z "$CC"; then
811 # Extract the first word of "cc", so it can be a program name with args.
812 set dummy cc; ac_word=$2
813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
814 echo "configure:815: checking for $ac_word" >&5
815 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
818 if test -n "$CC"; then
819 ac_cv_prog_CC="$CC" # Let the user override the test.
821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
824 for ac_dir in $ac_dummy; do
825 test -z "$ac_dir" && ac_dir=.
826 if test -f $ac_dir/$ac_word; then
827 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
836 if test $ac_prog_rejected = yes; then
837 # We found a bogon in the path, so make sure we never use it.
838 set dummy $ac_cv_prog_CC
840 if test $# -gt 0; then
841 # We chose a different compiler from the bogus one.
842 # However, it has the same basename, so the bogon will be chosen
843 # first if we set CC to just the basename; use the full file name.
845 set dummy "$ac_dir/$ac_word" "$@"
853 if test -n "$CC"; then
854 echo "$ac_t""$CC" 1>&6
856 echo "$ac_t""no" 1>&6
859 if test -z "$CC"; then
862 # Extract the first word of "cl", so it can be a program name with args.
863 set dummy cl; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
869 if test -n "$CC"; then
870 ac_cv_prog_CC="$CC" # Let the user override the test.
872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
874 for ac_dir in $ac_dummy; do
875 test -z "$ac_dir" && ac_dir=.
876 if test -f $ac_dir/$ac_word; then
885 if test -n "$CC"; then
886 echo "$ac_t""$CC" 1>&6
888 echo "$ac_t""no" 1>&6
893 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
901 ac_cpp='$CPP $CPPFLAGS'
902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
904 cross_compiling=$ac_cv_prog_cc_cross
906 cat > conftest.$ac_ext << EOF
908 #line 909 "configure"
909 #include "confdefs.h"
913 if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
914 ac_cv_prog_cc_works=yes
915 # If we can't run a trivial program, we are probably using a cross compiler.
916 if (./conftest; exit) 2>/dev/null; then
917 ac_cv_prog_cc_cross=no
919 ac_cv_prog_cc_cross=yes
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
924 ac_cv_prog_cc_works=no
928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
929 ac_cpp='$CPP $CPPFLAGS'
930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
932 cross_compiling=$ac_cv_prog_cc_cross
934 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
935 if test $ac_cv_prog_cc_works = no; then
936 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
939 echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
940 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
941 cross_compiling=$ac_cv_prog_cc_cross
943 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
944 echo "configure:945: checking whether we are using GNU C" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
948 cat > conftest.c <<EOF
953 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
960 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
962 if test $ac_cv_prog_gcc = yes; then
968 ac_test_CFLAGS="${CFLAGS+set}"
969 ac_save_CFLAGS="$CFLAGS"
971 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
972 echo "configure:973: checking whether ${CC-cc} accepts -g" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 echo 'void f(){}' > conftest.c
977 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
986 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
987 if test "$ac_test_CFLAGS" = set; then
988 CFLAGS="$ac_save_CFLAGS"
989 elif test $ac_cv_prog_cc_g = yes; then
990 if test "$GCC" = yes; then
996 if test "$GCC" = yes; then
1003 # Find a good install program. We prefer a C program (faster),
1004 # so one script is as good as another. But avoid the broken or
1005 # incompatible versions:
1006 # SysV /etc/install, /usr/sbin/install
1007 # SunOS /usr/etc/install
1008 # IRIX /sbin/install
1010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1013 # ./install, which can be erroneously created by make from ./install.sh.
1014 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1015 echo "configure:1016: checking for a BSD compatible install" >&5
1016 if test -z "$INSTALL"; then
1017 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1018 echo $ac_n "(cached) $ac_c" 1>&6
1020 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1021 for ac_dir in $PATH; do
1022 # Account for people who put trailing slashes in PATH elements.
1024 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1026 # OSF1 and SCO ODT 3.0 have their own names for install.
1027 # Don't use installbsd from OSF since it installs stuff as root
1029 for ac_prog in ginstall scoinst install; do
1030 if test -f $ac_dir/$ac_prog; then
1031 if test $ac_prog = install &&
1032 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1033 # AIX install. It has an incompatible calling convention.
1036 ac_cv_path_install="$ac_dir/$ac_prog -c"
1047 if test "${ac_cv_path_install+set}" = set; then
1048 INSTALL="$ac_cv_path_install"
1050 # As a last resort, use the slow shell script. We don't cache a
1051 # path for INSTALL within a source directory, because that will
1052 # break other packages using the cache if that directory is
1053 # removed, or if the path is relative.
1054 INSTALL="$ac_install_sh"
1057 echo "$ac_t""$INSTALL" 1>&6
1059 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1060 # It thinks the first close brace ends the variable substitution.
1061 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1063 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1068 . ${srcdir}/../../bfd/configure.host
1074 # Extract the first word of "ranlib", so it can be a program name with args.
1075 set dummy ranlib; ac_word=$2
1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1077 echo "configure:1078: checking for $ac_word" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1081 if test -n "$RANLIB"; then
1082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1086 for ac_dir in $ac_dummy; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1089 ac_cv_prog_RANLIB="ranlib"
1094 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1097 RANLIB="$ac_cv_prog_RANLIB"
1098 if test -n "$RANLIB"; then
1099 echo "$ac_t""$RANLIB" 1>&6
1101 echo "$ac_t""no" 1>&6
1105 # Put a plausible default for CC_FOR_BUILD in Makefile.
1106 if test "x$cross_compiling" = "xno"; then
1107 CC_FOR_BUILD='$(CC)'
1114 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1115 echo "configure:1116: checking how to run the C preprocessor" >&5
1116 # On Suns, sometimes $CPP names a directory.
1117 if test -n "$CPP" && test -d "$CPP"; then
1120 if test -z "$CPP"; then
1121 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 # This must be in double quotes, not single quotes, because CPP may get
1125 # substituted into the Makefile and "${CC-cc}" will confuse make.
1127 # On the NeXT, cc -E runs the code through the compiler's parser,
1128 # not just through cpp.
1129 cat > conftest.$ac_ext <<EOF
1130 #line 1131 "configure"
1131 #include "confdefs.h"
1135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1136 { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1138 if test -z "$ac_err"; then
1142 echo "configure: failed program was:" >&5
1143 cat conftest.$ac_ext >&5
1145 CPP="${CC-cc} -E -traditional-cpp"
1146 cat > conftest.$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1153 { (eval echo configure:1154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1155 if test -z "$ac_err"; then
1159 echo "configure: failed program was:" >&5
1160 cat conftest.$ac_ext >&5
1162 CPP="${CC-cc} -nologo -E"
1163 cat > conftest.$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1170 { (eval echo configure:1171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1172 if test -z "$ac_err"; then
1176 echo "configure: failed program was:" >&5
1177 cat conftest.$ac_ext >&5
1186 ac_cv_prog_CPP="$CPP"
1188 CPP="$ac_cv_prog_CPP"
1190 ac_cv_prog_CPP="$CPP"
1192 echo "$ac_t""$CPP" 1>&6
1194 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1195 echo "configure:1196: checking whether ${MAKE-make} sets \${MAKE}" >&5
1196 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1197 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 cat > conftestmake <<\EOF
1202 @echo 'ac_maketemp="${MAKE}"'
1204 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1205 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1206 if test -n "$ac_maketemp"; then
1207 eval ac_cv_prog_make_${ac_make}_set=yes
1209 eval ac_cv_prog_make_${ac_make}_set=no
1213 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1217 echo "$ac_t""no" 1>&6
1218 SET_MAKE="MAKE=${MAKE-make}"
1221 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1222 echo "configure:1223: checking for POSIXized ISC" >&5
1223 if test -d /etc/conf/kconfig.d &&
1224 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1226 echo "$ac_t""yes" 1>&6
1227 ISC=yes # If later tests want to check for ISC.
1228 cat >> confdefs.h <<\EOF
1229 #define _POSIX_SOURCE 1
1232 if test "$GCC" = yes; then
1238 echo "$ac_t""no" 1>&6
1242 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1243 echo "configure:1244: checking for ANSI C header files" >&5
1244 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1256 { (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1258 if test -z "$ac_err"; then
1260 ac_cv_header_stdc=yes
1263 echo "configure: failed program was:" >&5
1264 cat conftest.$ac_ext >&5
1266 ac_cv_header_stdc=no
1270 if test $ac_cv_header_stdc = yes; then
1271 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1272 cat > conftest.$ac_ext <<EOF
1273 #line 1274 "configure"
1274 #include "confdefs.h"
1277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1278 egrep "memchr" >/dev/null 2>&1; then
1282 ac_cv_header_stdc=no
1288 if test $ac_cv_header_stdc = yes; then
1289 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1296 egrep "free" >/dev/null 2>&1; then
1300 ac_cv_header_stdc=no
1306 if test $ac_cv_header_stdc = yes; then
1307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1308 if test "$cross_compiling" = yes; then
1311 cat > conftest.$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1315 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1316 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1318 int main () { int i; for (i = 0; i < 256; i++)
1319 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1323 if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1327 echo "configure: failed program was:" >&5
1328 cat conftest.$ac_ext >&5
1330 ac_cv_header_stdc=no
1338 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1339 if test $ac_cv_header_stdc = yes; then
1340 cat >> confdefs.h <<\EOF
1341 #define STDC_HEADERS 1
1346 echo $ac_n "checking for working const""... $ac_c" 1>&6
1347 echo "configure:1348: checking for working const" >&5
1348 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1351 cat > conftest.$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1357 /* Ultrix mips cc rejects this. */
1358 typedef int charset[2]; const charset x;
1359 /* SunOS 4.1.1 cc rejects this. */
1360 char const *const *ccp;
1362 /* NEC SVR4.0.2 mips cc rejects this. */
1363 struct point {int x, y;};
1364 static struct point const zero = {0,0};
1365 /* AIX XL C 1.02.0.0 rejects this.
1366 It does not let you subtract one const X* pointer from another in an arm
1367 of an if-expression whose if-part is not a constant expression */
1368 const char *g = "string";
1369 ccp = &g + (g ? g-g : 0);
1370 /* HPUX 7.0 cc rejects these. */
1373 ccp = (char const *const *) p;
1374 { /* SCO 3.2v4 cc rejects this. */
1376 char const *s = 0 ? (char *) 0 : (char const *) 0;
1380 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1382 const int *foo = &x[0];
1385 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1386 typedef const int *iptr;
1390 { /* AIX XL C 1.02.0.0 rejects this saying
1391 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1392 struct s { int j; const int *ap[3]; };
1393 struct s *b; b->j = 5;
1395 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1401 if { (eval echo configure:1402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1413 echo "$ac_t""$ac_cv_c_const" 1>&6
1414 if test $ac_cv_c_const = no; then
1415 cat >> confdefs.h <<\EOF
1421 echo $ac_n "checking for inline""... $ac_c" 1>&6
1422 echo "configure:1423: checking for inline" >&5
1423 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1427 for ac_kw in inline __inline__ __inline; do
1428 cat > conftest.$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1436 if { (eval echo configure:1437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1438 ac_cv_c_inline=$ac_kw; break
1440 echo "configure: failed program was:" >&5
1441 cat conftest.$ac_ext >&5
1448 echo "$ac_t""$ac_cv_c_inline" 1>&6
1449 case "$ac_cv_c_inline" in
1451 no) cat >> confdefs.h <<\EOF
1455 *) cat >> confdefs.h <<EOF
1456 #define inline $ac_cv_c_inline
1461 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1462 echo "configure:1463: checking for off_t" >&5
1463 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1469 #include <sys/types.h>
1475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1476 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1478 ac_cv_type_off_t=yes
1486 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1487 if test $ac_cv_type_off_t = no; then
1488 cat >> confdefs.h <<\EOF
1494 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1495 echo "configure:1496: checking for size_t" >&5
1496 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1502 #include <sys/types.h>
1508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1509 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1511 ac_cv_type_size_t=yes
1514 ac_cv_type_size_t=no
1519 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1520 if test $ac_cv_type_size_t = no; then
1521 cat >> confdefs.h <<\EOF
1522 #define size_t unsigned
1527 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1528 # for constant arguments. Useless!
1529 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1530 echo "configure:1531: checking for working alloca.h" >&5
1531 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1539 char *p = alloca(2 * sizeof(int));
1542 if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1544 ac_cv_header_alloca_h=yes
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1549 ac_cv_header_alloca_h=no
1554 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1555 if test $ac_cv_header_alloca_h = yes; then
1556 cat >> confdefs.h <<\EOF
1557 #define HAVE_ALLOCA_H 1
1562 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1563 echo "configure:1564: checking for alloca" >&5
1564 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1572 # define alloca __builtin_alloca
1575 # include <malloc.h>
1576 # define alloca _alloca
1579 # include <alloca.h>
1584 # ifndef alloca /* predefined by HP cc +Olibcalls */
1593 char *p = (char *) alloca(1);
1596 if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1598 ac_cv_func_alloca_works=yes
1600 echo "configure: failed program was:" >&5
1601 cat conftest.$ac_ext >&5
1603 ac_cv_func_alloca_works=no
1608 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1609 if test $ac_cv_func_alloca_works = yes; then
1610 cat >> confdefs.h <<\EOF
1611 #define HAVE_ALLOCA 1
1616 if test $ac_cv_func_alloca_works = no; then
1617 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1618 # that cause trouble. Some versions do not even contain alloca or
1619 # contain a buggy version. If you still want to use their alloca,
1620 # use ar to extract alloca.o from them instead of compiling alloca.c.
1621 ALLOCA=alloca.${ac_objext}
1622 cat >> confdefs.h <<\EOF
1627 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1628 echo "configure:1629: checking whether alloca needs Cray hooks" >&5
1629 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1632 cat > conftest.$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1635 #if defined(CRAY) && ! defined(CRAY2)
1642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1643 egrep "webecray" >/dev/null 2>&1; then
1654 echo "$ac_t""$ac_cv_os_cray" 1>&6
1655 if test $ac_cv_os_cray = yes; then
1656 for ac_func in _getb67 GETB67 getb67; do
1657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1658 echo "configure:1659: checking for $ac_func" >&5
1659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 cat > conftest.$ac_ext <<EOF
1663 #line 1664 "configure"
1664 #include "confdefs.h"
1665 /* System header to define __stub macros and hopefully few prototypes,
1666 which can conflict with char $ac_func(); below. */
1668 /* Override any gcc2 internal prototype to avoid an error. */
1669 /* We use char because int might match the return type of a gcc2
1670 builtin and then its argument prototype would still apply. */
1675 /* The GNU C library defines this for functions which it implements
1676 to always fail with ENOSYS. Some functions are actually named
1677 something starting with __ and the normal name is an alias. */
1678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1686 if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1688 eval "ac_cv_func_$ac_func=yes"
1690 echo "configure: failed program was:" >&5
1691 cat conftest.$ac_ext >&5
1693 eval "ac_cv_func_$ac_func=no"
1698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1699 echo "$ac_t""yes" 1>&6
1700 cat >> confdefs.h <<EOF
1701 #define CRAY_STACKSEG_END $ac_func
1706 echo "$ac_t""no" 1>&6
1712 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1713 echo "configure:1714: checking stack direction for C alloca" >&5
1714 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 if test "$cross_compiling" = yes; then
1718 ac_cv_c_stack_direction=0
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1723 find_stack_direction ()
1725 static char *addr = 0;
1730 return find_stack_direction ();
1733 return (&dummy > addr) ? 1 : -1;
1737 exit (find_stack_direction() < 0);
1740 if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1742 ac_cv_c_stack_direction=1
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1747 ac_cv_c_stack_direction=-1
1754 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1755 cat >> confdefs.h <<EOF
1756 #define STACK_DIRECTION $ac_cv_c_stack_direction
1761 for ac_hdr in unistd.h
1763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1765 echo "configure:1766: checking for $ac_hdr" >&5
1766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1775 { (eval echo configure:1776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1777 if test -z "$ac_err"; then
1779 eval "ac_cv_header_$ac_safe=yes"
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1785 eval "ac_cv_header_$ac_safe=no"
1789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1790 echo "$ac_t""yes" 1>&6
1791 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1792 cat >> confdefs.h <<EOF
1793 #define $ac_tr_hdr 1
1797 echo "$ac_t""no" 1>&6
1801 for ac_func in getpagesize
1803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1804 echo "configure:1805: checking for $ac_func" >&5
1805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 cat > conftest.$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $ac_func(); below. */
1814 /* Override any gcc2 internal prototype to avoid an error. */
1815 /* We use char because int might match the return type of a gcc2
1816 builtin and then its argument prototype would still apply. */
1821 /* The GNU C library defines this for functions which it implements
1822 to always fail with ENOSYS. Some functions are actually named
1823 something starting with __ and the normal name is an alias. */
1824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1832 if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1834 eval "ac_cv_func_$ac_func=yes"
1836 echo "configure: failed program was:" >&5
1837 cat conftest.$ac_ext >&5
1839 eval "ac_cv_func_$ac_func=no"
1844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1845 echo "$ac_t""yes" 1>&6
1846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1847 cat >> confdefs.h <<EOF
1848 #define $ac_tr_func 1
1852 echo "$ac_t""no" 1>&6
1856 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1857 echo "configure:1858: checking for working mmap" >&5
1858 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 if test "$cross_compiling" = yes; then
1862 ac_cv_func_mmap_fixed_mapped=no
1864 cat > conftest.$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1868 /* Thanks to Mike Haertel and Jim Avera for this test.
1869 Here is a matrix of mmap possibilities:
1870 mmap private not fixed
1871 mmap private fixed at somewhere currently unmapped
1872 mmap private fixed at somewhere already mapped
1873 mmap shared not fixed
1874 mmap shared fixed at somewhere currently unmapped
1875 mmap shared fixed at somewhere already mapped
1876 For private mappings, we should verify that changes cannot be read()
1877 back from the file, nor mmap's back from the file at a different
1878 address. (There have been systems where private was not correctly
1879 implemented like the infamous i386 svr4.0, and systems where the
1880 VM page cache was not coherent with the filesystem buffer cache
1881 like early versions of FreeBSD and possibly contemporary NetBSD.)
1882 For shared mappings, we should conversely verify that changes get
1883 propogated back to all the places they're supposed to be.
1885 Grep wants private fixed already mapped.
1886 The main things grep needs to know about mmap are:
1887 * does it exist and is it safe to write into the mmap'd area
1888 * how to use it (BSD variants) */
1889 #include <sys/types.h>
1891 #include <sys/mman.h>
1893 /* This mess was copied from the GNU getpagesize.h. */
1894 #ifndef HAVE_GETPAGESIZE
1895 # ifdef HAVE_UNISTD_H
1896 # include <unistd.h>
1899 /* Assume that all systems that can run configure have sys/param.h. */
1900 # ifndef HAVE_SYS_PARAM_H
1901 # define HAVE_SYS_PARAM_H 1
1904 # ifdef _SC_PAGESIZE
1905 # define getpagesize() sysconf(_SC_PAGESIZE)
1906 # else /* no _SC_PAGESIZE */
1907 # ifdef HAVE_SYS_PARAM_H
1908 # include <sys/param.h>
1909 # ifdef EXEC_PAGESIZE
1910 # define getpagesize() EXEC_PAGESIZE
1911 # else /* no EXEC_PAGESIZE */
1913 # define getpagesize() NBPG * CLSIZE
1916 # endif /* no CLSIZE */
1917 # else /* no NBPG */
1919 # define getpagesize() NBPC
1920 # else /* no NBPC */
1922 # define getpagesize() PAGESIZE
1923 # endif /* PAGESIZE */
1924 # endif /* no NBPC */
1925 # endif /* no NBPG */
1926 # endif /* no EXEC_PAGESIZE */
1927 # else /* no HAVE_SYS_PARAM_H */
1928 # define getpagesize() 8192 /* punt totally */
1929 # endif /* no HAVE_SYS_PARAM_H */
1930 # endif /* no _SC_PAGESIZE */
1932 #endif /* no HAVE_GETPAGESIZE */
1935 extern "C" { void *malloc(unsigned); }
1943 char *data, *data2, *data3;
1947 pagesize = getpagesize();
1950 * First, make a file with some known garbage in it.
1952 data = malloc(pagesize);
1955 for (i = 0; i < pagesize; ++i)
1956 *(data + i) = rand();
1958 fd = creat("conftestmmap", 0600);
1961 if (write(fd, data, pagesize) != pagesize)
1966 * Next, try to mmap the file at a fixed address which
1967 * already has something else allocated at it. If we can,
1968 * also make sure that we see the same garbage.
1970 fd = open("conftestmmap", O_RDWR);
1973 data2 = malloc(2 * pagesize);
1976 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1977 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1978 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1980 for (i = 0; i < pagesize; ++i)
1981 if (*(data + i) != *(data2 + i))
1985 * Finally, make sure that changes to the mapped area
1986 * do not percolate back to the file as seen by read().
1987 * (This is a bug on some variants of i386 svr4.0.)
1989 for (i = 0; i < pagesize; ++i)
1990 *(data2 + i) = *(data2 + i) + 1;
1991 data3 = malloc(pagesize);
1994 if (read(fd, data3, pagesize) != pagesize)
1996 for (i = 0; i < pagesize; ++i)
1997 if (*(data + i) != *(data3 + i))
2000 unlink("conftestmmap");
2005 if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2007 ac_cv_func_mmap_fixed_mapped=yes
2009 echo "configure: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2012 ac_cv_func_mmap_fixed_mapped=no
2019 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2020 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2021 cat >> confdefs.h <<\EOF
2028 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2029 unistd.h values.h sys/param.h
2031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2033 echo "configure:2034: checking for $ac_hdr" >&5
2034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 cat > conftest.$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2043 { (eval echo configure:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2045 if test -z "$ac_err"; then
2047 eval "ac_cv_header_$ac_safe=yes"
2050 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2053 eval "ac_cv_header_$ac_safe=no"
2057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2058 echo "$ac_t""yes" 1>&6
2059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2060 cat >> confdefs.h <<EOF
2061 #define $ac_tr_hdr 1
2065 echo "$ac_t""no" 1>&6
2069 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2070 __argz_count __argz_stringify __argz_next
2072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2073 echo "configure:2074: checking for $ac_func" >&5
2074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 cat > conftest.$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2080 /* System header to define __stub macros and hopefully few prototypes,
2081 which can conflict with char $ac_func(); below. */
2083 /* Override any gcc2 internal prototype to avoid an error. */
2084 /* We use char because int might match the return type of a gcc2
2085 builtin and then its argument prototype would still apply. */
2090 /* The GNU C library defines this for functions which it implements
2091 to always fail with ENOSYS. Some functions are actually named
2092 something starting with __ and the normal name is an alias. */
2093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2101 if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2103 eval "ac_cv_func_$ac_func=yes"
2105 echo "configure: failed program was:" >&5
2106 cat conftest.$ac_ext >&5
2108 eval "ac_cv_func_$ac_func=no"
2113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2114 echo "$ac_t""yes" 1>&6
2115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2116 cat >> confdefs.h <<EOF
2117 #define $ac_tr_func 1
2121 echo "$ac_t""no" 1>&6
2126 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2127 for ac_func in stpcpy
2129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2130 echo "configure:2131: checking for $ac_func" >&5
2131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 cat > conftest.$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2137 /* System header to define __stub macros and hopefully few prototypes,
2138 which can conflict with char $ac_func(); below. */
2140 /* Override any gcc2 internal prototype to avoid an error. */
2141 /* We use char because int might match the return type of a gcc2
2142 builtin and then its argument prototype would still apply. */
2147 /* The GNU C library defines this for functions which it implements
2148 to always fail with ENOSYS. Some functions are actually named
2149 something starting with __ and the normal name is an alias. */
2150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2158 if { (eval echo configure:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2160 eval "ac_cv_func_$ac_func=yes"
2162 echo "configure: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2165 eval "ac_cv_func_$ac_func=no"
2170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2171 echo "$ac_t""yes" 1>&6
2172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2173 cat >> confdefs.h <<EOF
2174 #define $ac_tr_func 1
2178 echo "$ac_t""no" 1>&6
2183 if test "${ac_cv_func_stpcpy}" = "yes"; then
2184 cat >> confdefs.h <<\EOF
2185 #define HAVE_STPCPY 1
2190 if test $ac_cv_header_locale_h = yes; then
2191 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2192 echo "configure:2193: checking for LC_MESSAGES" >&5
2193 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2196 cat > conftest.$ac_ext <<EOF
2197 #line 2198 "configure"
2198 #include "confdefs.h"
2204 if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2206 am_cv_val_LC_MESSAGES=yes
2208 echo "configure: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2211 am_cv_val_LC_MESSAGES=no
2216 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2217 if test $am_cv_val_LC_MESSAGES = yes; then
2218 cat >> confdefs.h <<\EOF
2219 #define HAVE_LC_MESSAGES 1
2224 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2225 echo "configure:2226: checking whether NLS is requested" >&5
2226 # Check whether --enable-nls or --disable-nls was given.
2227 if test "${enable_nls+set}" = set; then
2228 enableval="$enable_nls"
2234 echo "$ac_t""$USE_NLS" 1>&6
2237 USE_INCLUDED_LIBINTL=no
2239 if test "$USE_NLS" = "yes"; then
2240 cat >> confdefs.h <<\EOF
2241 #define ENABLE_NLS 1
2244 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2245 echo "configure:2246: checking whether included gettext is requested" >&5
2246 # Check whether --with-included-gettext or --without-included-gettext was given.
2247 if test "${with_included_gettext+set}" = set; then
2248 withval="$with_included_gettext"
2249 nls_cv_force_use_gnu_gettext=$withval
2251 nls_cv_force_use_gnu_gettext=no
2254 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2256 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2257 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2259 nls_cv_header_libgt=
2262 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2263 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2264 echo "configure:2265: checking for libintl.h" >&5
2265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2271 #include <libintl.h>
2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2276 if test -z "$ac_err"; then
2278 eval "ac_cv_header_$ac_safe=yes"
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2284 eval "ac_cv_header_$ac_safe=no"
2288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2291 echo "configure:2292: checking for gettext in libc" >&5
2292 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2298 #include <libintl.h>
2300 return (int) gettext ("")
2303 if { (eval echo configure:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2305 gt_cv_func_gettext_libc=yes
2307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2310 gt_cv_func_gettext_libc=no
2315 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2317 if test "$gt_cv_func_gettext_libc" != "yes"; then
2318 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2319 echo "configure:2320: checking for bindtextdomain in -lintl" >&5
2320 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2324 ac_save_LIBS="$LIBS"
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2329 /* Override any gcc2 internal prototype to avoid an error. */
2330 /* We use char because int might match the return type of a gcc2
2331 builtin and then its argument prototype would still apply. */
2332 char bindtextdomain();
2338 if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2340 eval "ac_cv_lib_$ac_lib_var=yes"
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2345 eval "ac_cv_lib_$ac_lib_var=no"
2348 LIBS="$ac_save_LIBS"
2351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2352 echo "$ac_t""yes" 1>&6
2353 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2354 echo "configure:2355: checking for gettext in libintl" >&5
2355 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2363 return (int) gettext ("")
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368 gt_cv_func_gettext_libintl=yes
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2373 gt_cv_func_gettext_libintl=no
2378 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2380 echo "$ac_t""no" 1>&6
2385 if test "$gt_cv_func_gettext_libc" = "yes" \
2386 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2387 cat >> confdefs.h <<\EOF
2388 #define HAVE_GETTEXT 1
2391 # Extract the first word of "msgfmt", so it can be a program name with args.
2392 set dummy msgfmt; ac_word=$2
2393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_word" >&5
2395 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2400 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2404 for ac_dir in $PATH; do
2405 test -z "$ac_dir" && ac_dir=.
2406 if test -f $ac_dir/$ac_word; then
2407 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2408 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2414 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2418 MSGFMT="$ac_cv_path_MSGFMT"
2419 if test -n "$MSGFMT"; then
2420 echo "$ac_t""$MSGFMT" 1>&6
2422 echo "$ac_t""no" 1>&6
2424 if test "$MSGFMT" != "no"; then
2425 for ac_func in dcgettext
2427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2428 echo "configure:2429: checking for $ac_func" >&5
2429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2435 /* System header to define __stub macros and hopefully few prototypes,
2436 which can conflict with char $ac_func(); below. */
2438 /* Override any gcc2 internal prototype to avoid an error. */
2439 /* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2445 /* The GNU C library defines this for functions which it implements
2446 to always fail with ENOSYS. Some functions are actually named
2447 something starting with __ and the normal name is an alias. */
2448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2456 if { (eval echo configure:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2458 eval "ac_cv_func_$ac_func=yes"
2460 echo "configure: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2463 eval "ac_cv_func_$ac_func=no"
2468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2469 echo "$ac_t""yes" 1>&6
2470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2471 cat >> confdefs.h <<EOF
2472 #define $ac_tr_func 1
2476 echo "$ac_t""no" 1>&6
2480 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2481 set dummy gmsgfmt; ac_word=$2
2482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2483 echo "configure:2484: checking for $ac_word" >&5
2484 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2489 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2492 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2497 for ac_dir in $ac_dummy; do
2498 test -z "$ac_dir" && ac_dir=.
2499 if test -f $ac_dir/$ac_word; then
2500 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2505 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2509 GMSGFMT="$ac_cv_path_GMSGFMT"
2510 if test -n "$GMSGFMT"; then
2511 echo "$ac_t""$GMSGFMT" 1>&6
2513 echo "$ac_t""no" 1>&6
2516 # Extract the first word of "xgettext", so it can be a program name with args.
2517 set dummy xgettext; ac_word=$2
2518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2519 echo "configure:2520: checking for $ac_word" >&5
2520 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2525 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2529 for ac_dir in $PATH; do
2530 test -z "$ac_dir" && ac_dir=.
2531 if test -f $ac_dir/$ac_word; then
2532 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2533 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2539 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2543 XGETTEXT="$ac_cv_path_XGETTEXT"
2544 if test -n "$XGETTEXT"; then
2545 echo "$ac_t""$XGETTEXT" 1>&6
2547 echo "$ac_t""no" 1>&6
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2555 extern int _nl_msg_cat_cntr;
2556 return _nl_msg_cat_cntr
2559 if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2576 echo "$ac_t""no" 1>&6
2581 if test "$CATOBJEXT" = "NONE"; then
2582 nls_cv_use_gnu_gettext=yes
2586 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2587 INTLOBJS="\$(GETTOBJS)"
2588 # Extract the first word of "msgfmt", so it can be a program name with args.
2589 set dummy msgfmt; ac_word=$2
2590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2591 echo "configure:2592: checking for $ac_word" >&5
2592 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2597 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2601 for ac_dir in $PATH; do
2602 test -z "$ac_dir" && ac_dir=.
2603 if test -f $ac_dir/$ac_word; then
2604 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2605 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2611 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2615 MSGFMT="$ac_cv_path_MSGFMT"
2616 if test -n "$MSGFMT"; then
2617 echo "$ac_t""$MSGFMT" 1>&6
2619 echo "$ac_t""no" 1>&6
2622 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2623 set dummy gmsgfmt; ac_word=$2
2624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2625 echo "configure:2626: checking for $ac_word" >&5
2626 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2631 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2634 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2639 for ac_dir in $ac_dummy; do
2640 test -z "$ac_dir" && ac_dir=.
2641 if test -f $ac_dir/$ac_word; then
2642 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2647 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2651 GMSGFMT="$ac_cv_path_GMSGFMT"
2652 if test -n "$GMSGFMT"; then
2653 echo "$ac_t""$GMSGFMT" 1>&6
2655 echo "$ac_t""no" 1>&6
2658 # Extract the first word of "xgettext", so it can be a program name with args.
2659 set dummy xgettext; ac_word=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2667 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2671 for ac_dir in $PATH; do
2672 test -z "$ac_dir" && ac_dir=.
2673 if test -f $ac_dir/$ac_word; then
2674 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2675 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2681 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2685 XGETTEXT="$ac_cv_path_XGETTEXT"
2686 if test -n "$XGETTEXT"; then
2687 echo "$ac_t""$XGETTEXT" 1>&6
2689 echo "$ac_t""no" 1>&6
2693 USE_INCLUDED_LIBINTL=yes
2697 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2699 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2700 nls_cv_header_intl=libintl.h
2701 nls_cv_header_libgt=libgettext.h
2704 if test "$XGETTEXT" != ":"; then
2705 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2708 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2713 # We need to process the po/ directory.
2717 nls_cv_header_intl=libintl.h
2718 nls_cv_header_libgt=libgettext.h
2721 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2722 # because some of the sources are only built for this goal.
2723 if test "$PACKAGE" = gettext; then
2725 USE_INCLUDED_LIBINTL=yes
2728 for lang in $ALL_LINGUAS; do
2729 GMOFILES="$GMOFILES $lang.gmo"
2730 POFILES="$POFILES $lang.po"
2746 if test "x$CATOBJEXT" != "x"; then
2747 if test "x$ALL_LINGUAS" = "x"; then
2750 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2751 echo "configure:2752: checking for catalogs to be installed" >&5
2753 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2754 case "$ALL_LINGUAS" in
2755 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2758 LINGUAS=$NEW_LINGUAS
2759 echo "$ac_t""$LINGUAS" 1>&6
2762 if test -n "$LINGUAS"; then
2763 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2767 if test $ac_cv_header_locale_h = yes; then
2768 INCLUDE_LOCALE_H="#include <locale.h>"
2771 /* The system does not provide the header <locale.h>. Take care yourself. */"
2775 if test -f $srcdir/po2tbl.sed.in; then
2776 if test "$CATOBJEXT" = ".cat"; then
2777 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2778 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2779 echo "configure:2780: checking for linux/version.h" >&5
2780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 cat > conftest.$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2786 #include <linux/version.h>
2788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2789 { (eval echo configure:2790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2791 if test -z "$ac_err"; then
2793 eval "ac_cv_header_$ac_safe=yes"
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2799 eval "ac_cv_header_$ac_safe=no"
2803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2804 echo "$ac_t""yes" 1>&6
2807 echo "$ac_t""no" 1>&6
2812 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2814 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2815 $srcdir/po2tbl.sed.in > po2tbl.sed
2818 if test "$PACKAGE" = "gettext"; then
2828 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2834 if test -d $srcdir/po; then
2835 test -d po || mkdir po
2836 if test "x$srcdir" != "x."; then
2837 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2838 posrcprefix="$srcdir/"
2840 posrcprefix="../$srcdir/"
2846 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2847 < $srcdir/po/POTFILES.in > po/POTFILES
2851 for ac_hdr in stdlib.h time.h unistd.h
2853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $ac_hdr" >&5
2856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2865 { (eval echo configure:2866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2867 if test -z "$ac_err"; then
2869 eval "ac_cv_header_$ac_safe=yes"
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2875 eval "ac_cv_header_$ac_safe=no"
2879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2882 cat >> confdefs.h <<EOF
2883 #define $ac_tr_hdr 1
2887 echo "$ac_t""no" 1>&6
2892 echo $ac_n "checking whether printf must be declared""... $ac_c" 1>&6
2893 echo "configure:2894: checking whether printf must be declared" >&5
2894 if eval "test \"`echo '$''{'sim_cv_decl_needed_printf'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2897 cat > conftest.$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2902 int (*pfn) = (int (*)) printf
2905 if { (eval echo configure:2906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2907 sim_cv_decl_needed_printf=no
2909 echo "configure: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2912 sim_cv_decl_needed_printf=yes
2917 echo "$ac_t""$sim_cv_decl_needed_printf" 1>&6
2918 if test $sim_cv_decl_needed_printf = yes; then
2919 cat >> confdefs.h <<\EOF
2920 #define NEED_DECLARATION_PRINTF 1
2926 cat > confcache <<\EOF
2927 # This file is a shell script that caches the results of configure
2928 # tests run on this system so they can be shared between configure
2929 # scripts and configure runs. It is not useful on other systems.
2930 # If it contains results you don't want to keep, you may remove or edit it.
2932 # By default, configure uses ./config.cache as the cache file,
2933 # creating it if it does not exist already. You can give configure
2934 # the --cache-file=FILE option to use a different cache file; that is
2935 # what configure does when it calls configure scripts in
2936 # subdirectories, so they share the cache.
2937 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2938 # config.status only pays attention to the cache file if you give it the
2939 # --recheck option to rerun configure.
2942 # The following way of writing the cache mishandles newlines in values,
2943 # but we know of no workaround that is simple, portable, and efficient.
2944 # So, don't put newlines in cache variables' values.
2945 # Ultrix sh set writes to stderr and can't be redirected directly,
2946 # and sets the high bit in the cache file unless we assign to the vars.
2948 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2950 # `set' does not quote correctly, so add quotes (double-quote substitution
2951 # turns \\\\ into \\, and sed turns \\ into \).
2953 -e "s/'/'\\\\''/g" \
2954 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2957 # `set' quotes correctly as required by POSIX, so do not add quotes.
2958 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2961 if cmp -s $cache_file confcache; then
2964 if test -w $cache_file; then
2965 echo "updating cache $cache_file"
2966 cat confcache > $cache_file
2968 echo "not updating unwritable cache $cache_file"
2973 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2975 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2976 # Let make expand exec_prefix.
2977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2979 # Any assignment to VPATH causes Sun make to only execute
2980 # the first set of double-colon rules, so remove it if not needed.
2981 # If there is a colon in the path, we need to keep it.
2982 if test "x$srcdir" = x.; then
2983 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2986 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2988 DEFS=-DHAVE_CONFIG_H
2990 # Without the "./", some shells look in PATH for config.status.
2991 : ${CONFIG_STATUS=./config.status}
2993 echo creating $CONFIG_STATUS
2994 rm -f $CONFIG_STATUS
2995 cat > $CONFIG_STATUS <<EOF
2997 # Generated automatically by configure.
2998 # Run this file to recreate the current configuration.
2999 # This directory was configured as follows,
3000 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3002 # $0 $ac_configure_args
3004 # Compiler output produced by configure, useful for debugging
3005 # configure, is in ./config.log if it exists.
3007 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3010 case "\$ac_option" in
3011 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3012 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3013 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3014 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3015 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3017 -help | --help | --hel | --he | --h)
3018 echo "\$ac_cs_usage"; exit 0 ;;
3019 *) echo "\$ac_cs_usage"; exit 1 ;;
3023 ac_given_srcdir=$srcdir
3024 ac_given_INSTALL="$INSTALL"
3026 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3028 cat >> $CONFIG_STATUS <<EOF
3030 # Protect against being on the right side of a sed subst in config.status.
3031 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3032 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3035 s%@sim_environment@%$sim_environment%g
3036 s%@sim_alignment@%$sim_alignment%g
3037 s%@sim_assert@%$sim_assert%g
3038 s%@sim_bitsize@%$sim_bitsize%g
3039 s%@sim_endian@%$sim_endian%g
3040 s%@sim_hostendian@%$sim_hostendian%g
3041 s%@sim_float@%$sim_float%g
3042 s%@sim_scache@%$sim_scache%g
3043 s%@sim_default_model@%$sim_default_model%g
3044 s%@sim_hw_cflags@%$sim_hw_cflags%g
3045 s%@sim_hw_objs@%$sim_hw_objs%g
3046 s%@sim_hw@%$sim_hw%g
3047 s%@sim_inline@%$sim_inline%g
3048 s%@sim_packages@%$sim_packages%g
3049 s%@sim_regparm@%$sim_regparm%g
3050 s%@sim_reserved_bits@%$sim_reserved_bits%g
3051 s%@sim_smp@%$sim_smp%g
3052 s%@sim_stdcall@%$sim_stdcall%g
3053 s%@sim_xor_endian@%$sim_xor_endian%g
3054 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
3055 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
3057 s%@CFLAGS@%$CFLAGS%g
3058 s%@CPPFLAGS@%$CPPFLAGS%g
3059 s%@CXXFLAGS@%$CXXFLAGS%g
3060 s%@FFLAGS@%$FFLAGS%g
3062 s%@LDFLAGS@%$LDFLAGS%g
3064 s%@exec_prefix@%$exec_prefix%g
3065 s%@prefix@%$prefix%g
3066 s%@program_transform_name@%$program_transform_name%g
3067 s%@bindir@%$bindir%g
3068 s%@sbindir@%$sbindir%g
3069 s%@libexecdir@%$libexecdir%g
3070 s%@datadir@%$datadir%g
3071 s%@sysconfdir@%$sysconfdir%g
3072 s%@sharedstatedir@%$sharedstatedir%g
3073 s%@localstatedir@%$localstatedir%g
3074 s%@libdir@%$libdir%g
3075 s%@includedir@%$includedir%g
3076 s%@oldincludedir@%$oldincludedir%g
3077 s%@infodir@%$infodir%g
3078 s%@mandir@%$mandir%g
3080 s%@host_alias@%$host_alias%g
3081 s%@host_cpu@%$host_cpu%g
3082 s%@host_vendor@%$host_vendor%g
3083 s%@host_os@%$host_os%g
3084 s%@target@%$target%g
3085 s%@target_alias@%$target_alias%g
3086 s%@target_cpu@%$target_cpu%g
3087 s%@target_vendor@%$target_vendor%g
3088 s%@target_os@%$target_os%g
3090 s%@build_alias@%$build_alias%g
3091 s%@build_cpu@%$build_cpu%g
3092 s%@build_vendor@%$build_vendor%g
3093 s%@build_os@%$build_os%g
3095 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3096 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3097 s%@INSTALL_DATA@%$INSTALL_DATA%g
3098 s%@HDEFINES@%$HDEFINES%g
3100 s%@RANLIB@%$RANLIB%g
3101 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3102 s%@SET_MAKE@%$SET_MAKE%g
3104 s%@ALLOCA@%$ALLOCA%g
3105 s%@USE_NLS@%$USE_NLS%g
3106 s%@MSGFMT@%$MSGFMT%g
3107 s%@GMSGFMT@%$GMSGFMT%g
3108 s%@XGETTEXT@%$XGETTEXT%g
3109 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3110 s%@CATALOGS@%$CATALOGS%g
3111 s%@CATOBJEXT@%$CATOBJEXT%g
3112 s%@DATADIRNAME@%$DATADIRNAME%g
3113 s%@GMOFILES@%$GMOFILES%g
3114 s%@INSTOBJEXT@%$INSTOBJEXT%g
3115 s%@INTLDEPS@%$INTLDEPS%g
3116 s%@INTLLIBS@%$INTLLIBS%g
3117 s%@INTLOBJS@%$INTLOBJS%g
3118 s%@POFILES@%$POFILES%g
3120 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3122 s%@GT_YES@%$GT_YES%g
3123 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3129 cat >> $CONFIG_STATUS <<\EOF
3131 # Split the substitutions into bite-sized pieces for seds with
3132 # small command number limits, like on Digital OSF/1 and HP-UX.
3133 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3134 ac_file=1 # Number of current file.
3135 ac_beg=1 # First line for current file.
3136 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3139 while $ac_more_lines; do
3140 if test $ac_beg -gt 1; then
3141 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3143 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3145 if test ! -s conftest.s$ac_file; then
3147 rm -f conftest.s$ac_file
3149 if test -z "$ac_sed_cmds"; then
3150 ac_sed_cmds="sed -f conftest.s$ac_file"
3152 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3154 ac_file=`expr $ac_file + 1`
3156 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3159 if test -z "$ac_sed_cmds"; then
3164 cat >> $CONFIG_STATUS <<EOF
3166 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3168 cat >> $CONFIG_STATUS <<\EOF
3169 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3170 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3172 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3173 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3174 *) ac_file_in="${ac_file}.in" ;;
3177 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3179 # Remove last slash and all that follows it. Not all systems have dirname.
3180 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3181 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3182 # The file is in a subdirectory.
3183 test ! -d "$ac_dir" && mkdir "$ac_dir"
3184 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3185 # A "../" for each directory in $ac_dir_suffix.
3186 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3188 ac_dir_suffix= ac_dots=
3191 case "$ac_given_srcdir" in
3193 if test -z "$ac_dots"; then top_srcdir=.
3194 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3195 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3197 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3198 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3201 case "$ac_given_INSTALL" in
3202 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3203 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3206 echo creating "$ac_file"
3208 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3210 *Makefile*) ac_comsub="1i\\
3211 # $configure_input" ;;
3215 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3217 s%@configure_input@%$configure_input%g
3218 s%@srcdir@%$srcdir%g
3219 s%@top_srcdir@%$top_srcdir%g
3220 s%@INSTALL@%$INSTALL%g
3221 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3225 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3226 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3228 # ac_d sets the value in "#define NAME VALUE" lines.
3229 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3230 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3233 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3234 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3235 ac_uB='\([ ]\)%\1#\2define\3'
3238 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3239 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3240 ac_eB='$%\1#\2define\3'
3244 if test "${CONFIG_HEADERS+set}" != set; then
3246 cat >> $CONFIG_STATUS <<EOF
3247 CONFIG_HEADERS="config.h:config.in"
3249 cat >> $CONFIG_STATUS <<\EOF
3251 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3254 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3255 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3256 *) ac_file_in="${ac_file}.in" ;;
3259 echo creating $ac_file
3261 rm -f conftest.frag conftest.in conftest.out
3262 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3263 cat $ac_file_inputs > conftest.in
3267 # Transform confdefs.h into a sed script conftest.vals that substitutes
3268 # the proper values into config.h.in to produce config.h. And first:
3269 # Protect against being on the right side of a sed subst in config.status.
3270 # Protect against being in an unquoted here document in config.status.
3272 cat > conftest.hdr <<\EOF
3275 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3279 sed -n -f conftest.hdr confdefs.h > conftest.vals
3282 # This sed command replaces #undef with comments. This is necessary, for
3283 # example, in the case of _POSIX_SOURCE, which is predefined and required
3284 # on some systems where configure will not decide to define it.
3285 cat >> conftest.vals <<\EOF
3286 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3289 # Break up conftest.vals because some shells have a limit on
3290 # the size of here documents, and old seds have small limits too.
3295 ac_lines=`grep -c . conftest.vals`
3296 # grep -c gives empty output for an empty file on some AIX systems.
3297 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3298 # Write a limited-size here document to conftest.frag.
3299 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3300 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3302 sed -f conftest.frag conftest.in > conftest.out
3304 mv conftest.out conftest.in
3306 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3308 mv conftest.tail conftest.vals
3312 cat >> $CONFIG_STATUS <<\EOF
3313 rm -f conftest.frag conftest.h
3314 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3315 cat conftest.in >> conftest.h
3317 if cmp -s $ac_file conftest.h 2>/dev/null; then
3318 echo "$ac_file is unchanged"
3321 # Remove last slash and all that follows it. Not all systems have dirname.
3322 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3323 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3324 # The file is in a subdirectory.
3325 test ! -d "$ac_dir" && mkdir "$ac_dir"
3328 mv conftest.h $ac_file
3333 cat >> $CONFIG_STATUS <<EOF
3336 cat >> $CONFIG_STATUS <<\EOF
3337 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
3340 chmod +x $CONFIG_STATUS
3341 rm -fr confdefs* $ac_clean_files
3342 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1