45 sim_inline
="-DDEFAULT_INLINE=0"
82 # This file is derived from `gettext.m4'. The difference is that the
83 # included macros assume Cygnus-style source and build trees.
85 # Macro to add for using GNU gettext.
86 # Ulrich Drepper <drepper@cygnus.com>, 1995.
88 # This file file be copied and used freely without restrictions. It can
89 # be used in projects which are not available under the GNU Public License
90 # but which still want to provide support for the GNU gettext functionality.
91 # Please note that the actual code is *not* freely available.
99 # Search path for a program which passes the given test.
100 # Ulrich Drepper <drepper@cygnus.com>, 1996.
102 # This file file be copied and used freely without restrictions. It can
103 # be used in projects which are not available under the GNU Public License
104 # but which still want to provide support for the GNU gettext functionality.
105 # Please note that the actual code is *not* freely available.
111 # Check whether LC_MESSAGES is available in <locale.h>.
112 # Ulrich Drepper <drepper@cygnus.com>, 1995.
114 # This file file be copied and used freely without restrictions. It can
115 # be used in projects which are not available under the GNU Public License
116 # but which still want to provide support for the GNU gettext functionality.
117 # Please note that the actual code is *not* freely available.
126 # Guess values for system-dependent variables and create Makefiles.
127 # Generated automatically using autoconf version 2.13
128 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 # This configure script is free software; the Free Software Foundation
131 # gives unlimited permission to copy, distribute and modify it.
135 ac_default_prefix
=/usr
/local
136 # Any additions from configure.in:
138 --disable-nls do not use Native Language Support"
140 --with-included-gettext use the GNU gettext library included here"
142 --enable-maintainer-mode Enable developer functionality."
144 --enable-sim-bswap Use Host specific BSWAP instruction."
146 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
148 --enable-sim-debug=opts Enable debugging flags"
150 --enable-sim-stdio Specify whether to use stdio for console input/output."
152 --enable-sim-trace=opts Enable tracing flags"
154 --enable-sim-profile=opts Enable profiling flags"
156 --enable-sim-inline=inlines Specify which functions should be inlined."
158 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
160 --enable-sim-hostendian=end Specify host byte endian orientation."
162 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
164 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used"
166 --enable-sim-hardware=LIST Specify the hardware to be included in the build."
168 # Initialize some variables set by options.
169 # The variables have the same names as the options, with
170 # dashes changed to underlines.
172 cache_file
=.
/config.cache
181 program_transform_name
=s
,x
,x
,
190 bindir
='${exec_prefix}/bin'
191 sbindir
='${exec_prefix}/sbin'
192 libexecdir
='${exec_prefix}/libexec'
193 datadir
='${prefix}/share'
194 sysconfdir
='${prefix}/etc'
195 sharedstatedir
='${prefix}/com'
196 localstatedir
='${prefix}/var'
197 libdir
='${exec_prefix}/lib'
198 includedir
='${prefix}/include'
199 oldincludedir
='/usr/include'
200 infodir
='${prefix}/info'
201 mandir
='${prefix}/man'
203 # Initialize some other variables.
206 SHELL
=${CONFIG_SHELL-/bin/sh}
207 # Maximum number of lines to put in a shell here document.
214 # If the previous option needs an argument, assign it.
215 if test -n "$ac_prev"; then
216 eval "$ac_prev=\$ac_option"
222 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
226 # Accept the important Cygnus configure options, so we can diagnose typos.
230 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
232 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
233 bindir
="$ac_optarg" ;;
235 -build |
--build |
--buil |
--bui |
--bu)
237 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
238 build
="$ac_optarg" ;;
240 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
241 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
242 ac_prev
=cache_file
;;
243 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
244 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
245 cache_file
="$ac_optarg" ;;
247 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
249 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
251 datadir
="$ac_optarg" ;;
253 -disable-* |
--disable-*)
254 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
255 # Reject names that are not valid shell variable names.
256 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
257 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
259 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
260 eval "enable_${ac_feature}=no" ;;
262 -enable-* |
--enable-*)
263 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
264 # Reject names that are not valid shell variable names.
265 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
266 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
268 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
273 eval "enable_${ac_feature}='$ac_optarg'" ;;
275 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
276 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
277 |
--exec |
--exe |
--ex)
278 ac_prev
=exec_prefix
;;
279 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
280 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
281 |
--exec=* |
--exe=* |
--ex=*)
282 exec_prefix
="$ac_optarg" ;;
284 -gas |
--gas |
--ga |
--g)
285 # Obsolete; use --with-gas.
288 -help |
--help |
--hel |
--he)
289 # Omit some internal or obsolete options to make the list less imposing.
290 # This message is too long to be a string in the A/UX 3.1 sh.
292 Usage: configure [options] [host]
293 Options: [defaults in brackets after descriptions]
295 --cache-file=FILE cache test results in FILE
296 --help print this message
297 --no-create do not create output files
298 --quiet, --silent do not print \`checking...' messages
299 --site-file=FILE use FILE as the site file
300 --version print the version of autoconf that created configure
301 Directory and file names:
302 --prefix=PREFIX install architecture-independent files in PREFIX
304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
306 --bindir=DIR user executables in DIR [EPREFIX/bin]
307 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
308 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
309 --datadir=DIR read-only architecture-independent data in DIR
311 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
312 --sharedstatedir=DIR modifiable architecture-independent data in DIR
314 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
315 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
316 --includedir=DIR C header files in DIR [PREFIX/include]
317 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
318 --infodir=DIR info documentation in DIR [PREFIX/info]
319 --mandir=DIR man documentation in DIR [PREFIX/man]
320 --srcdir=DIR find the sources in DIR [configure dir or ..]
321 --program-prefix=PREFIX prepend PREFIX to installed program names
322 --program-suffix=SUFFIX append SUFFIX to installed program names
323 --program-transform-name=PROGRAM
324 run sed PROGRAM on installed program names
328 --build=BUILD configure for building on BUILD [BUILD=HOST]
329 --host=HOST configure for HOST [guessed]
330 --target=TARGET configure for TARGET [TARGET=HOST]
331 Features and packages:
332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
334 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
335 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
336 --x-includes=DIR X include files are in DIR
337 --x-libraries=DIR X library files are in DIR
339 if test -n "$ac_help"; then
340 echo "--enable and --with options recognized:$ac_help"
344 -host |
--host |
--hos |
--ho)
346 -host=* |
--host=* |
--hos=* |
--ho=*)
349 -includedir |
--includedir |
--includedi |
--included |
--include \
350 |
--includ |
--inclu |
--incl |
--inc)
351 ac_prev
=includedir
;;
352 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
353 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
354 includedir
="$ac_optarg" ;;
356 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
358 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
359 infodir
="$ac_optarg" ;;
361 -libdir |
--libdir |
--libdi |
--libd)
363 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
364 libdir
="$ac_optarg" ;;
366 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
367 |
--libexe |
--libex |
--libe)
368 ac_prev
=libexecdir
;;
369 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
370 |
--libexe=* |
--libex=* |
--libe=*)
371 libexecdir
="$ac_optarg" ;;
373 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
374 |
--localstate |
--localstat |
--localsta |
--localst \
375 |
--locals |
--local |
--loca |
--loc |
--lo)
376 ac_prev
=localstatedir
;;
377 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
378 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
379 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
380 localstatedir
="$ac_optarg" ;;
382 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
384 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
385 mandir
="$ac_optarg" ;;
388 # Obsolete; use --without-fp.
391 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
395 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
396 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
399 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
400 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
401 |
--oldin |
--oldi |
--old |
--ol |
--o)
402 ac_prev
=oldincludedir
;;
403 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
404 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
405 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
406 oldincludedir
="$ac_optarg" ;;
408 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
410 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
411 prefix
="$ac_optarg" ;;
413 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
414 |
--program-pre |
--program-pr |
--program-p)
415 ac_prev
=program_prefix
;;
416 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
417 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
418 program_prefix
="$ac_optarg" ;;
420 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
421 |
--program-suf |
--program-su |
--program-s)
422 ac_prev
=program_suffix
;;
423 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
424 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
425 program_suffix
="$ac_optarg" ;;
427 -program-transform-name |
--program-transform-name \
428 |
--program-transform-nam |
--program-transform-na \
429 |
--program-transform-n |
--program-transform- \
430 |
--program-transform |
--program-transfor \
431 |
--program-transfo |
--program-transf \
432 |
--program-trans |
--program-tran \
433 |
--progr-tra |
--program-tr |
--program-t)
434 ac_prev
=program_transform_name
;;
435 -program-transform-name=* |
--program-transform-name=* \
436 |
--program-transform-nam=* |
--program-transform-na=* \
437 |
--program-transform-n=* |
--program-transform-=* \
438 |
--program-transform=* |
--program-transfor=* \
439 |
--program-transfo=* |
--program-transf=* \
440 |
--program-trans=* |
--program-tran=* \
441 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
442 program_transform_name
="$ac_optarg" ;;
444 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
445 |
-silent |
--silent |
--silen |
--sile |
--sil)
448 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
450 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
452 sbindir
="$ac_optarg" ;;
454 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
455 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
456 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
458 ac_prev
=sharedstatedir
;;
459 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
460 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
461 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
463 sharedstatedir
="$ac_optarg" ;;
465 -site |
--site |
--sit)
467 -site=* |
--site=* |
--sit=*)
470 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
472 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
473 sitefile
="$ac_optarg" ;;
475 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
477 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
478 srcdir
="$ac_optarg" ;;
480 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
481 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
482 ac_prev
=sysconfdir
;;
483 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
484 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
485 sysconfdir
="$ac_optarg" ;;
487 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
489 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
490 target
="$ac_optarg" ;;
492 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
495 -version |
--version |
--versio |
--versi |
--vers)
496 echo "configure generated by autoconf version 2.13"
500 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
501 # Reject names that are not valid shell variable names.
502 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
503 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
505 ac_package
=`echo $ac_package| sed 's/-/_/g'`
510 eval "with_${ac_package}='$ac_optarg'" ;;
512 -without-* |
--without-*)
513 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
514 # Reject names that are not valid shell variable names.
515 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
516 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
518 ac_package
=`echo $ac_package| sed 's/-/_/g'`
519 eval "with_${ac_package}=no" ;;
522 # Obsolete; use --with-x.
525 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
526 |
--x-incl |
--x-inc |
--x-in |
--x-i)
527 ac_prev
=x_includes
;;
528 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
529 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
530 x_includes
="$ac_optarg" ;;
532 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
533 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
534 ac_prev
=x_libraries
;;
535 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
536 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
537 x_libraries
="$ac_optarg" ;;
539 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
543 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
544 echo "configure: warning: $ac_option: invalid host type" 1>&2
546 if test "x$nonopt" != xNONE
; then
547 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
555 if test -n "$ac_prev"; then
556 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
559 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
561 # File descriptor usage:
564 # 2 errors and warnings
565 # 3 some systems may open it to /dev/tty
566 # 4 used on the Kubota Titan
567 # 6 checking for... messages and results
568 # 5 compiler messages saved in config.log
569 if test "$silent" = yes; then
577 This file contains any messages produced by compilers while
578 running configure, to aid debugging if configure makes a mistake.
581 # Strip out --no-create and --no-recursion so they do not pile up.
582 # Also quote any args containing shell metacharacters.
587 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
588 |
--no-cr |
--no-c) ;;
589 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
590 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
591 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
592 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
593 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
598 # Only set these to C if already set. These must not be set unconditionally
599 # because not all systems understand e.g. LANG=C (notably SCO).
600 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
601 # Non-C LC_CTYPE values break the ctype check.
602 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
603 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
604 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
605 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
607 # confdefs.h avoids OS command line length limits that DEFS can exceed.
608 rm -rf conftest
* confdefs.h
609 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
612 # A filename unique to this package, relative to the directory that
613 # configure is in, which we can look for to find out if srcdir is correct.
614 ac_unique_file
=Makefile.
in
616 # Find the source files, if location was not specified.
617 if test -z "$srcdir"; then
618 ac_srcdir_defaulted
=yes
619 # Try the directory containing this script, then its parent.
621 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
622 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
624 if test ! -r $srcdir/$ac_unique_file; then
628 ac_srcdir_defaulted
=no
630 if test ! -r $srcdir/$ac_unique_file; then
631 if test "$ac_srcdir_defaulted" = yes; then
632 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
634 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
637 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
639 # Prefer explicitly selected file to automatically selected ones.
640 if test -z "$sitefile"; then
641 if test -z "$CONFIG_SITE"; then
642 if test "x$prefix" != xNONE
; then
643 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
645 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
649 CONFIG_SITE
="$sitefile"
651 for ac_site_file
in $CONFIG_SITE; do
652 if test -r "$ac_site_file"; then
653 echo "loading site script $ac_site_file"
658 if test -r "$cache_file"; then
659 echo "loading cache $cache_file"
662 echo "creating cache $cache_file"
667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
668 ac_cpp
='$CPP $CPPFLAGS'
669 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
670 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
671 cross_compiling
=$ac_cv_prog_cc_cross
675 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
676 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
677 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
684 ac_n
= ac_c
='\c' ac_t
=
689 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
690 echo "configure:691: checking how to run the C preprocessor" >&5
691 # On Suns, sometimes $CPP names a directory.
692 if test -n "$CPP" && test -d "$CPP"; then
695 if test -z "$CPP"; then
696 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 # This must be in double quotes, not single quotes, because CPP may get
700 # substituted into the Makefile and "${CC-cc}" will confuse make.
702 # On the NeXT, cc -E runs the code through the compiler's parser,
703 # not just through cpp.
704 cat > conftest.
$ac_ext <<EOF
705 #line 706 "configure"
706 #include "confdefs.h"
710 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
711 { (eval echo configure
:712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
712 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
713 if test -z "$ac_err"; then
717 echo "configure: failed program was:" >&5
718 cat conftest.
$ac_ext >&5
720 CPP
="${CC-cc} -E -traditional-cpp"
721 cat > conftest.
$ac_ext <<EOF
722 #line 723 "configure"
723 #include "confdefs.h"
727 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
728 { (eval echo configure
:729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
729 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
730 if test -z "$ac_err"; then
734 echo "configure: failed program was:" >&5
735 cat conftest.
$ac_ext >&5
737 CPP
="${CC-cc} -nologo -E"
738 cat > conftest.
$ac_ext <<EOF
739 #line 740 "configure"
740 #include "confdefs.h"
744 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
745 { (eval echo configure
:746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
746 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
747 if test -z "$ac_err"; then
751 echo "configure: failed program was:" >&5
752 cat conftest.
$ac_ext >&5
761 ac_cv_prog_CPP
="$CPP"
763 CPP
="$ac_cv_prog_CPP"
765 ac_cv_prog_CPP
="$CPP"
767 echo "$ac_t""$CPP" 1>&6
769 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
770 echo "configure:771: checking whether ${MAKE-make} sets \${MAKE}" >&5
771 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
772 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
773 echo $ac_n "(cached) $ac_c" 1>&6
775 cat > conftestmake
<<\EOF
777 @
echo 'ac_maketemp="${MAKE}"'
779 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
780 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
781 if test -n "$ac_maketemp"; then
782 eval ac_cv_prog_make_
${ac_make}_set
=yes
784 eval ac_cv_prog_make_
${ac_make}_set
=no
788 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
789 echo "$ac_t""yes" 1>&6
792 echo "$ac_t""no" 1>&6
793 SET_MAKE
="MAKE=${MAKE-make}"
796 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
797 echo "configure:798: checking for POSIXized ISC" >&5
798 if test -d /etc
/conf
/kconfig.d
&&
799 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
801 echo "$ac_t""yes" 1>&6
802 ISC
=yes # If later tests want to check for ISC.
803 cat >> confdefs.h
<<\EOF
804 #define _POSIX_SOURCE 1
807 if test "$GCC" = yes; then
813 echo "$ac_t""no" 1>&6
817 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
818 echo "configure:819: checking for ANSI C header files" >&5
819 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 cat > conftest.
$ac_ext <<EOF
823 #line 824 "configure"
824 #include "confdefs.h"
830 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831 { (eval echo configure
:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
832 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
833 if test -z "$ac_err"; then
835 ac_cv_header_stdc
=yes
838 echo "configure: failed program was:" >&5
839 cat conftest.
$ac_ext >&5
845 if test $ac_cv_header_stdc = yes; then
846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
847 cat > conftest.
$ac_ext <<EOF
848 #line 849 "configure"
849 #include "confdefs.h"
852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
853 egrep "memchr" >/dev
/null
2>&1; then
863 if test $ac_cv_header_stdc = yes; then
864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
865 cat > conftest.
$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
871 egrep "free" >/dev
/null
2>&1; then
881 if test $ac_cv_header_stdc = yes; then
882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
883 if test "$cross_compiling" = yes; then
886 cat > conftest.
$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
890 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
891 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
893 int main () { int i; for (i = 0; i < 256; i++)
894 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
898 if { (eval echo configure
:899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
902 echo "configure: failed program was:" >&5
903 cat conftest.
$ac_ext >&5
913 echo "$ac_t""$ac_cv_header_stdc" 1>&6
914 if test $ac_cv_header_stdc = yes; then
915 cat >> confdefs.h
<<\EOF
916 #define STDC_HEADERS 1
921 echo $ac_n "checking for working const""... $ac_c" 1>&6
922 echo "configure:923: checking for working const" >&5
923 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&6
926 cat > conftest.
$ac_ext <<EOF
927 #line 928 "configure"
928 #include "confdefs.h"
932 /* Ultrix mips cc rejects this. */
933 typedef int charset[2]; const charset x;
934 /* SunOS 4.1.1 cc rejects this. */
935 char const *const *ccp;
937 /* NEC SVR4.0.2 mips cc rejects this. */
938 struct point {int x, y;};
939 static struct point const zero = {0,0};
940 /* AIX XL C 1.02.0.0 rejects this.
941 It does not let you subtract one const X* pointer from another in an arm
942 of an if-expression whose if-part is not a constant expression */
943 const char *g = "string";
944 ccp = &g + (g ? g-g : 0);
945 /* HPUX 7.0 cc rejects these. */
948 ccp = (char const *const *) p;
949 { /* SCO 3.2v4 cc rejects this. */
951 char const *s = 0 ? (char *) 0 : (char const *) 0;
955 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
957 const int *foo = &x[0];
960 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
961 typedef const int *iptr;
965 { /* AIX XL C 1.02.0.0 rejects this saying
966 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
967 struct s { int j; const int *ap[3]; };
968 struct s *b; b->j = 5;
970 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
976 if { (eval echo configure
:977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
980 echo "configure: failed program was:" >&5
981 cat conftest.
$ac_ext >&5
988 echo "$ac_t""$ac_cv_c_const" 1>&6
989 if test $ac_cv_c_const = no
; then
990 cat >> confdefs.h
<<\EOF
996 echo $ac_n "checking for inline""... $ac_c" 1>&6
997 echo "configure:998: checking for inline" >&5
998 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1002 for ac_kw
in inline __inline__ __inline
; do
1003 cat > conftest.
$ac_ext <<EOF
1004 #line 1005 "configure"
1005 #include "confdefs.h"
1011 if { (eval echo configure
:1012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1013 ac_cv_c_inline
=$ac_kw; break
1015 echo "configure: failed program was:" >&5
1016 cat conftest.
$ac_ext >&5
1023 echo "$ac_t""$ac_cv_c_inline" 1>&6
1024 case "$ac_cv_c_inline" in
1026 no
) cat >> confdefs.h
<<\EOF
1030 *) cat >> confdefs.h
<<EOF
1031 #define inline $ac_cv_c_inline
1036 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1037 echo "configure:1038: checking for off_t" >&5
1038 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 cat > conftest.
$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1044 #include <sys/types.h>
1050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1051 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1053 ac_cv_type_off_t
=yes
1061 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1062 if test $ac_cv_type_off_t = no
; then
1063 cat >> confdefs.h
<<\EOF
1069 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1070 echo "configure:1071: checking for size_t" >&5
1071 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 cat > conftest.
$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1077 #include <sys/types.h>
1083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1084 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1086 ac_cv_type_size_t
=yes
1089 ac_cv_type_size_t
=no
1094 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1095 if test $ac_cv_type_size_t = no
; then
1096 cat >> confdefs.h
<<\EOF
1097 #define size_t unsigned
1102 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1103 # for constant arguments. Useless!
1104 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1105 echo "configure:1106: checking for working alloca.h" >&5
1106 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 cat > conftest.
$ac_ext <<EOF
1110 #line 1111 "configure"
1111 #include "confdefs.h"
1114 char *p = alloca(2 * sizeof(int));
1117 if { (eval echo configure
:1118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1119 ac_cv_header_alloca_h
=yes
1121 echo "configure: failed program was:" >&5
1122 cat conftest.
$ac_ext >&5
1124 ac_cv_header_alloca_h
=no
1129 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1130 if test $ac_cv_header_alloca_h = yes; then
1131 cat >> confdefs.h
<<\EOF
1132 #define HAVE_ALLOCA_H 1
1137 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1138 echo "configure:1139: checking for alloca" >&5
1139 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 cat > conftest.
$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1147 # define alloca __builtin_alloca
1150 # include <malloc.h>
1151 # define alloca _alloca
1154 # include <alloca.h>
1159 # ifndef alloca /* predefined by HP cc +Olibcalls */
1168 char *p = (char *) alloca(1);
1171 if { (eval echo configure
:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1173 ac_cv_func_alloca_works
=yes
1175 echo "configure: failed program was:" >&5
1176 cat conftest.
$ac_ext >&5
1178 ac_cv_func_alloca_works
=no
1183 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1184 if test $ac_cv_func_alloca_works = yes; then
1185 cat >> confdefs.h
<<\EOF
1186 #define HAVE_ALLOCA 1
1191 if test $ac_cv_func_alloca_works = no
; then
1192 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1193 # that cause trouble. Some versions do not even contain alloca or
1194 # contain a buggy version. If you still want to use their alloca,
1195 # use ar to extract alloca.o from them instead of compiling alloca.c.
1196 ALLOCA
=alloca.
${ac_objext}
1197 cat >> confdefs.h
<<\EOF
1202 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1203 echo "configure:1204: checking whether alloca needs Cray hooks" >&5
1204 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 cat > conftest.
$ac_ext <<EOF
1208 #line 1209 "configure"
1209 #include "confdefs.h"
1210 #if defined(CRAY) && ! defined(CRAY2)
1217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1218 egrep "webecray" >/dev
/null
2>&1; then
1229 echo "$ac_t""$ac_cv_os_cray" 1>&6
1230 if test $ac_cv_os_cray = yes; then
1231 for ac_func
in _getb67 GETB67 getb67
; do
1232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1233 echo "configure:1234: checking for $ac_func" >&5
1234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 cat > conftest.
$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1240 /* System header to define __stub macros and hopefully few prototypes,
1241 which can conflict with char $ac_func(); below. */
1243 /* Override any gcc2 internal prototype to avoid an error. */
1244 /* We use char because int might match the return type of a gcc2
1245 builtin and then its argument prototype would still apply. */
1250 /* The GNU C library defines this for functions which it implements
1251 to always fail with ENOSYS. Some functions are actually named
1252 something starting with __ and the normal name is an alias. */
1253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1261 if { (eval echo configure
:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1263 eval "ac_cv_func_$ac_func=yes"
1265 echo "configure: failed program was:" >&5
1266 cat conftest.
$ac_ext >&5
1268 eval "ac_cv_func_$ac_func=no"
1273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1274 echo "$ac_t""yes" 1>&6
1275 cat >> confdefs.h
<<EOF
1276 #define CRAY_STACKSEG_END $ac_func
1281 echo "$ac_t""no" 1>&6
1287 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1288 echo "configure:1289: checking stack direction for C alloca" >&5
1289 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 if test "$cross_compiling" = yes; then
1293 ac_cv_c_stack_direction
=0
1295 cat > conftest.
$ac_ext <<EOF
1296 #line 1297 "configure"
1297 #include "confdefs.h"
1298 find_stack_direction ()
1300 static char *addr = 0;
1305 return find_stack_direction ();
1308 return (&dummy > addr) ? 1 : -1;
1312 exit (find_stack_direction() < 0);
1315 if { (eval echo configure
:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1317 ac_cv_c_stack_direction
=1
1319 echo "configure: failed program was:" >&5
1320 cat conftest.
$ac_ext >&5
1322 ac_cv_c_stack_direction
=-1
1329 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1330 cat >> confdefs.h
<<EOF
1331 #define STACK_DIRECTION $ac_cv_c_stack_direction
1336 for ac_hdr
in unistd.h
1338 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1340 echo "configure:1341: checking for $ac_hdr" >&5
1341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1344 cat > conftest.
$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1349 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1350 { (eval echo configure
:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1351 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1352 if test -z "$ac_err"; then
1354 eval "ac_cv_header_$ac_safe=yes"
1357 echo "configure: failed program was:" >&5
1358 cat conftest.
$ac_ext >&5
1360 eval "ac_cv_header_$ac_safe=no"
1364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1365 echo "$ac_t""yes" 1>&6
1366 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1367 cat >> confdefs.h
<<EOF
1368 #define $ac_tr_hdr 1
1372 echo "$ac_t""no" 1>&6
1376 for ac_func
in getpagesize
1378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1379 echo "configure:1380: checking for $ac_func" >&5
1380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 cat > conftest.
$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1386 /* System header to define __stub macros and hopefully few prototypes,
1387 which can conflict with char $ac_func(); below. */
1389 /* Override any gcc2 internal prototype to avoid an error. */
1390 /* We use char because int might match the return type of a gcc2
1391 builtin and then its argument prototype would still apply. */
1396 /* The GNU C library defines this for functions which it implements
1397 to always fail with ENOSYS. Some functions are actually named
1398 something starting with __ and the normal name is an alias. */
1399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1407 if { (eval echo configure
:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1409 eval "ac_cv_func_$ac_func=yes"
1411 echo "configure: failed program was:" >&5
1412 cat conftest.
$ac_ext >&5
1414 eval "ac_cv_func_$ac_func=no"
1419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1420 echo "$ac_t""yes" 1>&6
1421 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1422 cat >> confdefs.h
<<EOF
1423 #define $ac_tr_func 1
1427 echo "$ac_t""no" 1>&6
1431 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1432 echo "configure:1433: checking for working mmap" >&5
1433 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 if test "$cross_compiling" = yes; then
1437 ac_cv_func_mmap_fixed_mapped
=no
1439 cat > conftest.
$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1443 /* Thanks to Mike Haertel and Jim Avera for this test.
1444 Here is a matrix of mmap possibilities:
1445 mmap private not fixed
1446 mmap private fixed at somewhere currently unmapped
1447 mmap private fixed at somewhere already mapped
1448 mmap shared not fixed
1449 mmap shared fixed at somewhere currently unmapped
1450 mmap shared fixed at somewhere already mapped
1451 For private mappings, we should verify that changes cannot be read()
1452 back from the file, nor mmap's back from the file at a different
1453 address. (There have been systems where private was not correctly
1454 implemented like the infamous i386 svr4.0, and systems where the
1455 VM page cache was not coherent with the filesystem buffer cache
1456 like early versions of FreeBSD and possibly contemporary NetBSD.)
1457 For shared mappings, we should conversely verify that changes get
1458 propogated back to all the places they're supposed to be.
1460 Grep wants private fixed already mapped.
1461 The main things grep needs to know about mmap are:
1462 * does it exist and is it safe to write into the mmap'd area
1463 * how to use it (BSD variants) */
1464 #include <sys/types.h>
1466 #include <sys/mman.h>
1468 /* This mess was copied from the GNU getpagesize.h. */
1469 #ifndef HAVE_GETPAGESIZE
1470 # ifdef HAVE_UNISTD_H
1471 # include <unistd.h>
1474 /* Assume that all systems that can run configure have sys/param.h. */
1475 # ifndef HAVE_SYS_PARAM_H
1476 # define HAVE_SYS_PARAM_H 1
1479 # ifdef _SC_PAGESIZE
1480 # define getpagesize() sysconf(_SC_PAGESIZE)
1481 # else /* no _SC_PAGESIZE */
1482 # ifdef HAVE_SYS_PARAM_H
1483 # include <sys/param.h>
1484 # ifdef EXEC_PAGESIZE
1485 # define getpagesize() EXEC_PAGESIZE
1486 # else /* no EXEC_PAGESIZE */
1488 # define getpagesize() NBPG * CLSIZE
1491 # endif /* no CLSIZE */
1492 # else /* no NBPG */
1494 # define getpagesize() NBPC
1495 # else /* no NBPC */
1497 # define getpagesize() PAGESIZE
1498 # endif /* PAGESIZE */
1499 # endif /* no NBPC */
1500 # endif /* no NBPG */
1501 # endif /* no EXEC_PAGESIZE */
1502 # else /* no HAVE_SYS_PARAM_H */
1503 # define getpagesize() 8192 /* punt totally */
1504 # endif /* no HAVE_SYS_PARAM_H */
1505 # endif /* no _SC_PAGESIZE */
1507 #endif /* no HAVE_GETPAGESIZE */
1510 extern "C" { void *malloc(unsigned); }
1518 char *data, *data2, *data3;
1522 pagesize = getpagesize();
1525 * First, make a file with some known garbage in it.
1527 data = malloc(pagesize);
1530 for (i = 0; i < pagesize; ++i)
1531 *(data + i) = rand();
1533 fd = creat("conftestmmap", 0600);
1536 if (write(fd, data, pagesize) != pagesize)
1541 * Next, try to mmap the file at a fixed address which
1542 * already has something else allocated at it. If we can,
1543 * also make sure that we see the same garbage.
1545 fd = open("conftestmmap", O_RDWR);
1548 data2 = malloc(2 * pagesize);
1551 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1552 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1553 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1555 for (i = 0; i < pagesize; ++i)
1556 if (*(data + i) != *(data2 + i))
1560 * Finally, make sure that changes to the mapped area
1561 * do not percolate back to the file as seen by read().
1562 * (This is a bug on some variants of i386 svr4.0.)
1564 for (i = 0; i < pagesize; ++i)
1565 *(data2 + i) = *(data2 + i) + 1;
1566 data3 = malloc(pagesize);
1569 if (read(fd, data3, pagesize) != pagesize)
1571 for (i = 0; i < pagesize; ++i)
1572 if (*(data + i) != *(data3 + i))
1575 unlink("conftestmmap");
1580 if { (eval echo configure
:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1582 ac_cv_func_mmap_fixed_mapped
=yes
1584 echo "configure: failed program was:" >&5
1585 cat conftest.
$ac_ext >&5
1587 ac_cv_func_mmap_fixed_mapped
=no
1594 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1595 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1596 cat >> confdefs.h
<<\EOF
1602 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1603 echo "configure:1604: checking for Cygwin environment" >&5
1604 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 cat > conftest.
$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1614 #define __CYGWIN__ __CYGWIN32__
1619 if { (eval echo configure
:1620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1623 echo "configure: failed program was:" >&5
1624 cat conftest.
$ac_ext >&5
1632 echo "$ac_t""$ac_cv_cygwin" 1>&6
1634 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1635 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1636 echo "configure:1637: checking for mingw32 environment" >&5
1637 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1640 cat > conftest.
$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1648 if { (eval echo configure
:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1652 echo "configure: failed program was:" >&5
1653 cat conftest.
$ac_ext >&5
1661 echo "$ac_t""$ac_cv_mingw32" 1>&6
1663 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1665 # autoconf.info says this should be called right after AC_INIT.
1669 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1670 if test -f $ac_dir/install-sh
; then
1672 ac_install_sh
="$ac_aux_dir/install-sh -c"
1674 elif test -f $ac_dir/install.sh
; then
1676 ac_install_sh
="$ac_aux_dir/install.sh -c"
1680 if test -z "$ac_aux_dir"; then
1681 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1683 ac_config_guess
=$ac_aux_dir/config.guess
1684 ac_config_sub
=$ac_aux_dir/config.sub
1685 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1688 # Do some error checking and defaulting for the host and target type.
1690 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1693 # 1. You are not allowed to specify --host, --target, and nonopt at the
1695 # 2. Host defaults to nonopt.
1696 # 3. If nonopt is not specified, then host defaults to the current host,
1697 # as determined by config.guess.
1698 # 4. Target and build default to nonopt.
1699 # 5. If nonopt is not specified, then target and build default to host.
1701 # The aliases save the names the user supplied, while $host etc.
1702 # will get canonicalized.
1703 case $host---$target---$nonopt in
1704 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1705 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1709 # Make sure we can run config.sub.
1710 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1711 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1714 echo $ac_n "checking host system type""... $ac_c" 1>&6
1715 echo "configure:1716: checking host system type" >&5
1718 case "$host_alias" in
1722 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1723 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1725 *) host_alias
=$nonopt ;;
1729 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1730 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1731 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1732 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1733 echo "$ac_t""$host" 1>&6
1735 echo $ac_n "checking target system type""... $ac_c" 1>&6
1736 echo "configure:1737: checking target system type" >&5
1738 target_alias
=$target
1739 case "$target_alias" in
1742 NONE
) target_alias
=$host_alias ;;
1743 *) target_alias
=$nonopt ;;
1747 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1748 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1749 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1750 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1751 echo "$ac_t""$target" 1>&6
1753 echo $ac_n "checking build system type""... $ac_c" 1>&6
1754 echo "configure:1755: checking build system type" >&5
1757 case "$build_alias" in
1760 NONE
) build_alias
=$host_alias ;;
1761 *) build_alias
=$nonopt ;;
1765 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1766 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769 echo "$ac_t""$build" 1>&6
1771 test "$host_alias" != "$target_alias" &&
1772 test "$program_prefix$program_suffix$program_transform_name" = \
1774 program_prefix
=${target_alias}-
1776 if test "$program_transform_name" = s
,x
,x
,; then
1777 program_transform_name
=
1779 # Double any \ or $. echo might interpret backslashes.
1780 cat <<\EOF_SED
> conftestsed
1781 s
,\\,\\\\,g
; s
,\$
,$$
,g
1783 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1786 test "$program_prefix" != NONE
&&
1787 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1788 # Use a double $ so make ignores it.
1789 test "$program_suffix" != NONE
&&
1790 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1792 # sed with no file args requires a program.
1793 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1795 # Extract the first word of "gcc", so it can be a program name with args.
1796 set dummy gcc
; ac_word
=$2
1797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1798 echo "configure:1799: checking for $ac_word" >&5
1799 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC
="$CC" # Let the user override the test.
1805 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1807 for ac_dir
in $ac_dummy; do
1808 test -z "$ac_dir" && ac_dir
=.
1809 if test -f $ac_dir/$ac_word; then
1818 if test -n "$CC"; then
1819 echo "$ac_t""$CC" 1>&6
1821 echo "$ac_t""no" 1>&6
1824 if test -z "$CC"; then
1825 # Extract the first word of "cc", so it can be a program name with args.
1826 set dummy cc
; ac_word
=$2
1827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1828 echo "configure:1829: checking for $ac_word" >&5
1829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC
="$CC" # Let the user override the test.
1835 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1838 for ac_dir
in $ac_dummy; do
1839 test -z "$ac_dir" && ac_dir
=.
1840 if test -f $ac_dir/$ac_word; then
1841 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1842 ac_prog_rejected
=yes
1850 if test $ac_prog_rejected = yes; then
1851 # We found a bogon in the path, so make sure we never use it.
1852 set dummy
$ac_cv_prog_CC
1854 if test $# -gt 0; then
1855 # We chose a different compiler from the bogus one.
1856 # However, it has the same basename, so the bogon will be chosen
1857 # first if we set CC to just the basename; use the full file name.
1859 set dummy
"$ac_dir/$ac_word" "$@"
1867 if test -n "$CC"; then
1868 echo "$ac_t""$CC" 1>&6
1870 echo "$ac_t""no" 1>&6
1873 if test -z "$CC"; then
1874 case "`uname -s`" in
1876 # Extract the first word of "cl", so it can be a program name with args.
1877 set dummy cl
; ac_word
=$2
1878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $ac_word" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC
="$CC" # Let the user override the test.
1886 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1888 for ac_dir
in $ac_dummy; do
1889 test -z "$ac_dir" && ac_dir
=.
1890 if test -f $ac_dir/$ac_word; then
1899 if test -n "$CC"; then
1900 echo "$ac_t""$CC" 1>&6
1902 echo "$ac_t""no" 1>&6
1907 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1910 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1911 echo "configure:1912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1915 ac_cpp
='$CPP $CPPFLAGS'
1916 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1917 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1918 cross_compiling
=$ac_cv_prog_cc_cross
1920 cat > conftest.
$ac_ext << EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1927 if { (eval echo configure
:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1928 ac_cv_prog_cc_works
=yes
1929 # If we can't run a trivial program, we are probably using a cross compiler.
1930 if (.
/conftest
; exit) 2>/dev
/null
; then
1931 ac_cv_prog_cc_cross
=no
1933 ac_cv_prog_cc_cross
=yes
1936 echo "configure: failed program was:" >&5
1937 cat conftest.
$ac_ext >&5
1938 ac_cv_prog_cc_works
=no
1942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1943 ac_cpp
='$CPP $CPPFLAGS'
1944 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1945 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1946 cross_compiling
=$ac_cv_prog_cc_cross
1948 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1949 if test $ac_cv_prog_cc_works = no
; then
1950 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1952 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1954 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1955 cross_compiling
=$ac_cv_prog_cc_cross
1957 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1958 echo "configure:1959: checking whether we are using GNU C" >&5
1959 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 cat > conftest.c
<<EOF
1967 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1974 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1976 if test $ac_cv_prog_gcc = yes; then
1982 ac_test_CFLAGS
="${CFLAGS+set}"
1983 ac_save_CFLAGS
="$CFLAGS"
1985 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1986 echo "configure:1987: checking whether ${CC-cc} accepts -g" >&5
1987 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 echo 'void f(){}' > conftest.c
1991 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2000 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2001 if test "$ac_test_CFLAGS" = set; then
2002 CFLAGS
="$ac_save_CFLAGS"
2003 elif test $ac_cv_prog_cc_g = yes; then
2004 if test "$GCC" = yes; then
2010 if test "$GCC" = yes; then
2017 # Find a good install program. We prefer a C program (faster),
2018 # so one script is as good as another. But avoid the broken or
2019 # incompatible versions:
2020 # SysV /etc/install, /usr/sbin/install
2021 # SunOS /usr/etc/install
2022 # IRIX /sbin/install
2024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2027 # ./install, which can be erroneously created by make from ./install.sh.
2028 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2029 echo "configure:2030: checking for a BSD compatible install" >&5
2030 if test -z "$INSTALL"; then
2031 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2035 for ac_dir
in $PATH; do
2036 # Account for people who put trailing slashes in PATH elements.
2038 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2040 # OSF1 and SCO ODT 3.0 have their own names for install.
2041 # Don't use installbsd from OSF since it installs stuff as root
2043 for ac_prog
in ginstall scoinst
install; do
2044 if test -f $ac_dir/$ac_prog; then
2045 if test $ac_prog = install &&
2046 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2047 # AIX install. It has an incompatible calling convention.
2050 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2061 if test "${ac_cv_path_install+set}" = set; then
2062 INSTALL
="$ac_cv_path_install"
2064 # As a last resort, use the slow shell script. We don't cache a
2065 # path for INSTALL within a source directory, because that will
2066 # break other packages using the cache if that directory is
2067 # removed, or if the path is relative.
2068 INSTALL
="$ac_install_sh"
2071 echo "$ac_t""$INSTALL" 1>&6
2073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2074 # It thinks the first close brace ends the variable substitution.
2075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2079 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2082 # Put a plausible default for CC_FOR_BUILD in Makefile.
2083 if test "x$cross_compiling" = "xno"; then
2084 CC_FOR_BUILD
='$(CC)'
2094 # Extract the first word of "ranlib", so it can be a program name with args.
2095 set dummy ranlib
; ac_word
=$2
2096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_word" >&5
2098 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 if test -n "$RANLIB"; then
2102 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2104 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2106 for ac_dir
in $ac_dummy; do
2107 test -z "$ac_dir" && ac_dir
=.
2108 if test -f $ac_dir/$ac_word; then
2109 ac_cv_prog_RANLIB
="ranlib"
2114 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2117 RANLIB
="$ac_cv_prog_RANLIB"
2118 if test -n "$RANLIB"; then
2119 echo "$ac_t""$RANLIB" 1>&6
2121 echo "$ac_t""no" 1>&6
2127 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2128 unistd.h values.h sys
/param.h
2130 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2132 echo "configure:2133: checking for $ac_hdr" >&5
2133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2136 cat > conftest.
$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2141 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2142 { (eval echo configure
:2143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2143 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2144 if test -z "$ac_err"; then
2146 eval "ac_cv_header_$ac_safe=yes"
2149 echo "configure: failed program was:" >&5
2150 cat conftest.
$ac_ext >&5
2152 eval "ac_cv_header_$ac_safe=no"
2156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2157 echo "$ac_t""yes" 1>&6
2158 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2159 cat >> confdefs.h
<<EOF
2160 #define $ac_tr_hdr 1
2164 echo "$ac_t""no" 1>&6
2168 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2169 __argz_count __argz_stringify __argz_next
2171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2172 echo "configure:2173: checking for $ac_func" >&5
2173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 cat > conftest.
$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2179 /* System header to define __stub macros and hopefully few prototypes,
2180 which can conflict with char $ac_func(); below. */
2182 /* Override any gcc2 internal prototype to avoid an error. */
2183 /* We use char because int might match the return type of a gcc2
2184 builtin and then its argument prototype would still apply. */
2189 /* The GNU C library defines this for functions which it implements
2190 to always fail with ENOSYS. Some functions are actually named
2191 something starting with __ and the normal name is an alias. */
2192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2200 if { (eval echo configure
:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2202 eval "ac_cv_func_$ac_func=yes"
2204 echo "configure: failed program was:" >&5
2205 cat conftest.
$ac_ext >&5
2207 eval "ac_cv_func_$ac_func=no"
2212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2215 cat >> confdefs.h
<<EOF
2216 #define $ac_tr_func 1
2220 echo "$ac_t""no" 1>&6
2225 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2226 for ac_func
in stpcpy
2228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2229 echo "configure:2230: checking for $ac_func" >&5
2230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 cat > conftest.
$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 /* System header to define __stub macros and hopefully few prototypes,
2237 which can conflict with char $ac_func(); below. */
2239 /* Override any gcc2 internal prototype to avoid an error. */
2240 /* We use char because int might match the return type of a gcc2
2241 builtin and then its argument prototype would still apply. */
2246 /* The GNU C library defines this for functions which it implements
2247 to always fail with ENOSYS. Some functions are actually named
2248 something starting with __ and the normal name is an alias. */
2249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2257 if { (eval echo configure
:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2259 eval "ac_cv_func_$ac_func=yes"
2261 echo "configure: failed program was:" >&5
2262 cat conftest.
$ac_ext >&5
2264 eval "ac_cv_func_$ac_func=no"
2269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2270 echo "$ac_t""yes" 1>&6
2271 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2272 cat >> confdefs.h
<<EOF
2273 #define $ac_tr_func 1
2277 echo "$ac_t""no" 1>&6
2282 if test "${ac_cv_func_stpcpy}" = "yes"; then
2283 cat >> confdefs.h
<<\EOF
2284 #define HAVE_STPCPY 1
2289 if test $ac_cv_header_locale_h = yes; then
2290 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2291 echo "configure:2292: checking for LC_MESSAGES" >&5
2292 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 cat > conftest.
$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2303 if { (eval echo configure
:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2305 am_cv_val_LC_MESSAGES
=yes
2307 echo "configure: failed program was:" >&5
2308 cat conftest.
$ac_ext >&5
2310 am_cv_val_LC_MESSAGES
=no
2315 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2316 if test $am_cv_val_LC_MESSAGES = yes; then
2317 cat >> confdefs.h
<<\EOF
2318 #define HAVE_LC_MESSAGES 1
2323 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2324 echo "configure:2325: checking whether NLS is requested" >&5
2325 # Check whether --enable-nls or --disable-nls was given.
2326 if test "${enable_nls+set}" = set; then
2327 enableval
="$enable_nls"
2333 echo "$ac_t""$USE_NLS" 1>&6
2336 USE_INCLUDED_LIBINTL
=no
2338 if test "$USE_NLS" = "yes"; then
2339 cat >> confdefs.h
<<\EOF
2340 #define ENABLE_NLS 1
2343 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2344 echo "configure:2345: checking whether included gettext is requested" >&5
2345 # Check whether --with-included-gettext or --without-included-gettext was given.
2346 if test "${with_included_gettext+set}" = set; then
2347 withval
="$with_included_gettext"
2348 nls_cv_force_use_gnu_gettext
=$withval
2350 nls_cv_force_use_gnu_gettext
=no
2353 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2355 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2356 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2358 nls_cv_header_libgt
=
2361 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2362 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2363 echo "configure:2364: checking for libintl.h" >&5
2364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 cat > conftest.
$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2370 #include <libintl.h>
2372 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2373 { (eval echo configure
:2374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2374 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2375 if test -z "$ac_err"; then
2377 eval "ac_cv_header_$ac_safe=yes"
2380 echo "configure: failed program was:" >&5
2381 cat conftest.
$ac_ext >&5
2383 eval "ac_cv_header_$ac_safe=no"
2387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2388 echo "$ac_t""yes" 1>&6
2389 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2390 echo "configure:2391: checking for gettext in libc" >&5
2391 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 cat > conftest.
$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 #include <libintl.h>
2399 return (int) gettext ("")
2402 if { (eval echo configure
:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2404 gt_cv_func_gettext_libc
=yes
2406 echo "configure: failed program was:" >&5
2407 cat conftest.
$ac_ext >&5
2409 gt_cv_func_gettext_libc
=no
2414 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2416 if test "$gt_cv_func_gettext_libc" != "yes"; then
2417 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2418 echo "configure:2419: checking for bindtextdomain in -lintl" >&5
2419 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 ac_save_LIBS
="$LIBS"
2425 cat > conftest.
$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2428 /* Override any gcc2 internal prototype to avoid an error. */
2429 /* We use char because int might match the return type of a gcc2
2430 builtin and then its argument prototype would still apply. */
2431 char bindtextdomain();
2437 if { (eval echo configure
:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2439 eval "ac_cv_lib_$ac_lib_var=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2444 eval "ac_cv_lib_$ac_lib_var=no"
2447 LIBS
="$ac_save_LIBS"
2450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2453 echo "configure:2454: checking for gettext in libintl" >&5
2454 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 cat > conftest.
$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2462 return (int) gettext ("")
2465 if { (eval echo configure
:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2467 gt_cv_func_gettext_libintl
=yes
2469 echo "configure: failed program was:" >&5
2470 cat conftest.
$ac_ext >&5
2472 gt_cv_func_gettext_libintl
=no
2477 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2479 echo "$ac_t""no" 1>&6
2484 if test "$gt_cv_func_gettext_libc" = "yes" \
2485 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2486 cat >> confdefs.h
<<\EOF
2487 #define HAVE_GETTEXT 1
2490 # Extract the first word of "msgfmt", so it can be a program name with args.
2491 set dummy msgfmt
; ac_word
=$2
2492 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2493 echo "configure:2494: checking for $ac_word" >&5
2494 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2499 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2502 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2503 for ac_dir
in $PATH; do
2504 test -z "$ac_dir" && ac_dir
=.
2505 if test -f $ac_dir/$ac_word; then
2506 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2507 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2513 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2517 MSGFMT
="$ac_cv_path_MSGFMT"
2518 if test -n "$MSGFMT"; then
2519 echo "$ac_t""$MSGFMT" 1>&6
2521 echo "$ac_t""no" 1>&6
2523 if test "$MSGFMT" != "no"; then
2524 for ac_func
in dcgettext
2526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2527 echo "configure:2528: checking for $ac_func" >&5
2528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2531 cat > conftest.
$ac_ext <<EOF
2532 #line 2533 "configure"
2533 #include "confdefs.h"
2534 /* System header to define __stub macros and hopefully few prototypes,
2535 which can conflict with char $ac_func(); below. */
2537 /* Override any gcc2 internal prototype to avoid an error. */
2538 /* We use char because int might match the return type of a gcc2
2539 builtin and then its argument prototype would still apply. */
2544 /* The GNU C library defines this for functions which it implements
2545 to always fail with ENOSYS. Some functions are actually named
2546 something starting with __ and the normal name is an alias. */
2547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2555 if { (eval echo configure
:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2557 eval "ac_cv_func_$ac_func=yes"
2559 echo "configure: failed program was:" >&5
2560 cat conftest.
$ac_ext >&5
2562 eval "ac_cv_func_$ac_func=no"
2567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2568 echo "$ac_t""yes" 1>&6
2569 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2570 cat >> confdefs.h
<<EOF
2571 #define $ac_tr_func 1
2575 echo "$ac_t""no" 1>&6
2579 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2580 set dummy gmsgfmt
; ac_word
=$2
2581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2582 echo "configure:2583: checking for $ac_word" >&5
2583 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2588 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2591 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2594 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2596 for ac_dir
in $ac_dummy; do
2597 test -z "$ac_dir" && ac_dir
=.
2598 if test -f $ac_dir/$ac_word; then
2599 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2604 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2608 GMSGFMT
="$ac_cv_path_GMSGFMT"
2609 if test -n "$GMSGFMT"; then
2610 echo "$ac_t""$GMSGFMT" 1>&6
2612 echo "$ac_t""no" 1>&6
2615 # Extract the first word of "xgettext", so it can be a program name with args.
2616 set dummy xgettext
; ac_word
=$2
2617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2618 echo "configure:2619: checking for $ac_word" >&5
2619 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2624 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2627 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2628 for ac_dir
in $PATH; do
2629 test -z "$ac_dir" && ac_dir
=.
2630 if test -f $ac_dir/$ac_word; then
2631 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2632 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2638 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2642 XGETTEXT
="$ac_cv_path_XGETTEXT"
2643 if test -n "$XGETTEXT"; then
2644 echo "$ac_t""$XGETTEXT" 1>&6
2646 echo "$ac_t""no" 1>&6
2649 cat > conftest.
$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2654 extern int _nl_msg_cat_cntr;
2655 return _nl_msg_cat_cntr
2658 if { (eval echo configure
:2659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2663 echo "configure: failed program was:" >&5
2664 cat conftest.
$ac_ext >&5
2675 echo "$ac_t""no" 1>&6
2680 if test "$CATOBJEXT" = "NONE"; then
2681 nls_cv_use_gnu_gettext
=yes
2685 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2686 INTLOBJS
="\$(GETTOBJS)"
2687 # Extract the first word of "msgfmt", so it can be a program name with args.
2688 set dummy msgfmt
; ac_word
=$2
2689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2690 echo "configure:2691: checking for $ac_word" >&5
2691 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2696 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2699 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2700 for ac_dir
in $PATH; do
2701 test -z "$ac_dir" && ac_dir
=.
2702 if test -f $ac_dir/$ac_word; then
2703 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2704 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2710 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2714 MSGFMT
="$ac_cv_path_MSGFMT"
2715 if test -n "$MSGFMT"; then
2716 echo "$ac_t""$MSGFMT" 1>&6
2718 echo "$ac_t""no" 1>&6
2721 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2722 set dummy gmsgfmt
; ac_word
=$2
2723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2724 echo "configure:2725: checking for $ac_word" >&5
2725 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2730 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2733 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2736 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2738 for ac_dir
in $ac_dummy; do
2739 test -z "$ac_dir" && ac_dir
=.
2740 if test -f $ac_dir/$ac_word; then
2741 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2746 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2750 GMSGFMT
="$ac_cv_path_GMSGFMT"
2751 if test -n "$GMSGFMT"; then
2752 echo "$ac_t""$GMSGFMT" 1>&6
2754 echo "$ac_t""no" 1>&6
2757 # Extract the first word of "xgettext", so it can be a program name with args.
2758 set dummy xgettext
; ac_word
=$2
2759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2760 echo "configure:2761: checking for $ac_word" >&5
2761 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2766 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2769 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2770 for ac_dir
in $PATH; do
2771 test -z "$ac_dir" && ac_dir
=.
2772 if test -f $ac_dir/$ac_word; then
2773 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2774 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2780 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2784 XGETTEXT
="$ac_cv_path_XGETTEXT"
2785 if test -n "$XGETTEXT"; then
2786 echo "$ac_t""$XGETTEXT" 1>&6
2788 echo "$ac_t""no" 1>&6
2792 USE_INCLUDED_LIBINTL
=yes
2796 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2798 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2799 nls_cv_header_intl
=libintl.h
2800 nls_cv_header_libgt
=libgettext.h
2803 if test "$XGETTEXT" != ":"; then
2804 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2807 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2812 # We need to process the po/ directory.
2816 nls_cv_header_intl
=libintl.h
2817 nls_cv_header_libgt
=libgettext.h
2820 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2821 # because some of the sources are only built for this goal.
2822 if test "$PACKAGE" = gettext; then
2824 USE_INCLUDED_LIBINTL
=yes
2827 for lang
in $ALL_LINGUAS; do
2828 GMOFILES
="$GMOFILES $lang.gmo"
2829 POFILES
="$POFILES $lang.po"
2845 if test "x$CATOBJEXT" != "x"; then
2846 if test "x$ALL_LINGUAS" = "x"; then
2849 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2850 echo "configure:2851: checking for catalogs to be installed" >&5
2852 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2853 case "$ALL_LINGUAS" in
2854 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2857 LINGUAS
=$NEW_LINGUAS
2858 echo "$ac_t""$LINGUAS" 1>&6
2861 if test -n "$LINGUAS"; then
2862 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2866 if test $ac_cv_header_locale_h = yes; then
2867 INCLUDE_LOCALE_H
="#include <locale.h>"
2870 /* The system does not provide the header <locale.h>. Take care yourself. */"
2874 if test -f $srcdir/po2tbl.
sed.
in; then
2875 if test "$CATOBJEXT" = ".cat"; then
2876 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2877 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2878 echo "configure:2879: checking for linux/version.h" >&5
2879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 cat > conftest.
$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2885 #include <linux/version.h>
2887 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2888 { (eval echo configure
:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2889 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2890 if test -z "$ac_err"; then
2892 eval "ac_cv_header_$ac_safe=yes"
2895 echo "configure: failed program was:" >&5
2896 cat conftest.
$ac_ext >&5
2898 eval "ac_cv_header_$ac_safe=no"
2902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2903 echo "$ac_t""yes" 1>&6
2906 echo "$ac_t""no" 1>&6
2911 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2913 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2914 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2917 if test "$PACKAGE" = "gettext"; then
2927 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2933 if test -d $srcdir/po
; then
2934 test -d po || mkdir po
2935 if test "x$srcdir" != "x."; then
2936 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2937 posrcprefix
="$srcdir/"
2939 posrcprefix
="../$srcdir/"
2945 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2946 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2950 # Check for common headers.
2951 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2952 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2953 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2955 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2957 echo "configure:2958: checking for $ac_hdr" >&5
2958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 cat > conftest.
$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2966 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2967 { (eval echo configure
:2968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2968 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2969 if test -z "$ac_err"; then
2971 eval "ac_cv_header_$ac_safe=yes"
2974 echo "configure: failed program was:" >&5
2975 cat conftest.
$ac_ext >&5
2977 eval "ac_cv_header_$ac_safe=no"
2981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2982 echo "$ac_t""yes" 1>&6
2983 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2984 cat >> confdefs.h
<<EOF
2985 #define $ac_tr_hdr 1
2989 echo "$ac_t""no" 1>&6
2993 for ac_hdr
in sys
/time.h sys
/resource.h
2995 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2997 echo "configure:2998: checking for $ac_hdr" >&5
2998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 cat > conftest.
$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3006 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3007 { (eval echo configure
:3008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3008 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3009 if test -z "$ac_err"; then
3011 eval "ac_cv_header_$ac_safe=yes"
3014 echo "configure: failed program was:" >&5
3015 cat conftest.
$ac_ext >&5
3017 eval "ac_cv_header_$ac_safe=no"
3021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3022 echo "$ac_t""yes" 1>&6
3023 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3024 cat >> confdefs.h
<<EOF
3025 #define $ac_tr_hdr 1
3029 echo "$ac_t""no" 1>&6
3033 for ac_hdr
in fcntl.h fpu_control.h
3035 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3037 echo "configure:3038: checking for $ac_hdr" >&5
3038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3041 cat > conftest.
$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3046 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3047 { (eval echo configure
:3048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3048 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3049 if test -z "$ac_err"; then
3051 eval "ac_cv_header_$ac_safe=yes"
3054 echo "configure: failed program was:" >&5
3055 cat conftest.
$ac_ext >&5
3057 eval "ac_cv_header_$ac_safe=no"
3061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3062 echo "$ac_t""yes" 1>&6
3063 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3064 cat >> confdefs.h
<<EOF
3065 #define $ac_tr_hdr 1
3069 echo "$ac_t""no" 1>&6
3073 for ac_hdr
in dlfcn.h errno.h sys
/stat.h
3075 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3077 echo "configure:3078: checking for $ac_hdr" >&5
3078 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3081 cat > conftest.
$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3086 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3087 { (eval echo configure
:3088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3088 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3089 if test -z "$ac_err"; then
3091 eval "ac_cv_header_$ac_safe=yes"
3094 echo "configure: failed program was:" >&5
3095 cat conftest.
$ac_ext >&5
3097 eval "ac_cv_header_$ac_safe=no"
3101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3102 echo "$ac_t""yes" 1>&6
3103 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3104 cat >> confdefs.h
<<EOF
3105 #define $ac_tr_hdr 1
3109 echo "$ac_t""no" 1>&6
3113 for ac_func
in getrusage
time sigaction __setfpucw
3115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3116 echo "configure:3117: checking for $ac_func" >&5
3117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 cat > conftest.
$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3123 /* System header to define __stub macros and hopefully few prototypes,
3124 which can conflict with char $ac_func(); below. */
3126 /* Override any gcc2 internal prototype to avoid an error. */
3127 /* We use char because int might match the return type of a gcc2
3128 builtin and then its argument prototype would still apply. */
3133 /* The GNU C library defines this for functions which it implements
3134 to always fail with ENOSYS. Some functions are actually named
3135 something starting with __ and the normal name is an alias. */
3136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3144 if { (eval echo configure
:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3146 eval "ac_cv_func_$ac_func=yes"
3148 echo "configure: failed program was:" >&5
3149 cat conftest.
$ac_ext >&5
3151 eval "ac_cv_func_$ac_func=no"
3156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3157 echo "$ac_t""yes" 1>&6
3158 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3159 cat >> confdefs.h
<<EOF
3160 #define $ac_tr_func 1
3164 echo "$ac_t""no" 1>&6
3169 # Check for socket libraries
3170 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3171 echo "configure:3172: checking for bind in -lsocket" >&5
3172 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 ac_save_LIBS
="$LIBS"
3177 LIBS
="-lsocket $LIBS"
3178 cat > conftest.
$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3181 /* Override any gcc2 internal prototype to avoid an error. */
3182 /* We use char because int might match the return type of a gcc2
3183 builtin and then its argument prototype would still apply. */
3190 if { (eval echo configure
:3191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3192 eval "ac_cv_lib_$ac_lib_var=yes"
3194 echo "configure: failed program was:" >&5
3195 cat conftest.
$ac_ext >&5
3197 eval "ac_cv_lib_$ac_lib_var=no"
3200 LIBS
="$ac_save_LIBS"
3203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3204 echo "$ac_t""yes" 1>&6
3205 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3206 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3207 cat >> confdefs.h
<<EOF
3208 #define $ac_tr_lib 1
3211 LIBS
="-lsocket $LIBS"
3214 echo "$ac_t""no" 1>&6
3217 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3218 echo "configure:3219: checking for gethostbyname in -lnsl" >&5
3219 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 ac_save_LIBS
="$LIBS"
3225 cat > conftest.
$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3228 /* Override any gcc2 internal prototype to avoid an error. */
3229 /* We use char because int might match the return type of a gcc2
3230 builtin and then its argument prototype would still apply. */
3231 char gethostbyname();
3237 if { (eval echo configure
:3238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3239 eval "ac_cv_lib_$ac_lib_var=yes"
3241 echo "configure: failed program was:" >&5
3242 cat conftest.
$ac_ext >&5
3244 eval "ac_cv_lib_$ac_lib_var=no"
3247 LIBS
="$ac_save_LIBS"
3250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3251 echo "$ac_t""yes" 1>&6
3252 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3254 cat >> confdefs.h
<<EOF
3255 #define $ac_tr_lib 1
3261 echo "$ac_t""no" 1>&6
3265 .
${srcdir}/..
/..
/bfd
/configure.
host
3269 USE_MAINTAINER_MODE
=no
3270 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3271 if test "${enable_maintainer_mode+set}" = set; then
3272 enableval
="$enable_maintainer_mode"
3273 case "${enableval}" in
3274 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3276 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3278 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3279 echo "Setting maintainer mode" 6>&1
3287 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3288 if test "${enable_sim_bswap+set}" = set; then
3289 enableval
="$enable_sim_bswap"
3290 case "${enableval}" in
3291 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3292 no
) sim_bswap
="-DWITH_BSWAP=0";;
3293 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3295 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3296 echo "Setting bswap flags = $sim_bswap" 6>&1
3304 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3305 if test "${enable_sim_cflags+set}" = set; then
3306 enableval
="$enable_sim_cflags"
3307 case "${enableval}" in
3308 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3309 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3311 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3313 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3314 echo "Setting sim cflags = $sim_cflags" 6>&1
3322 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3323 if test "${enable_sim_debug+set}" = set; then
3324 enableval
="$enable_sim_debug"
3325 case "${enableval}" in
3326 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3327 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3328 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3330 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3331 echo "Setting sim debug = $sim_debug" 6>&1
3339 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3340 if test "${enable_sim_stdio+set}" = set; then
3341 enableval
="$enable_sim_stdio"
3342 case "${enableval}" in
3343 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3344 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3345 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3347 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3348 echo "Setting stdio flags = $sim_stdio" 6>&1
3356 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3357 if test "${enable_sim_trace+set}" = set; then
3358 enableval
="$enable_sim_trace"
3359 case "${enableval}" in
3360 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3361 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3363 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3366 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3367 if test x
"$sim_trace" = x
; then
3368 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3370 sim_trace
="${sim_trace}|TRACE_$x"
3373 sim_trace
="$sim_trace)'" ;;
3375 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3376 echo "Setting sim trace = $sim_trace" 6>&1
3384 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3385 if test "${enable_sim_profile+set}" = set; then
3386 enableval
="$enable_sim_profile"
3387 case "${enableval}" in
3388 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3389 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3391 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3394 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3395 if test x
"$sim_profile" = x
; then
3396 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3398 sim_profile
="${sim_profile}|PROFILE_$x"
3401 sim_profile
="$sim_profile)'" ;;
3403 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3404 echo "Setting sim profile = $sim_profile" 6>&1
3407 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
3412 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3413 echo "configure:3414: checking return type of signal handlers" >&5
3414 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3417 cat > conftest.
$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3420 #include <sys/types.h>
3426 extern "C" void (*signal (int, void (*)(int)))(int);
3428 void (*signal ()) ();
3435 if { (eval echo configure
:3436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3437 ac_cv_type_signal
=void
3439 echo "configure: failed program was:" >&5
3440 cat conftest.
$ac_ext >&5
3442 ac_cv_type_signal
=int
3447 echo "$ac_t""$ac_cv_type_signal" 1>&6
3448 cat >> confdefs.h
<<EOF
3449 #define RETSIGTYPE $ac_cv_type_signal
3456 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3457 echo "configure:3458: checking for executable suffix" >&5
3458 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3465 echo 'int main () { return 0; }' > conftest.
$ac_ext
3467 if { (eval echo configure
:3468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3468 for file in conftest.
*; do
3470 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3471 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3475 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3478 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3483 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3484 echo "$ac_t""${ac_cv_exeext}" 1>&6
3491 sim_link_links
=tconfig.h
3492 if test -f ${srcdir}/tconfig.
in
3494 sim_link_files
=tconfig.
in
3496 sim_link_files
=..
/common
/tconfig.
in
3499 # targ-vals.def points to the libc macro description file.
3501 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3503 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3504 sim_link_links
="${sim_link_links} targ-vals.def"
3509 default_sim_inline
=""
3510 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3511 if test "${enable_sim_inline+set}" = set; then
3512 enableval
="$enable_sim_inline"
3514 case "$enableval" in
3515 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3516 0) sim_inline
="-DDEFAULT_INLINE=0";;
3517 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
3518 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3519 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3522 *_INLINE
=*) new_flag
="-D$x";;
3523 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3524 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
3525 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
3527 if test x
"$sim_inline" = x
""; then
3528 sim_inline
="$new_flag"
3530 sim_inline
="$sim_inline $new_flag"
3534 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3535 echo "Setting inline flags = $sim_inline" 6>&1
3539 if test "x$cross_compiling" = "xno"; then
3540 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
3541 sim_inline
="${default_sim_inline}"
3542 if test x
"$silent" != x
"yes"; then
3543 echo "Setting inline flags = $sim_inline" 6>&1
3549 sim_inline
="-DDEFAULT_INLINE=0"
3553 wire_alignment
="NONSTRICT_ALIGNMENT"
3554 default_alignment
=""
3556 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3557 if test "${enable_sim_alignment+set}" = set; then
3558 enableval
="$enable_sim_alignment"
3559 case "${enableval}" in
3560 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3561 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3562 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3563 yes) if test x
"$wire_alignment" != x
; then
3564 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3566 if test x
"$default_alignment" != x
; then
3567 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3569 echo "No hard-wired alignment for target $target" 1>&6
3570 sim_alignment
="-DWITH_ALIGNMENT=0"
3573 no
) if test x
"$default_alignment" != x
; then
3574 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3576 if test x
"$wire_alignment" != x
; then
3577 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3579 echo "No default alignment for target $target" 1>&6
3580 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3583 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3585 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3586 echo "Setting alignment flags = $sim_alignment" 6>&1
3589 if test x
"$default_alignment" != x
; then
3590 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3592 if test x
"$wire_alignment" != x
; then
3593 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3601 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3602 if test "${enable_sim_hostendian+set}" = set; then
3603 enableval
="$enable_sim_hostendian"
3604 case "${enableval}" in
3605 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3606 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3607 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3608 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3610 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3611 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3615 if test "x$cross_compiling" = "xno"; then
3616 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3617 echo "configure:3618: checking whether byte ordering is bigendian" >&5
3618 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3621 ac_cv_c_bigendian
=unknown
3622 # See if sys/param.h defines the BYTE_ORDER macro.
3623 cat > conftest.
$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 #include <sys/types.h>
3627 #include <sys/param.h>
3630 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3635 if { (eval echo configure
:3636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3637 # It does; now see whether it defined to BIG_ENDIAN or not.
3638 cat > conftest.
$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 #include <sys/types.h>
3642 #include <sys/param.h>
3645 #if BYTE_ORDER != BIG_ENDIAN
3650 if { (eval echo configure
:3651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3652 ac_cv_c_bigendian
=yes
3654 echo "configure: failed program was:" >&5
3655 cat conftest.
$ac_ext >&5
3657 ac_cv_c_bigendian
=no
3661 echo "configure: failed program was:" >&5
3662 cat conftest.
$ac_ext >&5
3665 if test $ac_cv_c_bigendian = unknown
; then
3666 if test "$cross_compiling" = yes; then
3667 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3669 cat > conftest.
$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3673 /* Are we little or big endian? From Harbison&Steele. */
3677 char c[sizeof (long)];
3680 exit (u.c[sizeof (long) - 1] == 1);
3683 if { (eval echo configure
:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3685 ac_cv_c_bigendian
=no
3687 echo "configure: failed program was:" >&5
3688 cat conftest.
$ac_ext >&5
3690 ac_cv_c_bigendian
=yes
3698 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3699 if test $ac_cv_c_bigendian = yes; then
3700 cat >> confdefs.h
<<\EOF
3701 #define WORDS_BIGENDIAN 1
3706 if test $ac_cv_c_bigendian = yes; then
3707 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3709 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3712 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3717 # NOTE: Don't add -Wall or -Wunused, they both include
3718 # -Wunused-parameter which reports bogus warnings.
3719 # NOTE: If you add to this list, remember to update
3720 # gdb/doc/gdbint.texinfo.
3721 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
3722 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
3723 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
3724 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
3725 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
3726 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
3727 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
3728 # -Woverloaded-virtual -Winline -Werror"
3729 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3730 if test "${enable_build_warnings+set}" = set; then
3731 enableval
="$enable_build_warnings"
3732 case "${enableval}" in
3734 no
) build_warnings
="-w";;
3735 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3736 build_warnings
="${build_warnings} ${t}";;
3737 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3738 build_warnings
="${t} ${build_warnings}";;
3739 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3741 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3742 echo "Setting compiler warning flags = $build_warnings" 6>&1
3745 # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
3746 if test "${enable_sim_build_warnings+set}" = set; then
3747 enableval
="$enable_sim_build_warnings"
3748 case "${enableval}" in
3750 no
) build_warnings
="-w";;
3751 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3752 build_warnings
="${build_warnings} ${t}";;
3753 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3754 build_warnings
="${t} ${build_warnings}";;
3755 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3757 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3758 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
3763 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
3765 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
3766 echo "configure:3767: checking compiler warning flags" >&5
3767 # Separate out the -Werror flag as some files just cannot be
3768 # compiled with it enabled.
3769 for w
in ${build_warnings}; do
3771 -Werr*) WERROR_CFLAGS
=-Werror ;;
3772 *) # Check that GCC accepts it
3773 saved_CFLAGS
="$CFLAGS"
3775 cat > conftest.
$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3783 if { (eval echo configure
:3784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3785 WARN_CFLAGS
="${WARN_CFLAGS} $w"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.
$ac_ext >&5
3791 CFLAGS
="$saved_CFLAGS"
3794 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
3799 # Add simulated hardware devices
3803 m68hc11-
*-*|m6811-
*-*)
3805 hw_extra_devices
="m68hc11 m68hc11sio m68hc11eepr m68hc11tim m68hc11spi nvram"
3806 m68hc11_extra_objs
="dv-sockser.o"
3807 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_M68HC11=1"
3810 m68hc11_extra_objs
=""
3814 if test x
"$hw_enabled" = x
"yes"; then
3819 if test "$hw_devices"; then
3820 hardware
="core pal glue"
3822 hardware
="core pal glue $hw_extra_devices"
3824 sim_hw_cflags
="-DWITH_HW=1"
3826 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
3827 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
3828 if test "${enable_sim_hardware+set}" = set; then
3829 enableval
="$enable_sim_hardware"
3831 case "${enableval}" in
3834 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
3835 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
3836 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
3838 if test "$sim_hw_p" != yes; then
3840 sim_hw_cflags
="-DWITH_HW=0"
3843 sim_hw_cflags
="-DWITH_HW=1"
3846 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
3847 for i
in x
$hardware ; do
3851 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
3855 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
3856 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3860 if test "$sim_hw_p" != yes; then
3862 sim_hw_cflags
="-DWITH_HW=0"
3865 if test x
"$silent" != x
"yes"; then
3866 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3871 for ac_hdr
in string.h
strings.h stdlib.h stdlib.h fcntl.h
3873 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3875 echo "configure:3876: checking for $ac_hdr" >&5
3876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3877 echo $ac_n "(cached) $ac_c" 1>&6
3879 cat > conftest.
$ac_ext <<EOF
3880 #line 3881 "configure"
3881 #include "confdefs.h"
3884 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3885 { (eval echo configure
:3886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3886 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3887 if test -z "$ac_err"; then
3889 eval "ac_cv_header_$ac_safe=yes"
3892 echo "configure: failed program was:" >&5
3893 cat conftest.
$ac_ext >&5
3895 eval "ac_cv_header_$ac_safe=no"
3899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3900 echo "$ac_t""yes" 1>&6
3901 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3902 cat >> confdefs.h
<<EOF
3903 #define $ac_tr_hdr 1
3907 echo "$ac_t""no" 1>&6
3917 cat > confcache
<<\EOF
3918 # This file is a shell script that caches the results of configure
3919 # tests run on this system so they can be shared between configure
3920 # scripts and configure runs. It is not useful on other systems.
3921 # If it contains results you don't want to keep, you may remove or edit it.
3923 # By default, configure uses ./config.cache as the cache file,
3924 # creating it if it does not exist already. You can give configure
3925 # the --cache-file=FILE option to use a different cache file; that is
3926 # what configure does when it calls configure scripts in
3927 # subdirectories, so they share the cache.
3928 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3929 # config.status only pays attention to the cache file if you give it the
3930 # --recheck option to rerun configure.
3933 # The following way of writing the cache mishandles newlines in values,
3934 # but we know of no workaround that is simple, portable, and efficient.
3935 # So, don't put newlines in cache variables' values.
3936 # Ultrix sh set writes to stderr and can't be redirected directly,
3937 # and sets the high bit in the cache file unless we assign to the vars.
3939 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3941 # `set' does not quote correctly, so add quotes (double-quote substitution
3942 # turns \\\\ into \\, and sed turns \\ into \).
3944 -e "s/'/'\\\\''/g" \
3945 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3948 # `set' quotes correctly as required by POSIX, so do not add quotes.
3949 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3952 if cmp -s $cache_file confcache
; then
3955 if test -w $cache_file; then
3956 echo "updating cache $cache_file"
3957 cat confcache
> $cache_file
3959 echo "not updating unwritable cache $cache_file"
3964 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3966 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3967 # Let make expand exec_prefix.
3968 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3970 # Any assignment to VPATH causes Sun make to only execute
3971 # the first set of double-colon rules, so remove it if not needed.
3972 # If there is a colon in the path, we need to keep it.
3973 if test "x$srcdir" = x.
; then
3974 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3977 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3979 DEFS
=-DHAVE_CONFIG_H
3981 # Without the "./", some shells look in PATH for config.status.
3982 : ${CONFIG_STATUS=./config.status}
3984 echo creating
$CONFIG_STATUS
3985 rm -f $CONFIG_STATUS
3986 cat > $CONFIG_STATUS <<EOF
3988 # Generated automatically by configure.
3989 # Run this file to recreate the current configuration.
3990 # This directory was configured as follows,
3991 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3993 # $0 $ac_configure_args
3995 # Compiler output produced by configure, useful for debugging
3996 # configure, is in ./config.log if it exists.
3998 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4001 case "\$ac_option" in
4002 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4003 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4004 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4005 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4006 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4008 -help | --help | --hel | --he | --h)
4009 echo "\$ac_cs_usage"; exit 0 ;;
4010 *) echo "\$ac_cs_usage"; exit 1 ;;
4014 ac_given_srcdir=$srcdir
4015 ac_given_INSTALL="$INSTALL"
4017 trap 'rm -fr `echo "Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4019 cat >> $CONFIG_STATUS <<EOF
4021 # Protect against being on the right side of a sed subst in config.status.
4022 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4023 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4026 s%@sim_environment@%$sim_environment%g
4027 s%@sim_alignment@%$sim_alignment%g
4028 s%@sim_assert@%$sim_assert%g
4029 s%@sim_bitsize@%$sim_bitsize%g
4030 s%@sim_endian@%$sim_endian%g
4031 s%@sim_hostendian@%$sim_hostendian%g
4032 s%@sim_float@%$sim_float%g
4033 s%@sim_scache@%$sim_scache%g
4034 s%@sim_default_model@%$sim_default_model%g
4035 s%@sim_hw_cflags@%$sim_hw_cflags%g
4036 s%@sim_hw_objs@%$sim_hw_objs%g
4037 s%@sim_hw@%$sim_hw%g
4038 s%@sim_inline@%$sim_inline%g
4039 s%@sim_packages@%$sim_packages%g
4040 s%@sim_regparm@%$sim_regparm%g
4041 s%@sim_reserved_bits@%$sim_reserved_bits%g
4042 s%@sim_smp@%$sim_smp%g
4043 s%@sim_stdcall@%$sim_stdcall%g
4044 s%@sim_xor_endian@%$sim_xor_endian%g
4045 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4046 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
4048 s%@CFLAGS@%$CFLAGS%g
4049 s%@CPPFLAGS@%$CPPFLAGS%g
4050 s%@CXXFLAGS@%$CXXFLAGS%g
4051 s%@FFLAGS@%$FFLAGS%g
4053 s%@LDFLAGS@%$LDFLAGS%g
4055 s%@exec_prefix@%$exec_prefix%g
4056 s%@prefix@%$prefix%g
4057 s%@program_transform_name@%$program_transform_name%g
4058 s%@bindir@%$bindir%g
4059 s%@sbindir@%$sbindir%g
4060 s%@libexecdir@%$libexecdir%g
4061 s%@datadir@%$datadir%g
4062 s%@sysconfdir@%$sysconfdir%g
4063 s%@sharedstatedir@%$sharedstatedir%g
4064 s%@localstatedir@%$localstatedir%g
4065 s%@libdir@%$libdir%g
4066 s%@includedir@%$includedir%g
4067 s%@oldincludedir@%$oldincludedir%g
4068 s%@infodir@%$infodir%g
4069 s%@mandir@%$mandir%g
4071 s%@host_alias@%$host_alias%g
4072 s%@host_cpu@%$host_cpu%g
4073 s%@host_vendor@%$host_vendor%g
4074 s%@host_os@%$host_os%g
4075 s%@target@%$target%g
4076 s%@target_alias@%$target_alias%g
4077 s%@target_cpu@%$target_cpu%g
4078 s%@target_vendor@%$target_vendor%g
4079 s%@target_os@%$target_os%g
4081 s%@build_alias@%$build_alias%g
4082 s%@build_cpu@%$build_cpu%g
4083 s%@build_vendor@%$build_vendor%g
4084 s%@build_os@%$build_os%g
4086 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4087 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4088 s%@INSTALL_DATA@%$INSTALL_DATA%g
4089 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4090 s%@HDEFINES@%$HDEFINES%g
4092 s%@RANLIB@%$RANLIB%g
4093 s%@SET_MAKE@%$SET_MAKE%g
4095 s%@ALLOCA@%$ALLOCA%g
4096 s%@USE_NLS@%$USE_NLS%g
4097 s%@MSGFMT@%$MSGFMT%g
4098 s%@GMSGFMT@%$GMSGFMT%g
4099 s%@XGETTEXT@%$XGETTEXT%g
4100 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4101 s%@CATALOGS@%$CATALOGS%g
4102 s%@CATOBJEXT@%$CATOBJEXT%g
4103 s%@DATADIRNAME@%$DATADIRNAME%g
4104 s%@GMOFILES@%$GMOFILES%g
4105 s%@INSTOBJEXT@%$INSTOBJEXT%g
4106 s%@INTLDEPS@%$INTLDEPS%g
4107 s%@INTLLIBS@%$INTLLIBS%g
4108 s%@INTLOBJS@%$INTLOBJS%g
4109 s%@POFILES@%$POFILES%g
4111 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4113 s%@GT_YES@%$GT_YES%g
4114 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4117 s%@sim_bswap@%$sim_bswap%g
4118 s%@sim_cflags@%$sim_cflags%g
4119 s%@sim_debug@%$sim_debug%g
4120 s%@sim_stdio@%$sim_stdio%g
4121 s%@sim_trace@%$sim_trace%g
4122 s%@sim_profile@%$sim_profile%g
4123 s%@EXEEXT@%$EXEEXT%g
4124 s%@m68hc11_extra_objs@%$m68hc11_extra_objs%g
4129 cat >> $CONFIG_STATUS <<\EOF
4131 # Split the substitutions into bite-sized pieces for seds with
4132 # small command number limits, like on Digital OSF/1 and HP-UX.
4133 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4134 ac_file
=1 # Number of current file.
4135 ac_beg
=1 # First line for current file.
4136 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4139 while $ac_more_lines; do
4140 if test $ac_beg -gt 1; then
4141 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4143 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4145 if test ! -s conftest.s
$ac_file; then
4147 rm -f conftest.s
$ac_file
4149 if test -z "$ac_sed_cmds"; then
4150 ac_sed_cmds
="sed -f conftest.s$ac_file"
4152 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4154 ac_file
=`expr $ac_file + 1`
4156 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4159 if test -z "$ac_sed_cmds"; then
4164 cat >> $CONFIG_STATUS <<EOF
4166 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4168 cat >> $CONFIG_STATUS <<\EOF
4169 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4170 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4172 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4173 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4174 *) ac_file_in
="${ac_file}.in" ;;
4177 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4179 # Remove last slash and all that follows it. Not all systems have dirname.
4180 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4181 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4182 # The file is in a subdirectory.
4183 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4184 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4185 # A "../" for each directory in $ac_dir_suffix.
4186 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4188 ac_dir_suffix
= ac_dots
=
4191 case "$ac_given_srcdir" in
4193 if test -z "$ac_dots"; then top_srcdir
=.
4194 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4195 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4197 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4198 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4201 case "$ac_given_INSTALL" in
4202 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4203 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4206 echo creating
"$ac_file"
4208 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4210 *Makefile
*) ac_comsub
="1i\\
4211 # $configure_input" ;;
4215 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4217 s%@configure_input@%$configure_input%g
4218 s%@srcdir@%$srcdir%g
4219 s%@top_srcdir@%$top_srcdir%g
4220 s%@INSTALL@%$INSTALL%g
4221 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4225 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4226 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4228 # ac_d sets the value in "#define NAME VALUE" lines.
4229 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4230 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4233 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4234 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4235 ac_uB
='\([ ]\)%\1#\2define\3'
4238 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4239 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4240 ac_eB
='$%\1#\2define\3'
4244 if test "${CONFIG_HEADERS+set}" != set; then
4246 cat >> $CONFIG_STATUS <<EOF
4247 CONFIG_HEADERS="config.h:config.in"
4249 cat >> $CONFIG_STATUS <<\EOF
4251 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4254 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4255 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4256 *) ac_file_in
="${ac_file}.in" ;;
4259 echo creating
$ac_file
4261 rm -f conftest.frag conftest.
in conftest.out
4262 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4263 cat $ac_file_inputs > conftest.
in
4267 # Transform confdefs.h into a sed script conftest.vals that substitutes
4268 # the proper values into config.h.in to produce config.h. And first:
4269 # Protect against being on the right side of a sed subst in config.status.
4270 # Protect against being in an unquoted here document in config.status.
4272 cat > conftest.hdr
<<\EOF
4275 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4279 sed -n -f conftest.hdr confdefs.h > conftest.vals
4282 # This sed command replaces #undef with comments. This is necessary, for
4283 # example, in the case of _POSIX_SOURCE, which is predefined and required
4284 # on some systems where configure will not decide to define it.
4285 cat >> conftest.vals <<\EOF
4286 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4289 # Break up conftest.vals because some shells have a limit on
4290 # the size of here documents, and old seds have small limits too.
4295 ac_lines=`grep -c . conftest.vals
`
4296 # grep -c gives empty output for an empty file on some AIX systems.
4297 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4298 # Write a limited-size here document to conftest.frag.
4299 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4300 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4302 sed -f conftest.frag conftest.in > conftest.out
4304 mv conftest.out conftest.in
4306 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4308 mv conftest.tail conftest.vals
4312 cat >> $CONFIG_STATUS <<\EOF
4313 rm -f conftest.frag conftest.h
4314 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4315 cat conftest.in >> conftest.h
4317 if cmp -s $ac_file conftest.h 2>/dev/null; then
4318 echo "$ac_file is unchanged"
4321 # Remove last slash and all that follows it. Not all systems have dirname.
4322 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4323 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4324 # The file is in a subdirectory.
4325 test ! -d "$ac_dir" && mkdir "$ac_dir"
4328 mv conftest.h $ac_file
4334 cat >> $CONFIG_STATUS <<EOF
4335 ac_sources="$sim_link_files"
4336 ac_dests="$sim_link_links"
4339 cat >> $CONFIG_STATUS <<\EOF
4340 srcdir=$ac_given_srcdir
4341 while test -n "$ac_sources"; do
4342 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4343 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4345 echo "linking $srcdir/$ac_source to $ac_dest"
4347 if test ! -r $srcdir/$ac_source; then
4348 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4352 # Make relative symlinks.
4353 # Remove last slash and all that follows it. Not all systems have dirname.
4354 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4355 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4356 # The dest file is in a subdirectory.
4357 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4358 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4359 # A "../" for each directory in $ac_dest_dir_suffix.
4360 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4362 ac_dest_dir_suffix= ac_dots=
4366 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4367 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4370 # Make a symlink if possible; otherwise try a hard link.
4371 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4372 ln $srcdir/$ac_source $ac_dest; then :
4374 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4378 cat >> $CONFIG_STATUS <<EOF
4381 cat >> $CONFIG_STATUS <<\EOF
4382 case "x$CONFIG_FILES" in
4384 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4385 rm -f Makesim1.tmp Makesim2.tmp Makefile
4386 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4387 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4388 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4389 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4390 <Makefile.sim >Makefile
4391 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4394 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4398 chmod +x $CONFIG_STATUS
4399 rm -fr confdefs* $ac_clean_files
4400 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1