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.
124 # Guess values for system-dependent variables and create Makefiles.
125 # Generated automatically using autoconf version 2.13
126 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
128 # This configure script is free software; the Free Software Foundation
129 # gives unlimited permission to copy, distribute and modify it.
133 ac_default_prefix
=/usr
/local
134 # Any additions from configure.in:
136 --disable-nls do not use Native Language Support"
138 --with-included-gettext use the GNU gettext library included here"
140 --enable-maintainer-mode Enable developer functionality."
142 --enable-sim-bswap Use Host specific BSWAP instruction."
144 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
146 --enable-sim-debug=opts Enable debugging flags"
148 --enable-sim-stdio Specify whether to use stdio for console input/output."
150 --enable-sim-trace=opts Enable tracing flags"
152 --enable-sim-profile=opts Enable profiling flags"
154 # Initialize some variables set by options.
155 # The variables have the same names as the options, with
156 # dashes changed to underlines.
158 cache_file
=.
/config.cache
167 program_transform_name
=s
,x
,x
,
176 bindir
='${exec_prefix}/bin'
177 sbindir
='${exec_prefix}/sbin'
178 libexecdir
='${exec_prefix}/libexec'
179 datadir
='${prefix}/share'
180 sysconfdir
='${prefix}/etc'
181 sharedstatedir
='${prefix}/com'
182 localstatedir
='${prefix}/var'
183 libdir
='${exec_prefix}/lib'
184 includedir
='${prefix}/include'
185 oldincludedir
='/usr/include'
186 infodir
='${prefix}/info'
187 mandir
='${prefix}/man'
189 # Initialize some other variables.
192 SHELL
=${CONFIG_SHELL-/bin/sh}
193 # Maximum number of lines to put in a shell here document.
200 # If the previous option needs an argument, assign it.
201 if test -n "$ac_prev"; then
202 eval "$ac_prev=\$ac_option"
208 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
212 # Accept the important Cygnus configure options, so we can diagnose typos.
216 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
218 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
219 bindir
="$ac_optarg" ;;
221 -build |
--build |
--buil |
--bui |
--bu)
223 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
224 build
="$ac_optarg" ;;
226 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
227 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
228 ac_prev
=cache_file
;;
229 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
230 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
231 cache_file
="$ac_optarg" ;;
233 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
235 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
237 datadir
="$ac_optarg" ;;
239 -disable-* |
--disable-*)
240 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
243 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
245 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
246 eval "enable_${ac_feature}=no" ;;
248 -enable-* |
--enable-*)
249 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
250 # Reject names that are not valid shell variable names.
251 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
252 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
254 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
259 eval "enable_${ac_feature}='$ac_optarg'" ;;
261 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
262 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
263 |
--exec |
--exe |
--ex)
264 ac_prev
=exec_prefix
;;
265 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
266 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
267 |
--exec=* |
--exe=* |
--ex=*)
268 exec_prefix
="$ac_optarg" ;;
270 -gas |
--gas |
--ga |
--g)
271 # Obsolete; use --with-gas.
274 -help |
--help |
--hel |
--he)
275 # Omit some internal or obsolete options to make the list less imposing.
276 # This message is too long to be a string in the A/UX 3.1 sh.
278 Usage: configure [options] [host]
279 Options: [defaults in brackets after descriptions]
281 --cache-file=FILE cache test results in FILE
282 --help print this message
283 --no-create do not create output files
284 --quiet, --silent do not print \`checking...' messages
285 --site-file=FILE use FILE as the site file
286 --version print the version of autoconf that created configure
287 Directory and file names:
288 --prefix=PREFIX install architecture-independent files in PREFIX
290 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
292 --bindir=DIR user executables in DIR [EPREFIX/bin]
293 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
294 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
295 --datadir=DIR read-only architecture-independent data in DIR
297 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
298 --sharedstatedir=DIR modifiable architecture-independent data in DIR
300 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
301 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
302 --includedir=DIR C header files in DIR [PREFIX/include]
303 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
304 --infodir=DIR info documentation in DIR [PREFIX/info]
305 --mandir=DIR man documentation in DIR [PREFIX/man]
306 --srcdir=DIR find the sources in DIR [configure dir or ..]
307 --program-prefix=PREFIX prepend PREFIX to installed program names
308 --program-suffix=SUFFIX append SUFFIX to installed program names
309 --program-transform-name=PROGRAM
310 run sed PROGRAM on installed program names
314 --build=BUILD configure for building on BUILD [BUILD=HOST]
315 --host=HOST configure for HOST [guessed]
316 --target=TARGET configure for TARGET [TARGET=HOST]
317 Features and packages:
318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
320 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
321 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
322 --x-includes=DIR X include files are in DIR
323 --x-libraries=DIR X library files are in DIR
325 if test -n "$ac_help"; then
326 echo "--enable and --with options recognized:$ac_help"
330 -host |
--host |
--hos |
--ho)
332 -host=* |
--host=* |
--hos=* |
--ho=*)
335 -includedir |
--includedir |
--includedi |
--included |
--include \
336 |
--includ |
--inclu |
--incl |
--inc)
337 ac_prev
=includedir
;;
338 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
339 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
340 includedir
="$ac_optarg" ;;
342 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
344 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
345 infodir
="$ac_optarg" ;;
347 -libdir |
--libdir |
--libdi |
--libd)
349 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
350 libdir
="$ac_optarg" ;;
352 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
353 |
--libexe |
--libex |
--libe)
354 ac_prev
=libexecdir
;;
355 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
356 |
--libexe=* |
--libex=* |
--libe=*)
357 libexecdir
="$ac_optarg" ;;
359 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
360 |
--localstate |
--localstat |
--localsta |
--localst \
361 |
--locals |
--local |
--loca |
--loc |
--lo)
362 ac_prev
=localstatedir
;;
363 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
364 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
365 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
366 localstatedir
="$ac_optarg" ;;
368 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
370 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
371 mandir
="$ac_optarg" ;;
374 # Obsolete; use --without-fp.
377 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
381 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
382 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
385 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
386 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
387 |
--oldin |
--oldi |
--old |
--ol |
--o)
388 ac_prev
=oldincludedir
;;
389 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
390 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
391 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
392 oldincludedir
="$ac_optarg" ;;
394 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
396 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
397 prefix
="$ac_optarg" ;;
399 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
400 |
--program-pre |
--program-pr |
--program-p)
401 ac_prev
=program_prefix
;;
402 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
403 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
404 program_prefix
="$ac_optarg" ;;
406 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
407 |
--program-suf |
--program-su |
--program-s)
408 ac_prev
=program_suffix
;;
409 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
410 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
411 program_suffix
="$ac_optarg" ;;
413 -program-transform-name |
--program-transform-name \
414 |
--program-transform-nam |
--program-transform-na \
415 |
--program-transform-n |
--program-transform- \
416 |
--program-transform |
--program-transfor \
417 |
--program-transfo |
--program-transf \
418 |
--program-trans |
--program-tran \
419 |
--progr-tra |
--program-tr |
--program-t)
420 ac_prev
=program_transform_name
;;
421 -program-transform-name=* |
--program-transform-name=* \
422 |
--program-transform-nam=* |
--program-transform-na=* \
423 |
--program-transform-n=* |
--program-transform-=* \
424 |
--program-transform=* |
--program-transfor=* \
425 |
--program-transfo=* |
--program-transf=* \
426 |
--program-trans=* |
--program-tran=* \
427 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
428 program_transform_name
="$ac_optarg" ;;
430 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
431 |
-silent |
--silent |
--silen |
--sile |
--sil)
434 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
436 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
438 sbindir
="$ac_optarg" ;;
440 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
441 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
442 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
444 ac_prev
=sharedstatedir
;;
445 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
446 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
447 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
449 sharedstatedir
="$ac_optarg" ;;
451 -site |
--site |
--sit)
453 -site=* |
--site=* |
--sit=*)
456 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
458 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
459 sitefile
="$ac_optarg" ;;
461 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
463 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
464 srcdir
="$ac_optarg" ;;
466 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
467 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
468 ac_prev
=sysconfdir
;;
469 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
470 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
471 sysconfdir
="$ac_optarg" ;;
473 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
475 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
476 target
="$ac_optarg" ;;
478 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
481 -version |
--version |
--versio |
--versi |
--vers)
482 echo "configure generated by autoconf version 2.13"
486 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
487 # Reject names that are not valid shell variable names.
488 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
489 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
491 ac_package
=`echo $ac_package| sed 's/-/_/g'`
496 eval "with_${ac_package}='$ac_optarg'" ;;
498 -without-* |
--without-*)
499 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
500 # Reject names that are not valid shell variable names.
501 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
502 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
504 ac_package
=`echo $ac_package| sed 's/-/_/g'`
505 eval "with_${ac_package}=no" ;;
508 # Obsolete; use --with-x.
511 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
512 |
--x-incl |
--x-inc |
--x-in |
--x-i)
513 ac_prev
=x_includes
;;
514 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
515 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
516 x_includes
="$ac_optarg" ;;
518 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
519 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
520 ac_prev
=x_libraries
;;
521 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
522 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
523 x_libraries
="$ac_optarg" ;;
525 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
529 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
530 echo "configure: warning: $ac_option: invalid host type" 1>&2
532 if test "x$nonopt" != xNONE
; then
533 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
541 if test -n "$ac_prev"; then
542 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
545 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
547 # File descriptor usage:
550 # 2 errors and warnings
551 # 3 some systems may open it to /dev/tty
552 # 4 used on the Kubota Titan
553 # 6 checking for... messages and results
554 # 5 compiler messages saved in config.log
555 if test "$silent" = yes; then
563 This file contains any messages produced by compilers while
564 running configure, to aid debugging if configure makes a mistake.
567 # Strip out --no-create and --no-recursion so they do not pile up.
568 # Also quote any args containing shell metacharacters.
573 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
574 |
--no-cr |
--no-c) ;;
575 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
576 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
577 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
578 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
579 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
584 # Only set these to C if already set. These must not be set unconditionally
585 # because not all systems understand e.g. LANG=C (notably SCO).
586 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
587 # Non-C LC_CTYPE values break the ctype check.
588 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
589 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
590 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
591 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
593 # confdefs.h avoids OS command line length limits that DEFS can exceed.
594 rm -rf conftest
* confdefs.h
595 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
598 # A filename unique to this package, relative to the directory that
599 # configure is in, which we can look for to find out if srcdir is correct.
600 ac_unique_file
=Makefile.
in
602 # Find the source files, if location was not specified.
603 if test -z "$srcdir"; then
604 ac_srcdir_defaulted
=yes
605 # Try the directory containing this script, then its parent.
607 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
608 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
610 if test ! -r $srcdir/$ac_unique_file; then
614 ac_srcdir_defaulted
=no
616 if test ! -r $srcdir/$ac_unique_file; then
617 if test "$ac_srcdir_defaulted" = yes; then
618 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
620 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
623 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
625 # Prefer explicitly selected file to automatically selected ones.
626 if test -z "$sitefile"; then
627 if test -z "$CONFIG_SITE"; then
628 if test "x$prefix" != xNONE
; then
629 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
631 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
635 CONFIG_SITE
="$sitefile"
637 for ac_site_file
in $CONFIG_SITE; do
638 if test -r "$ac_site_file"; then
639 echo "loading site script $ac_site_file"
644 if test -r "$cache_file"; then
645 echo "loading cache $cache_file"
648 echo "creating cache $cache_file"
653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
654 ac_cpp
='$CPP $CPPFLAGS'
655 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
656 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
657 cross_compiling
=$ac_cv_prog_cc_cross
661 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
662 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
663 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
670 ac_n
= ac_c
='\c' ac_t
=
675 # This is intended for use by the target specific directories, and by us.
676 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
677 echo "configure:678: checking how to run the C preprocessor" >&5
678 # On Suns, sometimes $CPP names a directory.
679 if test -n "$CPP" && test -d "$CPP"; then
682 if test -z "$CPP"; then
683 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
686 # This must be in double quotes, not single quotes, because CPP may get
687 # substituted into the Makefile and "${CC-cc}" will confuse make.
689 # On the NeXT, cc -E runs the code through the compiler's parser,
690 # not just through cpp.
691 cat > conftest.
$ac_ext <<EOF
692 #line 693 "configure"
693 #include "confdefs.h"
697 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
698 { (eval echo configure
:699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
699 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
700 if test -z "$ac_err"; then
704 echo "configure: failed program was:" >&5
705 cat conftest.
$ac_ext >&5
707 CPP
="${CC-cc} -E -traditional-cpp"
708 cat > conftest.
$ac_ext <<EOF
709 #line 710 "configure"
710 #include "confdefs.h"
714 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
715 { (eval echo configure
:716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
716 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
717 if test -z "$ac_err"; then
721 echo "configure: failed program was:" >&5
722 cat conftest.
$ac_ext >&5
724 CPP
="${CC-cc} -nologo -E"
725 cat > conftest.
$ac_ext <<EOF
726 #line 727 "configure"
727 #include "confdefs.h"
731 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
732 { (eval echo configure
:733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
733 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
734 if test -z "$ac_err"; then
738 echo "configure: failed program was:" >&5
739 cat conftest.
$ac_ext >&5
748 ac_cv_prog_CPP
="$CPP"
750 CPP
="$ac_cv_prog_CPP"
752 ac_cv_prog_CPP
="$CPP"
754 echo "$ac_t""$CPP" 1>&6
756 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
757 echo "configure:758: checking whether ${MAKE-make} sets \${MAKE}" >&5
758 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
759 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
762 cat > conftestmake
<<\EOF
764 @
echo 'ac_maketemp="${MAKE}"'
766 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
767 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
768 if test -n "$ac_maketemp"; then
769 eval ac_cv_prog_make_
${ac_make}_set
=yes
771 eval ac_cv_prog_make_
${ac_make}_set
=no
775 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
776 echo "$ac_t""yes" 1>&6
779 echo "$ac_t""no" 1>&6
780 SET_MAKE
="MAKE=${MAKE-make}"
783 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
784 echo "configure:785: checking for POSIXized ISC" >&5
785 if test -d /etc
/conf
/kconfig.d
&&
786 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
788 echo "$ac_t""yes" 1>&6
789 ISC
=yes # If later tests want to check for ISC.
790 cat >> confdefs.h
<<\EOF
791 #define _POSIX_SOURCE 1
794 if test "$GCC" = yes; then
800 echo "$ac_t""no" 1>&6
804 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
805 echo "configure:806: checking for ANSI C header files" >&5
806 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 cat > conftest.
$ac_ext <<EOF
810 #line 811 "configure"
811 #include "confdefs.h"
817 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
818 { (eval echo configure
:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
819 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
820 if test -z "$ac_err"; then
822 ac_cv_header_stdc
=yes
825 echo "configure: failed program was:" >&5
826 cat conftest.
$ac_ext >&5
832 if test $ac_cv_header_stdc = yes; then
833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
834 cat > conftest.
$ac_ext <<EOF
835 #line 836 "configure"
836 #include "confdefs.h"
839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
840 egrep "memchr" >/dev
/null
2>&1; then
850 if test $ac_cv_header_stdc = yes; then
851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
852 cat > conftest.
$ac_ext <<EOF
853 #line 854 "configure"
854 #include "confdefs.h"
857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
858 egrep "free" >/dev
/null
2>&1; then
868 if test $ac_cv_header_stdc = yes; then
869 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
870 if test "$cross_compiling" = yes; then
873 cat > conftest.
$ac_ext <<EOF
874 #line 875 "configure"
875 #include "confdefs.h"
877 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
878 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
879 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
880 int main () { int i; for (i = 0; i < 256; i++)
881 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
885 if { (eval echo configure
:886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
889 echo "configure: failed program was:" >&5
890 cat conftest.
$ac_ext >&5
900 echo "$ac_t""$ac_cv_header_stdc" 1>&6
901 if test $ac_cv_header_stdc = yes; then
902 cat >> confdefs.h
<<\EOF
903 #define STDC_HEADERS 1
908 echo $ac_n "checking for working const""... $ac_c" 1>&6
909 echo "configure:910: checking for working const" >&5
910 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 cat > conftest.
$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
919 /* Ultrix mips cc rejects this. */
920 typedef int charset[2]; const charset x;
921 /* SunOS 4.1.1 cc rejects this. */
922 char const *const *ccp;
924 /* NEC SVR4.0.2 mips cc rejects this. */
925 struct point {int x, y;};
926 static struct point const zero = {0,0};
927 /* AIX XL C 1.02.0.0 rejects this.
928 It does not let you subtract one const X* pointer from another in an arm
929 of an if-expression whose if-part is not a constant expression */
930 const char *g = "string";
931 ccp = &g + (g ? g-g : 0);
932 /* HPUX 7.0 cc rejects these. */
935 ccp = (char const *const *) p;
936 { /* SCO 3.2v4 cc rejects this. */
938 char const *s = 0 ? (char *) 0 : (char const *) 0;
942 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
944 const int *foo = &x[0];
947 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
948 typedef const int *iptr;
952 { /* AIX XL C 1.02.0.0 rejects this saying
953 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
954 struct s { int j; const int *ap[3]; };
955 struct s *b; b->j = 5;
957 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
963 if { (eval echo configure
:964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
967 echo "configure: failed program was:" >&5
968 cat conftest.
$ac_ext >&5
975 echo "$ac_t""$ac_cv_c_const" 1>&6
976 if test $ac_cv_c_const = no
; then
977 cat >> confdefs.h
<<\EOF
983 echo $ac_n "checking for inline""... $ac_c" 1>&6
984 echo "configure:985: checking for inline" >&5
985 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
989 for ac_kw
in inline __inline__ __inline
; do
990 cat > conftest.
$ac_ext <<EOF
991 #line 992 "configure"
992 #include "confdefs.h"
998 if { (eval echo configure
:999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1000 ac_cv_c_inline
=$ac_kw; break
1002 echo "configure: failed program was:" >&5
1003 cat conftest.
$ac_ext >&5
1010 echo "$ac_t""$ac_cv_c_inline" 1>&6
1011 case "$ac_cv_c_inline" in
1013 no
) cat >> confdefs.h
<<\EOF
1017 *) cat >> confdefs.h
<<EOF
1018 #define inline $ac_cv_c_inline
1023 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1024 echo "configure:1025: checking for off_t" >&5
1025 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 cat > conftest.
$ac_ext <<EOF
1029 #line 1030 "configure"
1030 #include "confdefs.h"
1031 #include <sys/types.h>
1037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1038 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1040 ac_cv_type_off_t
=yes
1048 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1049 if test $ac_cv_type_off_t = no
; then
1050 cat >> confdefs.h
<<\EOF
1056 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1057 echo "configure:1058: checking for size_t" >&5
1058 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1061 cat > conftest.
$ac_ext <<EOF
1062 #line 1063 "configure"
1063 #include "confdefs.h"
1064 #include <sys/types.h>
1070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1071 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1073 ac_cv_type_size_t
=yes
1076 ac_cv_type_size_t
=no
1081 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1082 if test $ac_cv_type_size_t = no
; then
1083 cat >> confdefs.h
<<\EOF
1084 #define size_t unsigned
1089 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1090 # for constant arguments. Useless!
1091 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1092 echo "configure:1093: checking for working alloca.h" >&5
1093 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 cat > conftest.
$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1101 char *p = alloca(2 * sizeof(int));
1104 if { (eval echo configure
:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1106 ac_cv_header_alloca_h
=yes
1108 echo "configure: failed program was:" >&5
1109 cat conftest.
$ac_ext >&5
1111 ac_cv_header_alloca_h
=no
1116 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1117 if test $ac_cv_header_alloca_h = yes; then
1118 cat >> confdefs.h
<<\EOF
1119 #define HAVE_ALLOCA_H 1
1124 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1125 echo "configure:1126: checking for alloca" >&5
1126 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 cat > conftest.
$ac_ext <<EOF
1130 #line 1131 "configure"
1131 #include "confdefs.h"
1134 # define alloca __builtin_alloca
1137 # include <malloc.h>
1138 # define alloca _alloca
1141 # include <alloca.h>
1146 # ifndef alloca /* predefined by HP cc +Olibcalls */
1155 char *p = (char *) alloca(1);
1158 if { (eval echo configure
:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1160 ac_cv_func_alloca_works
=yes
1162 echo "configure: failed program was:" >&5
1163 cat conftest.
$ac_ext >&5
1165 ac_cv_func_alloca_works
=no
1170 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1171 if test $ac_cv_func_alloca_works = yes; then
1172 cat >> confdefs.h
<<\EOF
1173 #define HAVE_ALLOCA 1
1178 if test $ac_cv_func_alloca_works = no
; then
1179 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1180 # that cause trouble. Some versions do not even contain alloca or
1181 # contain a buggy version. If you still want to use their alloca,
1182 # use ar to extract alloca.o from them instead of compiling alloca.c.
1183 ALLOCA
=alloca.
${ac_objext}
1184 cat >> confdefs.h
<<\EOF
1189 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether alloca needs Cray hooks" >&5
1191 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftest.
$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1197 #if defined(CRAY) && ! defined(CRAY2)
1204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1205 egrep "webecray" >/dev
/null
2>&1; then
1216 echo "$ac_t""$ac_cv_os_cray" 1>&6
1217 if test $ac_cv_os_cray = yes; then
1218 for ac_func
in _getb67 GETB67 getb67
; do
1219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1220 echo "configure:1221: checking for $ac_func" >&5
1221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 cat > conftest.
$ac_ext <<EOF
1225 #line 1226 "configure"
1226 #include "confdefs.h"
1227 /* System header to define __stub macros and hopefully few prototypes,
1228 which can conflict with char $ac_func(); below. */
1230 /* Override any gcc2 internal prototype to avoid an error. */
1231 /* We use char because int might match the return type of a gcc2
1232 builtin and then its argument prototype would still apply. */
1237 /* The GNU C library defines this for functions which it implements
1238 to always fail with ENOSYS. Some functions are actually named
1239 something starting with __ and the normal name is an alias. */
1240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1248 if { (eval echo configure
:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1250 eval "ac_cv_func_$ac_func=yes"
1252 echo "configure: failed program was:" >&5
1253 cat conftest.
$ac_ext >&5
1255 eval "ac_cv_func_$ac_func=no"
1260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1261 echo "$ac_t""yes" 1>&6
1262 cat >> confdefs.h
<<EOF
1263 #define CRAY_STACKSEG_END $ac_func
1268 echo "$ac_t""no" 1>&6
1274 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1275 echo "configure:1276: checking stack direction for C alloca" >&5
1276 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 if test "$cross_compiling" = yes; then
1280 ac_cv_c_stack_direction
=0
1282 cat > conftest.
$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1285 find_stack_direction ()
1287 static char *addr = 0;
1292 return find_stack_direction ();
1295 return (&dummy > addr) ? 1 : -1;
1299 exit (find_stack_direction() < 0);
1302 if { (eval echo configure
:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1304 ac_cv_c_stack_direction
=1
1306 echo "configure: failed program was:" >&5
1307 cat conftest.
$ac_ext >&5
1309 ac_cv_c_stack_direction
=-1
1316 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1317 cat >> confdefs.h
<<EOF
1318 #define STACK_DIRECTION $ac_cv_c_stack_direction
1323 for ac_hdr
in unistd.h
1325 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1327 echo "configure:1328: checking for $ac_hdr" >&5
1328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1331 cat > conftest.
$ac_ext <<EOF
1332 #line 1333 "configure"
1333 #include "confdefs.h"
1336 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1337 { (eval echo configure
:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1338 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1339 if test -z "$ac_err"; then
1341 eval "ac_cv_header_$ac_safe=yes"
1344 echo "configure: failed program was:" >&5
1345 cat conftest.
$ac_ext >&5
1347 eval "ac_cv_header_$ac_safe=no"
1351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1352 echo "$ac_t""yes" 1>&6
1353 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1354 cat >> confdefs.h
<<EOF
1355 #define $ac_tr_hdr 1
1359 echo "$ac_t""no" 1>&6
1363 for ac_func
in getpagesize
1365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1366 echo "configure:1367: checking for $ac_func" >&5
1367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 cat > conftest.
$ac_ext <<EOF
1371 #line 1372 "configure"
1372 #include "confdefs.h"
1373 /* System header to define __stub macros and hopefully few prototypes,
1374 which can conflict with char $ac_func(); below. */
1376 /* Override any gcc2 internal prototype to avoid an error. */
1377 /* We use char because int might match the return type of a gcc2
1378 builtin and then its argument prototype would still apply. */
1383 /* The GNU C library defines this for functions which it implements
1384 to always fail with ENOSYS. Some functions are actually named
1385 something starting with __ and the normal name is an alias. */
1386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1394 if { (eval echo configure
:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1396 eval "ac_cv_func_$ac_func=yes"
1398 echo "configure: failed program was:" >&5
1399 cat conftest.
$ac_ext >&5
1401 eval "ac_cv_func_$ac_func=no"
1406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1407 echo "$ac_t""yes" 1>&6
1408 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1409 cat >> confdefs.h
<<EOF
1410 #define $ac_tr_func 1
1414 echo "$ac_t""no" 1>&6
1418 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1419 echo "configure:1420: checking for working mmap" >&5
1420 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 if test "$cross_compiling" = yes; then
1424 ac_cv_func_mmap_fixed_mapped
=no
1426 cat > conftest.
$ac_ext <<EOF
1427 #line 1428 "configure"
1428 #include "confdefs.h"
1430 /* Thanks to Mike Haertel and Jim Avera for this test.
1431 Here is a matrix of mmap possibilities:
1432 mmap private not fixed
1433 mmap private fixed at somewhere currently unmapped
1434 mmap private fixed at somewhere already mapped
1435 mmap shared not fixed
1436 mmap shared fixed at somewhere currently unmapped
1437 mmap shared fixed at somewhere already mapped
1438 For private mappings, we should verify that changes cannot be read()
1439 back from the file, nor mmap's back from the file at a different
1440 address. (There have been systems where private was not correctly
1441 implemented like the infamous i386 svr4.0, and systems where the
1442 VM page cache was not coherent with the filesystem buffer cache
1443 like early versions of FreeBSD and possibly contemporary NetBSD.)
1444 For shared mappings, we should conversely verify that changes get
1445 propogated back to all the places they're supposed to be.
1447 Grep wants private fixed already mapped.
1448 The main things grep needs to know about mmap are:
1449 * does it exist and is it safe to write into the mmap'd area
1450 * how to use it (BSD variants) */
1451 #include <sys/types.h>
1453 #include <sys/mman.h>
1455 /* This mess was copied from the GNU getpagesize.h. */
1456 #ifndef HAVE_GETPAGESIZE
1457 # ifdef HAVE_UNISTD_H
1458 # include <unistd.h>
1461 /* Assume that all systems that can run configure have sys/param.h. */
1462 # ifndef HAVE_SYS_PARAM_H
1463 # define HAVE_SYS_PARAM_H 1
1466 # ifdef _SC_PAGESIZE
1467 # define getpagesize() sysconf(_SC_PAGESIZE)
1468 # else /* no _SC_PAGESIZE */
1469 # ifdef HAVE_SYS_PARAM_H
1470 # include <sys/param.h>
1471 # ifdef EXEC_PAGESIZE
1472 # define getpagesize() EXEC_PAGESIZE
1473 # else /* no EXEC_PAGESIZE */
1475 # define getpagesize() NBPG * CLSIZE
1478 # endif /* no CLSIZE */
1479 # else /* no NBPG */
1481 # define getpagesize() NBPC
1482 # else /* no NBPC */
1484 # define getpagesize() PAGESIZE
1485 # endif /* PAGESIZE */
1486 # endif /* no NBPC */
1487 # endif /* no NBPG */
1488 # endif /* no EXEC_PAGESIZE */
1489 # else /* no HAVE_SYS_PARAM_H */
1490 # define getpagesize() 8192 /* punt totally */
1491 # endif /* no HAVE_SYS_PARAM_H */
1492 # endif /* no _SC_PAGESIZE */
1494 #endif /* no HAVE_GETPAGESIZE */
1497 extern "C" { void *malloc(unsigned); }
1505 char *data, *data2, *data3;
1509 pagesize = getpagesize();
1512 * First, make a file with some known garbage in it.
1514 data = malloc(pagesize);
1517 for (i = 0; i < pagesize; ++i)
1518 *(data + i) = rand();
1520 fd = creat("conftestmmap", 0600);
1523 if (write(fd, data, pagesize) != pagesize)
1528 * Next, try to mmap the file at a fixed address which
1529 * already has something else allocated at it. If we can,
1530 * also make sure that we see the same garbage.
1532 fd = open("conftestmmap", O_RDWR);
1535 data2 = malloc(2 * pagesize);
1538 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1539 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1540 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1542 for (i = 0; i < pagesize; ++i)
1543 if (*(data + i) != *(data2 + i))
1547 * Finally, make sure that changes to the mapped area
1548 * do not percolate back to the file as seen by read().
1549 * (This is a bug on some variants of i386 svr4.0.)
1551 for (i = 0; i < pagesize; ++i)
1552 *(data2 + i) = *(data2 + i) + 1;
1553 data3 = malloc(pagesize);
1556 if (read(fd, data3, pagesize) != pagesize)
1558 for (i = 0; i < pagesize; ++i)
1559 if (*(data + i) != *(data3 + i))
1562 unlink("conftestmmap");
1567 if { (eval echo configure
:1568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1569 ac_cv_func_mmap_fixed_mapped
=yes
1571 echo "configure: failed program was:" >&5
1572 cat conftest.
$ac_ext >&5
1574 ac_cv_func_mmap_fixed_mapped
=no
1581 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1582 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1583 cat >> confdefs.h
<<\EOF
1589 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1590 echo "configure:1591: checking for Cygwin environment" >&5
1591 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1601 #define __CYGWIN__ __CYGWIN32__
1606 if { (eval echo configure
:1607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610 echo "configure: failed program was:" >&5
1611 cat conftest.
$ac_ext >&5
1619 echo "$ac_t""$ac_cv_cygwin" 1>&6
1621 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1622 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1623 echo "configure:1624: checking for mingw32 environment" >&5
1624 if eval "test \"`echo '$''{'ac_cv_mingw32'+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"
1635 if { (eval echo configure
:1636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1639 echo "configure: failed program was:" >&5
1640 cat conftest.
$ac_ext >&5
1648 echo "$ac_t""$ac_cv_mingw32" 1>&6
1650 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1652 # autoconf.info says this should be called right after AC_INIT.
1656 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1657 if test -f $ac_dir/install-sh
; then
1659 ac_install_sh
="$ac_aux_dir/install-sh -c"
1661 elif test -f $ac_dir/install.sh
; then
1663 ac_install_sh
="$ac_aux_dir/install.sh -c"
1667 if test -z "$ac_aux_dir"; then
1668 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1670 ac_config_guess
=$ac_aux_dir/config.guess
1671 ac_config_sub
=$ac_aux_dir/config.sub
1672 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1675 # Do some error checking and defaulting for the host and target type.
1677 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1680 # 1. You are not allowed to specify --host, --target, and nonopt at the
1682 # 2. Host defaults to nonopt.
1683 # 3. If nonopt is not specified, then host defaults to the current host,
1684 # as determined by config.guess.
1685 # 4. Target and build default to nonopt.
1686 # 5. If nonopt is not specified, then target and build default to host.
1688 # The aliases save the names the user supplied, while $host etc.
1689 # will get canonicalized.
1690 case $host---$target---$nonopt in
1691 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1692 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1696 # Make sure we can run config.sub.
1697 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1698 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1701 echo $ac_n "checking host system type""... $ac_c" 1>&6
1702 echo "configure:1703: checking host system type" >&5
1705 case "$host_alias" in
1709 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1710 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1712 *) host_alias
=$nonopt ;;
1716 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1717 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1718 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1719 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1720 echo "$ac_t""$host" 1>&6
1722 echo $ac_n "checking target system type""... $ac_c" 1>&6
1723 echo "configure:1724: checking target system type" >&5
1725 target_alias
=$target
1726 case "$target_alias" in
1729 NONE
) target_alias
=$host_alias ;;
1730 *) target_alias
=$nonopt ;;
1734 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1735 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1736 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1737 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1738 echo "$ac_t""$target" 1>&6
1740 echo $ac_n "checking build system type""... $ac_c" 1>&6
1741 echo "configure:1742: checking build system type" >&5
1744 case "$build_alias" in
1747 NONE
) build_alias
=$host_alias ;;
1748 *) build_alias
=$nonopt ;;
1752 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1753 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1754 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1755 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1756 echo "$ac_t""$build" 1>&6
1758 test "$host_alias" != "$target_alias" &&
1759 test "$program_prefix$program_suffix$program_transform_name" = \
1761 program_prefix
=${target_alias}-
1763 if test "$program_transform_name" = s
,x
,x
,; then
1764 program_transform_name
=
1766 # Double any \ or $. echo might interpret backslashes.
1767 cat <<\EOF_SED
> conftestsed
1768 s
,\\,\\\\,g
; s
,\$
,$$
,g
1770 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1773 test "$program_prefix" != NONE
&&
1774 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1775 # Use a double $ so make ignores it.
1776 test "$program_suffix" != NONE
&&
1777 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1779 # sed with no file args requires a program.
1780 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1782 # Extract the first word of "gcc", so it can be a program name with args.
1783 set dummy gcc
; ac_word
=$2
1784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1785 echo "configure:1786: checking for $ac_word" >&5
1786 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 if test -n "$CC"; then
1790 ac_cv_prog_CC
="$CC" # Let the user override the test.
1792 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1794 for ac_dir
in $ac_dummy; do
1795 test -z "$ac_dir" && ac_dir
=.
1796 if test -f $ac_dir/$ac_word; then
1805 if test -n "$CC"; then
1806 echo "$ac_t""$CC" 1>&6
1808 echo "$ac_t""no" 1>&6
1811 if test -z "$CC"; then
1812 # Extract the first word of "cc", so it can be a program name with args.
1813 set dummy cc
; ac_word
=$2
1814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_word" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 if test -n "$CC"; then
1820 ac_cv_prog_CC
="$CC" # Let the user override the test.
1822 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1825 for ac_dir
in $ac_dummy; do
1826 test -z "$ac_dir" && ac_dir
=.
1827 if test -f $ac_dir/$ac_word; then
1828 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1829 ac_prog_rejected
=yes
1837 if test $ac_prog_rejected = yes; then
1838 # We found a bogon in the path, so make sure we never use it.
1839 set dummy
$ac_cv_prog_CC
1841 if test $# -gt 0; then
1842 # We chose a different compiler from the bogus one.
1843 # However, it has the same basename, so the bogon will be chosen
1844 # first if we set CC to just the basename; use the full file name.
1846 set dummy
"$ac_dir/$ac_word" "$@"
1854 if test -n "$CC"; then
1855 echo "$ac_t""$CC" 1>&6
1857 echo "$ac_t""no" 1>&6
1860 if test -z "$CC"; then
1861 case "`uname -s`" in
1863 # Extract the first word of "cl", so it can be a program name with args.
1864 set dummy cl
; ac_word
=$2
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_word" >&5
1867 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC
="$CC" # Let the user override the test.
1873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1875 for ac_dir
in $ac_dummy; do
1876 test -z "$ac_dir" && ac_dir
=.
1877 if test -f $ac_dir/$ac_word; then
1886 if test -n "$CC"; then
1887 echo "$ac_t""$CC" 1>&6
1889 echo "$ac_t""no" 1>&6
1894 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1897 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1898 echo "configure:1899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1902 ac_cpp
='$CPP $CPPFLAGS'
1903 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1904 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1905 cross_compiling
=$ac_cv_prog_cc_cross
1907 cat > conftest.
$ac_ext << EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1914 if { (eval echo configure
:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1915 ac_cv_prog_cc_works
=yes
1916 # If we can't run a trivial program, we are probably using a cross compiler.
1917 if (.
/conftest
; exit) 2>/dev
/null
; then
1918 ac_cv_prog_cc_cross
=no
1920 ac_cv_prog_cc_cross
=yes
1923 echo "configure: failed program was:" >&5
1924 cat conftest.
$ac_ext >&5
1925 ac_cv_prog_cc_works
=no
1929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1930 ac_cpp
='$CPP $CPPFLAGS'
1931 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1932 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1933 cross_compiling
=$ac_cv_prog_cc_cross
1935 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1936 if test $ac_cv_prog_cc_works = no
; then
1937 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1939 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1940 echo "configure:1941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1941 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1942 cross_compiling
=$ac_cv_prog_cc_cross
1944 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1945 echo "configure:1946: checking whether we are using GNU C" >&5
1946 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1949 cat > conftest.c
<<EOF
1954 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1961 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1963 if test $ac_cv_prog_gcc = yes; then
1969 ac_test_CFLAGS
="${CFLAGS+set}"
1970 ac_save_CFLAGS
="$CFLAGS"
1972 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1973 echo "configure:1974: checking whether ${CC-cc} accepts -g" >&5
1974 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 echo 'void f(){}' > conftest.c
1978 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1987 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1988 if test "$ac_test_CFLAGS" = set; then
1989 CFLAGS
="$ac_save_CFLAGS"
1990 elif test $ac_cv_prog_cc_g = yes; then
1991 if test "$GCC" = yes; then
1997 if test "$GCC" = yes; then
2004 # Find a good install program. We prefer a C program (faster),
2005 # so one script is as good as another. But avoid the broken or
2006 # incompatible versions:
2007 # SysV /etc/install, /usr/sbin/install
2008 # SunOS /usr/etc/install
2009 # IRIX /sbin/install
2011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2014 # ./install, which can be erroneously created by make from ./install.sh.
2015 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2016 echo "configure:2017: checking for a BSD compatible install" >&5
2017 if test -z "$INSTALL"; then
2018 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2022 for ac_dir
in $PATH; do
2023 # Account for people who put trailing slashes in PATH elements.
2025 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2027 # OSF1 and SCO ODT 3.0 have their own names for install.
2028 # Don't use installbsd from OSF since it installs stuff as root
2030 for ac_prog
in ginstall scoinst
install; do
2031 if test -f $ac_dir/$ac_prog; then
2032 if test $ac_prog = install &&
2033 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2034 # AIX install. It has an incompatible calling convention.
2037 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2048 if test "${ac_cv_path_install+set}" = set; then
2049 INSTALL
="$ac_cv_path_install"
2051 # As a last resort, use the slow shell script. We don't cache a
2052 # path for INSTALL within a source directory, because that will
2053 # break other packages using the cache if that directory is
2054 # removed, or if the path is relative.
2055 INSTALL
="$ac_install_sh"
2058 echo "$ac_t""$INSTALL" 1>&6
2060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2061 # It thinks the first close brace ends the variable substitution.
2062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2066 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2069 # Put a plausible default for CC_FOR_BUILD in Makefile.
2070 if test "x$cross_compiling" = "xno"; then
2071 CC_FOR_BUILD
='$(CC)'
2081 # Extract the first word of "ranlib", so it can be a program name with args.
2082 set dummy ranlib
; ac_word
=$2
2083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_word" >&5
2085 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 if test -n "$RANLIB"; then
2089 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2091 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2093 for ac_dir
in $ac_dummy; do
2094 test -z "$ac_dir" && ac_dir
=.
2095 if test -f $ac_dir/$ac_word; then
2096 ac_cv_prog_RANLIB
="ranlib"
2101 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2104 RANLIB
="$ac_cv_prog_RANLIB"
2105 if test -n "$RANLIB"; then
2106 echo "$ac_t""$RANLIB" 1>&6
2108 echo "$ac_t""no" 1>&6
2114 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2115 unistd.h values.h sys
/param.h
2117 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2119 echo "configure:2120: checking for $ac_hdr" >&5
2120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2123 cat > conftest.
$ac_ext <<EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2128 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2129 { (eval echo configure
:2130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2130 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2131 if test -z "$ac_err"; then
2133 eval "ac_cv_header_$ac_safe=yes"
2136 echo "configure: failed program was:" >&5
2137 cat conftest.
$ac_ext >&5
2139 eval "ac_cv_header_$ac_safe=no"
2143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2144 echo "$ac_t""yes" 1>&6
2145 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2146 cat >> confdefs.h
<<EOF
2147 #define $ac_tr_hdr 1
2151 echo "$ac_t""no" 1>&6
2155 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2156 __argz_count __argz_stringify __argz_next
2158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2159 echo "configure:2160: checking for $ac_func" >&5
2160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 cat > conftest.
$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2166 /* System header to define __stub macros and hopefully few prototypes,
2167 which can conflict with char $ac_func(); below. */
2169 /* Override any gcc2 internal prototype to avoid an error. */
2170 /* We use char because int might match the return type of a gcc2
2171 builtin and then its argument prototype would still apply. */
2176 /* The GNU C library defines this for functions which it implements
2177 to always fail with ENOSYS. Some functions are actually named
2178 something starting with __ and the normal name is an alias. */
2179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2187 if { (eval echo configure
:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2189 eval "ac_cv_func_$ac_func=yes"
2191 echo "configure: failed program was:" >&5
2192 cat conftest.
$ac_ext >&5
2194 eval "ac_cv_func_$ac_func=no"
2199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2200 echo "$ac_t""yes" 1>&6
2201 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2202 cat >> confdefs.h
<<EOF
2203 #define $ac_tr_func 1
2207 echo "$ac_t""no" 1>&6
2212 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2213 for ac_func
in stpcpy
2215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2216 echo "configure:2217: checking for $ac_func" >&5
2217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 cat > conftest.
$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 /* System header to define __stub macros and hopefully few prototypes,
2224 which can conflict with char $ac_func(); below. */
2226 /* Override any gcc2 internal prototype to avoid an error. */
2227 /* We use char because int might match the return type of a gcc2
2228 builtin and then its argument prototype would still apply. */
2233 /* The GNU C library defines this for functions which it implements
2234 to always fail with ENOSYS. Some functions are actually named
2235 something starting with __ and the normal name is an alias. */
2236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2244 if { (eval echo configure
:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2246 eval "ac_cv_func_$ac_func=yes"
2248 echo "configure: failed program was:" >&5
2249 cat conftest.
$ac_ext >&5
2251 eval "ac_cv_func_$ac_func=no"
2256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2257 echo "$ac_t""yes" 1>&6
2258 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2259 cat >> confdefs.h
<<EOF
2260 #define $ac_tr_func 1
2264 echo "$ac_t""no" 1>&6
2269 if test "${ac_cv_func_stpcpy}" = "yes"; then
2270 cat >> confdefs.h
<<\EOF
2271 #define HAVE_STPCPY 1
2276 if test $ac_cv_header_locale_h = yes; then
2277 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2278 echo "configure:2279: checking for LC_MESSAGES" >&5
2279 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 cat > conftest.
$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2290 if { (eval echo configure
:2291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2292 am_cv_val_LC_MESSAGES
=yes
2294 echo "configure: failed program was:" >&5
2295 cat conftest.
$ac_ext >&5
2297 am_cv_val_LC_MESSAGES
=no
2302 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2303 if test $am_cv_val_LC_MESSAGES = yes; then
2304 cat >> confdefs.h
<<\EOF
2305 #define HAVE_LC_MESSAGES 1
2310 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2311 echo "configure:2312: checking whether NLS is requested" >&5
2312 # Check whether --enable-nls or --disable-nls was given.
2313 if test "${enable_nls+set}" = set; then
2314 enableval
="$enable_nls"
2320 echo "$ac_t""$USE_NLS" 1>&6
2323 USE_INCLUDED_LIBINTL
=no
2325 if test "$USE_NLS" = "yes"; then
2326 cat >> confdefs.h
<<\EOF
2327 #define ENABLE_NLS 1
2330 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2331 echo "configure:2332: checking whether included gettext is requested" >&5
2332 # Check whether --with-included-gettext or --without-included-gettext was given.
2333 if test "${with_included_gettext+set}" = set; then
2334 withval
="$with_included_gettext"
2335 nls_cv_force_use_gnu_gettext
=$withval
2337 nls_cv_force_use_gnu_gettext
=no
2340 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2342 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2343 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2345 nls_cv_header_libgt
=
2348 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2349 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2350 echo "configure:2351: checking for libintl.h" >&5
2351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 cat > conftest.
$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 #include <libintl.h>
2359 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2360 { (eval echo configure
:2361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2361 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2362 if test -z "$ac_err"; then
2364 eval "ac_cv_header_$ac_safe=yes"
2367 echo "configure: failed program was:" >&5
2368 cat conftest.
$ac_ext >&5
2370 eval "ac_cv_header_$ac_safe=no"
2374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2376 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2377 echo "configure:2378: checking for gettext in libc" >&5
2378 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2381 cat > conftest.
$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2384 #include <libintl.h>
2386 return (int) gettext ("")
2389 if { (eval echo configure
:2390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2391 gt_cv_func_gettext_libc
=yes
2393 echo "configure: failed program was:" >&5
2394 cat conftest.
$ac_ext >&5
2396 gt_cv_func_gettext_libc
=no
2401 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2403 if test "$gt_cv_func_gettext_libc" != "yes"; then
2404 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2405 echo "configure:2406: checking for bindtextdomain in -lintl" >&5
2406 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 ac_save_LIBS
="$LIBS"
2412 cat > conftest.
$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 /* Override any gcc2 internal prototype to avoid an error. */
2416 /* We use char because int might match the return type of a gcc2
2417 builtin and then its argument prototype would still apply. */
2418 char bindtextdomain();
2424 if { (eval echo configure
:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2426 eval "ac_cv_lib_$ac_lib_var=yes"
2428 echo "configure: failed program was:" >&5
2429 cat conftest.
$ac_ext >&5
2431 eval "ac_cv_lib_$ac_lib_var=no"
2434 LIBS
="$ac_save_LIBS"
2437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2439 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2440 echo "configure:2441: checking for gettext in libintl" >&5
2441 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 cat > conftest.
$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2449 return (int) gettext ("")
2452 if { (eval echo configure
:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2454 gt_cv_func_gettext_libintl
=yes
2456 echo "configure: failed program was:" >&5
2457 cat conftest.
$ac_ext >&5
2459 gt_cv_func_gettext_libintl
=no
2464 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2466 echo "$ac_t""no" 1>&6
2471 if test "$gt_cv_func_gettext_libc" = "yes" \
2472 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2473 cat >> confdefs.h
<<\EOF
2474 #define HAVE_GETTEXT 1
2477 # Extract the first word of "msgfmt", so it can be a program name with args.
2478 set dummy msgfmt
; ac_word
=$2
2479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2480 echo "configure:2481: checking for $ac_word" >&5
2481 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2486 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2489 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2490 for ac_dir
in $PATH; do
2491 test -z "$ac_dir" && ac_dir
=.
2492 if test -f $ac_dir/$ac_word; then
2493 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2494 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2500 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2504 MSGFMT
="$ac_cv_path_MSGFMT"
2505 if test -n "$MSGFMT"; then
2506 echo "$ac_t""$MSGFMT" 1>&6
2508 echo "$ac_t""no" 1>&6
2510 if test "$MSGFMT" != "no"; then
2511 for ac_func
in dcgettext
2513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2514 echo "configure:2515: checking for $ac_func" >&5
2515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 cat > conftest.
$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2521 /* System header to define __stub macros and hopefully few prototypes,
2522 which can conflict with char $ac_func(); below. */
2524 /* Override any gcc2 internal prototype to avoid an error. */
2525 /* We use char because int might match the return type of a gcc2
2526 builtin and then its argument prototype would still apply. */
2531 /* The GNU C library defines this for functions which it implements
2532 to always fail with ENOSYS. Some functions are actually named
2533 something starting with __ and the normal name is an alias. */
2534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2542 if { (eval echo configure
:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2544 eval "ac_cv_func_$ac_func=yes"
2546 echo "configure: failed program was:" >&5
2547 cat conftest.
$ac_ext >&5
2549 eval "ac_cv_func_$ac_func=no"
2554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2555 echo "$ac_t""yes" 1>&6
2556 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2557 cat >> confdefs.h
<<EOF
2558 #define $ac_tr_func 1
2562 echo "$ac_t""no" 1>&6
2566 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2567 set dummy gmsgfmt
; ac_word
=$2
2568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_word" >&5
2570 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2575 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2578 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2581 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2583 for ac_dir
in $ac_dummy; do
2584 test -z "$ac_dir" && ac_dir
=.
2585 if test -f $ac_dir/$ac_word; then
2586 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2591 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2595 GMSGFMT
="$ac_cv_path_GMSGFMT"
2596 if test -n "$GMSGFMT"; then
2597 echo "$ac_t""$GMSGFMT" 1>&6
2599 echo "$ac_t""no" 1>&6
2602 # Extract the first word of "xgettext", so it can be a program name with args.
2603 set dummy xgettext
; ac_word
=$2
2604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2605 echo "configure:2606: checking for $ac_word" >&5
2606 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2611 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2614 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2615 for ac_dir
in $PATH; do
2616 test -z "$ac_dir" && ac_dir
=.
2617 if test -f $ac_dir/$ac_word; then
2618 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2619 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2625 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2629 XGETTEXT
="$ac_cv_path_XGETTEXT"
2630 if test -n "$XGETTEXT"; then
2631 echo "$ac_t""$XGETTEXT" 1>&6
2633 echo "$ac_t""no" 1>&6
2636 cat > conftest.
$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2641 extern int _nl_msg_cat_cntr;
2642 return _nl_msg_cat_cntr
2645 if { (eval echo configure
:2646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2650 echo "configure: failed program was:" >&5
2651 cat conftest.
$ac_ext >&5
2662 echo "$ac_t""no" 1>&6
2667 if test "$CATOBJEXT" = "NONE"; then
2668 nls_cv_use_gnu_gettext
=yes
2672 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2673 INTLOBJS
="\$(GETTOBJS)"
2674 # Extract the first word of "msgfmt", so it can be a program name with args.
2675 set dummy msgfmt
; ac_word
=$2
2676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2677 echo "configure:2678: checking for $ac_word" >&5
2678 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2683 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2686 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2687 for ac_dir
in $PATH; do
2688 test -z "$ac_dir" && ac_dir
=.
2689 if test -f $ac_dir/$ac_word; then
2690 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2691 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2697 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2701 MSGFMT
="$ac_cv_path_MSGFMT"
2702 if test -n "$MSGFMT"; then
2703 echo "$ac_t""$MSGFMT" 1>&6
2705 echo "$ac_t""no" 1>&6
2708 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2709 set dummy gmsgfmt
; ac_word
=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2717 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2720 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2723 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2725 for ac_dir
in $ac_dummy; do
2726 test -z "$ac_dir" && ac_dir
=.
2727 if test -f $ac_dir/$ac_word; then
2728 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2733 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2737 GMSGFMT
="$ac_cv_path_GMSGFMT"
2738 if test -n "$GMSGFMT"; then
2739 echo "$ac_t""$GMSGFMT" 1>&6
2741 echo "$ac_t""no" 1>&6
2744 # Extract the first word of "xgettext", so it can be a program name with args.
2745 set dummy xgettext
; ac_word
=$2
2746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2747 echo "configure:2748: checking for $ac_word" >&5
2748 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2753 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2756 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2757 for ac_dir
in $PATH; do
2758 test -z "$ac_dir" && ac_dir
=.
2759 if test -f $ac_dir/$ac_word; then
2760 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2761 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2767 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2771 XGETTEXT
="$ac_cv_path_XGETTEXT"
2772 if test -n "$XGETTEXT"; then
2773 echo "$ac_t""$XGETTEXT" 1>&6
2775 echo "$ac_t""no" 1>&6
2779 USE_INCLUDED_LIBINTL
=yes
2783 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2785 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2786 nls_cv_header_intl
=libintl.h
2787 nls_cv_header_libgt
=libgettext.h
2790 if test "$XGETTEXT" != ":"; then
2791 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2794 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2799 # We need to process the po/ directory.
2803 nls_cv_header_intl
=libintl.h
2804 nls_cv_header_libgt
=libgettext.h
2807 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2808 # because some of the sources are only built for this goal.
2809 if test "$PACKAGE" = gettext; then
2811 USE_INCLUDED_LIBINTL
=yes
2814 for lang
in $ALL_LINGUAS; do
2815 GMOFILES
="$GMOFILES $lang.gmo"
2816 POFILES
="$POFILES $lang.po"
2832 if test "x$CATOBJEXT" != "x"; then
2833 if test "x$ALL_LINGUAS" = "x"; then
2836 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2837 echo "configure:2838: checking for catalogs to be installed" >&5
2839 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2840 case "$ALL_LINGUAS" in
2841 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2844 LINGUAS
=$NEW_LINGUAS
2845 echo "$ac_t""$LINGUAS" 1>&6
2848 if test -n "$LINGUAS"; then
2849 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2853 if test $ac_cv_header_locale_h = yes; then
2854 INCLUDE_LOCALE_H
="#include <locale.h>"
2857 /* The system does not provide the header <locale.h>. Take care yourself. */"
2861 if test -f $srcdir/po2tbl.
sed.
in; then
2862 if test "$CATOBJEXT" = ".cat"; then
2863 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2864 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2865 echo "configure:2866: checking for linux/version.h" >&5
2866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 cat > conftest.
$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2872 #include <linux/version.h>
2874 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2875 { (eval echo configure
:2876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2876 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2877 if test -z "$ac_err"; then
2879 eval "ac_cv_header_$ac_safe=yes"
2882 echo "configure: failed program was:" >&5
2883 cat conftest.
$ac_ext >&5
2885 eval "ac_cv_header_$ac_safe=no"
2889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
2893 echo "$ac_t""no" 1>&6
2898 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2900 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2901 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2904 if test "$PACKAGE" = "gettext"; then
2914 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2920 if test -d $srcdir/po
; then
2921 test -d po || mkdir po
2922 if test "x$srcdir" != "x."; then
2923 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2924 posrcprefix
="$srcdir/"
2926 posrcprefix
="../$srcdir/"
2932 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2933 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2937 # Check for common headers.
2938 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2939 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2940 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2942 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2944 echo "configure:2945: checking for $ac_hdr" >&5
2945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 cat > conftest.
$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2953 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2954 { (eval echo configure
:2955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2955 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2956 if test -z "$ac_err"; then
2958 eval "ac_cv_header_$ac_safe=yes"
2961 echo "configure: failed program was:" >&5
2962 cat conftest.
$ac_ext >&5
2964 eval "ac_cv_header_$ac_safe=no"
2968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2969 echo "$ac_t""yes" 1>&6
2970 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2971 cat >> confdefs.h
<<EOF
2972 #define $ac_tr_hdr 1
2976 echo "$ac_t""no" 1>&6
2980 for ac_hdr
in sys
/time.h sys
/resource.h
2982 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2983 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2984 echo "configure:2985: checking for $ac_hdr" >&5
2985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 cat > conftest.
$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2993 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2994 { (eval echo configure
:2995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2995 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2996 if test -z "$ac_err"; then
2998 eval "ac_cv_header_$ac_safe=yes"
3001 echo "configure: failed program was:" >&5
3002 cat conftest.
$ac_ext >&5
3004 eval "ac_cv_header_$ac_safe=no"
3008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3009 echo "$ac_t""yes" 1>&6
3010 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3011 cat >> confdefs.h
<<EOF
3012 #define $ac_tr_hdr 1
3016 echo "$ac_t""no" 1>&6
3020 for ac_hdr
in fcntl.h fpu_control.h
3022 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3024 echo "configure:3025: checking for $ac_hdr" >&5
3025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 cat > conftest.
$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3033 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3034 { (eval echo configure
:3035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3035 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3036 if test -z "$ac_err"; then
3038 eval "ac_cv_header_$ac_safe=yes"
3041 echo "configure: failed program was:" >&5
3042 cat conftest.
$ac_ext >&5
3044 eval "ac_cv_header_$ac_safe=no"
3048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3049 echo "$ac_t""yes" 1>&6
3050 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3051 cat >> confdefs.h
<<EOF
3052 #define $ac_tr_hdr 1
3056 echo "$ac_t""no" 1>&6
3060 for ac_hdr
in dlfcn.h errno.h sys
/stat.h
3062 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3063 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3064 echo "configure:3065: checking for $ac_hdr" >&5
3065 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 cat > conftest.
$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3073 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3074 { (eval echo configure
:3075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3075 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3076 if test -z "$ac_err"; then
3078 eval "ac_cv_header_$ac_safe=yes"
3081 echo "configure: failed program was:" >&5
3082 cat conftest.
$ac_ext >&5
3084 eval "ac_cv_header_$ac_safe=no"
3088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3089 echo "$ac_t""yes" 1>&6
3090 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3091 cat >> confdefs.h
<<EOF
3092 #define $ac_tr_hdr 1
3096 echo "$ac_t""no" 1>&6
3100 for ac_func
in getrusage
time sigaction __setfpucw
3102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3103 echo "configure:3104: checking for $ac_func" >&5
3104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 cat > conftest.
$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3110 /* System header to define __stub macros and hopefully few prototypes,
3111 which can conflict with char $ac_func(); below. */
3113 /* Override any gcc2 internal prototype to avoid an error. */
3114 /* We use char because int might match the return type of a gcc2
3115 builtin and then its argument prototype would still apply. */
3120 /* The GNU C library defines this for functions which it implements
3121 to always fail with ENOSYS. Some functions are actually named
3122 something starting with __ and the normal name is an alias. */
3123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3131 if { (eval echo configure
:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3133 eval "ac_cv_func_$ac_func=yes"
3135 echo "configure: failed program was:" >&5
3136 cat conftest.
$ac_ext >&5
3138 eval "ac_cv_func_$ac_func=no"
3143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3144 echo "$ac_t""yes" 1>&6
3145 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3146 cat >> confdefs.h
<<EOF
3147 #define $ac_tr_func 1
3151 echo "$ac_t""no" 1>&6
3156 # Check for socket libraries
3157 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3158 echo "configure:3159: checking for bind in -lsocket" >&5
3159 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3163 ac_save_LIBS
="$LIBS"
3164 LIBS
="-lsocket $LIBS"
3165 cat > conftest.
$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168 /* Override any gcc2 internal prototype to avoid an error. */
3169 /* We use char because int might match the return type of a gcc2
3170 builtin and then its argument prototype would still apply. */
3177 if { (eval echo configure
:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3179 eval "ac_cv_lib_$ac_lib_var=yes"
3181 echo "configure: failed program was:" >&5
3182 cat conftest.
$ac_ext >&5
3184 eval "ac_cv_lib_$ac_lib_var=no"
3187 LIBS
="$ac_save_LIBS"
3190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3191 echo "$ac_t""yes" 1>&6
3192 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3194 cat >> confdefs.h
<<EOF
3195 #define $ac_tr_lib 1
3198 LIBS
="-lsocket $LIBS"
3201 echo "$ac_t""no" 1>&6
3204 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3205 echo "configure:3206: checking for gethostbyname in -lnsl" >&5
3206 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 ac_save_LIBS
="$LIBS"
3212 cat > conftest.
$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 /* Override any gcc2 internal prototype to avoid an error. */
3216 /* We use char because int might match the return type of a gcc2
3217 builtin and then its argument prototype would still apply. */
3218 char gethostbyname();
3224 if { (eval echo configure
:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3226 eval "ac_cv_lib_$ac_lib_var=yes"
3228 echo "configure: failed program was:" >&5
3229 cat conftest.
$ac_ext >&5
3231 eval "ac_cv_lib_$ac_lib_var=no"
3234 LIBS
="$ac_save_LIBS"
3237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3238 echo "$ac_t""yes" 1>&6
3239 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3240 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3241 cat >> confdefs.h
<<EOF
3242 #define $ac_tr_lib 1
3248 echo "$ac_t""no" 1>&6
3252 .
${srcdir}/..
/..
/bfd
/configure.
host
3256 USE_MAINTAINER_MODE
=no
3257 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3258 if test "${enable_maintainer_mode+set}" = set; then
3259 enableval
="$enable_maintainer_mode"
3260 case "${enableval}" in
3261 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3263 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3265 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3266 echo "Setting maintainer mode" 6>&1
3274 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3275 if test "${enable_sim_bswap+set}" = set; then
3276 enableval
="$enable_sim_bswap"
3277 case "${enableval}" in
3278 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3279 no
) sim_bswap
="-DWITH_BSWAP=0";;
3280 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3282 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3283 echo "Setting bswap flags = $sim_bswap" 6>&1
3291 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3292 if test "${enable_sim_cflags+set}" = set; then
3293 enableval
="$enable_sim_cflags"
3294 case "${enableval}" in
3295 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3296 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3298 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3300 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3301 echo "Setting sim cflags = $sim_cflags" 6>&1
3309 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3310 if test "${enable_sim_debug+set}" = set; then
3311 enableval
="$enable_sim_debug"
3312 case "${enableval}" in
3313 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3314 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3315 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3317 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3318 echo "Setting sim debug = $sim_debug" 6>&1
3326 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3327 if test "${enable_sim_stdio+set}" = set; then
3328 enableval
="$enable_sim_stdio"
3329 case "${enableval}" in
3330 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3331 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3332 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3334 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3335 echo "Setting stdio flags = $sim_stdio" 6>&1
3343 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3344 if test "${enable_sim_trace+set}" = set; then
3345 enableval
="$enable_sim_trace"
3346 case "${enableval}" in
3347 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3348 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3350 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3353 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3354 if test x
"$sim_trace" = x
; then
3355 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3357 sim_trace
="${sim_trace}|TRACE_$x"
3360 sim_trace
="$sim_trace)'" ;;
3362 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3363 echo "Setting sim trace = $sim_trace" 6>&1
3371 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3372 if test "${enable_sim_profile+set}" = set; then
3373 enableval
="$enable_sim_profile"
3374 case "${enableval}" in
3375 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3376 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3378 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3381 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3382 if test x
"$sim_profile" = x
; then
3383 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3385 sim_profile
="${sim_profile}|PROFILE_$x"
3388 sim_profile
="$sim_profile)'" ;;
3390 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3391 echo "Setting sim profile = $sim_profile" 6>&1
3399 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3400 echo "configure:3401: checking return type of signal handlers" >&5
3401 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 cat > conftest.
$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 #include <sys/types.h>
3413 extern "C" void (*signal (int, void (*)(int)))(int);
3415 void (*signal ()) ();
3422 if { (eval echo configure
:3423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3424 ac_cv_type_signal
=void
3426 echo "configure: failed program was:" >&5
3427 cat conftest.
$ac_ext >&5
3429 ac_cv_type_signal
=int
3434 echo "$ac_t""$ac_cv_type_signal" 1>&6
3435 cat >> confdefs.h
<<EOF
3436 #define RETSIGTYPE $ac_cv_type_signal
3443 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3444 echo "configure:3445: checking for executable suffix" >&5
3445 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3452 echo 'int main () { return 0; }' > conftest.
$ac_ext
3454 if { (eval echo configure
:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3455 for file in conftest.
*; do
3457 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3458 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3462 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3465 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3470 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3471 echo "$ac_t""${ac_cv_exeext}" 1>&6
3478 sim_link_links
=tconfig.h
3479 if test -f ${srcdir}/tconfig.
in
3481 sim_link_files
=tconfig.
in
3483 sim_link_files
=..
/common
/tconfig.
in
3486 # targ-vals.def points to the libc macro description file.
3488 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3490 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3491 sim_link_links
="${sim_link_links} targ-vals.def"
3495 # Put a useful copy of CPP_FOR_TARGET in Makefile.
3496 # This is only used to build the target values header files. These files are
3497 # shipped with distributions so CPP_FOR_TARGET only needs to work in
3498 # developer's trees. This value is borrowed from ../../Makefile.in.
3499 CPP_FOR_TARGET
="\` \
3500 if test -f \$\${rootme}/../../gcc/Makefile ; then \
3501 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
3502 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
3504 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
3507 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
3510 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
3515 # Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
3516 if test x
"${host}" = x
"${target}" ; then
3519 TARGET_SUBDIR
=${target_alias}
3523 # These aren't all needed yet, but will be eventually.
3524 for ac_hdr
in stdlib.h string.h
strings.h
time.h sys
/times.h
3526 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3528 echo "configure:3529: checking for $ac_hdr" >&5
3529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 cat > conftest.
$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3537 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3538 { (eval echo configure
:3539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3539 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3540 if test -z "$ac_err"; then
3542 eval "ac_cv_header_$ac_safe=yes"
3545 echo "configure: failed program was:" >&5
3546 cat conftest.
$ac_ext >&5
3548 eval "ac_cv_header_$ac_safe=no"
3552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3553 echo "$ac_t""yes" 1>&6
3554 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3555 cat >> confdefs.h
<<EOF
3556 #define $ac_tr_hdr 1
3560 echo "$ac_t""no" 1>&6
3566 cat > confcache
<<\EOF
3567 # This file is a shell script that caches the results of configure
3568 # tests run on this system so they can be shared between configure
3569 # scripts and configure runs. It is not useful on other systems.
3570 # If it contains results you don't want to keep, you may remove or edit it.
3572 # By default, configure uses ./config.cache as the cache file,
3573 # creating it if it does not exist already. You can give configure
3574 # the --cache-file=FILE option to use a different cache file; that is
3575 # what configure does when it calls configure scripts in
3576 # subdirectories, so they share the cache.
3577 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3578 # config.status only pays attention to the cache file if you give it the
3579 # --recheck option to rerun configure.
3582 # The following way of writing the cache mishandles newlines in values,
3583 # but we know of no workaround that is simple, portable, and efficient.
3584 # So, don't put newlines in cache variables' values.
3585 # Ultrix sh set writes to stderr and can't be redirected directly,
3586 # and sets the high bit in the cache file unless we assign to the vars.
3588 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3590 # `set' does not quote correctly, so add quotes (double-quote substitution
3591 # turns \\\\ into \\, and sed turns \\ into \).
3593 -e "s/'/'\\\\''/g" \
3594 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3597 # `set' quotes correctly as required by POSIX, so do not add quotes.
3598 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3601 if cmp -s $cache_file confcache
; then
3604 if test -w $cache_file; then
3605 echo "updating cache $cache_file"
3606 cat confcache
> $cache_file
3608 echo "not updating unwritable cache $cache_file"
3613 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3615 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3616 # Let make expand exec_prefix.
3617 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3619 # Any assignment to VPATH causes Sun make to only execute
3620 # the first set of double-colon rules, so remove it if not needed.
3621 # If there is a colon in the path, we need to keep it.
3622 if test "x$srcdir" = x.
; then
3623 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3626 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3628 DEFS
=-DHAVE_CONFIG_H
3630 # Without the "./", some shells look in PATH for config.status.
3631 : ${CONFIG_STATUS=./config.status}
3633 echo creating
$CONFIG_STATUS
3634 rm -f $CONFIG_STATUS
3635 cat > $CONFIG_STATUS <<EOF
3637 # Generated automatically by configure.
3638 # Run this file to recreate the current configuration.
3639 # This directory was configured as follows,
3640 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3642 # $0 $ac_configure_args
3644 # Compiler output produced by configure, useful for debugging
3645 # configure, is in ./config.log if it exists.
3647 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3650 case "\$ac_option" in
3651 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3652 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3653 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3654 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3655 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3657 -help | --help | --hel | --he | --h)
3658 echo "\$ac_cs_usage"; exit 0 ;;
3659 *) echo "\$ac_cs_usage"; exit 1 ;;
3663 ac_given_srcdir=$srcdir
3664 ac_given_INSTALL="$INSTALL"
3666 trap 'rm -fr `echo "Makefile cconfig.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3668 cat >> $CONFIG_STATUS <<EOF
3670 # Protect against being on the right side of a sed subst in config.status.
3671 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3672 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3675 s%@sim_environment@%$sim_environment%g
3676 s%@sim_alignment@%$sim_alignment%g
3677 s%@sim_assert@%$sim_assert%g
3678 s%@sim_bitsize@%$sim_bitsize%g
3679 s%@sim_endian@%$sim_endian%g
3680 s%@sim_hostendian@%$sim_hostendian%g
3681 s%@sim_float@%$sim_float%g
3682 s%@sim_scache@%$sim_scache%g
3683 s%@sim_default_model@%$sim_default_model%g
3684 s%@sim_hw_cflags@%$sim_hw_cflags%g
3685 s%@sim_hw_objs@%$sim_hw_objs%g
3686 s%@sim_hw@%$sim_hw%g
3687 s%@sim_inline@%$sim_inline%g
3688 s%@sim_packages@%$sim_packages%g
3689 s%@sim_regparm@%$sim_regparm%g
3690 s%@sim_reserved_bits@%$sim_reserved_bits%g
3691 s%@sim_smp@%$sim_smp%g
3692 s%@sim_stdcall@%$sim_stdcall%g
3693 s%@sim_xor_endian@%$sim_xor_endian%g
3694 s%@build_warnings@%$build_warnings%g
3696 s%@CFLAGS@%$CFLAGS%g
3697 s%@CPPFLAGS@%$CPPFLAGS%g
3698 s%@CXXFLAGS@%$CXXFLAGS%g
3699 s%@FFLAGS@%$FFLAGS%g
3701 s%@LDFLAGS@%$LDFLAGS%g
3703 s%@exec_prefix@%$exec_prefix%g
3704 s%@prefix@%$prefix%g
3705 s%@program_transform_name@%$program_transform_name%g
3706 s%@bindir@%$bindir%g
3707 s%@sbindir@%$sbindir%g
3708 s%@libexecdir@%$libexecdir%g
3709 s%@datadir@%$datadir%g
3710 s%@sysconfdir@%$sysconfdir%g
3711 s%@sharedstatedir@%$sharedstatedir%g
3712 s%@localstatedir@%$localstatedir%g
3713 s%@libdir@%$libdir%g
3714 s%@includedir@%$includedir%g
3715 s%@oldincludedir@%$oldincludedir%g
3716 s%@infodir@%$infodir%g
3717 s%@mandir@%$mandir%g
3719 s%@host_alias@%$host_alias%g
3720 s%@host_cpu@%$host_cpu%g
3721 s%@host_vendor@%$host_vendor%g
3722 s%@host_os@%$host_os%g
3723 s%@target@%$target%g
3724 s%@target_alias@%$target_alias%g
3725 s%@target_cpu@%$target_cpu%g
3726 s%@target_vendor@%$target_vendor%g
3727 s%@target_os@%$target_os%g
3729 s%@build_alias@%$build_alias%g
3730 s%@build_cpu@%$build_cpu%g
3731 s%@build_vendor@%$build_vendor%g
3732 s%@build_os@%$build_os%g
3734 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3735 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3736 s%@INSTALL_DATA@%$INSTALL_DATA%g
3737 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3738 s%@HDEFINES@%$HDEFINES%g
3740 s%@RANLIB@%$RANLIB%g
3741 s%@SET_MAKE@%$SET_MAKE%g
3743 s%@ALLOCA@%$ALLOCA%g
3744 s%@USE_NLS@%$USE_NLS%g
3745 s%@MSGFMT@%$MSGFMT%g
3746 s%@GMSGFMT@%$GMSGFMT%g
3747 s%@XGETTEXT@%$XGETTEXT%g
3748 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3749 s%@CATALOGS@%$CATALOGS%g
3750 s%@CATOBJEXT@%$CATOBJEXT%g
3751 s%@DATADIRNAME@%$DATADIRNAME%g
3752 s%@GMOFILES@%$GMOFILES%g
3753 s%@INSTOBJEXT@%$INSTOBJEXT%g
3754 s%@INTLDEPS@%$INTLDEPS%g
3755 s%@INTLLIBS@%$INTLLIBS%g
3756 s%@INTLOBJS@%$INTLOBJS%g
3757 s%@POFILES@%$POFILES%g
3759 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3761 s%@GT_YES@%$GT_YES%g
3762 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3765 s%@sim_bswap@%$sim_bswap%g
3766 s%@sim_cflags@%$sim_cflags%g
3767 s%@sim_debug@%$sim_debug%g
3768 s%@sim_stdio@%$sim_stdio%g
3769 s%@sim_trace@%$sim_trace%g
3770 s%@sim_profile@%$sim_profile%g
3771 s%@EXEEXT@%$EXEEXT%g
3772 s%@CPP_FOR_TARGET@%$CPP_FOR_TARGET%g
3773 s%@TARGET_SUBDIR@%$TARGET_SUBDIR%g
3778 cat >> $CONFIG_STATUS <<\EOF
3780 # Split the substitutions into bite-sized pieces for seds with
3781 # small command number limits, like on Digital OSF/1 and HP-UX.
3782 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3783 ac_file
=1 # Number of current file.
3784 ac_beg
=1 # First line for current file.
3785 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3788 while $ac_more_lines; do
3789 if test $ac_beg -gt 1; then
3790 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3792 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3794 if test ! -s conftest.s
$ac_file; then
3796 rm -f conftest.s
$ac_file
3798 if test -z "$ac_sed_cmds"; then
3799 ac_sed_cmds
="sed -f conftest.s$ac_file"
3801 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3803 ac_file
=`expr $ac_file + 1`
3805 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3808 if test -z "$ac_sed_cmds"; then
3813 cat >> $CONFIG_STATUS <<EOF
3815 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3817 cat >> $CONFIG_STATUS <<\EOF
3818 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3821 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3822 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3823 *) ac_file_in
="${ac_file}.in" ;;
3826 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3828 # Remove last slash and all that follows it. Not all systems have dirname.
3829 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3830 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3831 # The file is in a subdirectory.
3832 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3833 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3834 # A "../" for each directory in $ac_dir_suffix.
3835 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3837 ac_dir_suffix
= ac_dots
=
3840 case "$ac_given_srcdir" in
3842 if test -z "$ac_dots"; then top_srcdir
=.
3843 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3844 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3846 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3847 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3850 case "$ac_given_INSTALL" in
3851 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3852 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3855 echo creating
"$ac_file"
3857 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3859 *Makefile
*) ac_comsub
="1i\\
3860 # $configure_input" ;;
3864 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3866 s%@configure_input@%$configure_input%g
3867 s%@srcdir@%$srcdir%g
3868 s%@top_srcdir@%$top_srcdir%g
3869 s%@INSTALL@%$INSTALL%g
3870 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3874 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3875 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3877 # ac_d sets the value in "#define NAME VALUE" lines.
3878 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3879 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3882 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3883 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3884 ac_uB
='\([ ]\)%\1#\2define\3'
3887 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3888 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3889 ac_eB
='$%\1#\2define\3'
3893 if test "${CONFIG_HEADERS+set}" != set; then
3895 cat >> $CONFIG_STATUS <<EOF
3896 CONFIG_HEADERS="cconfig.h:config.in"
3898 cat >> $CONFIG_STATUS <<\EOF
3900 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3901 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3903 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3904 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3905 *) ac_file_in
="${ac_file}.in" ;;
3908 echo creating
$ac_file
3910 rm -f conftest.frag conftest.
in conftest.out
3911 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3912 cat $ac_file_inputs > conftest.
in
3916 # Transform confdefs.h into a sed script conftest.vals that substitutes
3917 # the proper values into config.h.in to produce config.h. And first:
3918 # Protect against being on the right side of a sed subst in config.status.
3919 # Protect against being in an unquoted here document in config.status.
3921 cat > conftest.hdr
<<\EOF
3924 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3928 sed -n -f conftest.hdr confdefs.h > conftest.vals
3931 # This sed command replaces #undef with comments. This is necessary, for
3932 # example, in the case of _POSIX_SOURCE, which is predefined and required
3933 # on some systems where configure will not decide to define it.
3934 cat >> conftest.vals <<\EOF
3935 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3938 # Break up conftest.vals because some shells have a limit on
3939 # the size of here documents, and old seds have small limits too.
3944 ac_lines=`grep -c . conftest.vals
`
3945 # grep -c gives empty output for an empty file on some AIX systems.
3946 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3947 # Write a limited-size here document to conftest.frag.
3948 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3949 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3951 sed -f conftest.frag conftest.in > conftest.out
3953 mv conftest.out conftest.in
3955 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3957 mv conftest.tail conftest.vals
3961 cat >> $CONFIG_STATUS <<\EOF
3962 rm -f conftest.frag conftest.h
3963 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3964 cat conftest.in >> conftest.h
3966 if cmp -s $ac_file conftest.h 2>/dev/null; then
3967 echo "$ac_file is unchanged"
3970 # Remove last slash and all that follows it. Not all systems have dirname.
3971 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3972 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3973 # The file is in a subdirectory.
3974 test ! -d "$ac_dir" && mkdir "$ac_dir"
3977 mv conftest.h $ac_file
3982 cat >> $CONFIG_STATUS <<EOF
3985 cat >> $CONFIG_STATUS <<\EOF
3986 case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac
3989 chmod +x $CONFIG_STATUS
3990 rm -fr confdefs* $ac_clean_files
3991 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1