45 sim_inline
="-DDEFAULT_INLINE=0"
81 # This file is derived from `gettext.m4'. The difference is that the
82 # included macros assume Cygnus-style source and build trees.
84 # Macro to add for using GNU gettext.
85 # Ulrich Drepper <drepper@cygnus.com>, 1995.
87 # This file file be copied and used freely without restrictions. It can
88 # be used in projects which are not available under the GNU Public License
89 # but which still want to provide support for the GNU gettext functionality.
90 # Please note that the actual code is *not* freely available.
98 # Search path for a program which passes the given test.
99 # Ulrich Drepper <drepper@cygnus.com>, 1996.
101 # This file file be copied and used freely without restrictions. It can
102 # be used in projects which are not available under the GNU Public License
103 # but which still want to provide support for the GNU gettext functionality.
104 # Please note that the actual code is *not* freely available.
110 # Check whether LC_MESSAGES is available in <locale.h>.
111 # Ulrich Drepper <drepper@cygnus.com>, 1995.
113 # This file file be copied and used freely without restrictions. It can
114 # be used in projects which are not available under the GNU Public License
115 # but which still want to provide support for the GNU gettext functionality.
116 # Please note that the actual code is *not* freely available.
122 # Check to see if we're running under Cygwin32, without using
123 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
124 # Otherwise set it to "no".
128 # Check to see if we're running under Win32, without using
129 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
130 # Otherwise set it to "".
135 # Guess values for system-dependent variables and create Makefiles.
136 # Generated automatically using autoconf version 2.12.1
137 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
139 # This configure script is free software; the Free Software Foundation
140 # gives unlimited permission to copy, distribute and modify it.
144 ac_default_prefix
=/usr
/local
145 # Any additions from configure.in:
147 --disable-nls do not use Native Language Support"
149 --with-included-gettext use the GNU gettext library included here"
151 # Initialize some variables set by options.
152 # The variables have the same names as the options, with
153 # dashes changed to underlines.
155 cache_file
=.
/config.cache
164 program_transform_name
=s
,x
,x
,
172 bindir
='${exec_prefix}/bin'
173 sbindir
='${exec_prefix}/sbin'
174 libexecdir
='${exec_prefix}/libexec'
175 datadir
='${prefix}/share'
176 sysconfdir
='${prefix}/etc'
177 sharedstatedir
='${prefix}/com'
178 localstatedir
='${prefix}/var'
179 libdir
='${exec_prefix}/lib'
180 includedir
='${prefix}/include'
181 oldincludedir
='/usr/include'
182 infodir
='${prefix}/info'
183 mandir
='${prefix}/man'
185 # Initialize some other variables.
188 SHELL
=${CONFIG_SHELL-/bin/sh}
189 # Maximum number of lines to put in a shell here document.
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
204 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
208 # Accept the important Cygnus configure options, so we can diagnose typos.
212 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
214 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
215 bindir
="$ac_optarg" ;;
217 -build |
--build |
--buil |
--bui |
--bu)
219 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
220 build
="$ac_optarg" ;;
222 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
223 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
224 ac_prev
=cache_file
;;
225 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
226 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
227 cache_file
="$ac_optarg" ;;
229 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
231 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
233 datadir
="$ac_optarg" ;;
235 -disable-* |
--disable-*)
236 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
242 eval "enable_${ac_feature}=no" ;;
244 -enable-* |
--enable-*)
245 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
246 # Reject names that are not valid shell variable names.
247 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
248 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
250 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
255 eval "enable_${ac_feature}='$ac_optarg'" ;;
257 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
258 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
259 |
--exec |
--exe |
--ex)
260 ac_prev
=exec_prefix
;;
261 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
262 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
263 |
--exec=* |
--exe=* |
--ex=*)
264 exec_prefix
="$ac_optarg" ;;
266 -gas |
--gas |
--ga |
--g)
267 # Obsolete; use --with-gas.
270 -help |
--help |
--hel |
--he)
271 # Omit some internal or obsolete options to make the list less imposing.
272 # This message is too long to be a string in the A/UX 3.1 sh.
274 Usage: configure [options] [host]
275 Options: [defaults in brackets after descriptions]
277 --cache-file=FILE cache test results in FILE
278 --help print this message
279 --no-create do not create output files
280 --quiet, --silent do not print \`checking...' messages
281 --version print the version of autoconf that created configure
282 Directory and file names:
283 --prefix=PREFIX install architecture-independent files in PREFIX
285 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
287 --bindir=DIR user executables in DIR [EPREFIX/bin]
288 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
289 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
290 --datadir=DIR read-only architecture-independent data in DIR
292 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
293 --sharedstatedir=DIR modifiable architecture-independent data in DIR
295 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
296 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
297 --includedir=DIR C header files in DIR [PREFIX/include]
298 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
299 --infodir=DIR info documentation in DIR [PREFIX/info]
300 --mandir=DIR man documentation in DIR [PREFIX/man]
301 --srcdir=DIR find the sources in DIR [configure dir or ..]
302 --program-prefix=PREFIX prepend PREFIX to installed program names
303 --program-suffix=SUFFIX append SUFFIX to installed program names
304 --program-transform-name=PROGRAM
305 run sed PROGRAM on installed program names
309 --build=BUILD configure for building on BUILD [BUILD=HOST]
310 --host=HOST configure for HOST [guessed]
311 --target=TARGET configure for TARGET [TARGET=HOST]
312 Features and packages:
313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
315 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
316 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
317 --x-includes=DIR X include files are in DIR
318 --x-libraries=DIR X library files are in DIR
320 if test -n "$ac_help"; then
321 echo "--enable and --with options recognized:$ac_help"
325 -host |
--host |
--hos |
--ho)
327 -host=* |
--host=* |
--hos=* |
--ho=*)
330 -includedir |
--includedir |
--includedi |
--included |
--include \
331 |
--includ |
--inclu |
--incl |
--inc)
332 ac_prev
=includedir
;;
333 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
334 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
335 includedir
="$ac_optarg" ;;
337 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
339 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
340 infodir
="$ac_optarg" ;;
342 -libdir |
--libdir |
--libdi |
--libd)
344 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
345 libdir
="$ac_optarg" ;;
347 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
348 |
--libexe |
--libex |
--libe)
349 ac_prev
=libexecdir
;;
350 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
351 |
--libexe=* |
--libex=* |
--libe=*)
352 libexecdir
="$ac_optarg" ;;
354 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
355 |
--localstate |
--localstat |
--localsta |
--localst \
356 |
--locals |
--local |
--loca |
--loc |
--lo)
357 ac_prev
=localstatedir
;;
358 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
359 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
360 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
361 localstatedir
="$ac_optarg" ;;
363 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
365 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
366 mandir
="$ac_optarg" ;;
369 # Obsolete; use --without-fp.
372 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
376 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
377 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
380 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
381 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
382 |
--oldin |
--oldi |
--old |
--ol |
--o)
383 ac_prev
=oldincludedir
;;
384 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
385 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
386 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
387 oldincludedir
="$ac_optarg" ;;
389 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
391 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
392 prefix
="$ac_optarg" ;;
394 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
395 |
--program-pre |
--program-pr |
--program-p)
396 ac_prev
=program_prefix
;;
397 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
398 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
399 program_prefix
="$ac_optarg" ;;
401 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
402 |
--program-suf |
--program-su |
--program-s)
403 ac_prev
=program_suffix
;;
404 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
405 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
406 program_suffix
="$ac_optarg" ;;
408 -program-transform-name |
--program-transform-name \
409 |
--program-transform-nam |
--program-transform-na \
410 |
--program-transform-n |
--program-transform- \
411 |
--program-transform |
--program-transfor \
412 |
--program-transfo |
--program-transf \
413 |
--program-trans |
--program-tran \
414 |
--progr-tra |
--program-tr |
--program-t)
415 ac_prev
=program_transform_name
;;
416 -program-transform-name=* |
--program-transform-name=* \
417 |
--program-transform-nam=* |
--program-transform-na=* \
418 |
--program-transform-n=* |
--program-transform-=* \
419 |
--program-transform=* |
--program-transfor=* \
420 |
--program-transfo=* |
--program-transf=* \
421 |
--program-trans=* |
--program-tran=* \
422 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
423 program_transform_name
="$ac_optarg" ;;
425 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
426 |
-silent |
--silent |
--silen |
--sile |
--sil)
429 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
431 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
433 sbindir
="$ac_optarg" ;;
435 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
436 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
437 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
439 ac_prev
=sharedstatedir
;;
440 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
441 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
442 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
444 sharedstatedir
="$ac_optarg" ;;
446 -site |
--site |
--sit)
448 -site=* |
--site=* |
--sit=*)
451 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
453 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
454 srcdir
="$ac_optarg" ;;
456 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
457 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
458 ac_prev
=sysconfdir
;;
459 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
460 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
461 sysconfdir
="$ac_optarg" ;;
463 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
465 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
466 target
="$ac_optarg" ;;
468 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
471 -version |
--version |
--versio |
--versi |
--vers)
472 echo "configure generated by autoconf version 2.12.1"
476 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
477 # Reject names that are not valid shell variable names.
478 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
479 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
481 ac_package
=`echo $ac_package| sed 's/-/_/g'`
486 eval "with_${ac_package}='$ac_optarg'" ;;
488 -without-* |
--without-*)
489 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
490 # Reject names that are not valid shell variable names.
491 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
492 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
494 ac_package
=`echo $ac_package| sed 's/-/_/g'`
495 eval "with_${ac_package}=no" ;;
498 # Obsolete; use --with-x.
501 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
502 |
--x-incl |
--x-inc |
--x-in |
--x-i)
503 ac_prev
=x_includes
;;
504 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
505 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
506 x_includes
="$ac_optarg" ;;
508 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
509 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
510 ac_prev
=x_libraries
;;
511 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
512 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
513 x_libraries
="$ac_optarg" ;;
515 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
519 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
520 echo "configure: warning: $ac_option: invalid host type" 1>&2
522 if test "x$nonopt" != xNONE
; then
523 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
531 if test -n "$ac_prev"; then
532 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
535 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
537 # File descriptor usage:
540 # 2 errors and warnings
541 # 3 some systems may open it to /dev/tty
542 # 4 used on the Kubota Titan
543 # 6 checking for... messages and results
544 # 5 compiler messages saved in config.log
545 if test "$silent" = yes; then
553 This file contains any messages produced by compilers while
554 running configure, to aid debugging if configure makes a mistake.
557 # Strip out --no-create and --no-recursion so they do not pile up.
558 # Also quote any args containing shell metacharacters.
563 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
564 |
--no-cr |
--no-c) ;;
565 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
566 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
567 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
568 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
569 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
574 # Only set these to C if already set. These must not be set unconditionally
575 # because not all systems understand e.g. LANG=C (notably SCO).
576 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
577 # Non-C LC_CTYPE values break the ctype check.
578 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
579 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
580 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
581 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
583 # confdefs.h avoids OS command line length limits that DEFS can exceed.
584 rm -rf conftest
* confdefs.h
585 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
588 # A filename unique to this package, relative to the directory that
589 # configure is in, which we can look for to find out if srcdir is correct.
590 ac_unique_file
=Makefile.
in
592 # Find the source files, if location was not specified.
593 if test -z "$srcdir"; then
594 ac_srcdir_defaulted
=yes
595 # Try the directory containing this script, then its parent.
597 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
598 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
600 if test ! -r $srcdir/$ac_unique_file; then
604 ac_srcdir_defaulted
=no
606 if test ! -r $srcdir/$ac_unique_file; then
607 if test "$ac_srcdir_defaulted" = yes; then
608 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
610 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
613 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
615 # Prefer explicitly selected file to automatically selected ones.
616 if test -z "$CONFIG_SITE"; then
617 if test "x$prefix" != xNONE
; then
618 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
620 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
623 for ac_site_file
in $CONFIG_SITE; do
624 if test -r "$ac_site_file"; then
625 echo "loading site script $ac_site_file"
630 if test -r "$cache_file"; then
631 echo "loading cache $cache_file"
634 echo "creating cache $cache_file"
639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
640 ac_cpp
='$CPP $CPPFLAGS'
641 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
642 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
643 cross_compiling
=$ac_cv_prog_cc_cross
645 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
646 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
647 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
654 ac_n
= ac_c
='\c' ac_t
=
662 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
663 if test -f $ac_dir/install-sh
; then
665 ac_install_sh
="$ac_aux_dir/install-sh -c"
667 elif test -f $ac_dir/install.sh
; then
669 ac_install_sh
="$ac_aux_dir/install.sh -c"
673 if test -z "$ac_aux_dir"; then
674 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
676 ac_config_guess
=$ac_aux_dir/config.guess
677 ac_config_sub
=$ac_aux_dir/config.sub
678 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
681 # Do some error checking and defaulting for the host and target type.
683 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
686 # 1. You are not allowed to specify --host, --target, and nonopt at the
688 # 2. Host defaults to nonopt.
689 # 3. If nonopt is not specified, then host defaults to the current host,
690 # as determined by config.guess.
691 # 4. Target and build default to nonopt.
692 # 5. If nonopt is not specified, then target and build default to host.
694 # The aliases save the names the user supplied, while $host etc.
695 # will get canonicalized.
696 case $host---$target---$nonopt in
697 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
698 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
702 # Make sure we can run config.sub.
703 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
704 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
707 echo $ac_n "checking host system type""... $ac_c" 1>&6
708 echo "configure:709: checking host system type" >&5
711 case "$host_alias" in
715 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
716 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
718 *) host_alias
=$nonopt ;;
722 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
723 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
724 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
725 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
726 echo "$ac_t""$host" 1>&6
728 echo $ac_n "checking target system type""... $ac_c" 1>&6
729 echo "configure:730: checking target system type" >&5
732 case "$target_alias" in
735 NONE
) target_alias
=$host_alias ;;
736 *) target_alias
=$nonopt ;;
740 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
741 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
742 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
743 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
744 echo "$ac_t""$target" 1>&6
746 echo $ac_n "checking build system type""... $ac_c" 1>&6
747 echo "configure:748: checking build system type" >&5
750 case "$build_alias" in
753 NONE
) build_alias
=$host_alias ;;
754 *) build_alias
=$nonopt ;;
758 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
759 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
760 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
761 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
762 echo "$ac_t""$build" 1>&6
764 test "$host_alias" != "$target_alias" &&
765 test "$program_prefix$program_suffix$program_transform_name" = \
767 program_prefix
=${target_alias}-
769 if test "$program_transform_name" = s
,x
,x
,; then
770 program_transform_name
=
772 # Double any \ or $. echo might interpret backslashes.
773 cat <<\EOF_SED
> conftestsed
774 s
,\\,\\\\,g
; s
,\$
,$$
,g
776 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
779 test "$program_prefix" != NONE
&&
780 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
781 # Use a double $ so make ignores it.
782 test "$program_suffix" != NONE
&&
783 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
785 # sed with no file args requires a program.
786 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
788 # Extract the first word of "gcc", so it can be a program name with args.
789 set dummy gcc
; ac_word
=$2
790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
791 echo "configure:792: checking for $ac_word" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 if test -n "$CC"; then
796 ac_cv_prog_CC
="$CC" # Let the user override the test.
798 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
799 for ac_dir
in $PATH; do
800 test -z "$ac_dir" && ac_dir
=.
801 if test -f $ac_dir/$ac_word; then
810 if test -n "$CC"; then
811 echo "$ac_t""$CC" 1>&6
813 echo "$ac_t""no" 1>&6
816 if test -z "$CC"; then
817 # Extract the first word of "cc", so it can be a program name with args.
818 set dummy cc
; ac_word
=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:821: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
824 if test -n "$CC"; then
825 ac_cv_prog_CC
="$CC" # Let the user override the test.
827 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
829 for ac_dir
in $PATH; do
830 test -z "$ac_dir" && ac_dir
=.
831 if test -f $ac_dir/$ac_word; then
832 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
841 if test $ac_prog_rejected = yes; then
842 # We found a bogon in the path, so make sure we never use it.
843 set dummy
$ac_cv_prog_CC
845 if test $# -gt 0; then
846 # We chose a different compiler from the bogus one.
847 # However, it has the same basename, so the bogon will be chosen
848 # first if we set CC to just the basename; use the full file name.
850 set dummy
"$ac_dir/$ac_word" "$@"
858 if test -n "$CC"; then
859 echo "$ac_t""$CC" 1>&6
861 echo "$ac_t""no" 1>&6
864 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
867 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
868 echo "configure:869: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
872 ac_cpp
='$CPP $CPPFLAGS'
873 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
874 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
875 cross_compiling
=$ac_cv_prog_cc_cross
877 cat > conftest.
$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
882 if { (eval echo configure
:883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
883 ac_cv_prog_cc_works
=yes
884 # If we can't run a trivial program, we are probably using a cross compiler.
885 if (.
/conftest
; exit) 2>/dev
/null
; then
886 ac_cv_prog_cc_cross
=no
888 ac_cv_prog_cc_cross
=yes
891 echo "configure: failed program was:" >&5
892 cat conftest.
$ac_ext >&5
893 ac_cv_prog_cc_works
=no
897 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
898 if test $ac_cv_prog_cc_works = no
; then
899 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
901 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
902 echo "configure:903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
903 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
904 cross_compiling
=$ac_cv_prog_cc_cross
906 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
907 echo "configure:908: checking whether we are using GNU C" >&5
908 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 cat > conftest.c
<<EOF
916 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
923 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
925 if test $ac_cv_prog_gcc = yes; then
927 ac_test_CFLAGS
="${CFLAGS+set}"
928 ac_save_CFLAGS
="$CFLAGS"
930 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
931 echo "configure:932: checking whether ${CC-cc} accepts -g" >&5
932 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
935 echo 'void f(){}' > conftest.c
936 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
945 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
946 if test "$ac_test_CFLAGS" = set; then
947 CFLAGS
="$ac_save_CFLAGS"
948 elif test $ac_cv_prog_cc_g = yes; then
955 test "${CFLAGS+set}" = set || CFLAGS
="-g"
958 # Find a good install program. We prefer a C program (faster),
959 # so one script is as good as another. But avoid the broken or
960 # incompatible versions:
961 # SysV /etc/install, /usr/sbin/install
962 # SunOS /usr/etc/install
965 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
966 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
968 # ./install, which can be erroneously created by make from ./install.sh.
969 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
970 echo "configure:971: checking for a BSD compatible install" >&5
971 if test -z "$INSTALL"; then
972 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
976 for ac_dir
in $PATH; do
977 # Account for people who put trailing slashes in PATH elements.
979 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
981 # OSF1 and SCO ODT 3.0 have their own names for install.
982 # Don't use installbsd from OSF since it installs stuff as root
984 for ac_prog
in ginstall scoinst
install; do
985 if test -f $ac_dir/$ac_prog; then
986 if test $ac_prog = install &&
987 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
988 # AIX install. It has an incompatible calling convention.
991 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1002 if test "${ac_cv_path_install+set}" = set; then
1003 INSTALL
="$ac_cv_path_install"
1005 # As a last resort, use the slow shell script. We don't cache a
1006 # path for INSTALL within a source directory, because that will
1007 # break other packages using the cache if that directory is
1008 # removed, or if the path is relative.
1009 INSTALL
="$ac_install_sh"
1012 echo "$ac_t""$INSTALL" 1>&6
1014 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1015 # It thinks the first close brace ends the variable substitution.
1016 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1018 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1021 .
${srcdir}/..
/..
/bfd
/configure.
host
1027 # Extract the first word of "ranlib", so it can be a program name with args.
1028 set dummy ranlib
; ac_word
=$2
1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1030 echo "configure:1031: checking for $ac_word" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 if test -n "$RANLIB"; then
1035 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1037 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1038 for ac_dir
in $PATH; do
1039 test -z "$ac_dir" && ac_dir
=.
1040 if test -f $ac_dir/$ac_word; then
1041 ac_cv_prog_RANLIB
="ranlib"
1046 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1049 RANLIB
="$ac_cv_prog_RANLIB"
1050 if test -n "$RANLIB"; then
1051 echo "$ac_t""$RANLIB" 1>&6
1053 echo "$ac_t""no" 1>&6
1057 # Put a plausible default for CC_FOR_BUILD in Makefile.
1058 if test "x$cross_compiling" = "xno"; then
1059 CC_FOR_BUILD
='$(CC)'
1066 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1067 echo "configure:1068: checking how to run the C preprocessor" >&5
1068 # On Suns, sometimes $CPP names a directory.
1069 if test -n "$CPP" && test -d "$CPP"; then
1072 if test -z "$CPP"; then
1073 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 # This must be in double quotes, not single quotes, because CPP may get
1077 # substituted into the Makefile and "${CC-cc}" will confuse make.
1079 # On the NeXT, cc -E runs the code through the compiler's parser,
1080 # not just through cpp.
1081 cat > conftest.
$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1087 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1088 { (eval echo configure
:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1089 ac_err
=`grep -v '^ *+' conftest.out`
1090 if test -z "$ac_err"; then
1094 echo "configure: failed program was:" >&5
1095 cat conftest.
$ac_ext >&5
1097 CPP
="${CC-cc} -E -traditional-cpp"
1098 cat > conftest.
$ac_ext <<EOF
1099 #line 1100 "configure"
1100 #include "confdefs.h"
1104 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1105 { (eval echo configure
:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1106 ac_err
=`grep -v '^ *+' conftest.out`
1107 if test -z "$ac_err"; then
1111 echo "configure: failed program was:" >&5
1112 cat conftest.
$ac_ext >&5
1119 ac_cv_prog_CPP
="$CPP"
1121 CPP
="$ac_cv_prog_CPP"
1123 ac_cv_prog_CPP
="$CPP"
1125 echo "$ac_t""$CPP" 1>&6
1127 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1128 echo "configure:1129: checking whether ${MAKE-make} sets \${MAKE}" >&5
1129 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1130 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 cat > conftestmake
<<\EOF
1135 @
echo 'ac_maketemp="${MAKE}"'
1137 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1138 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1139 if test -n "$ac_maketemp"; then
1140 eval ac_cv_prog_make_
${ac_make}_set
=yes
1142 eval ac_cv_prog_make_
${ac_make}_set
=no
1146 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1147 echo "$ac_t""yes" 1>&6
1150 echo "$ac_t""no" 1>&6
1151 SET_MAKE
="MAKE=${MAKE-make}"
1154 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1155 echo "configure:1156: checking for POSIXized ISC" >&5
1156 if test -d /etc
/conf
/kconfig.d
&&
1157 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1159 echo "$ac_t""yes" 1>&6
1160 ISC
=yes # If later tests want to check for ISC.
1161 cat >> confdefs.h
<<\EOF
1162 #define _POSIX_SOURCE 1
1165 if test "$GCC" = yes; then
1171 echo "$ac_t""no" 1>&6
1175 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1176 echo "configure:1177: checking for ANSI C header files" >&5
1177 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1180 cat > conftest.
$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1188 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1189 { (eval echo configure
:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1190 ac_err
=`grep -v '^ *+' conftest.out`
1191 if test -z "$ac_err"; then
1193 ac_cv_header_stdc
=yes
1196 echo "configure: failed program was:" >&5
1197 cat conftest.
$ac_ext >&5
1199 ac_cv_header_stdc
=no
1203 if test $ac_cv_header_stdc = yes; then
1204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1205 cat > conftest.
$ac_ext <<EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1211 egrep "memchr" >/dev
/null
2>&1; then
1215 ac_cv_header_stdc
=no
1221 if test $ac_cv_header_stdc = yes; then
1222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1223 cat > conftest.
$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1229 egrep "free" >/dev
/null
2>&1; then
1233 ac_cv_header_stdc
=no
1239 if test $ac_cv_header_stdc = yes; then
1240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1241 if test "$cross_compiling" = yes; then
1244 cat > conftest.
$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1248 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1249 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1251 int main () { int i; for (i = 0; i < 256; i++)
1252 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1256 if { (eval echo configure
:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1260 echo "configure: failed program was:" >&5
1261 cat conftest.
$ac_ext >&5
1263 ac_cv_header_stdc
=no
1271 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1272 if test $ac_cv_header_stdc = yes; then
1273 cat >> confdefs.h
<<\EOF
1274 #define STDC_HEADERS 1
1279 echo $ac_n "checking for working const""... $ac_c" 1>&6
1280 echo "configure:1281: checking for working const" >&5
1281 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 cat > conftest.
$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1290 /* Ultrix mips cc rejects this. */
1291 typedef int charset[2]; const charset x;
1292 /* SunOS 4.1.1 cc rejects this. */
1293 char const *const *ccp;
1295 /* NEC SVR4.0.2 mips cc rejects this. */
1296 struct point {int x, y;};
1297 static struct point const zero = {0,0};
1298 /* AIX XL C 1.02.0.0 rejects this.
1299 It does not let you subtract one const X* pointer from another in an arm
1300 of an if-expression whose if-part is not a constant expression */
1301 const char *g = "string";
1302 ccp = &g + (g ? g-g : 0);
1303 /* HPUX 7.0 cc rejects these. */
1306 ccp = (char const *const *) p;
1307 { /* SCO 3.2v4 cc rejects this. */
1309 char const *s = 0 ? (char *) 0 : (char const *) 0;
1313 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1315 const int *foo = &x[0];
1318 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1319 typedef const int *iptr;
1323 { /* AIX XL C 1.02.0.0 rejects this saying
1324 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1325 struct s { int j; const int *ap[3]; };
1326 struct s *b; b->j = 5;
1328 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1334 if { (eval echo configure
:1335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1338 echo "configure: failed program was:" >&5
1339 cat conftest.
$ac_ext >&5
1346 echo "$ac_t""$ac_cv_c_const" 1>&6
1347 if test $ac_cv_c_const = no
; then
1348 cat >> confdefs.h
<<\EOF
1354 echo $ac_n "checking for inline""... $ac_c" 1>&6
1355 echo "configure:1356: checking for inline" >&5
1356 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1360 for ac_kw
in inline __inline__ __inline
; do
1361 cat > conftest.
$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1369 if { (eval echo configure
:1370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1371 ac_cv_c_inline
=$ac_kw; break
1373 echo "configure: failed program was:" >&5
1374 cat conftest.
$ac_ext >&5
1381 echo "$ac_t""$ac_cv_c_inline" 1>&6
1382 case "$ac_cv_c_inline" in
1384 no
) cat >> confdefs.h
<<\EOF
1388 *) cat >> confdefs.h
<<EOF
1389 #define inline $ac_cv_c_inline
1394 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1395 echo "configure:1396: checking for off_t" >&5
1396 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 cat > conftest.
$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1402 #include <sys/types.h>
1408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1409 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1411 ac_cv_type_off_t
=yes
1419 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1420 if test $ac_cv_type_off_t = no
; then
1421 cat >> confdefs.h
<<\EOF
1427 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1428 echo "configure:1429: checking for size_t" >&5
1429 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 cat > conftest.
$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1435 #include <sys/types.h>
1441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1442 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1444 ac_cv_type_size_t
=yes
1447 ac_cv_type_size_t
=no
1452 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1453 if test $ac_cv_type_size_t = no
; then
1454 cat >> confdefs.h
<<\EOF
1455 #define size_t unsigned
1460 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1461 # for constant arguments. Useless!
1462 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1463 echo "configure:1464: checking for working alloca.h" >&5
1464 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 cat > conftest.
$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1472 char *p = alloca(2 * sizeof(int));
1475 if { (eval echo configure
:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1477 ac_cv_header_alloca_h
=yes
1479 echo "configure: failed program was:" >&5
1480 cat conftest.
$ac_ext >&5
1482 ac_cv_header_alloca_h
=no
1487 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1488 if test $ac_cv_header_alloca_h = yes; then
1489 cat >> confdefs.h
<<\EOF
1490 #define HAVE_ALLOCA_H 1
1495 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1496 echo "configure:1497: checking for alloca" >&5
1497 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 cat > conftest.
$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1505 # define alloca __builtin_alloca
1508 # include <alloca.h>
1513 # ifndef alloca /* predefined by HP cc +Olibcalls */
1521 char *p = (char *) alloca(1);
1524 if { (eval echo configure
:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1526 ac_cv_func_alloca_works
=yes
1528 echo "configure: failed program was:" >&5
1529 cat conftest.
$ac_ext >&5
1531 ac_cv_func_alloca_works
=no
1536 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1537 if test $ac_cv_func_alloca_works = yes; then
1538 cat >> confdefs.h
<<\EOF
1539 #define HAVE_ALLOCA 1
1544 if test $ac_cv_func_alloca_works = no
; then
1545 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1546 # that cause trouble. Some versions do not even contain alloca or
1547 # contain a buggy version. If you still want to use their alloca,
1548 # use ar to extract alloca.o from them instead of compiling alloca.c.
1550 cat >> confdefs.h
<<\EOF
1555 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1556 echo "configure:1557: checking whether alloca needs Cray hooks" >&5
1557 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1560 cat > conftest.
$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1563 #if defined(CRAY) && ! defined(CRAY2)
1570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1571 egrep "webecray" >/dev
/null
2>&1; then
1582 echo "$ac_t""$ac_cv_os_cray" 1>&6
1583 if test $ac_cv_os_cray = yes; then
1584 for ac_func
in _getb67 GETB67 getb67
; do
1585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1586 echo "configure:1587: checking for $ac_func" >&5
1587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 cat > conftest.
$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1593 /* System header to define __stub macros and hopefully few prototypes,
1594 which can conflict with char $ac_func(); below. */
1596 /* Override any gcc2 internal prototype to avoid an error. */
1597 /* We use char because int might match the return type of a gcc2
1598 builtin and then its argument prototype would still apply. */
1603 /* The GNU C library defines this for functions which it implements
1604 to always fail with ENOSYS. Some functions are actually named
1605 something starting with __ and the normal name is an alias. */
1606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1614 if { (eval echo configure
:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1616 eval "ac_cv_func_$ac_func=yes"
1618 echo "configure: failed program was:" >&5
1619 cat conftest.
$ac_ext >&5
1621 eval "ac_cv_func_$ac_func=no"
1626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1627 echo "$ac_t""yes" 1>&6
1628 cat >> confdefs.h
<<EOF
1629 #define CRAY_STACKSEG_END $ac_func
1634 echo "$ac_t""no" 1>&6
1640 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1641 echo "configure:1642: checking stack direction for C alloca" >&5
1642 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1645 if test "$cross_compiling" = yes; then
1646 ac_cv_c_stack_direction
=0
1648 cat > conftest.
$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1651 find_stack_direction ()
1653 static char *addr = 0;
1658 return find_stack_direction ();
1661 return (&dummy > addr) ? 1 : -1;
1665 exit (find_stack_direction() < 0);
1668 if { (eval echo configure
:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1670 ac_cv_c_stack_direction
=1
1672 echo "configure: failed program was:" >&5
1673 cat conftest.
$ac_ext >&5
1675 ac_cv_c_stack_direction
=-1
1682 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1683 cat >> confdefs.h
<<EOF
1684 #define STACK_DIRECTION $ac_cv_c_stack_direction
1689 for ac_hdr
in unistd.h
1691 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1693 echo "configure:1694: checking for $ac_hdr" >&5
1694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1697 cat > conftest.
$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1702 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1703 { (eval echo configure
:1704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1704 ac_err
=`grep -v '^ *+' conftest.out`
1705 if test -z "$ac_err"; then
1707 eval "ac_cv_header_$ac_safe=yes"
1710 echo "configure: failed program was:" >&5
1711 cat conftest.
$ac_ext >&5
1713 eval "ac_cv_header_$ac_safe=no"
1717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1718 echo "$ac_t""yes" 1>&6
1719 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1720 cat >> confdefs.h
<<EOF
1721 #define $ac_tr_hdr 1
1725 echo "$ac_t""no" 1>&6
1729 for ac_func
in getpagesize
1731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1732 echo "configure:1733: checking for $ac_func" >&5
1733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1736 cat > conftest.
$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $ac_func(); below. */
1742 /* Override any gcc2 internal prototype to avoid an error. */
1743 /* We use char because int might match the return type of a gcc2
1744 builtin and then its argument prototype would still apply. */
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1760 if { (eval echo configure
:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1762 eval "ac_cv_func_$ac_func=yes"
1764 echo "configure: failed program was:" >&5
1765 cat conftest.
$ac_ext >&5
1767 eval "ac_cv_func_$ac_func=no"
1772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1773 echo "$ac_t""yes" 1>&6
1774 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1775 cat >> confdefs.h
<<EOF
1776 #define $ac_tr_func 1
1780 echo "$ac_t""no" 1>&6
1784 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1785 echo "configure:1786: checking for working mmap" >&5
1786 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 if test "$cross_compiling" = yes; then
1790 ac_cv_func_mmap_fixed_mapped
=no
1792 cat > conftest.
$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1796 /* Thanks to Mike Haertel and Jim Avera for this test.
1797 Here is a matrix of mmap possibilities:
1798 mmap private not fixed
1799 mmap private fixed at somewhere currently unmapped
1800 mmap private fixed at somewhere already mapped
1801 mmap shared not fixed
1802 mmap shared fixed at somewhere currently unmapped
1803 mmap shared fixed at somewhere already mapped
1804 For private mappings, we should verify that changes cannot be read()
1805 back from the file, nor mmap's back from the file at a different
1806 address. (There have been systems where private was not correctly
1807 implemented like the infamous i386 svr4.0, and systems where the
1808 VM page cache was not coherent with the filesystem buffer cache
1809 like early versions of FreeBSD and possibly contemporary NetBSD.)
1810 For shared mappings, we should conversely verify that changes get
1811 propogated back to all the places they're supposed to be.
1813 Grep wants private fixed already mapped.
1814 The main things grep needs to know about mmap are:
1815 * does it exist and is it safe to write into the mmap'd area
1816 * how to use it (BSD variants) */
1817 #include <sys/types.h>
1819 #include <sys/mman.h>
1821 /* This mess was copied from the GNU getpagesize.h. */
1822 #ifndef HAVE_GETPAGESIZE
1823 # ifdef HAVE_UNISTD_H
1824 # include <unistd.h>
1827 /* Assume that all systems that can run configure have sys/param.h. */
1828 # ifndef HAVE_SYS_PARAM_H
1829 # define HAVE_SYS_PARAM_H 1
1832 # ifdef _SC_PAGESIZE
1833 # define getpagesize() sysconf(_SC_PAGESIZE)
1834 # else /* no _SC_PAGESIZE */
1835 # ifdef HAVE_SYS_PARAM_H
1836 # include <sys/param.h>
1837 # ifdef EXEC_PAGESIZE
1838 # define getpagesize() EXEC_PAGESIZE
1839 # else /* no EXEC_PAGESIZE */
1841 # define getpagesize() NBPG * CLSIZE
1844 # endif /* no CLSIZE */
1845 # else /* no NBPG */
1847 # define getpagesize() NBPC
1848 # else /* no NBPC */
1850 # define getpagesize() PAGESIZE
1851 # endif /* PAGESIZE */
1852 # endif /* no NBPC */
1853 # endif /* no NBPG */
1854 # endif /* no EXEC_PAGESIZE */
1855 # else /* no HAVE_SYS_PARAM_H */
1856 # define getpagesize() 8192 /* punt totally */
1857 # endif /* no HAVE_SYS_PARAM_H */
1858 # endif /* no _SC_PAGESIZE */
1860 #endif /* no HAVE_GETPAGESIZE */
1863 extern "C" { void *malloc(unsigned); }
1871 char *data, *data2, *data3;
1875 pagesize = getpagesize();
1878 * First, make a file with some known garbage in it.
1880 data = malloc(pagesize);
1883 for (i = 0; i < pagesize; ++i)
1884 *(data + i) = rand();
1886 fd = creat("conftestmmap", 0600);
1889 if (write(fd, data, pagesize) != pagesize)
1894 * Next, try to mmap the file at a fixed address which
1895 * already has something else allocated at it. If we can,
1896 * also make sure that we see the same garbage.
1898 fd = open("conftestmmap", O_RDWR);
1901 data2 = malloc(2 * pagesize);
1904 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1905 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1906 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1908 for (i = 0; i < pagesize; ++i)
1909 if (*(data + i) != *(data2 + i))
1913 * Finally, make sure that changes to the mapped area
1914 * do not percolate back to the file as seen by read().
1915 * (This is a bug on some variants of i386 svr4.0.)
1917 for (i = 0; i < pagesize; ++i)
1918 *(data2 + i) = *(data2 + i) + 1;
1919 data3 = malloc(pagesize);
1922 if (read(fd, data3, pagesize) != pagesize)
1924 for (i = 0; i < pagesize; ++i)
1925 if (*(data + i) != *(data3 + i))
1928 unlink("conftestmmap");
1933 if { (eval echo configure
:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1935 ac_cv_func_mmap_fixed_mapped
=yes
1937 echo "configure: failed program was:" >&5
1938 cat conftest.
$ac_ext >&5
1940 ac_cv_func_mmap_fixed_mapped
=no
1947 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1948 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1949 cat >> confdefs.h
<<\EOF
1956 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1957 unistd.h values.h sys
/param.h
1959 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_hdr" >&5
1962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 cat > conftest.
$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1970 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971 { (eval echo configure
:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972 ac_err
=`grep -v '^ *+' conftest.out`
1973 if test -z "$ac_err"; then
1975 eval "ac_cv_header_$ac_safe=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.
$ac_ext >&5
1981 eval "ac_cv_header_$ac_safe=no"
1985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1986 echo "$ac_t""yes" 1>&6
1987 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1988 cat >> confdefs.h
<<EOF
1989 #define $ac_tr_hdr 1
1993 echo "$ac_t""no" 1>&6
1997 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1998 __argz_count __argz_stringify __argz_next
2000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_func" >&5
2002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 cat > conftest.
$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2008 /* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char $ac_func(); below. */
2011 /* Override any gcc2 internal prototype to avoid an error. */
2012 /* We use char because int might match the return type of a gcc2
2013 builtin and then its argument prototype would still apply. */
2018 /* The GNU C library defines this for functions which it implements
2019 to always fail with ENOSYS. Some functions are actually named
2020 something starting with __ and the normal name is an alias. */
2021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2029 if { (eval echo configure
:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2031 eval "ac_cv_func_$ac_func=yes"
2033 echo "configure: failed program was:" >&5
2034 cat conftest.
$ac_ext >&5
2036 eval "ac_cv_func_$ac_func=no"
2041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2044 cat >> confdefs.h
<<EOF
2045 #define $ac_tr_func 1
2049 echo "$ac_t""no" 1>&6
2054 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2055 for ac_func
in stpcpy
2057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2058 echo "configure:2059: checking for $ac_func" >&5
2059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2062 cat > conftest.
$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065 /* System header to define __stub macros and hopefully few prototypes,
2066 which can conflict with char $ac_func(); below. */
2068 /* Override any gcc2 internal prototype to avoid an error. */
2069 /* We use char because int might match the return type of a gcc2
2070 builtin and then its argument prototype would still apply. */
2075 /* The GNU C library defines this for functions which it implements
2076 to always fail with ENOSYS. Some functions are actually named
2077 something starting with __ and the normal name is an alias. */
2078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2086 if { (eval echo configure
:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2088 eval "ac_cv_func_$ac_func=yes"
2090 echo "configure: failed program was:" >&5
2091 cat conftest.
$ac_ext >&5
2093 eval "ac_cv_func_$ac_func=no"
2098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2100 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2101 cat >> confdefs.h
<<EOF
2102 #define $ac_tr_func 1
2106 echo "$ac_t""no" 1>&6
2111 if test "${ac_cv_func_stpcpy}" = "yes"; then
2112 cat >> confdefs.h
<<\EOF
2113 #define HAVE_STPCPY 1
2118 if test $ac_cv_header_locale_h = yes; then
2119 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2120 echo "configure:2121: checking for LC_MESSAGES" >&5
2121 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 cat > conftest.
$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2132 if { (eval echo configure
:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2134 am_cv_val_LC_MESSAGES
=yes
2136 echo "configure: failed program was:" >&5
2137 cat conftest.
$ac_ext >&5
2139 am_cv_val_LC_MESSAGES
=no
2144 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2145 if test $am_cv_val_LC_MESSAGES = yes; then
2146 cat >> confdefs.h
<<\EOF
2147 #define HAVE_LC_MESSAGES 1
2152 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2153 echo "configure:2154: checking whether NLS is requested" >&5
2154 # Check whether --enable-nls or --disable-nls was given.
2155 if test "${enable_nls+set}" = set; then
2156 enableval
="$enable_nls"
2162 echo "$ac_t""$USE_NLS" 1>&6
2165 USE_INCLUDED_LIBINTL
=no
2167 if test "$USE_NLS" = "yes"; then
2168 cat >> confdefs.h
<<\EOF
2169 #define ENABLE_NLS 1
2172 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2173 echo "configure:2174: checking whether included gettext is requested" >&5
2174 # Check whether --with-included-gettext or --without-included-gettext was given.
2175 if test "${with_included_gettext+set}" = set; then
2176 withval
="$with_included_gettext"
2177 nls_cv_force_use_gnu_gettext
=$withval
2179 nls_cv_force_use_gnu_gettext
=no
2182 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2184 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2185 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2187 nls_cv_header_libgt
=
2190 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2191 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2192 echo "configure:2193: checking for libintl.h" >&5
2193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
2199 #include <libintl.h>
2201 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2202 { (eval echo configure
:2203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2203 ac_err
=`grep -v '^ *+' conftest.out`
2204 if test -z "$ac_err"; then
2206 eval "ac_cv_header_$ac_safe=yes"
2209 echo "configure: failed program was:" >&5
2210 cat conftest.
$ac_ext >&5
2212 eval "ac_cv_header_$ac_safe=no"
2216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2218 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2219 echo "configure:2220: checking for gettext in libc" >&5
2220 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2223 cat > conftest.
$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2226 #include <libintl.h>
2228 return (int) gettext ("")
2231 if { (eval echo configure
:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2233 gt_cv_func_gettext_libc
=yes
2235 echo "configure: failed program was:" >&5
2236 cat conftest.
$ac_ext >&5
2238 gt_cv_func_gettext_libc
=no
2243 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2245 if test "$gt_cv_func_gettext_libc" != "yes"; then
2246 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2247 echo "configure:2248: checking for bindtextdomain in -lintl" >&5
2248 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2252 ac_save_LIBS
="$LIBS"
2254 cat > conftest.
$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 /* Override any gcc2 internal prototype to avoid an error. */
2258 /* We use char because int might match the return type of a gcc2
2259 builtin and then its argument prototype would still apply. */
2260 char bindtextdomain();
2266 if { (eval echo configure
:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2268 eval "ac_cv_lib_$ac_lib_var=yes"
2270 echo "configure: failed program was:" >&5
2271 cat conftest.
$ac_ext >&5
2273 eval "ac_cv_lib_$ac_lib_var=no"
2276 LIBS
="$ac_save_LIBS"
2279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2280 echo "$ac_t""yes" 1>&6
2281 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2282 echo "configure:2283: checking for gettext in libintl" >&5
2283 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 cat > conftest.
$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2291 return (int) gettext ("")
2294 if { (eval echo configure
:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2296 gt_cv_func_gettext_libintl
=yes
2298 echo "configure: failed program was:" >&5
2299 cat conftest.
$ac_ext >&5
2301 gt_cv_func_gettext_libintl
=no
2306 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2308 echo "$ac_t""no" 1>&6
2313 if test "$gt_cv_func_gettext_libc" = "yes" \
2314 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2315 cat >> confdefs.h
<<\EOF
2316 #define HAVE_GETTEXT 1
2319 # Extract the first word of "msgfmt", so it can be a program name with args.
2320 set dummy msgfmt
; ac_word
=$2
2321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2322 echo "configure:2323: checking for $ac_word" >&5
2323 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2328 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2331 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2332 for ac_dir
in $PATH; do
2333 test -z "$ac_dir" && ac_dir
=.
2334 if test -f $ac_dir/$ac_word; then
2335 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2336 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2342 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2346 MSGFMT
="$ac_cv_path_MSGFMT"
2347 if test -n "$MSGFMT"; then
2348 echo "$ac_t""$MSGFMT" 1>&6
2350 echo "$ac_t""no" 1>&6
2352 if test "$MSGFMT" != "no"; then
2353 for ac_func
in dcgettext
2355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_func" >&5
2357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 cat > conftest.
$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2363 /* System header to define __stub macros and hopefully few prototypes,
2364 which can conflict with char $ac_func(); below. */
2366 /* Override any gcc2 internal prototype to avoid an error. */
2367 /* We use char because int might match the return type of a gcc2
2368 builtin and then its argument prototype would still apply. */
2373 /* The GNU C library defines this for functions which it implements
2374 to always fail with ENOSYS. Some functions are actually named
2375 something starting with __ and the normal name is an alias. */
2376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2384 if { (eval echo configure
:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2386 eval "ac_cv_func_$ac_func=yes"
2388 echo "configure: failed program was:" >&5
2389 cat conftest.
$ac_ext >&5
2391 eval "ac_cv_func_$ac_func=no"
2396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2397 echo "$ac_t""yes" 1>&6
2398 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2399 cat >> confdefs.h
<<EOF
2400 #define $ac_tr_func 1
2404 echo "$ac_t""no" 1>&6
2408 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2409 set dummy gmsgfmt
; ac_word
=$2
2410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2411 echo "configure:2412: checking for $ac_word" >&5
2412 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2417 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2420 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2423 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2424 for ac_dir
in $PATH; do
2425 test -z "$ac_dir" && ac_dir
=.
2426 if test -f $ac_dir/$ac_word; then
2427 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2432 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2436 GMSGFMT
="$ac_cv_path_GMSGFMT"
2437 if test -n "$GMSGFMT"; then
2438 echo "$ac_t""$GMSGFMT" 1>&6
2440 echo "$ac_t""no" 1>&6
2443 # Extract the first word of "xgettext", so it can be a program name with args.
2444 set dummy xgettext
; ac_word
=$2
2445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2446 echo "configure:2447: checking for $ac_word" >&5
2447 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2452 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2455 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2456 for ac_dir
in $PATH; do
2457 test -z "$ac_dir" && ac_dir
=.
2458 if test -f $ac_dir/$ac_word; then
2459 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2460 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2466 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2470 XGETTEXT
="$ac_cv_path_XGETTEXT"
2471 if test -n "$XGETTEXT"; then
2472 echo "$ac_t""$XGETTEXT" 1>&6
2474 echo "$ac_t""no" 1>&6
2477 cat > conftest.
$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2482 extern int _nl_msg_cat_cntr;
2483 return _nl_msg_cat_cntr
2486 if { (eval echo configure
:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2491 echo "configure: failed program was:" >&5
2492 cat conftest.
$ac_ext >&5
2503 echo "$ac_t""no" 1>&6
2508 if test "$CATOBJEXT" = "NONE"; then
2509 nls_cv_use_gnu_gettext
=yes
2513 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2514 INTLOBJS
="\$(GETTOBJS)"
2515 # Extract the first word of "msgfmt", so it can be a program name with args.
2516 set dummy msgfmt
; ac_word
=$2
2517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_word" >&5
2519 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2524 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2527 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2528 for ac_dir
in $PATH; do
2529 test -z "$ac_dir" && ac_dir
=.
2530 if test -f $ac_dir/$ac_word; then
2531 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2532 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2538 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2542 MSGFMT
="$ac_cv_path_MSGFMT"
2543 if test -n "$MSGFMT"; then
2544 echo "$ac_t""$MSGFMT" 1>&6
2546 echo "$ac_t""no" 1>&6
2549 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2550 set dummy gmsgfmt
; ac_word
=$2
2551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2552 echo "configure:2553: checking for $ac_word" >&5
2553 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2558 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2561 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2564 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2565 for ac_dir
in $PATH; do
2566 test -z "$ac_dir" && ac_dir
=.
2567 if test -f $ac_dir/$ac_word; then
2568 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2573 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2577 GMSGFMT
="$ac_cv_path_GMSGFMT"
2578 if test -n "$GMSGFMT"; then
2579 echo "$ac_t""$GMSGFMT" 1>&6
2581 echo "$ac_t""no" 1>&6
2584 # Extract the first word of "xgettext", so it can be a program name with args.
2585 set dummy xgettext
; ac_word
=$2
2586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_word" >&5
2588 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2593 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2596 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2597 for ac_dir
in $PATH; do
2598 test -z "$ac_dir" && ac_dir
=.
2599 if test -f $ac_dir/$ac_word; then
2600 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2601 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2607 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2611 XGETTEXT
="$ac_cv_path_XGETTEXT"
2612 if test -n "$XGETTEXT"; then
2613 echo "$ac_t""$XGETTEXT" 1>&6
2615 echo "$ac_t""no" 1>&6
2619 USE_INCLUDED_LIBINTL
=yes
2623 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2625 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2626 nls_cv_header_intl
=libintl.h
2627 nls_cv_header_libgt
=libgettext.h
2630 if test "$XGETTEXT" != ":"; then
2631 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2634 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2639 # We need to process the po/ directory.
2643 nls_cv_header_intl
=libintl.h
2644 nls_cv_header_libgt
=libgettext.h
2647 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2648 # because some of the sources are only built for this goal.
2649 if test "$PACKAGE" = gettext; then
2651 USE_INCLUDED_LIBINTL
=yes
2654 for lang
in $ALL_LINGUAS; do
2655 GMOFILES
="$GMOFILES $lang.gmo"
2656 POFILES
="$POFILES $lang.po"
2672 if test "x$CATOBJEXT" != "x"; then
2673 if test "x$ALL_LINGUAS" = "x"; then
2676 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2677 echo "configure:2678: checking for catalogs to be installed" >&5
2679 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2680 case "$ALL_LINGUAS" in
2681 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2684 LINGUAS
=$NEW_LINGUAS
2685 echo "$ac_t""$LINGUAS" 1>&6
2688 if test -n "$LINGUAS"; then
2689 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2693 if test $ac_cv_header_locale_h = yes; then
2694 INCLUDE_LOCALE_H
="#include <locale.h>"
2697 /* The system does not provide the header <locale.h>. Take care yourself. */"
2701 if test -f $srcdir/po2tbl.
sed.
in; then
2702 if test "$CATOBJEXT" = ".cat"; then
2703 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2704 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2705 echo "configure:2706: checking for linux/version.h" >&5
2706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 cat > conftest.
$ac_ext <<EOF
2710 #line 2711 "configure"
2711 #include "confdefs.h"
2712 #include <linux/version.h>
2714 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure
:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err
=`grep -v '^ *+' conftest.out`
2717 if test -z "$ac_err"; then
2719 eval "ac_cv_header_$ac_safe=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.
$ac_ext >&5
2725 eval "ac_cv_header_$ac_safe=no"
2729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2733 echo "$ac_t""no" 1>&6
2738 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2740 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2741 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2744 if test "$PACKAGE" = "gettext"; then
2754 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2760 if test -d $srcdir/po
; then
2761 test -d po || mkdir po
2762 if test "x$srcdir" != "x."; then
2763 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2764 posrcprefix
="$srcdir/"
2766 posrcprefix
="../$srcdir/"
2772 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2773 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2777 for ac_hdr
in stdlib.h
time.h unistd.h
2779 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2781 echo "configure:2782: checking for $ac_hdr" >&5
2782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 cat > conftest.
$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2790 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2791 { (eval echo configure
:2792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2792 ac_err
=`grep -v '^ *+' conftest.out`
2793 if test -z "$ac_err"; then
2795 eval "ac_cv_header_$ac_safe=yes"
2798 echo "configure: failed program was:" >&5
2799 cat conftest.
$ac_ext >&5
2801 eval "ac_cv_header_$ac_safe=no"
2805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2806 echo "$ac_t""yes" 1>&6
2807 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2808 cat >> confdefs.h
<<EOF
2809 #define $ac_tr_hdr 1
2813 echo "$ac_t""no" 1>&6
2818 echo $ac_n "checking whether printf must be declared""... $ac_c" 1>&6
2819 echo "configure:2820: checking whether printf must be declared" >&5
2820 if eval "test \"`echo '$''{'sim_cv_decl_needed_printf'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2823 cat > conftest.
$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2828 int (*pfn) = (int (*)) printf
2831 if { (eval echo configure
:2832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2833 sim_cv_decl_needed_printf
=no
2835 echo "configure: failed program was:" >&5
2836 cat conftest.
$ac_ext >&5
2838 sim_cv_decl_needed_printf
=yes
2843 echo "$ac_t""$sim_cv_decl_needed_printf" 1>&6
2844 if test $sim_cv_decl_needed_printf = yes; then
2845 cat >> confdefs.h
<<\EOF
2846 #define NEED_DECLARATION_PRINTF 1
2852 cat > confcache
<<\EOF
2853 # This file is a shell script that caches the results of configure
2854 # tests run on this system so they can be shared between configure
2855 # scripts and configure runs. It is not useful on other systems.
2856 # If it contains results you don't want to keep, you may remove or edit it.
2858 # By default, configure uses ./config.cache as the cache file,
2859 # creating it if it does not exist already. You can give configure
2860 # the --cache-file=FILE option to use a different cache file; that is
2861 # what configure does when it calls configure scripts in
2862 # subdirectories, so they share the cache.
2863 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2864 # config.status only pays attention to the cache file if you give it the
2865 # --recheck option to rerun configure.
2868 # The following way of writing the cache mishandles newlines in values,
2869 # but we know of no workaround that is simple, portable, and efficient.
2870 # So, don't put newlines in cache variables' values.
2871 # Ultrix sh set writes to stderr and can't be redirected directly,
2872 # and sets the high bit in the cache file unless we assign to the vars.
2874 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2876 # `set' does not quote correctly, so add quotes (double-quote substitution
2877 # turns \\\\ into \\, and sed turns \\ into \).
2879 -e "s/'/'\\\\''/g" \
2880 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2883 # `set' quotes correctly as required by POSIX, so do not add quotes.
2884 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2887 if cmp -s $cache_file confcache
; then
2890 if test -w $cache_file; then
2891 echo "updating cache $cache_file"
2892 cat confcache
> $cache_file
2894 echo "not updating unwritable cache $cache_file"
2899 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2901 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2902 # Let make expand exec_prefix.
2903 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2905 # Any assignment to VPATH causes Sun make to only execute
2906 # the first set of double-colon rules, so remove it if not needed.
2907 # If there is a colon in the path, we need to keep it.
2908 if test "x$srcdir" = x.
; then
2909 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2912 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2914 DEFS
=-DHAVE_CONFIG_H
2916 # Without the "./", some shells look in PATH for config.status.
2917 : ${CONFIG_STATUS=./config.status}
2919 echo creating
$CONFIG_STATUS
2920 rm -f $CONFIG_STATUS
2921 cat > $CONFIG_STATUS <<EOF
2923 # Generated automatically by configure.
2924 # Run this file to recreate the current configuration.
2925 # This directory was configured as follows,
2926 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2928 # $0 $ac_configure_args
2930 # Compiler output produced by configure, useful for debugging
2931 # configure, is in ./config.log if it exists.
2933 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2936 case "\$ac_option" in
2937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2938 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2939 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2940 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2941 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
2943 -help | --help | --hel | --he | --h)
2944 echo "\$ac_cs_usage"; exit 0 ;;
2945 *) echo "\$ac_cs_usage"; exit 1 ;;
2949 ac_given_srcdir=$srcdir
2950 ac_given_INSTALL="$INSTALL"
2952 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2954 cat >> $CONFIG_STATUS <<EOF
2956 # Protect against being on the right side of a sed subst in config.status.
2957 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2958 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2961 s%@sim_environment@%$sim_environment%g
2962 s%@sim_alignment@%$sim_alignment%g
2963 s%@sim_assert@%$sim_assert%g
2964 s%@sim_bitsize@%$sim_bitsize%g
2965 s%@sim_endian@%$sim_endian%g
2966 s%@sim_hostendian@%$sim_hostendian%g
2967 s%@sim_float@%$sim_float%g
2968 s%@sim_scache@%$sim_scache%g
2969 s%@sim_default_model@%$sim_default_model%g
2970 s%@sim_hw_cflags@%$sim_hw_cflags%g
2971 s%@sim_hw_objs@%$sim_hw_objs%g
2972 s%@sim_hw@%$sim_hw%g
2973 s%@sim_inline@%$sim_inline%g
2974 s%@sim_packages@%$sim_packages%g
2975 s%@sim_regparm@%$sim_regparm%g
2976 s%@sim_reserved_bits@%$sim_reserved_bits%g
2977 s%@sim_smp@%$sim_smp%g
2978 s%@sim_stdcall@%$sim_stdcall%g
2979 s%@sim_xor_endian@%$sim_xor_endian%g
2980 s%@sim_warnings@%$sim_warnings%g
2982 s%@CFLAGS@%$CFLAGS%g
2983 s%@CPPFLAGS@%$CPPFLAGS%g
2984 s%@CXXFLAGS@%$CXXFLAGS%g
2986 s%@LDFLAGS@%$LDFLAGS%g
2988 s%@exec_prefix@%$exec_prefix%g
2989 s%@prefix@%$prefix%g
2990 s%@program_transform_name@%$program_transform_name%g
2991 s%@bindir@%$bindir%g
2992 s%@sbindir@%$sbindir%g
2993 s%@libexecdir@%$libexecdir%g
2994 s%@datadir@%$datadir%g
2995 s%@sysconfdir@%$sysconfdir%g
2996 s%@sharedstatedir@%$sharedstatedir%g
2997 s%@localstatedir@%$localstatedir%g
2998 s%@libdir@%$libdir%g
2999 s%@includedir@%$includedir%g
3000 s%@oldincludedir@%$oldincludedir%g
3001 s%@infodir@%$infodir%g
3002 s%@mandir@%$mandir%g
3004 s%@host_alias@%$host_alias%g
3005 s%@host_cpu@%$host_cpu%g
3006 s%@host_vendor@%$host_vendor%g
3007 s%@host_os@%$host_os%g
3008 s%@target@%$target%g
3009 s%@target_alias@%$target_alias%g
3010 s%@target_cpu@%$target_cpu%g
3011 s%@target_vendor@%$target_vendor%g
3012 s%@target_os@%$target_os%g
3014 s%@build_alias@%$build_alias%g
3015 s%@build_cpu@%$build_cpu%g
3016 s%@build_vendor@%$build_vendor%g
3017 s%@build_os@%$build_os%g
3019 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3020 s%@INSTALL_DATA@%$INSTALL_DATA%g
3021 s%@HDEFINES@%$HDEFINES%g
3023 s%@RANLIB@%$RANLIB%g
3024 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3025 s%@SET_MAKE@%$SET_MAKE%g
3027 s%@ALLOCA@%$ALLOCA%g
3028 s%@USE_NLS@%$USE_NLS%g
3029 s%@MSGFMT@%$MSGFMT%g
3030 s%@GMSGFMT@%$GMSGFMT%g
3031 s%@XGETTEXT@%$XGETTEXT%g
3032 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3033 s%@CATALOGS@%$CATALOGS%g
3034 s%@CATOBJEXT@%$CATOBJEXT%g
3035 s%@DATADIRNAME@%$DATADIRNAME%g
3036 s%@GMOFILES@%$GMOFILES%g
3037 s%@INSTOBJEXT@%$INSTOBJEXT%g
3038 s%@INTLDEPS@%$INTLDEPS%g
3039 s%@INTLLIBS@%$INTLLIBS%g
3040 s%@INTLOBJS@%$INTLOBJS%g
3041 s%@POFILES@%$POFILES%g
3043 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3045 s%@GT_YES@%$GT_YES%g
3046 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3052 cat >> $CONFIG_STATUS <<\EOF
3054 # Split the substitutions into bite-sized pieces for seds with
3055 # small command number limits, like on Digital OSF/1 and HP-UX.
3056 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3057 ac_file
=1 # Number of current file.
3058 ac_beg
=1 # First line for current file.
3059 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3062 while $ac_more_lines; do
3063 if test $ac_beg -gt 1; then
3064 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3066 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3068 if test ! -s conftest.s
$ac_file; then
3070 rm -f conftest.s
$ac_file
3072 if test -z "$ac_sed_cmds"; then
3073 ac_sed_cmds
="sed -f conftest.s$ac_file"
3075 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3077 ac_file
=`expr $ac_file + 1`
3079 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3082 if test -z "$ac_sed_cmds"; then
3087 cat >> $CONFIG_STATUS <<EOF
3089 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3091 cat >> $CONFIG_STATUS <<\EOF
3092 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3095 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3096 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3097 *) ac_file_in
="${ac_file}.in" ;;
3100 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3102 # Remove last slash and all that follows it. Not all systems have dirname.
3103 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3104 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3105 # The file is in a subdirectory.
3106 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3107 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3108 # A "../" for each directory in $ac_dir_suffix.
3109 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3111 ac_dir_suffix
= ac_dots
=
3114 case "$ac_given_srcdir" in
3116 if test -z "$ac_dots"; then top_srcdir
=.
3117 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3118 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3120 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3121 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3124 case "$ac_given_INSTALL" in
3125 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3126 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3129 echo creating
"$ac_file"
3131 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3133 *Makefile
*) ac_comsub
="1i\\
3134 # $configure_input" ;;
3138 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3140 s%@configure_input@%$configure_input%g
3141 s%@srcdir@%$srcdir%g
3142 s%@top_srcdir@%$top_srcdir%g
3143 s%@INSTALL@%$INSTALL%g
3144 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3148 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3149 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3151 # ac_d sets the value in "#define NAME VALUE" lines.
3152 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3153 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3156 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3157 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3158 ac_uB
='\([ ]\)%\1#\2define\3'
3161 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3162 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3163 ac_eB
='$%\1#\2define\3'
3167 if test "${CONFIG_HEADERS+set}" != set; then
3169 cat >> $CONFIG_STATUS <<EOF
3170 CONFIG_HEADERS="config.h:config.in"
3172 cat >> $CONFIG_STATUS <<\EOF
3174 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3177 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3178 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3179 *) ac_file_in
="${ac_file}.in" ;;
3182 echo creating
$ac_file
3184 rm -f conftest.frag conftest.
in conftest.out
3185 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3186 cat $ac_file_inputs > conftest.
in
3190 # Transform confdefs.h into a sed script conftest.vals that substitutes
3191 # the proper values into config.h.in to produce config.h. And first:
3192 # Protect against being on the right side of a sed subst in config.status.
3193 # Protect against being in an unquoted here document in config.status.
3195 cat > conftest.hdr
<<\EOF
3198 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3202 sed -n -f conftest.hdr confdefs.h > conftest.vals
3205 # This sed command replaces #undef with comments. This is necessary, for
3206 # example, in the case of _POSIX_SOURCE, which is predefined and required
3207 # on some systems where configure will not decide to define it.
3208 cat >> conftest.vals <<\EOF
3209 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3212 # Break up conftest.vals because some shells have a limit on
3213 # the size of here documents, and old seds have small limits too.
3218 ac_lines=`grep -c . conftest.vals
`
3219 # grep -c gives empty output for an empty file on some AIX systems.
3220 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3221 # Write a limited-size here document to conftest.frag.
3222 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3223 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3225 sed -f conftest.frag conftest.in > conftest.out
3227 mv conftest.out conftest.in
3229 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3231 mv conftest.tail conftest.vals
3235 cat >> $CONFIG_STATUS <<\EOF
3236 rm -f conftest.frag conftest.h
3237 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3238 cat conftest.in >> conftest.h
3240 if cmp -s $ac_file conftest.h 2>/dev/null; then
3241 echo "$ac_file is unchanged"
3244 # Remove last slash and all that follows it. Not all systems have dirname.
3245 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3246 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3247 # The file is in a subdirectory.
3248 test ! -d "$ac_dir" && mkdir "$ac_dir"
3251 mv conftest.h $ac_file
3256 cat >> $CONFIG_STATUS <<EOF
3259 cat >> $CONFIG_STATUS <<\EOF
3260 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
3263 chmod +x $CONFIG_STATUS
3264 rm -fr confdefs* $ac_clean_files
3265 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1