45 sim_inline
="-DDEFAULT_INLINE=0"
81 # This file is derived from `gettext.m4'. The difference is that the
82 # included macros assume Cygnus-style source and build trees.
84 # Macro to add for using GNU gettext.
85 # Ulrich Drepper <drepper@cygnus.com>, 1995.
87 # This file file be copied and used freely without restrictions. It can
88 # be used in projects which are not available under the GNU Public License
89 # but which still want to provide support for the GNU gettext functionality.
90 # Please note that the actual code is *not* freely available.
98 # Search path for a program which passes the given test.
99 # Ulrich Drepper <drepper@cygnus.com>, 1996.
101 # This file file be copied and used freely without restrictions. It can
102 # be used in projects which are not available under the GNU Public License
103 # but which still want to provide support for the GNU gettext functionality.
104 # Please note that the actual code is *not* freely available.
110 # Check whether LC_MESSAGES is available in <locale.h>.
111 # Ulrich Drepper <drepper@cygnus.com>, 1995.
113 # This file file be copied and used freely without restrictions. It can
114 # be used in projects which are not available under the GNU Public License
115 # but which still want to provide support for the GNU gettext functionality.
116 # Please note that the actual code is *not* freely available.
122 # Check to see if we're running under Cygwin32, without using
123 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
124 # Otherwise set it to "no".
128 # Check to see if we're running under Win32, without using
129 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
130 # Otherwise set it to "".
135 # Guess values for system-dependent variables and create Makefiles.
136 # Generated automatically using autoconf version 2.12.2
137 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
139 # This configure script is free software; the Free Software Foundation
140 # gives unlimited permission to copy, distribute and modify it.
144 ac_default_prefix
=/usr
/local
145 # Any additions from configure.in:
147 --disable-nls do not use Native Language Support"
149 --with-included-gettext use the GNU gettext library included here"
151 # 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.2"
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${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
643 cross_compiling
=$ac_cv_prog_cc_cross
647 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
648 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
649 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
656 ac_n
= ac_c
='\c' ac_t
=
664 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
665 if test -f $ac_dir/install-sh
; then
667 ac_install_sh
="$ac_aux_dir/install-sh -c"
669 elif test -f $ac_dir/install.sh
; then
671 ac_install_sh
="$ac_aux_dir/install.sh -c"
675 if test -z "$ac_aux_dir"; then
676 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
678 ac_config_guess
=$ac_aux_dir/config.guess
679 ac_config_sub
=$ac_aux_dir/config.sub
680 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
683 # Do some error checking and defaulting for the host and target type.
685 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
688 # 1. You are not allowed to specify --host, --target, and nonopt at the
690 # 2. Host defaults to nonopt.
691 # 3. If nonopt is not specified, then host defaults to the current host,
692 # as determined by config.guess.
693 # 4. Target and build default to nonopt.
694 # 5. If nonopt is not specified, then target and build default to host.
696 # The aliases save the names the user supplied, while $host etc.
697 # will get canonicalized.
698 case $host---$target---$nonopt in
699 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
700 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
704 # Make sure we can run config.sub.
705 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
706 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
709 echo $ac_n "checking host system type""... $ac_c" 1>&6
710 echo "configure:711: checking host system type" >&5
713 case "$host_alias" in
717 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
718 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
720 *) host_alias
=$nonopt ;;
724 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
725 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$host" 1>&6
730 echo $ac_n "checking target system type""... $ac_c" 1>&6
731 echo "configure:732: checking target system type" >&5
734 case "$target_alias" in
737 NONE
) target_alias
=$host_alias ;;
738 *) target_alias
=$nonopt ;;
742 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
743 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
744 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
745 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo "$ac_t""$target" 1>&6
748 echo $ac_n "checking build system type""... $ac_c" 1>&6
749 echo "configure:750: checking build system type" >&5
752 case "$build_alias" in
755 NONE
) build_alias
=$host_alias ;;
756 *) build_alias
=$nonopt ;;
760 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
761 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
762 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
763 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
764 echo "$ac_t""$build" 1>&6
766 test "$host_alias" != "$target_alias" &&
767 test "$program_prefix$program_suffix$program_transform_name" = \
769 program_prefix
=${target_alias}-
771 if test "$program_transform_name" = s
,x
,x
,; then
772 program_transform_name
=
774 # Double any \ or $. echo might interpret backslashes.
775 cat <<\EOF_SED
> conftestsed
776 s
,\\,\\\\,g
; s
,\$
,$$
,g
778 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
781 test "$program_prefix" != NONE
&&
782 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
783 # Use a double $ so make ignores it.
784 test "$program_suffix" != NONE
&&
785 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
787 # sed with no file args requires a program.
788 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
790 # Extract the first word of "gcc", so it can be a program name with args.
791 set dummy gcc
; ac_word
=$2
792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
793 echo "configure:794: checking for $ac_word" >&5
794 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 if test -n "$CC"; then
798 ac_cv_prog_CC
="$CC" # Let the user override the test.
800 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
801 for ac_dir
in $PATH; do
802 test -z "$ac_dir" && ac_dir
=.
803 if test -f $ac_dir/$ac_word; then
812 if test -n "$CC"; then
813 echo "$ac_t""$CC" 1>&6
815 echo "$ac_t""no" 1>&6
818 if test -z "$CC"; then
819 # Extract the first word of "cc", so it can be a program name with args.
820 set dummy cc
; ac_word
=$2
821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
822 echo "configure:823: checking for $ac_word" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 if test -n "$CC"; then
827 ac_cv_prog_CC
="$CC" # Let the user override the test.
829 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
831 for ac_dir
in $PATH; do
832 test -z "$ac_dir" && ac_dir
=.
833 if test -f $ac_dir/$ac_word; then
834 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
843 if test $ac_prog_rejected = yes; then
844 # We found a bogon in the path, so make sure we never use it.
845 set dummy
$ac_cv_prog_CC
847 if test $# -gt 0; then
848 # We chose a different compiler from the bogus one.
849 # However, it has the same basename, so the bogon will be chosen
850 # first if we set CC to just the basename; use the full file name.
852 set dummy
"$ac_dir/$ac_word" "$@"
860 if test -n "$CC"; then
861 echo "$ac_t""$CC" 1>&6
863 echo "$ac_t""no" 1>&6
866 if test -z "$CC"; then
869 # Extract the first word of "cl", so it can be a program name with args.
870 set dummy cl
; ac_word
=$2
871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
872 echo "configure:873: checking for $ac_word" >&5
873 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
876 if test -n "$CC"; then
877 ac_cv_prog_CC
="$CC" # Let the user override the test.
879 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
880 for ac_dir
in $PATH; do
881 test -z "$ac_dir" && ac_dir
=.
882 if test -f $ac_dir/$ac_word; then
891 if test -n "$CC"; then
892 echo "$ac_t""$CC" 1>&6
894 echo "$ac_t""no" 1>&6
899 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
903 echo "configure:904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
907 ac_cpp
='$CPP $CPPFLAGS'
908 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
909 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
910 cross_compiling
=$ac_cv_prog_cc_cross
912 cat > conftest.
$ac_ext <<EOF
913 #line 914 "configure"
914 #include "confdefs.h"
917 if { (eval echo configure
:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
918 ac_cv_prog_cc_works
=yes
919 # If we can't run a trivial program, we are probably using a cross compiler.
920 if (.
/conftest
; exit) 2>/dev
/null
; then
921 ac_cv_prog_cc_cross
=no
923 ac_cv_prog_cc_cross
=yes
926 echo "configure: failed program was:" >&5
927 cat conftest.
$ac_ext >&5
928 ac_cv_prog_cc_works
=no
932 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
933 if test $ac_cv_prog_cc_works = no
; then
934 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
936 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
937 echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
938 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
939 cross_compiling
=$ac_cv_prog_cc_cross
941 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
942 echo "configure:943: checking whether we are using GNU C" >&5
943 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
946 cat > conftest.c
<<EOF
951 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
958 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
960 if test $ac_cv_prog_gcc = yes; then
966 ac_test_CFLAGS
="${CFLAGS+set}"
967 ac_save_CFLAGS
="$CFLAGS"
969 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
970 echo "configure:971: checking whether ${CC-cc} accepts -g" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
974 echo 'void f(){}' > conftest.c
975 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
984 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
985 if test "$ac_test_CFLAGS" = set; then
986 CFLAGS
="$ac_save_CFLAGS"
987 elif test $ac_cv_prog_cc_g = yes; then
988 if test "$GCC" = yes; then
994 if test "$GCC" = yes; then
1001 # Find a good install program. We prefer a C program (faster),
1002 # so one script is as good as another. But avoid the broken or
1003 # incompatible versions:
1004 # SysV /etc/install, /usr/sbin/install
1005 # SunOS /usr/etc/install
1006 # IRIX /sbin/install
1008 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1009 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1010 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1011 # ./install, which can be erroneously created by make from ./install.sh.
1012 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1013 echo "configure:1014: checking for a BSD compatible install" >&5
1014 if test -z "$INSTALL"; then
1015 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1018 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1019 for ac_dir
in $PATH; do
1020 # Account for people who put trailing slashes in PATH elements.
1022 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1024 # OSF1 and SCO ODT 3.0 have their own names for install.
1025 # Don't use installbsd from OSF since it installs stuff as root
1027 for ac_prog
in ginstall scoinst
install; do
1028 if test -f $ac_dir/$ac_prog; then
1029 if test $ac_prog = install &&
1030 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1031 # AIX install. It has an incompatible calling convention.
1034 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1045 if test "${ac_cv_path_install+set}" = set; then
1046 INSTALL
="$ac_cv_path_install"
1048 # As a last resort, use the slow shell script. We don't cache a
1049 # path for INSTALL within a source directory, because that will
1050 # break other packages using the cache if that directory is
1051 # removed, or if the path is relative.
1052 INSTALL
="$ac_install_sh"
1055 echo "$ac_t""$INSTALL" 1>&6
1057 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1058 # It thinks the first close brace ends the variable substitution.
1059 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1061 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1064 .
${srcdir}/..
/..
/bfd
/configure.
host
1070 # Extract the first word of "ranlib", so it can be a program name with args.
1071 set dummy ranlib
; ac_word
=$2
1072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1073 echo "configure:1074: checking for $ac_word" >&5
1074 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1077 if test -n "$RANLIB"; then
1078 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1080 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1081 for ac_dir
in $PATH; do
1082 test -z "$ac_dir" && ac_dir
=.
1083 if test -f $ac_dir/$ac_word; then
1084 ac_cv_prog_RANLIB
="ranlib"
1089 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1092 RANLIB
="$ac_cv_prog_RANLIB"
1093 if test -n "$RANLIB"; then
1094 echo "$ac_t""$RANLIB" 1>&6
1096 echo "$ac_t""no" 1>&6
1100 # Put a plausible default for CC_FOR_BUILD in Makefile.
1101 if test "x$cross_compiling" = "xno"; then
1102 CC_FOR_BUILD
='$(CC)'
1109 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1110 echo "configure:1111: checking how to run the C preprocessor" >&5
1111 # On Suns, sometimes $CPP names a directory.
1112 if test -n "$CPP" && test -d "$CPP"; then
1115 if test -z "$CPP"; then
1116 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 # This must be in double quotes, not single quotes, because CPP may get
1120 # substituted into the Makefile and "${CC-cc}" will confuse make.
1122 # On the NeXT, cc -E runs the code through the compiler's parser,
1123 # not just through cpp.
1124 cat > conftest.
$ac_ext <<EOF
1125 #line 1126 "configure"
1126 #include "confdefs.h"
1130 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1131 { (eval echo configure
:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1132 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1133 if test -z "$ac_err"; then
1137 echo "configure: failed program was:" >&5
1138 cat conftest.
$ac_ext >&5
1140 CPP
="${CC-cc} -E -traditional-cpp"
1141 cat > conftest.
$ac_ext <<EOF
1142 #line 1143 "configure"
1143 #include "confdefs.h"
1147 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1148 { (eval echo configure
:1149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1149 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1150 if test -z "$ac_err"; then
1154 echo "configure: failed program was:" >&5
1155 cat conftest.
$ac_ext >&5
1157 CPP
="${CC-cc} -nologo -E"
1158 cat > conftest.
$ac_ext <<EOF
1159 #line 1160 "configure"
1160 #include "confdefs.h"
1164 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1165 { (eval echo configure
:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1166 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1167 if test -z "$ac_err"; then
1171 echo "configure: failed program was:" >&5
1172 cat conftest.
$ac_ext >&5
1181 ac_cv_prog_CPP
="$CPP"
1183 CPP
="$ac_cv_prog_CPP"
1185 ac_cv_prog_CPP
="$CPP"
1187 echo "$ac_t""$CPP" 1>&6
1189 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether ${MAKE-make} sets \${MAKE}" >&5
1191 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1192 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 cat > conftestmake
<<\EOF
1197 @
echo 'ac_maketemp="${MAKE}"'
1199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1200 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1201 if test -n "$ac_maketemp"; then
1202 eval ac_cv_prog_make_
${ac_make}_set
=yes
1204 eval ac_cv_prog_make_
${ac_make}_set
=no
1208 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1209 echo "$ac_t""yes" 1>&6
1212 echo "$ac_t""no" 1>&6
1213 SET_MAKE
="MAKE=${MAKE-make}"
1216 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1217 echo "configure:1218: checking for POSIXized ISC" >&5
1218 if test -d /etc
/conf
/kconfig.d
&&
1219 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1221 echo "$ac_t""yes" 1>&6
1222 ISC
=yes # If later tests want to check for ISC.
1223 cat >> confdefs.h
<<\EOF
1224 #define _POSIX_SOURCE 1
1227 if test "$GCC" = yes; then
1233 echo "$ac_t""no" 1>&6
1237 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1238 echo "configure:1239: checking for ANSI C header files" >&5
1239 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1242 cat > conftest.
$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1250 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1251 { (eval echo configure
:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1252 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1253 if test -z "$ac_err"; then
1255 ac_cv_header_stdc
=yes
1258 echo "configure: failed program was:" >&5
1259 cat conftest.
$ac_ext >&5
1261 ac_cv_header_stdc
=no
1265 if test $ac_cv_header_stdc = yes; then
1266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1267 cat > conftest.
$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1273 egrep "memchr" >/dev
/null
2>&1; then
1277 ac_cv_header_stdc
=no
1283 if test $ac_cv_header_stdc = yes; then
1284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1285 cat > conftest.
$ac_ext <<EOF
1286 #line 1287 "configure"
1287 #include "confdefs.h"
1290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1291 egrep "free" >/dev
/null
2>&1; then
1295 ac_cv_header_stdc
=no
1301 if test $ac_cv_header_stdc = yes; then
1302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1303 if test "$cross_compiling" = yes; then
1306 cat > conftest.
$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1310 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1311 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1313 int main () { int i; for (i = 0; i < 256; i++)
1314 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1318 if { (eval echo configure
:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1322 echo "configure: failed program was:" >&5
1323 cat conftest.
$ac_ext >&5
1325 ac_cv_header_stdc
=no
1333 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1334 if test $ac_cv_header_stdc = yes; then
1335 cat >> confdefs.h
<<\EOF
1336 #define STDC_HEADERS 1
1341 echo $ac_n "checking for working const""... $ac_c" 1>&6
1342 echo "configure:1343: checking for working const" >&5
1343 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1346 cat > conftest.
$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1352 /* Ultrix mips cc rejects this. */
1353 typedef int charset[2]; const charset x;
1354 /* SunOS 4.1.1 cc rejects this. */
1355 char const *const *ccp;
1357 /* NEC SVR4.0.2 mips cc rejects this. */
1358 struct point {int x, y;};
1359 static struct point const zero = {0,0};
1360 /* AIX XL C 1.02.0.0 rejects this.
1361 It does not let you subtract one const X* pointer from another in an arm
1362 of an if-expression whose if-part is not a constant expression */
1363 const char *g = "string";
1364 ccp = &g + (g ? g-g : 0);
1365 /* HPUX 7.0 cc rejects these. */
1368 ccp = (char const *const *) p;
1369 { /* SCO 3.2v4 cc rejects this. */
1371 char const *s = 0 ? (char *) 0 : (char const *) 0;
1375 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1377 const int *foo = &x[0];
1380 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1381 typedef const int *iptr;
1385 { /* AIX XL C 1.02.0.0 rejects this saying
1386 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1387 struct s { int j; const int *ap[3]; };
1388 struct s *b; b->j = 5;
1390 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1396 if { (eval echo configure
:1397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1400 echo "configure: failed program was:" >&5
1401 cat conftest.
$ac_ext >&5
1408 echo "$ac_t""$ac_cv_c_const" 1>&6
1409 if test $ac_cv_c_const = no
; then
1410 cat >> confdefs.h
<<\EOF
1416 echo $ac_n "checking for inline""... $ac_c" 1>&6
1417 echo "configure:1418: checking for inline" >&5
1418 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1422 for ac_kw
in inline __inline__ __inline
; do
1423 cat > conftest.
$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1431 if { (eval echo configure
:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1433 ac_cv_c_inline
=$ac_kw; break
1435 echo "configure: failed program was:" >&5
1436 cat conftest.
$ac_ext >&5
1443 echo "$ac_t""$ac_cv_c_inline" 1>&6
1444 case "$ac_cv_c_inline" in
1446 no
) cat >> confdefs.h
<<\EOF
1450 *) cat >> confdefs.h
<<EOF
1451 #define inline $ac_cv_c_inline
1456 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1457 echo "configure:1458: checking for off_t" >&5
1458 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 cat > conftest.
$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1464 #include <sys/types.h>
1470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1471 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1473 ac_cv_type_off_t
=yes
1481 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1482 if test $ac_cv_type_off_t = no
; then
1483 cat >> confdefs.h
<<\EOF
1489 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1490 echo "configure:1491: checking for size_t" >&5
1491 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 cat > conftest.
$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1497 #include <sys/types.h>
1503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1504 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1506 ac_cv_type_size_t
=yes
1509 ac_cv_type_size_t
=no
1514 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1515 if test $ac_cv_type_size_t = no
; then
1516 cat >> confdefs.h
<<\EOF
1517 #define size_t unsigned
1522 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1523 # for constant arguments. Useless!
1524 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1525 echo "configure:1526: checking for working alloca.h" >&5
1526 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 cat > conftest.
$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1534 char *p = alloca(2 * sizeof(int));
1537 if { (eval echo configure
:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1539 ac_cv_header_alloca_h
=yes
1541 echo "configure: failed program was:" >&5
1542 cat conftest.
$ac_ext >&5
1544 ac_cv_header_alloca_h
=no
1549 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1550 if test $ac_cv_header_alloca_h = yes; then
1551 cat >> confdefs.h
<<\EOF
1552 #define HAVE_ALLOCA_H 1
1557 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1558 echo "configure:1559: checking for alloca" >&5
1559 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 cat > conftest.
$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1567 # define alloca __builtin_alloca
1570 # include <malloc.h>
1571 # define alloca _alloca
1574 # include <alloca.h>
1579 # ifndef alloca /* predefined by HP cc +Olibcalls */
1588 char *p = (char *) alloca(1);
1591 if { (eval echo configure
:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1593 ac_cv_func_alloca_works
=yes
1595 echo "configure: failed program was:" >&5
1596 cat conftest.
$ac_ext >&5
1598 ac_cv_func_alloca_works
=no
1603 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1604 if test $ac_cv_func_alloca_works = yes; then
1605 cat >> confdefs.h
<<\EOF
1606 #define HAVE_ALLOCA 1
1611 if test $ac_cv_func_alloca_works = no
; then
1612 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1613 # that cause trouble. Some versions do not even contain alloca or
1614 # contain a buggy version. If you still want to use their alloca,
1615 # use ar to extract alloca.o from them instead of compiling alloca.c.
1616 ALLOCA
=alloca.
${ac_objext}
1617 cat >> confdefs.h
<<\EOF
1622 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1623 echo "configure:1624: checking whether alloca needs Cray hooks" >&5
1624 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 cat > conftest.
$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1630 #if defined(CRAY) && ! defined(CRAY2)
1637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1638 egrep "webecray" >/dev
/null
2>&1; then
1649 echo "$ac_t""$ac_cv_os_cray" 1>&6
1650 if test $ac_cv_os_cray = yes; then
1651 for ac_func
in _getb67 GETB67 getb67
; do
1652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1653 echo "configure:1654: checking for $ac_func" >&5
1654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 cat > conftest.
$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 /* System header to define __stub macros and hopefully few prototypes,
1661 which can conflict with char $ac_func(); below. */
1663 /* Override any gcc2 internal prototype to avoid an error. */
1664 /* We use char because int might match the return type of a gcc2
1665 builtin and then its argument prototype would still apply. */
1670 /* The GNU C library defines this for functions which it implements
1671 to always fail with ENOSYS. Some functions are actually named
1672 something starting with __ and the normal name is an alias. */
1673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1681 if { (eval echo configure
:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1683 eval "ac_cv_func_$ac_func=yes"
1685 echo "configure: failed program was:" >&5
1686 cat conftest.
$ac_ext >&5
1688 eval "ac_cv_func_$ac_func=no"
1693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1694 echo "$ac_t""yes" 1>&6
1695 cat >> confdefs.h
<<EOF
1696 #define CRAY_STACKSEG_END $ac_func
1701 echo "$ac_t""no" 1>&6
1707 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1708 echo "configure:1709: checking stack direction for C alloca" >&5
1709 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 if test "$cross_compiling" = yes; then
1713 ac_cv_c_stack_direction
=0
1715 cat > conftest.
$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1718 find_stack_direction ()
1720 static char *addr = 0;
1725 return find_stack_direction ();
1728 return (&dummy > addr) ? 1 : -1;
1732 exit (find_stack_direction() < 0);
1735 if { (eval echo configure
:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1737 ac_cv_c_stack_direction
=1
1739 echo "configure: failed program was:" >&5
1740 cat conftest.
$ac_ext >&5
1742 ac_cv_c_stack_direction
=-1
1749 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1750 cat >> confdefs.h
<<EOF
1751 #define STACK_DIRECTION $ac_cv_c_stack_direction
1756 for ac_hdr
in unistd.h
1758 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1760 echo "configure:1761: checking for $ac_hdr" >&5
1761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 cat > conftest.
$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1769 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1770 { (eval echo configure
:1771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1771 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1772 if test -z "$ac_err"; then
1774 eval "ac_cv_header_$ac_safe=yes"
1777 echo "configure: failed program was:" >&5
1778 cat conftest.
$ac_ext >&5
1780 eval "ac_cv_header_$ac_safe=no"
1784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1787 cat >> confdefs.h
<<EOF
1788 #define $ac_tr_hdr 1
1792 echo "$ac_t""no" 1>&6
1796 for ac_func
in getpagesize
1798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1799 echo "configure:1800: checking for $ac_func" >&5
1800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 cat > conftest.
$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $ac_func(); below. */
1809 /* Override any gcc2 internal prototype to avoid an error. */
1810 /* We use char because int might match the return type of a gcc2
1811 builtin and then its argument prototype would still apply. */
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1827 if { (eval echo configure
:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1829 eval "ac_cv_func_$ac_func=yes"
1831 echo "configure: failed program was:" >&5
1832 cat conftest.
$ac_ext >&5
1834 eval "ac_cv_func_$ac_func=no"
1839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1842 cat >> confdefs.h
<<EOF
1843 #define $ac_tr_func 1
1847 echo "$ac_t""no" 1>&6
1851 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1852 echo "configure:1853: checking for working mmap" >&5
1853 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 if test "$cross_compiling" = yes; then
1857 ac_cv_func_mmap_fixed_mapped
=no
1859 cat > conftest.
$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1863 /* Thanks to Mike Haertel and Jim Avera for this test.
1864 Here is a matrix of mmap possibilities:
1865 mmap private not fixed
1866 mmap private fixed at somewhere currently unmapped
1867 mmap private fixed at somewhere already mapped
1868 mmap shared not fixed
1869 mmap shared fixed at somewhere currently unmapped
1870 mmap shared fixed at somewhere already mapped
1871 For private mappings, we should verify that changes cannot be read()
1872 back from the file, nor mmap's back from the file at a different
1873 address. (There have been systems where private was not correctly
1874 implemented like the infamous i386 svr4.0, and systems where the
1875 VM page cache was not coherent with the filesystem buffer cache
1876 like early versions of FreeBSD and possibly contemporary NetBSD.)
1877 For shared mappings, we should conversely verify that changes get
1878 propogated back to all the places they're supposed to be.
1880 Grep wants private fixed already mapped.
1881 The main things grep needs to know about mmap are:
1882 * does it exist and is it safe to write into the mmap'd area
1883 * how to use it (BSD variants) */
1884 #include <sys/types.h>
1886 #include <sys/mman.h>
1888 /* This mess was copied from the GNU getpagesize.h. */
1889 #ifndef HAVE_GETPAGESIZE
1890 # ifdef HAVE_UNISTD_H
1891 # include <unistd.h>
1894 /* Assume that all systems that can run configure have sys/param.h. */
1895 # ifndef HAVE_SYS_PARAM_H
1896 # define HAVE_SYS_PARAM_H 1
1899 # ifdef _SC_PAGESIZE
1900 # define getpagesize() sysconf(_SC_PAGESIZE)
1901 # else /* no _SC_PAGESIZE */
1902 # ifdef HAVE_SYS_PARAM_H
1903 # include <sys/param.h>
1904 # ifdef EXEC_PAGESIZE
1905 # define getpagesize() EXEC_PAGESIZE
1906 # else /* no EXEC_PAGESIZE */
1908 # define getpagesize() NBPG * CLSIZE
1911 # endif /* no CLSIZE */
1912 # else /* no NBPG */
1914 # define getpagesize() NBPC
1915 # else /* no NBPC */
1917 # define getpagesize() PAGESIZE
1918 # endif /* PAGESIZE */
1919 # endif /* no NBPC */
1920 # endif /* no NBPG */
1921 # endif /* no EXEC_PAGESIZE */
1922 # else /* no HAVE_SYS_PARAM_H */
1923 # define getpagesize() 8192 /* punt totally */
1924 # endif /* no HAVE_SYS_PARAM_H */
1925 # endif /* no _SC_PAGESIZE */
1927 #endif /* no HAVE_GETPAGESIZE */
1930 extern "C" { void *malloc(unsigned); }
1938 char *data, *data2, *data3;
1942 pagesize = getpagesize();
1945 * First, make a file with some known garbage in it.
1947 data = malloc(pagesize);
1950 for (i = 0; i < pagesize; ++i)
1951 *(data + i) = rand();
1953 fd = creat("conftestmmap", 0600);
1956 if (write(fd, data, pagesize) != pagesize)
1961 * Next, try to mmap the file at a fixed address which
1962 * already has something else allocated at it. If we can,
1963 * also make sure that we see the same garbage.
1965 fd = open("conftestmmap", O_RDWR);
1968 data2 = malloc(2 * pagesize);
1971 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1972 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1973 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1975 for (i = 0; i < pagesize; ++i)
1976 if (*(data + i) != *(data2 + i))
1980 * Finally, make sure that changes to the mapped area
1981 * do not percolate back to the file as seen by read().
1982 * (This is a bug on some variants of i386 svr4.0.)
1984 for (i = 0; i < pagesize; ++i)
1985 *(data2 + i) = *(data2 + i) + 1;
1986 data3 = malloc(pagesize);
1989 if (read(fd, data3, pagesize) != pagesize)
1991 for (i = 0; i < pagesize; ++i)
1992 if (*(data + i) != *(data3 + i))
1995 unlink("conftestmmap");
2000 if { (eval echo configure
:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2002 ac_cv_func_mmap_fixed_mapped
=yes
2004 echo "configure: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2007 ac_cv_func_mmap_fixed_mapped
=no
2014 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2015 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2016 cat >> confdefs.h
<<\EOF
2023 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2024 unistd.h values.h sys
/param.h
2026 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2028 echo "configure:2029: checking for $ac_hdr" >&5
2029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 cat > conftest.
$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2037 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2038 { (eval echo configure
:2039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2039 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2040 if test -z "$ac_err"; then
2042 eval "ac_cv_header_$ac_safe=yes"
2045 echo "configure: failed program was:" >&5
2046 cat conftest.
$ac_ext >&5
2048 eval "ac_cv_header_$ac_safe=no"
2052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2053 echo "$ac_t""yes" 1>&6
2054 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2055 cat >> confdefs.h
<<EOF
2056 #define $ac_tr_hdr 1
2060 echo "$ac_t""no" 1>&6
2064 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2065 __argz_count __argz_stringify __argz_next
2067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2068 echo "configure:2069: checking for $ac_func" >&5
2069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 cat > conftest.
$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2075 /* System header to define __stub macros and hopefully few prototypes,
2076 which can conflict with char $ac_func(); below. */
2078 /* Override any gcc2 internal prototype to avoid an error. */
2079 /* We use char because int might match the return type of a gcc2
2080 builtin and then its argument prototype would still apply. */
2085 /* The GNU C library defines this for functions which it implements
2086 to always fail with ENOSYS. Some functions are actually named
2087 something starting with __ and the normal name is an alias. */
2088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2096 if { (eval echo configure
:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2098 eval "ac_cv_func_$ac_func=yes"
2100 echo "configure: failed program was:" >&5
2101 cat conftest.
$ac_ext >&5
2103 eval "ac_cv_func_$ac_func=no"
2108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2111 cat >> confdefs.h
<<EOF
2112 #define $ac_tr_func 1
2116 echo "$ac_t""no" 1>&6
2121 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2122 for ac_func
in stpcpy
2124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_func" >&5
2126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.
$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 /* System header to define __stub macros and hopefully few prototypes,
2133 which can conflict with char $ac_func(); below. */
2135 /* Override any gcc2 internal prototype to avoid an error. */
2136 /* We use char because int might match the return type of a gcc2
2137 builtin and then its argument prototype would still apply. */
2142 /* The GNU C library defines this for functions which it implements
2143 to always fail with ENOSYS. Some functions are actually named
2144 something starting with __ and the normal name is an alias. */
2145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2153 if { (eval echo configure
:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2155 eval "ac_cv_func_$ac_func=yes"
2157 echo "configure: failed program was:" >&5
2158 cat conftest.
$ac_ext >&5
2160 eval "ac_cv_func_$ac_func=no"
2165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2167 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2168 cat >> confdefs.h
<<EOF
2169 #define $ac_tr_func 1
2173 echo "$ac_t""no" 1>&6
2178 if test "${ac_cv_func_stpcpy}" = "yes"; then
2179 cat >> confdefs.h
<<\EOF
2180 #define HAVE_STPCPY 1
2185 if test $ac_cv_header_locale_h = yes; then
2186 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2187 echo "configure:2188: checking for LC_MESSAGES" >&5
2188 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 cat > conftest.
$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2199 if { (eval echo configure
:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2201 am_cv_val_LC_MESSAGES
=yes
2203 echo "configure: failed program was:" >&5
2204 cat conftest.
$ac_ext >&5
2206 am_cv_val_LC_MESSAGES
=no
2211 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2212 if test $am_cv_val_LC_MESSAGES = yes; then
2213 cat >> confdefs.h
<<\EOF
2214 #define HAVE_LC_MESSAGES 1
2219 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2220 echo "configure:2221: checking whether NLS is requested" >&5
2221 # Check whether --enable-nls or --disable-nls was given.
2222 if test "${enable_nls+set}" = set; then
2223 enableval
="$enable_nls"
2229 echo "$ac_t""$USE_NLS" 1>&6
2232 USE_INCLUDED_LIBINTL
=no
2234 if test "$USE_NLS" = "yes"; then
2235 cat >> confdefs.h
<<\EOF
2236 #define ENABLE_NLS 1
2239 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2240 echo "configure:2241: checking whether included gettext is requested" >&5
2241 # Check whether --with-included-gettext or --without-included-gettext was given.
2242 if test "${with_included_gettext+set}" = set; then
2243 withval
="$with_included_gettext"
2244 nls_cv_force_use_gnu_gettext
=$withval
2246 nls_cv_force_use_gnu_gettext
=no
2249 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2251 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2252 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2254 nls_cv_header_libgt
=
2257 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2258 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2259 echo "configure:2260: checking for libintl.h" >&5
2260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.
$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <libintl.h>
2268 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2269 { (eval echo configure
:2270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2270 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2271 if test -z "$ac_err"; then
2273 eval "ac_cv_header_$ac_safe=yes"
2276 echo "configure: failed program was:" >&5
2277 cat conftest.
$ac_ext >&5
2279 eval "ac_cv_header_$ac_safe=no"
2283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2284 echo "$ac_t""yes" 1>&6
2285 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2286 echo "configure:2287: checking for gettext in libc" >&5
2287 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 cat > conftest.
$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2293 #include <libintl.h>
2295 return (int) gettext ("")
2298 if { (eval echo configure
:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2300 gt_cv_func_gettext_libc
=yes
2302 echo "configure: failed program was:" >&5
2303 cat conftest.
$ac_ext >&5
2305 gt_cv_func_gettext_libc
=no
2310 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2312 if test "$gt_cv_func_gettext_libc" != "yes"; then
2313 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2314 echo "configure:2315: checking for bindtextdomain in -lintl" >&5
2315 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 ac_save_LIBS
="$LIBS"
2321 cat > conftest.
$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2324 /* Override any gcc2 internal prototype to avoid an error. */
2325 /* We use char because int might match the return type of a gcc2
2326 builtin and then its argument prototype would still apply. */
2327 char bindtextdomain();
2333 if { (eval echo configure
:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2335 eval "ac_cv_lib_$ac_lib_var=yes"
2337 echo "configure: failed program was:" >&5
2338 cat conftest.
$ac_ext >&5
2340 eval "ac_cv_lib_$ac_lib_var=no"
2343 LIBS
="$ac_save_LIBS"
2346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2347 echo "$ac_t""yes" 1>&6
2348 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2349 echo "configure:2350: checking for gettext in libintl" >&5
2350 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2353 cat > conftest.
$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2358 return (int) gettext ("")
2361 if { (eval echo configure
:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2363 gt_cv_func_gettext_libintl
=yes
2365 echo "configure: failed program was:" >&5
2366 cat conftest.
$ac_ext >&5
2368 gt_cv_func_gettext_libintl
=no
2373 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2375 echo "$ac_t""no" 1>&6
2380 if test "$gt_cv_func_gettext_libc" = "yes" \
2381 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2382 cat >> confdefs.h
<<\EOF
2383 #define HAVE_GETTEXT 1
2386 # Extract the first word of "msgfmt", so it can be a program name with args.
2387 set dummy msgfmt
; ac_word
=$2
2388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389 echo "configure:2390: checking for $ac_word" >&5
2390 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2395 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2398 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2399 for ac_dir
in $PATH; do
2400 test -z "$ac_dir" && ac_dir
=.
2401 if test -f $ac_dir/$ac_word; then
2402 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2403 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2409 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2413 MSGFMT
="$ac_cv_path_MSGFMT"
2414 if test -n "$MSGFMT"; then
2415 echo "$ac_t""$MSGFMT" 1>&6
2417 echo "$ac_t""no" 1>&6
2419 if test "$MSGFMT" != "no"; then
2420 for ac_func
in dcgettext
2422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_func" >&5
2424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 cat > conftest.
$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 /* System header to define __stub macros and hopefully few prototypes,
2431 which can conflict with char $ac_func(); below. */
2433 /* Override any gcc2 internal prototype to avoid an error. */
2434 /* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2440 /* The GNU C library defines this for functions which it implements
2441 to always fail with ENOSYS. Some functions are actually named
2442 something starting with __ and the normal name is an alias. */
2443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2451 if { (eval echo configure
:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2453 eval "ac_cv_func_$ac_func=yes"
2455 echo "configure: failed program was:" >&5
2456 cat conftest.
$ac_ext >&5
2458 eval "ac_cv_func_$ac_func=no"
2463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2464 echo "$ac_t""yes" 1>&6
2465 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2466 cat >> confdefs.h
<<EOF
2467 #define $ac_tr_func 1
2471 echo "$ac_t""no" 1>&6
2475 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2476 set dummy gmsgfmt
; ac_word
=$2
2477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_word" >&5
2479 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2484 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2487 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2490 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2491 for ac_dir
in $PATH; do
2492 test -z "$ac_dir" && ac_dir
=.
2493 if test -f $ac_dir/$ac_word; then
2494 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2499 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2503 GMSGFMT
="$ac_cv_path_GMSGFMT"
2504 if test -n "$GMSGFMT"; then
2505 echo "$ac_t""$GMSGFMT" 1>&6
2507 echo "$ac_t""no" 1>&6
2510 # Extract the first word of "xgettext", so it can be a program name with args.
2511 set dummy xgettext
; ac_word
=$2
2512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2513 echo "configure:2514: checking for $ac_word" >&5
2514 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2519 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2522 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2523 for ac_dir
in $PATH; do
2524 test -z "$ac_dir" && ac_dir
=.
2525 if test -f $ac_dir/$ac_word; then
2526 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2527 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2533 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2537 XGETTEXT
="$ac_cv_path_XGETTEXT"
2538 if test -n "$XGETTEXT"; then
2539 echo "$ac_t""$XGETTEXT" 1>&6
2541 echo "$ac_t""no" 1>&6
2544 cat > conftest.
$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2549 extern int _nl_msg_cat_cntr;
2550 return _nl_msg_cat_cntr
2553 if { (eval echo configure
:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2558 echo "configure: failed program was:" >&5
2559 cat conftest.
$ac_ext >&5
2570 echo "$ac_t""no" 1>&6
2575 if test "$CATOBJEXT" = "NONE"; then
2576 nls_cv_use_gnu_gettext
=yes
2580 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2581 INTLOBJS
="\$(GETTOBJS)"
2582 # Extract the first word of "msgfmt", so it can be a program name with args.
2583 set dummy msgfmt
; ac_word
=$2
2584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_word" >&5
2586 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2591 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2594 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2595 for ac_dir
in $PATH; do
2596 test -z "$ac_dir" && ac_dir
=.
2597 if test -f $ac_dir/$ac_word; then
2598 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2599 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2605 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2609 MSGFMT
="$ac_cv_path_MSGFMT"
2610 if test -n "$MSGFMT"; then
2611 echo "$ac_t""$MSGFMT" 1>&6
2613 echo "$ac_t""no" 1>&6
2616 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2617 set dummy gmsgfmt
; ac_word
=$2
2618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2619 echo "configure:2620: checking for $ac_word" >&5
2620 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2625 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2628 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2631 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2632 for ac_dir
in $PATH; do
2633 test -z "$ac_dir" && ac_dir
=.
2634 if test -f $ac_dir/$ac_word; then
2635 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2640 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2644 GMSGFMT
="$ac_cv_path_GMSGFMT"
2645 if test -n "$GMSGFMT"; then
2646 echo "$ac_t""$GMSGFMT" 1>&6
2648 echo "$ac_t""no" 1>&6
2651 # Extract the first word of "xgettext", so it can be a program name with args.
2652 set dummy xgettext
; ac_word
=$2
2653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_word" >&5
2655 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2660 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2663 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2664 for ac_dir
in $PATH; do
2665 test -z "$ac_dir" && ac_dir
=.
2666 if test -f $ac_dir/$ac_word; then
2667 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2668 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2674 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2678 XGETTEXT
="$ac_cv_path_XGETTEXT"
2679 if test -n "$XGETTEXT"; then
2680 echo "$ac_t""$XGETTEXT" 1>&6
2682 echo "$ac_t""no" 1>&6
2686 USE_INCLUDED_LIBINTL
=yes
2690 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2692 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2693 nls_cv_header_intl
=libintl.h
2694 nls_cv_header_libgt
=libgettext.h
2697 if test "$XGETTEXT" != ":"; then
2698 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2701 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2706 # We need to process the po/ directory.
2710 nls_cv_header_intl
=libintl.h
2711 nls_cv_header_libgt
=libgettext.h
2714 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2715 # because some of the sources are only built for this goal.
2716 if test "$PACKAGE" = gettext; then
2718 USE_INCLUDED_LIBINTL
=yes
2721 for lang
in $ALL_LINGUAS; do
2722 GMOFILES
="$GMOFILES $lang.gmo"
2723 POFILES
="$POFILES $lang.po"
2739 if test "x$CATOBJEXT" != "x"; then
2740 if test "x$ALL_LINGUAS" = "x"; then
2743 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2744 echo "configure:2745: checking for catalogs to be installed" >&5
2746 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2747 case "$ALL_LINGUAS" in
2748 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2751 LINGUAS
=$NEW_LINGUAS
2752 echo "$ac_t""$LINGUAS" 1>&6
2755 if test -n "$LINGUAS"; then
2756 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2760 if test $ac_cv_header_locale_h = yes; then
2761 INCLUDE_LOCALE_H
="#include <locale.h>"
2764 /* The system does not provide the header <locale.h>. Take care yourself. */"
2768 if test -f $srcdir/po2tbl.
sed.
in; then
2769 if test "$CATOBJEXT" = ".cat"; then
2770 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2771 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2772 echo "configure:2773: checking for linux/version.h" >&5
2773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2776 cat > conftest.
$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2779 #include <linux/version.h>
2781 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2782 { (eval echo configure
:2783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2783 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2784 if test -z "$ac_err"; then
2786 eval "ac_cv_header_$ac_safe=yes"
2789 echo "configure: failed program was:" >&5
2790 cat conftest.
$ac_ext >&5
2792 eval "ac_cv_header_$ac_safe=no"
2796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2797 echo "$ac_t""yes" 1>&6
2800 echo "$ac_t""no" 1>&6
2805 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2807 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2808 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2811 if test "$PACKAGE" = "gettext"; then
2821 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2827 if test -d $srcdir/po
; then
2828 test -d po || mkdir po
2829 if test "x$srcdir" != "x."; then
2830 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2831 posrcprefix
="$srcdir/"
2833 posrcprefix
="../$srcdir/"
2839 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2840 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2844 for ac_hdr
in stdlib.h
time.h unistd.h
2846 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2848 echo "configure:2849: checking for $ac_hdr" >&5
2849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 cat > conftest.
$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2857 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2858 { (eval echo configure
:2859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2859 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2860 if test -z "$ac_err"; then
2862 eval "ac_cv_header_$ac_safe=yes"
2865 echo "configure: failed program was:" >&5
2866 cat conftest.
$ac_ext >&5
2868 eval "ac_cv_header_$ac_safe=no"
2872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2873 echo "$ac_t""yes" 1>&6
2874 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2875 cat >> confdefs.h
<<EOF
2876 #define $ac_tr_hdr 1
2880 echo "$ac_t""no" 1>&6
2885 echo $ac_n "checking whether printf must be declared""... $ac_c" 1>&6
2886 echo "configure:2887: checking whether printf must be declared" >&5
2887 if eval "test \"`echo '$''{'sim_cv_decl_needed_printf'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 cat > conftest.
$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2895 int (*pfn) = (int (*)) printf
2898 if { (eval echo configure
:2899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2900 sim_cv_decl_needed_printf
=no
2902 echo "configure: failed program was:" >&5
2903 cat conftest.
$ac_ext >&5
2905 sim_cv_decl_needed_printf
=yes
2910 echo "$ac_t""$sim_cv_decl_needed_printf" 1>&6
2911 if test $sim_cv_decl_needed_printf = yes; then
2912 cat >> confdefs.h
<<\EOF
2913 #define NEED_DECLARATION_PRINTF 1
2919 cat > confcache
<<\EOF
2920 # This file is a shell script that caches the results of configure
2921 # tests run on this system so they can be shared between configure
2922 # scripts and configure runs. It is not useful on other systems.
2923 # If it contains results you don't want to keep, you may remove or edit it.
2925 # By default, configure uses ./config.cache as the cache file,
2926 # creating it if it does not exist already. You can give configure
2927 # the --cache-file=FILE option to use a different cache file; that is
2928 # what configure does when it calls configure scripts in
2929 # subdirectories, so they share the cache.
2930 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2931 # config.status only pays attention to the cache file if you give it the
2932 # --recheck option to rerun configure.
2935 # The following way of writing the cache mishandles newlines in values,
2936 # but we know of no workaround that is simple, portable, and efficient.
2937 # So, don't put newlines in cache variables' values.
2938 # Ultrix sh set writes to stderr and can't be redirected directly,
2939 # and sets the high bit in the cache file unless we assign to the vars.
2941 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2943 # `set' does not quote correctly, so add quotes (double-quote substitution
2944 # turns \\\\ into \\, and sed turns \\ into \).
2946 -e "s/'/'\\\\''/g" \
2947 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2950 # `set' quotes correctly as required by POSIX, so do not add quotes.
2951 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2954 if cmp -s $cache_file confcache
; then
2957 if test -w $cache_file; then
2958 echo "updating cache $cache_file"
2959 cat confcache
> $cache_file
2961 echo "not updating unwritable cache $cache_file"
2966 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2968 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2969 # Let make expand exec_prefix.
2970 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2972 # Any assignment to VPATH causes Sun make to only execute
2973 # the first set of double-colon rules, so remove it if not needed.
2974 # If there is a colon in the path, we need to keep it.
2975 if test "x$srcdir" = x.
; then
2976 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2979 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2981 DEFS
=-DHAVE_CONFIG_H
2983 # Without the "./", some shells look in PATH for config.status.
2984 : ${CONFIG_STATUS=./config.status}
2986 echo creating
$CONFIG_STATUS
2987 rm -f $CONFIG_STATUS
2988 cat > $CONFIG_STATUS <<EOF
2990 # Generated automatically by configure.
2991 # Run this file to recreate the current configuration.
2992 # This directory was configured as follows,
2993 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2995 # $0 $ac_configure_args
2997 # Compiler output produced by configure, useful for debugging
2998 # configure, is in ./config.log if it exists.
3000 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3003 case "\$ac_option" in
3004 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3005 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3006 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3007 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3008 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
3010 -help | --help | --hel | --he | --h)
3011 echo "\$ac_cs_usage"; exit 0 ;;
3012 *) echo "\$ac_cs_usage"; exit 1 ;;
3016 ac_given_srcdir=$srcdir
3017 ac_given_INSTALL="$INSTALL"
3019 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3021 cat >> $CONFIG_STATUS <<EOF
3023 # Protect against being on the right side of a sed subst in config.status.
3024 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3025 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3028 s%@sim_environment@%$sim_environment%g
3029 s%@sim_alignment@%$sim_alignment%g
3030 s%@sim_assert@%$sim_assert%g
3031 s%@sim_bitsize@%$sim_bitsize%g
3032 s%@sim_endian@%$sim_endian%g
3033 s%@sim_hostendian@%$sim_hostendian%g
3034 s%@sim_float@%$sim_float%g
3035 s%@sim_scache@%$sim_scache%g
3036 s%@sim_default_model@%$sim_default_model%g
3037 s%@sim_hw_cflags@%$sim_hw_cflags%g
3038 s%@sim_hw_objs@%$sim_hw_objs%g
3039 s%@sim_hw@%$sim_hw%g
3040 s%@sim_inline@%$sim_inline%g
3041 s%@sim_packages@%$sim_packages%g
3042 s%@sim_regparm@%$sim_regparm%g
3043 s%@sim_reserved_bits@%$sim_reserved_bits%g
3044 s%@sim_smp@%$sim_smp%g
3045 s%@sim_stdcall@%$sim_stdcall%g
3046 s%@sim_xor_endian@%$sim_xor_endian%g
3047 s%@build_warnings@%$build_warnings%g
3049 s%@CFLAGS@%$CFLAGS%g
3050 s%@CPPFLAGS@%$CPPFLAGS%g
3051 s%@CXXFLAGS@%$CXXFLAGS%g
3053 s%@LDFLAGS@%$LDFLAGS%g
3055 s%@exec_prefix@%$exec_prefix%g
3056 s%@prefix@%$prefix%g
3057 s%@program_transform_name@%$program_transform_name%g
3058 s%@bindir@%$bindir%g
3059 s%@sbindir@%$sbindir%g
3060 s%@libexecdir@%$libexecdir%g
3061 s%@datadir@%$datadir%g
3062 s%@sysconfdir@%$sysconfdir%g
3063 s%@sharedstatedir@%$sharedstatedir%g
3064 s%@localstatedir@%$localstatedir%g
3065 s%@libdir@%$libdir%g
3066 s%@includedir@%$includedir%g
3067 s%@oldincludedir@%$oldincludedir%g
3068 s%@infodir@%$infodir%g
3069 s%@mandir@%$mandir%g
3071 s%@host_alias@%$host_alias%g
3072 s%@host_cpu@%$host_cpu%g
3073 s%@host_vendor@%$host_vendor%g
3074 s%@host_os@%$host_os%g
3075 s%@target@%$target%g
3076 s%@target_alias@%$target_alias%g
3077 s%@target_cpu@%$target_cpu%g
3078 s%@target_vendor@%$target_vendor%g
3079 s%@target_os@%$target_os%g
3081 s%@build_alias@%$build_alias%g
3082 s%@build_cpu@%$build_cpu%g
3083 s%@build_vendor@%$build_vendor%g
3084 s%@build_os@%$build_os%g
3086 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3087 s%@INSTALL_DATA@%$INSTALL_DATA%g
3088 s%@HDEFINES@%$HDEFINES%g
3090 s%@RANLIB@%$RANLIB%g
3091 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3092 s%@SET_MAKE@%$SET_MAKE%g
3094 s%@ALLOCA@%$ALLOCA%g
3095 s%@USE_NLS@%$USE_NLS%g
3096 s%@MSGFMT@%$MSGFMT%g
3097 s%@GMSGFMT@%$GMSGFMT%g
3098 s%@XGETTEXT@%$XGETTEXT%g
3099 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3100 s%@CATALOGS@%$CATALOGS%g
3101 s%@CATOBJEXT@%$CATOBJEXT%g
3102 s%@DATADIRNAME@%$DATADIRNAME%g
3103 s%@GMOFILES@%$GMOFILES%g
3104 s%@INSTOBJEXT@%$INSTOBJEXT%g
3105 s%@INTLDEPS@%$INTLDEPS%g
3106 s%@INTLLIBS@%$INTLLIBS%g
3107 s%@INTLOBJS@%$INTLOBJS%g
3108 s%@POFILES@%$POFILES%g
3110 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3112 s%@GT_YES@%$GT_YES%g
3113 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3119 cat >> $CONFIG_STATUS <<\EOF
3121 # Split the substitutions into bite-sized pieces for seds with
3122 # small command number limits, like on Digital OSF/1 and HP-UX.
3123 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3124 ac_file
=1 # Number of current file.
3125 ac_beg
=1 # First line for current file.
3126 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3129 while $ac_more_lines; do
3130 if test $ac_beg -gt 1; then
3131 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3133 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3135 if test ! -s conftest.s
$ac_file; then
3137 rm -f conftest.s
$ac_file
3139 if test -z "$ac_sed_cmds"; then
3140 ac_sed_cmds
="sed -f conftest.s$ac_file"
3142 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3144 ac_file
=`expr $ac_file + 1`
3146 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3149 if test -z "$ac_sed_cmds"; then
3154 cat >> $CONFIG_STATUS <<EOF
3156 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3158 cat >> $CONFIG_STATUS <<\EOF
3159 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3162 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3163 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3164 *) ac_file_in
="${ac_file}.in" ;;
3167 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3169 # Remove last slash and all that follows it. Not all systems have dirname.
3170 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3171 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3172 # The file is in a subdirectory.
3173 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3174 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3175 # A "../" for each directory in $ac_dir_suffix.
3176 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3178 ac_dir_suffix
= ac_dots
=
3181 case "$ac_given_srcdir" in
3183 if test -z "$ac_dots"; then top_srcdir
=.
3184 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3185 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3187 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3188 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3191 case "$ac_given_INSTALL" in
3192 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3193 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3196 echo creating
"$ac_file"
3198 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3200 *Makefile
*) ac_comsub
="1i\\
3201 # $configure_input" ;;
3205 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3207 s%@configure_input@%$configure_input%g
3208 s%@srcdir@%$srcdir%g
3209 s%@top_srcdir@%$top_srcdir%g
3210 s%@INSTALL@%$INSTALL%g
3211 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3215 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3216 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3218 # ac_d sets the value in "#define NAME VALUE" lines.
3219 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3220 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3223 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3224 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3225 ac_uB
='\([ ]\)%\1#\2define\3'
3228 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3229 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3230 ac_eB
='$%\1#\2define\3'
3234 if test "${CONFIG_HEADERS+set}" != set; then
3236 cat >> $CONFIG_STATUS <<EOF
3237 CONFIG_HEADERS="config.h:config.in"
3239 cat >> $CONFIG_STATUS <<\EOF
3241 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3242 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3244 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3245 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3246 *) ac_file_in
="${ac_file}.in" ;;
3249 echo creating
$ac_file
3251 rm -f conftest.frag conftest.
in conftest.out
3252 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3253 cat $ac_file_inputs > conftest.
in
3257 # Transform confdefs.h into a sed script conftest.vals that substitutes
3258 # the proper values into config.h.in to produce config.h. And first:
3259 # Protect against being on the right side of a sed subst in config.status.
3260 # Protect against being in an unquoted here document in config.status.
3262 cat > conftest.hdr
<<\EOF
3265 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3269 sed -n -f conftest.hdr confdefs.h > conftest.vals
3272 # This sed command replaces #undef with comments. This is necessary, for
3273 # example, in the case of _POSIX_SOURCE, which is predefined and required
3274 # on some systems where configure will not decide to define it.
3275 cat >> conftest.vals <<\EOF
3276 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3279 # Break up conftest.vals because some shells have a limit on
3280 # the size of here documents, and old seds have small limits too.
3285 ac_lines=`grep -c . conftest.vals
`
3286 # grep -c gives empty output for an empty file on some AIX systems.
3287 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3288 # Write a limited-size here document to conftest.frag.
3289 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3290 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3292 sed -f conftest.frag conftest.in > conftest.out
3294 mv conftest.out conftest.in
3296 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3298 mv conftest.tail conftest.vals
3302 cat >> $CONFIG_STATUS <<\EOF
3303 rm -f conftest.frag conftest.h
3304 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3305 cat conftest.in >> conftest.h
3307 if cmp -s $ac_file conftest.h 2>/dev/null; then
3308 echo "$ac_file is unchanged"
3311 # Remove last slash and all that follows it. Not all systems have dirname.
3312 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3313 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3314 # The file is in a subdirectory.
3315 test ! -d "$ac_dir" && mkdir "$ac_dir"
3318 mv conftest.h $ac_file
3323 cat >> $CONFIG_STATUS <<EOF
3326 cat >> $CONFIG_STATUS <<\EOF
3327 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
3330 chmod +x $CONFIG_STATUS
3331 rm -fr confdefs* $ac_clean_files
3332 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1