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-endian=endian Specify target byte endian orientation."
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-sim-scache=size Specify simulator execution cache size."
164 --enable-sim-default-model=model Specify default model to simulate."
166 --enable-sim-environment=environment Specify mixed, user, virtual or operating environment."
168 --enable-sim-inline=inlines Specify which functions should be inlined."
170 --enable-cgen-maint[=DIR] build cgen generated files"
172 # Initialize some variables set by options.
173 # The variables have the same names as the options, with
174 # dashes changed to underlines.
176 cache_file
=.
/config.cache
185 program_transform_name
=s
,x
,x
,
193 bindir
='${exec_prefix}/bin'
194 sbindir
='${exec_prefix}/sbin'
195 libexecdir
='${exec_prefix}/libexec'
196 datadir
='${prefix}/share'
197 sysconfdir
='${prefix}/etc'
198 sharedstatedir
='${prefix}/com'
199 localstatedir
='${prefix}/var'
200 libdir
='${exec_prefix}/lib'
201 includedir
='${prefix}/include'
202 oldincludedir
='/usr/include'
203 infodir
='${prefix}/info'
204 mandir
='${prefix}/man'
206 # Initialize some other variables.
209 SHELL
=${CONFIG_SHELL-/bin/sh}
210 # Maximum number of lines to put in a shell here document.
217 # If the previous option needs an argument, assign it.
218 if test -n "$ac_prev"; then
219 eval "$ac_prev=\$ac_option"
225 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
229 # Accept the important Cygnus configure options, so we can diagnose typos.
233 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
235 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
236 bindir
="$ac_optarg" ;;
238 -build |
--build |
--buil |
--bui |
--bu)
240 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
241 build
="$ac_optarg" ;;
243 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
244 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
245 ac_prev
=cache_file
;;
246 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
247 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
248 cache_file
="$ac_optarg" ;;
250 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
252 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
254 datadir
="$ac_optarg" ;;
256 -disable-* |
--disable-*)
257 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
258 # Reject names that are not valid shell variable names.
259 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
260 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
262 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
263 eval "enable_${ac_feature}=no" ;;
265 -enable-* |
--enable-*)
266 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
267 # Reject names that are not valid shell variable names.
268 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
269 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
271 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
276 eval "enable_${ac_feature}='$ac_optarg'" ;;
278 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
279 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
280 |
--exec |
--exe |
--ex)
281 ac_prev
=exec_prefix
;;
282 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
283 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
284 |
--exec=* |
--exe=* |
--ex=*)
285 exec_prefix
="$ac_optarg" ;;
287 -gas |
--gas |
--ga |
--g)
288 # Obsolete; use --with-gas.
291 -help |
--help |
--hel |
--he)
292 # Omit some internal or obsolete options to make the list less imposing.
293 # This message is too long to be a string in the A/UX 3.1 sh.
295 Usage: configure [options] [host]
296 Options: [defaults in brackets after descriptions]
298 --cache-file=FILE cache test results in FILE
299 --help print this message
300 --no-create do not create output files
301 --quiet, --silent do not print \`checking...' messages
302 --version print the version of autoconf that created configure
303 Directory and file names:
304 --prefix=PREFIX install architecture-independent files in PREFIX
306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
308 --bindir=DIR user executables in DIR [EPREFIX/bin]
309 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
310 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
311 --datadir=DIR read-only architecture-independent data in DIR
313 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
314 --sharedstatedir=DIR modifiable architecture-independent data in DIR
316 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
317 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
318 --includedir=DIR C header files in DIR [PREFIX/include]
319 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
320 --infodir=DIR info documentation in DIR [PREFIX/info]
321 --mandir=DIR man documentation in DIR [PREFIX/man]
322 --srcdir=DIR find the sources in DIR [configure dir or ..]
323 --program-prefix=PREFIX prepend PREFIX to installed program names
324 --program-suffix=SUFFIX append SUFFIX to installed program names
325 --program-transform-name=PROGRAM
326 run sed PROGRAM on installed program names
330 --build=BUILD configure for building on BUILD [BUILD=HOST]
331 --host=HOST configure for HOST [guessed]
332 --target=TARGET configure for TARGET [TARGET=HOST]
333 Features and packages:
334 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
335 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
338 --x-includes=DIR X include files are in DIR
339 --x-libraries=DIR X library files are in DIR
341 if test -n "$ac_help"; then
342 echo "--enable and --with options recognized:$ac_help"
346 -host |
--host |
--hos |
--ho)
348 -host=* |
--host=* |
--hos=* |
--ho=*)
351 -includedir |
--includedir |
--includedi |
--included |
--include \
352 |
--includ |
--inclu |
--incl |
--inc)
353 ac_prev
=includedir
;;
354 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
355 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
356 includedir
="$ac_optarg" ;;
358 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
360 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
361 infodir
="$ac_optarg" ;;
363 -libdir |
--libdir |
--libdi |
--libd)
365 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
366 libdir
="$ac_optarg" ;;
368 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
369 |
--libexe |
--libex |
--libe)
370 ac_prev
=libexecdir
;;
371 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
372 |
--libexe=* |
--libex=* |
--libe=*)
373 libexecdir
="$ac_optarg" ;;
375 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
376 |
--localstate |
--localstat |
--localsta |
--localst \
377 |
--locals |
--local |
--loca |
--loc |
--lo)
378 ac_prev
=localstatedir
;;
379 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
380 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
381 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
382 localstatedir
="$ac_optarg" ;;
384 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
386 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
387 mandir
="$ac_optarg" ;;
390 # Obsolete; use --without-fp.
393 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
397 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
398 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
401 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
402 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
403 |
--oldin |
--oldi |
--old |
--ol |
--o)
404 ac_prev
=oldincludedir
;;
405 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
406 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
407 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
408 oldincludedir
="$ac_optarg" ;;
410 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
412 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
413 prefix
="$ac_optarg" ;;
415 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
416 |
--program-pre |
--program-pr |
--program-p)
417 ac_prev
=program_prefix
;;
418 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
419 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
420 program_prefix
="$ac_optarg" ;;
422 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
423 |
--program-suf |
--program-su |
--program-s)
424 ac_prev
=program_suffix
;;
425 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
426 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
427 program_suffix
="$ac_optarg" ;;
429 -program-transform-name |
--program-transform-name \
430 |
--program-transform-nam |
--program-transform-na \
431 |
--program-transform-n |
--program-transform- \
432 |
--program-transform |
--program-transfor \
433 |
--program-transfo |
--program-transf \
434 |
--program-trans |
--program-tran \
435 |
--progr-tra |
--program-tr |
--program-t)
436 ac_prev
=program_transform_name
;;
437 -program-transform-name=* |
--program-transform-name=* \
438 |
--program-transform-nam=* |
--program-transform-na=* \
439 |
--program-transform-n=* |
--program-transform-=* \
440 |
--program-transform=* |
--program-transfor=* \
441 |
--program-transfo=* |
--program-transf=* \
442 |
--program-trans=* |
--program-tran=* \
443 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
444 program_transform_name
="$ac_optarg" ;;
446 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
447 |
-silent |
--silent |
--silen |
--sile |
--sil)
450 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
452 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
454 sbindir
="$ac_optarg" ;;
456 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
457 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
458 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
460 ac_prev
=sharedstatedir
;;
461 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
462 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
463 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
465 sharedstatedir
="$ac_optarg" ;;
467 -site |
--site |
--sit)
469 -site=* |
--site=* |
--sit=*)
472 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
474 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
475 srcdir
="$ac_optarg" ;;
477 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
478 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
479 ac_prev
=sysconfdir
;;
480 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
481 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
482 sysconfdir
="$ac_optarg" ;;
484 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
486 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
487 target
="$ac_optarg" ;;
489 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
492 -version |
--version |
--versio |
--versi |
--vers)
493 echo "configure generated by autoconf version 2.13"
497 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
498 # Reject names that are not valid shell variable names.
499 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
500 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
502 ac_package
=`echo $ac_package| sed 's/-/_/g'`
507 eval "with_${ac_package}='$ac_optarg'" ;;
509 -without-* |
--without-*)
510 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
511 # Reject names that are not valid shell variable names.
512 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
513 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
515 ac_package
=`echo $ac_package| sed 's/-/_/g'`
516 eval "with_${ac_package}=no" ;;
519 # Obsolete; use --with-x.
522 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
523 |
--x-incl |
--x-inc |
--x-in |
--x-i)
524 ac_prev
=x_includes
;;
525 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
526 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
527 x_includes
="$ac_optarg" ;;
529 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
530 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
531 ac_prev
=x_libraries
;;
532 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
533 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
534 x_libraries
="$ac_optarg" ;;
536 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
540 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
541 echo "configure: warning: $ac_option: invalid host type" 1>&2
543 if test "x$nonopt" != xNONE
; then
544 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
552 if test -n "$ac_prev"; then
553 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
556 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
558 # File descriptor usage:
561 # 2 errors and warnings
562 # 3 some systems may open it to /dev/tty
563 # 4 used on the Kubota Titan
564 # 6 checking for... messages and results
565 # 5 compiler messages saved in config.log
566 if test "$silent" = yes; then
574 This file contains any messages produced by compilers while
575 running configure, to aid debugging if configure makes a mistake.
578 # Strip out --no-create and --no-recursion so they do not pile up.
579 # Also quote any args containing shell metacharacters.
584 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
585 |
--no-cr |
--no-c) ;;
586 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
587 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
588 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
589 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
590 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
595 # Only set these to C if already set. These must not be set unconditionally
596 # because not all systems understand e.g. LANG=C (notably SCO).
597 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
598 # Non-C LC_CTYPE values break the ctype check.
599 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
600 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
601 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
602 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
604 # confdefs.h avoids OS command line length limits that DEFS can exceed.
605 rm -rf conftest
* confdefs.h
606 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
609 # A filename unique to this package, relative to the directory that
610 # configure is in, which we can look for to find out if srcdir is correct.
611 ac_unique_file
=Makefile.
in
613 # Find the source files, if location was not specified.
614 if test -z "$srcdir"; then
615 ac_srcdir_defaulted
=yes
616 # Try the directory containing this script, then its parent.
618 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
619 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
621 if test ! -r $srcdir/$ac_unique_file; then
625 ac_srcdir_defaulted
=no
627 if test ! -r $srcdir/$ac_unique_file; then
628 if test "$ac_srcdir_defaulted" = yes; then
629 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
631 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
634 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
636 # Prefer explicitly selected file to automatically selected ones.
637 if test -z "$CONFIG_SITE"; then
638 if test "x$prefix" != xNONE
; then
639 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
641 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
644 for ac_site_file
in $CONFIG_SITE; do
645 if test -r "$ac_site_file"; then
646 echo "loading site script $ac_site_file"
651 if test -r "$cache_file"; then
652 echo "loading cache $cache_file"
655 echo "creating cache $cache_file"
660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
661 ac_cpp
='$CPP $CPPFLAGS'
662 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
663 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
664 cross_compiling
=$ac_cv_prog_cc_cross
668 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
669 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
670 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
677 ac_n
= ac_c
='\c' ac_t
=
682 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
683 echo "configure:684: checking how to run the C preprocessor" >&5
684 # On Suns, sometimes $CPP names a directory.
685 if test -n "$CPP" && test -d "$CPP"; then
688 if test -z "$CPP"; then
689 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
692 # This must be in double quotes, not single quotes, because CPP may get
693 # substituted into the Makefile and "${CC-cc}" will confuse make.
695 # On the NeXT, cc -E runs the code through the compiler's parser,
696 # not just through cpp.
697 cat > conftest.
$ac_ext <<EOF
698 #line 699 "configure"
699 #include "confdefs.h"
703 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
704 { (eval echo configure
:705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
705 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
706 if test -z "$ac_err"; then
710 echo "configure: failed program was:" >&5
711 cat conftest.
$ac_ext >&5
713 CPP
="${CC-cc} -E -traditional-cpp"
714 cat > conftest.
$ac_ext <<EOF
715 #line 716 "configure"
716 #include "confdefs.h"
720 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
721 { (eval echo configure
:722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
722 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
723 if test -z "$ac_err"; then
727 echo "configure: failed program was:" >&5
728 cat conftest.
$ac_ext >&5
730 CPP
="${CC-cc} -nologo -E"
731 cat > conftest.
$ac_ext <<EOF
732 #line 733 "configure"
733 #include "confdefs.h"
737 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
738 { (eval echo configure
:739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
739 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
740 if test -z "$ac_err"; then
744 echo "configure: failed program was:" >&5
745 cat conftest.
$ac_ext >&5
754 ac_cv_prog_CPP
="$CPP"
756 CPP
="$ac_cv_prog_CPP"
758 ac_cv_prog_CPP
="$CPP"
760 echo "$ac_t""$CPP" 1>&6
762 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
763 echo "configure:764: checking whether ${MAKE-make} sets \${MAKE}" >&5
764 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
765 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
768 cat > conftestmake
<<\EOF
770 @
echo 'ac_maketemp="${MAKE}"'
772 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
773 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
774 if test -n "$ac_maketemp"; then
775 eval ac_cv_prog_make_
${ac_make}_set
=yes
777 eval ac_cv_prog_make_
${ac_make}_set
=no
781 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
782 echo "$ac_t""yes" 1>&6
785 echo "$ac_t""no" 1>&6
786 SET_MAKE
="MAKE=${MAKE-make}"
789 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
790 echo "configure:791: checking for POSIXized ISC" >&5
791 if test -d /etc
/conf
/kconfig.d
&&
792 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
794 echo "$ac_t""yes" 1>&6
795 ISC
=yes # If later tests want to check for ISC.
796 cat >> confdefs.h
<<\EOF
797 #define _POSIX_SOURCE 1
800 if test "$GCC" = yes; then
806 echo "$ac_t""no" 1>&6
810 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
811 echo "configure:812: checking for ANSI C header files" >&5
812 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 cat > conftest.
$ac_ext <<EOF
816 #line 817 "configure"
817 #include "confdefs.h"
823 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
824 { (eval echo configure
:825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
825 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
826 if test -z "$ac_err"; then
828 ac_cv_header_stdc
=yes
831 echo "configure: failed program was:" >&5
832 cat conftest.
$ac_ext >&5
838 if test $ac_cv_header_stdc = yes; then
839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
840 cat > conftest.
$ac_ext <<EOF
841 #line 842 "configure"
842 #include "confdefs.h"
845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
846 egrep "memchr" >/dev
/null
2>&1; then
856 if test $ac_cv_header_stdc = yes; then
857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
858 cat > conftest.
$ac_ext <<EOF
859 #line 860 "configure"
860 #include "confdefs.h"
863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
864 egrep "free" >/dev
/null
2>&1; then
874 if test $ac_cv_header_stdc = yes; then
875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
876 if test "$cross_compiling" = yes; then
879 cat > conftest.
$ac_ext <<EOF
880 #line 881 "configure"
881 #include "confdefs.h"
883 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
884 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
886 int main () { int i; for (i = 0; i < 256; i++)
887 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
891 if { (eval echo configure
:892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
895 echo "configure: failed program was:" >&5
896 cat conftest.
$ac_ext >&5
906 echo "$ac_t""$ac_cv_header_stdc" 1>&6
907 if test $ac_cv_header_stdc = yes; then
908 cat >> confdefs.h
<<\EOF
909 #define STDC_HEADERS 1
914 echo $ac_n "checking for working const""... $ac_c" 1>&6
915 echo "configure:916: checking for working const" >&5
916 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 cat > conftest.
$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
925 /* Ultrix mips cc rejects this. */
926 typedef int charset[2]; const charset x;
927 /* SunOS 4.1.1 cc rejects this. */
928 char const *const *ccp;
930 /* NEC SVR4.0.2 mips cc rejects this. */
931 struct point {int x, y;};
932 static struct point const zero = {0,0};
933 /* AIX XL C 1.02.0.0 rejects this.
934 It does not let you subtract one const X* pointer from another in an arm
935 of an if-expression whose if-part is not a constant expression */
936 const char *g = "string";
937 ccp = &g + (g ? g-g : 0);
938 /* HPUX 7.0 cc rejects these. */
941 ccp = (char const *const *) p;
942 { /* SCO 3.2v4 cc rejects this. */
944 char const *s = 0 ? (char *) 0 : (char const *) 0;
948 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
950 const int *foo = &x[0];
953 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
954 typedef const int *iptr;
958 { /* AIX XL C 1.02.0.0 rejects this saying
959 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
960 struct s { int j; const int *ap[3]; };
961 struct s *b; b->j = 5;
963 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
969 if { (eval echo configure
:970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
973 echo "configure: failed program was:" >&5
974 cat conftest.
$ac_ext >&5
981 echo "$ac_t""$ac_cv_c_const" 1>&6
982 if test $ac_cv_c_const = no
; then
983 cat >> confdefs.h
<<\EOF
989 echo $ac_n "checking for inline""... $ac_c" 1>&6
990 echo "configure:991: checking for inline" >&5
991 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
995 for ac_kw
in inline __inline__ __inline
; do
996 cat > conftest.
$ac_ext <<EOF
997 #line 998 "configure"
998 #include "confdefs.h"
1004 if { (eval echo configure
:1005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1006 ac_cv_c_inline
=$ac_kw; break
1008 echo "configure: failed program was:" >&5
1009 cat conftest.
$ac_ext >&5
1016 echo "$ac_t""$ac_cv_c_inline" 1>&6
1017 case "$ac_cv_c_inline" in
1019 no
) cat >> confdefs.h
<<\EOF
1023 *) cat >> confdefs.h
<<EOF
1024 #define inline $ac_cv_c_inline
1029 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1030 echo "configure:1031: checking for off_t" >&5
1031 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 cat > conftest.
$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1037 #include <sys/types.h>
1043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1044 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1046 ac_cv_type_off_t
=yes
1054 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1055 if test $ac_cv_type_off_t = no
; then
1056 cat >> confdefs.h
<<\EOF
1062 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1063 echo "configure:1064: checking for size_t" >&5
1064 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 cat > conftest.
$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1070 #include <sys/types.h>
1076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1077 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1079 ac_cv_type_size_t
=yes
1082 ac_cv_type_size_t
=no
1087 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1088 if test $ac_cv_type_size_t = no
; then
1089 cat >> confdefs.h
<<\EOF
1090 #define size_t unsigned
1095 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1096 # for constant arguments. Useless!
1097 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1098 echo "configure:1099: checking for working alloca.h" >&5
1099 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 cat > conftest.
$ac_ext <<EOF
1103 #line 1104 "configure"
1104 #include "confdefs.h"
1107 char *p = alloca(2 * sizeof(int));
1110 if { (eval echo configure
:1111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1112 ac_cv_header_alloca_h
=yes
1114 echo "configure: failed program was:" >&5
1115 cat conftest.
$ac_ext >&5
1117 ac_cv_header_alloca_h
=no
1122 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1123 if test $ac_cv_header_alloca_h = yes; then
1124 cat >> confdefs.h
<<\EOF
1125 #define HAVE_ALLOCA_H 1
1130 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1131 echo "configure:1132: checking for alloca" >&5
1132 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 cat > conftest.
$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1140 # define alloca __builtin_alloca
1143 # include <malloc.h>
1144 # define alloca _alloca
1147 # include <alloca.h>
1152 # ifndef alloca /* predefined by HP cc +Olibcalls */
1161 char *p = (char *) alloca(1);
1164 if { (eval echo configure
:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1166 ac_cv_func_alloca_works
=yes
1168 echo "configure: failed program was:" >&5
1169 cat conftest.
$ac_ext >&5
1171 ac_cv_func_alloca_works
=no
1176 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1177 if test $ac_cv_func_alloca_works = yes; then
1178 cat >> confdefs.h
<<\EOF
1179 #define HAVE_ALLOCA 1
1184 if test $ac_cv_func_alloca_works = no
; then
1185 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1186 # that cause trouble. Some versions do not even contain alloca or
1187 # contain a buggy version. If you still want to use their alloca,
1188 # use ar to extract alloca.o from them instead of compiling alloca.c.
1189 ALLOCA
=alloca.
${ac_objext}
1190 cat >> confdefs.h
<<\EOF
1195 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether alloca needs Cray hooks" >&5
1197 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 cat > conftest.
$ac_ext <<EOF
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1203 #if defined(CRAY) && ! defined(CRAY2)
1210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1211 egrep "webecray" >/dev
/null
2>&1; then
1222 echo "$ac_t""$ac_cv_os_cray" 1>&6
1223 if test $ac_cv_os_cray = yes; then
1224 for ac_func
in _getb67 GETB67 getb67
; do
1225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_func" >&5
1227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 cat > conftest.
$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1233 /* System header to define __stub macros and hopefully few prototypes,
1234 which can conflict with char $ac_func(); below. */
1236 /* Override any gcc2 internal prototype to avoid an error. */
1237 /* We use char because int might match the return type of a gcc2
1238 builtin and then its argument prototype would still apply. */
1243 /* The GNU C library defines this for functions which it implements
1244 to always fail with ENOSYS. Some functions are actually named
1245 something starting with __ and the normal name is an alias. */
1246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1254 if { (eval echo configure
:1255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1256 eval "ac_cv_func_$ac_func=yes"
1258 echo "configure: failed program was:" >&5
1259 cat conftest.
$ac_ext >&5
1261 eval "ac_cv_func_$ac_func=no"
1266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1267 echo "$ac_t""yes" 1>&6
1268 cat >> confdefs.h
<<EOF
1269 #define CRAY_STACKSEG_END $ac_func
1274 echo "$ac_t""no" 1>&6
1280 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1281 echo "configure:1282: checking stack direction for C alloca" >&5
1282 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 if test "$cross_compiling" = yes; then
1286 ac_cv_c_stack_direction
=0
1288 cat > conftest.
$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1291 find_stack_direction ()
1293 static char *addr = 0;
1298 return find_stack_direction ();
1301 return (&dummy > addr) ? 1 : -1;
1305 exit (find_stack_direction() < 0);
1308 if { (eval echo configure
:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1310 ac_cv_c_stack_direction
=1
1312 echo "configure: failed program was:" >&5
1313 cat conftest.
$ac_ext >&5
1315 ac_cv_c_stack_direction
=-1
1322 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1323 cat >> confdefs.h
<<EOF
1324 #define STACK_DIRECTION $ac_cv_c_stack_direction
1329 for ac_hdr
in unistd.h
1331 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1333 echo "configure:1334: checking for $ac_hdr" >&5
1334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 cat > conftest.
$ac_ext <<EOF
1338 #line 1339 "configure"
1339 #include "confdefs.h"
1342 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1343 { (eval echo configure
:1344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1344 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1345 if test -z "$ac_err"; then
1347 eval "ac_cv_header_$ac_safe=yes"
1350 echo "configure: failed program was:" >&5
1351 cat conftest.
$ac_ext >&5
1353 eval "ac_cv_header_$ac_safe=no"
1357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1358 echo "$ac_t""yes" 1>&6
1359 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1360 cat >> confdefs.h
<<EOF
1361 #define $ac_tr_hdr 1
1365 echo "$ac_t""no" 1>&6
1369 for ac_func
in getpagesize
1371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1372 echo "configure:1373: checking for $ac_func" >&5
1373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1376 cat > conftest.
$ac_ext <<EOF
1377 #line 1378 "configure"
1378 #include "confdefs.h"
1379 /* System header to define __stub macros and hopefully few prototypes,
1380 which can conflict with char $ac_func(); below. */
1382 /* Override any gcc2 internal prototype to avoid an error. */
1383 /* We use char because int might match the return type of a gcc2
1384 builtin and then its argument prototype would still apply. */
1389 /* The GNU C library defines this for functions which it implements
1390 to always fail with ENOSYS. Some functions are actually named
1391 something starting with __ and the normal name is an alias. */
1392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1400 if { (eval echo configure
:1401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1402 eval "ac_cv_func_$ac_func=yes"
1404 echo "configure: failed program was:" >&5
1405 cat conftest.
$ac_ext >&5
1407 eval "ac_cv_func_$ac_func=no"
1412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1413 echo "$ac_t""yes" 1>&6
1414 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1415 cat >> confdefs.h
<<EOF
1416 #define $ac_tr_func 1
1420 echo "$ac_t""no" 1>&6
1424 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1425 echo "configure:1426: checking for working mmap" >&5
1426 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 if test "$cross_compiling" = yes; then
1430 ac_cv_func_mmap_fixed_mapped
=no
1432 cat > conftest.
$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1436 /* Thanks to Mike Haertel and Jim Avera for this test.
1437 Here is a matrix of mmap possibilities:
1438 mmap private not fixed
1439 mmap private fixed at somewhere currently unmapped
1440 mmap private fixed at somewhere already mapped
1441 mmap shared not fixed
1442 mmap shared fixed at somewhere currently unmapped
1443 mmap shared fixed at somewhere already mapped
1444 For private mappings, we should verify that changes cannot be read()
1445 back from the file, nor mmap's back from the file at a different
1446 address. (There have been systems where private was not correctly
1447 implemented like the infamous i386 svr4.0, and systems where the
1448 VM page cache was not coherent with the filesystem buffer cache
1449 like early versions of FreeBSD and possibly contemporary NetBSD.)
1450 For shared mappings, we should conversely verify that changes get
1451 propogated back to all the places they're supposed to be.
1453 Grep wants private fixed already mapped.
1454 The main things grep needs to know about mmap are:
1455 * does it exist and is it safe to write into the mmap'd area
1456 * how to use it (BSD variants) */
1457 #include <sys/types.h>
1459 #include <sys/mman.h>
1461 /* This mess was copied from the GNU getpagesize.h. */
1462 #ifndef HAVE_GETPAGESIZE
1463 # ifdef HAVE_UNISTD_H
1464 # include <unistd.h>
1467 /* Assume that all systems that can run configure have sys/param.h. */
1468 # ifndef HAVE_SYS_PARAM_H
1469 # define HAVE_SYS_PARAM_H 1
1472 # ifdef _SC_PAGESIZE
1473 # define getpagesize() sysconf(_SC_PAGESIZE)
1474 # else /* no _SC_PAGESIZE */
1475 # ifdef HAVE_SYS_PARAM_H
1476 # include <sys/param.h>
1477 # ifdef EXEC_PAGESIZE
1478 # define getpagesize() EXEC_PAGESIZE
1479 # else /* no EXEC_PAGESIZE */
1481 # define getpagesize() NBPG * CLSIZE
1484 # endif /* no CLSIZE */
1485 # else /* no NBPG */
1487 # define getpagesize() NBPC
1488 # else /* no NBPC */
1490 # define getpagesize() PAGESIZE
1491 # endif /* PAGESIZE */
1492 # endif /* no NBPC */
1493 # endif /* no NBPG */
1494 # endif /* no EXEC_PAGESIZE */
1495 # else /* no HAVE_SYS_PARAM_H */
1496 # define getpagesize() 8192 /* punt totally */
1497 # endif /* no HAVE_SYS_PARAM_H */
1498 # endif /* no _SC_PAGESIZE */
1500 #endif /* no HAVE_GETPAGESIZE */
1503 extern "C" { void *malloc(unsigned); }
1511 char *data, *data2, *data3;
1515 pagesize = getpagesize();
1518 * First, make a file with some known garbage in it.
1520 data = malloc(pagesize);
1523 for (i = 0; i < pagesize; ++i)
1524 *(data + i) = rand();
1526 fd = creat("conftestmmap", 0600);
1529 if (write(fd, data, pagesize) != pagesize)
1534 * Next, try to mmap the file at a fixed address which
1535 * already has something else allocated at it. If we can,
1536 * also make sure that we see the same garbage.
1538 fd = open("conftestmmap", O_RDWR);
1541 data2 = malloc(2 * pagesize);
1544 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1545 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1546 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1548 for (i = 0; i < pagesize; ++i)
1549 if (*(data + i) != *(data2 + i))
1553 * Finally, make sure that changes to the mapped area
1554 * do not percolate back to the file as seen by read().
1555 * (This is a bug on some variants of i386 svr4.0.)
1557 for (i = 0; i < pagesize; ++i)
1558 *(data2 + i) = *(data2 + i) + 1;
1559 data3 = malloc(pagesize);
1562 if (read(fd, data3, pagesize) != pagesize)
1564 for (i = 0; i < pagesize; ++i)
1565 if (*(data + i) != *(data3 + i))
1568 unlink("conftestmmap");
1573 if { (eval echo configure
:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1575 ac_cv_func_mmap_fixed_mapped
=yes
1577 echo "configure: failed program was:" >&5
1578 cat conftest.
$ac_ext >&5
1580 ac_cv_func_mmap_fixed_mapped
=no
1587 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1588 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1589 cat >> confdefs.h
<<\EOF
1595 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1596 echo "configure:1597: checking for Cygwin environment" >&5
1597 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 cat > conftest.
$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1607 #define __CYGWIN__ __CYGWIN32__
1612 if { (eval echo configure
:1613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1616 echo "configure: failed program was:" >&5
1617 cat conftest.
$ac_ext >&5
1625 echo "$ac_t""$ac_cv_cygwin" 1>&6
1627 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1628 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1629 echo "configure:1630: checking for mingw32 environment" >&5
1630 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1633 cat > conftest.
$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1641 if { (eval echo configure
:1642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1645 echo "configure: failed program was:" >&5
1646 cat conftest.
$ac_ext >&5
1654 echo "$ac_t""$ac_cv_mingw32" 1>&6
1656 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1658 # autoconf.info says this should be called right after AC_INIT.
1662 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1663 if test -f $ac_dir/install-sh
; then
1665 ac_install_sh
="$ac_aux_dir/install-sh -c"
1667 elif test -f $ac_dir/install.sh
; then
1669 ac_install_sh
="$ac_aux_dir/install.sh -c"
1673 if test -z "$ac_aux_dir"; then
1674 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1676 ac_config_guess
=$ac_aux_dir/config.guess
1677 ac_config_sub
=$ac_aux_dir/config.sub
1678 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1681 # Do some error checking and defaulting for the host and target type.
1683 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1686 # 1. You are not allowed to specify --host, --target, and nonopt at the
1688 # 2. Host defaults to nonopt.
1689 # 3. If nonopt is not specified, then host defaults to the current host,
1690 # as determined by config.guess.
1691 # 4. Target and build default to nonopt.
1692 # 5. If nonopt is not specified, then target and build default to host.
1694 # The aliases save the names the user supplied, while $host etc.
1695 # will get canonicalized.
1696 case $host---$target---$nonopt in
1697 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1698 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1702 # Make sure we can run config.sub.
1703 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1704 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1707 echo $ac_n "checking host system type""... $ac_c" 1>&6
1708 echo "configure:1709: checking host system type" >&5
1711 case "$host_alias" in
1715 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1716 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1718 *) host_alias
=$nonopt ;;
1722 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1723 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1724 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1725 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1726 echo "$ac_t""$host" 1>&6
1728 echo $ac_n "checking target system type""... $ac_c" 1>&6
1729 echo "configure:1730: checking target system type" >&5
1731 target_alias
=$target
1732 case "$target_alias" in
1735 NONE
) target_alias
=$host_alias ;;
1736 *) target_alias
=$nonopt ;;
1740 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1741 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1742 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1743 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1744 echo "$ac_t""$target" 1>&6
1746 echo $ac_n "checking build system type""... $ac_c" 1>&6
1747 echo "configure:1748: checking build system type" >&5
1750 case "$build_alias" in
1753 NONE
) build_alias
=$host_alias ;;
1754 *) build_alias
=$nonopt ;;
1758 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1759 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1760 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1761 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1762 echo "$ac_t""$build" 1>&6
1764 test "$host_alias" != "$target_alias" &&
1765 test "$program_prefix$program_suffix$program_transform_name" = \
1767 program_prefix
=${target_alias}-
1769 if test "$program_transform_name" = s
,x
,x
,; then
1770 program_transform_name
=
1772 # Double any \ or $. echo might interpret backslashes.
1773 cat <<\EOF_SED
> conftestsed
1774 s
,\\,\\\\,g
; s
,\$
,$$
,g
1776 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1779 test "$program_prefix" != NONE
&&
1780 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1781 # Use a double $ so make ignores it.
1782 test "$program_suffix" != NONE
&&
1783 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1785 # sed with no file args requires a program.
1786 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1788 # Extract the first word of "gcc", so it can be a program name with args.
1789 set dummy gcc
; ac_word
=$2
1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_word" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 if test -n "$CC"; then
1796 ac_cv_prog_CC
="$CC" # Let the user override the test.
1798 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1800 for ac_dir
in $ac_dummy; do
1801 test -z "$ac_dir" && ac_dir
=.
1802 if test -f $ac_dir/$ac_word; then
1811 if test -n "$CC"; then
1812 echo "$ac_t""$CC" 1>&6
1814 echo "$ac_t""no" 1>&6
1817 if test -z "$CC"; then
1818 # Extract the first word of "cc", so it can be a program name with args.
1819 set dummy cc
; ac_word
=$2
1820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1821 echo "configure:1822: checking for $ac_word" >&5
1822 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC
="$CC" # Let the user override the test.
1828 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1831 for ac_dir
in $ac_dummy; do
1832 test -z "$ac_dir" && ac_dir
=.
1833 if test -f $ac_dir/$ac_word; then
1834 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1835 ac_prog_rejected
=yes
1843 if test $ac_prog_rejected = yes; then
1844 # We found a bogon in the path, so make sure we never use it.
1845 set dummy
$ac_cv_prog_CC
1847 if test $# -gt 0; then
1848 # We chose a different compiler from the bogus one.
1849 # However, it has the same basename, so the bogon will be chosen
1850 # first if we set CC to just the basename; use the full file name.
1852 set dummy
"$ac_dir/$ac_word" "$@"
1860 if test -n "$CC"; then
1861 echo "$ac_t""$CC" 1>&6
1863 echo "$ac_t""no" 1>&6
1866 if test -z "$CC"; then
1867 case "`uname -s`" in
1869 # Extract the first word of "cl", so it can be a program name with args.
1870 set dummy cl
; ac_word
=$2
1871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1872 echo "configure:1873: checking for $ac_word" >&5
1873 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 if test -n "$CC"; then
1877 ac_cv_prog_CC
="$CC" # Let the user override the test.
1879 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1881 for ac_dir
in $ac_dummy; do
1882 test -z "$ac_dir" && ac_dir
=.
1883 if test -f $ac_dir/$ac_word; then
1892 if test -n "$CC"; then
1893 echo "$ac_t""$CC" 1>&6
1895 echo "$ac_t""no" 1>&6
1900 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1903 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1904 echo "configure:1905: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1908 ac_cpp
='$CPP $CPPFLAGS'
1909 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1910 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1911 cross_compiling
=$ac_cv_prog_cc_cross
1913 cat > conftest.
$ac_ext << EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1920 if { (eval echo configure
:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1921 ac_cv_prog_cc_works
=yes
1922 # If we can't run a trivial program, we are probably using a cross compiler.
1923 if (.
/conftest
; exit) 2>/dev
/null
; then
1924 ac_cv_prog_cc_cross
=no
1926 ac_cv_prog_cc_cross
=yes
1929 echo "configure: failed program was:" >&5
1930 cat conftest.
$ac_ext >&5
1931 ac_cv_prog_cc_works
=no
1935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1936 ac_cpp
='$CPP $CPPFLAGS'
1937 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1938 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1939 cross_compiling
=$ac_cv_prog_cc_cross
1941 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1942 if test $ac_cv_prog_cc_works = no
; then
1943 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1945 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1946 echo "configure:1947: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1947 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1948 cross_compiling
=$ac_cv_prog_cc_cross
1950 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1951 echo "configure:1952: checking whether we are using GNU C" >&5
1952 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.c
<<EOF
1960 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1967 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1969 if test $ac_cv_prog_gcc = yes; then
1975 ac_test_CFLAGS
="${CFLAGS+set}"
1976 ac_save_CFLAGS
="$CFLAGS"
1978 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1979 echo "configure:1980: checking whether ${CC-cc} accepts -g" >&5
1980 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 echo 'void f(){}' > conftest.c
1984 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1993 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1994 if test "$ac_test_CFLAGS" = set; then
1995 CFLAGS
="$ac_save_CFLAGS"
1996 elif test $ac_cv_prog_cc_g = yes; then
1997 if test "$GCC" = yes; then
2003 if test "$GCC" = yes; then
2010 # Find a good install program. We prefer a C program (faster),
2011 # so one script is as good as another. But avoid the broken or
2012 # incompatible versions:
2013 # SysV /etc/install, /usr/sbin/install
2014 # SunOS /usr/etc/install
2015 # IRIX /sbin/install
2017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2020 # ./install, which can be erroneously created by make from ./install.sh.
2021 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2022 echo "configure:2023: checking for a BSD compatible install" >&5
2023 if test -z "$INSTALL"; then
2024 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2028 for ac_dir
in $PATH; do
2029 # Account for people who put trailing slashes in PATH elements.
2031 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2033 # OSF1 and SCO ODT 3.0 have their own names for install.
2034 # Don't use installbsd from OSF since it installs stuff as root
2036 for ac_prog
in ginstall scoinst
install; do
2037 if test -f $ac_dir/$ac_prog; then
2038 if test $ac_prog = install &&
2039 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2040 # AIX install. It has an incompatible calling convention.
2043 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2054 if test "${ac_cv_path_install+set}" = set; then
2055 INSTALL
="$ac_cv_path_install"
2057 # As a last resort, use the slow shell script. We don't cache a
2058 # path for INSTALL within a source directory, because that will
2059 # break other packages using the cache if that directory is
2060 # removed, or if the path is relative.
2061 INSTALL
="$ac_install_sh"
2064 echo "$ac_t""$INSTALL" 1>&6
2066 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2067 # It thinks the first close brace ends the variable substitution.
2068 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2070 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2072 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2075 # Put a plausible default for CC_FOR_BUILD in Makefile.
2076 if test "x$cross_compiling" = "xno"; then
2077 CC_FOR_BUILD
='$(CC)'
2087 # Extract the first word of "ranlib", so it can be a program name with args.
2088 set dummy ranlib
; ac_word
=$2
2089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2090 echo "configure:2091: checking for $ac_word" >&5
2091 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 if test -n "$RANLIB"; then
2095 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2097 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2099 for ac_dir
in $ac_dummy; do
2100 test -z "$ac_dir" && ac_dir
=.
2101 if test -f $ac_dir/$ac_word; then
2102 ac_cv_prog_RANLIB
="ranlib"
2107 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2110 RANLIB
="$ac_cv_prog_RANLIB"
2111 if test -n "$RANLIB"; then
2112 echo "$ac_t""$RANLIB" 1>&6
2114 echo "$ac_t""no" 1>&6
2120 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2121 unistd.h values.h sys
/param.h
2123 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_hdr" >&5
2126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.
$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2134 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2135 { (eval echo configure
:2136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2136 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2137 if test -z "$ac_err"; then
2139 eval "ac_cv_header_$ac_safe=yes"
2142 echo "configure: failed program was:" >&5
2143 cat conftest.
$ac_ext >&5
2145 eval "ac_cv_header_$ac_safe=no"
2149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2150 echo "$ac_t""yes" 1>&6
2151 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2152 cat >> confdefs.h
<<EOF
2153 #define $ac_tr_hdr 1
2157 echo "$ac_t""no" 1>&6
2161 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2162 __argz_count __argz_stringify __argz_next
2164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2165 echo "configure:2166: checking for $ac_func" >&5
2166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 cat > conftest.
$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2172 /* System header to define __stub macros and hopefully few prototypes,
2173 which can conflict with char $ac_func(); below. */
2175 /* Override any gcc2 internal prototype to avoid an error. */
2176 /* We use char because int might match the return type of a gcc2
2177 builtin and then its argument prototype would still apply. */
2182 /* The GNU C library defines this for functions which it implements
2183 to always fail with ENOSYS. Some functions are actually named
2184 something starting with __ and the normal name is an alias. */
2185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2193 if { (eval echo configure
:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2195 eval "ac_cv_func_$ac_func=yes"
2197 echo "configure: failed program was:" >&5
2198 cat conftest.
$ac_ext >&5
2200 eval "ac_cv_func_$ac_func=no"
2205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2206 echo "$ac_t""yes" 1>&6
2207 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2208 cat >> confdefs.h
<<EOF
2209 #define $ac_tr_func 1
2213 echo "$ac_t""no" 1>&6
2218 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2219 for ac_func
in stpcpy
2221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_func" >&5
2223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.
$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 /* System header to define __stub macros and hopefully few prototypes,
2230 which can conflict with char $ac_func(); below. */
2232 /* Override any gcc2 internal prototype to avoid an error. */
2233 /* We use char because int might match the return type of a gcc2
2234 builtin and then its argument prototype would still apply. */
2239 /* The GNU C library defines this for functions which it implements
2240 to always fail with ENOSYS. Some functions are actually named
2241 something starting with __ and the normal name is an alias. */
2242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2250 if { (eval echo configure
:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2252 eval "ac_cv_func_$ac_func=yes"
2254 echo "configure: failed program was:" >&5
2255 cat conftest.
$ac_ext >&5
2257 eval "ac_cv_func_$ac_func=no"
2262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2263 echo "$ac_t""yes" 1>&6
2264 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2265 cat >> confdefs.h
<<EOF
2266 #define $ac_tr_func 1
2270 echo "$ac_t""no" 1>&6
2275 if test "${ac_cv_func_stpcpy}" = "yes"; then
2276 cat >> confdefs.h
<<\EOF
2277 #define HAVE_STPCPY 1
2282 if test $ac_cv_header_locale_h = yes; then
2283 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2284 echo "configure:2285: checking for LC_MESSAGES" >&5
2285 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 cat > conftest.
$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2296 if { (eval echo configure
:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2298 am_cv_val_LC_MESSAGES
=yes
2300 echo "configure: failed program was:" >&5
2301 cat conftest.
$ac_ext >&5
2303 am_cv_val_LC_MESSAGES
=no
2308 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2309 if test $am_cv_val_LC_MESSAGES = yes; then
2310 cat >> confdefs.h
<<\EOF
2311 #define HAVE_LC_MESSAGES 1
2316 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2317 echo "configure:2318: checking whether NLS is requested" >&5
2318 # Check whether --enable-nls or --disable-nls was given.
2319 if test "${enable_nls+set}" = set; then
2320 enableval
="$enable_nls"
2326 echo "$ac_t""$USE_NLS" 1>&6
2329 USE_INCLUDED_LIBINTL
=no
2331 if test "$USE_NLS" = "yes"; then
2332 cat >> confdefs.h
<<\EOF
2333 #define ENABLE_NLS 1
2336 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2337 echo "configure:2338: checking whether included gettext is requested" >&5
2338 # Check whether --with-included-gettext or --without-included-gettext was given.
2339 if test "${with_included_gettext+set}" = set; then
2340 withval
="$with_included_gettext"
2341 nls_cv_force_use_gnu_gettext
=$withval
2343 nls_cv_force_use_gnu_gettext
=no
2346 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2348 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2349 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2351 nls_cv_header_libgt
=
2354 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2355 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2356 echo "configure:2357: checking for libintl.h" >&5
2357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 cat > conftest.
$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2363 #include <libintl.h>
2365 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2366 { (eval echo configure
:2367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2367 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2368 if test -z "$ac_err"; then
2370 eval "ac_cv_header_$ac_safe=yes"
2373 echo "configure: failed program was:" >&5
2374 cat conftest.
$ac_ext >&5
2376 eval "ac_cv_header_$ac_safe=no"
2380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2383 echo "configure:2384: checking for gettext in libc" >&5
2384 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 cat > conftest.
$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 #include <libintl.h>
2392 return (int) gettext ("")
2395 if { (eval echo configure
:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2397 gt_cv_func_gettext_libc
=yes
2399 echo "configure: failed program was:" >&5
2400 cat conftest.
$ac_ext >&5
2402 gt_cv_func_gettext_libc
=no
2407 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2409 if test "$gt_cv_func_gettext_libc" != "yes"; then
2410 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2411 echo "configure:2412: checking for bindtextdomain in -lintl" >&5
2412 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 ac_save_LIBS
="$LIBS"
2418 cat > conftest.
$ac_ext <<EOF
2419 #line 2420 "configure"
2420 #include "confdefs.h"
2421 /* Override any gcc2 internal prototype to avoid an error. */
2422 /* We use char because int might match the return type of a gcc2
2423 builtin and then its argument prototype would still apply. */
2424 char bindtextdomain();
2430 if { (eval echo configure
:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2432 eval "ac_cv_lib_$ac_lib_var=yes"
2434 echo "configure: failed program was:" >&5
2435 cat conftest.
$ac_ext >&5
2437 eval "ac_cv_lib_$ac_lib_var=no"
2440 LIBS
="$ac_save_LIBS"
2443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2445 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2446 echo "configure:2447: checking for gettext in libintl" >&5
2447 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 cat > conftest.
$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2455 return (int) gettext ("")
2458 if { (eval echo configure
:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2460 gt_cv_func_gettext_libintl
=yes
2462 echo "configure: failed program was:" >&5
2463 cat conftest.
$ac_ext >&5
2465 gt_cv_func_gettext_libintl
=no
2470 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2472 echo "$ac_t""no" 1>&6
2477 if test "$gt_cv_func_gettext_libc" = "yes" \
2478 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2479 cat >> confdefs.h
<<\EOF
2480 #define HAVE_GETTEXT 1
2483 # Extract the first word of "msgfmt", so it can be a program name with args.
2484 set dummy msgfmt
; ac_word
=$2
2485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2486 echo "configure:2487: checking for $ac_word" >&5
2487 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2492 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2495 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2496 for ac_dir
in $PATH; do
2497 test -z "$ac_dir" && ac_dir
=.
2498 if test -f $ac_dir/$ac_word; then
2499 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2500 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2506 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2510 MSGFMT
="$ac_cv_path_MSGFMT"
2511 if test -n "$MSGFMT"; then
2512 echo "$ac_t""$MSGFMT" 1>&6
2514 echo "$ac_t""no" 1>&6
2516 if test "$MSGFMT" != "no"; then
2517 for ac_func
in dcgettext
2519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_func" >&5
2521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 cat > conftest.
$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2527 /* System header to define __stub macros and hopefully few prototypes,
2528 which can conflict with char $ac_func(); below. */
2530 /* Override any gcc2 internal prototype to avoid an error. */
2531 /* We use char because int might match the return type of a gcc2
2532 builtin and then its argument prototype would still apply. */
2537 /* The GNU C library defines this for functions which it implements
2538 to always fail with ENOSYS. Some functions are actually named
2539 something starting with __ and the normal name is an alias. */
2540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2548 if { (eval echo configure
:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2550 eval "ac_cv_func_$ac_func=yes"
2552 echo "configure: failed program was:" >&5
2553 cat conftest.
$ac_ext >&5
2555 eval "ac_cv_func_$ac_func=no"
2560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2561 echo "$ac_t""yes" 1>&6
2562 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2563 cat >> confdefs.h
<<EOF
2564 #define $ac_tr_func 1
2568 echo "$ac_t""no" 1>&6
2572 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2573 set dummy gmsgfmt
; ac_word
=$2
2574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2575 echo "configure:2576: checking for $ac_word" >&5
2576 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2581 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2584 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2587 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2589 for ac_dir
in $ac_dummy; do
2590 test -z "$ac_dir" && ac_dir
=.
2591 if test -f $ac_dir/$ac_word; then
2592 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2597 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2601 GMSGFMT
="$ac_cv_path_GMSGFMT"
2602 if test -n "$GMSGFMT"; then
2603 echo "$ac_t""$GMSGFMT" 1>&6
2605 echo "$ac_t""no" 1>&6
2608 # Extract the first word of "xgettext", so it can be a program name with args.
2609 set dummy xgettext
; ac_word
=$2
2610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2611 echo "configure:2612: checking for $ac_word" >&5
2612 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2617 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2620 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2621 for ac_dir
in $PATH; do
2622 test -z "$ac_dir" && ac_dir
=.
2623 if test -f $ac_dir/$ac_word; then
2624 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2625 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2631 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2635 XGETTEXT
="$ac_cv_path_XGETTEXT"
2636 if test -n "$XGETTEXT"; then
2637 echo "$ac_t""$XGETTEXT" 1>&6
2639 echo "$ac_t""no" 1>&6
2642 cat > conftest.
$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2647 extern int _nl_msg_cat_cntr;
2648 return _nl_msg_cat_cntr
2651 if { (eval echo configure
:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2656 echo "configure: failed program was:" >&5
2657 cat conftest.
$ac_ext >&5
2668 echo "$ac_t""no" 1>&6
2673 if test "$CATOBJEXT" = "NONE"; then
2674 nls_cv_use_gnu_gettext
=yes
2678 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2679 INTLOBJS
="\$(GETTOBJS)"
2680 # Extract the first word of "msgfmt", so it can be a program name with args.
2681 set dummy msgfmt
; ac_word
=$2
2682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2683 echo "configure:2684: checking for $ac_word" >&5
2684 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
2689 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2692 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2693 for ac_dir
in $PATH; do
2694 test -z "$ac_dir" && ac_dir
=.
2695 if test -f $ac_dir/$ac_word; then
2696 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2697 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2703 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2707 MSGFMT
="$ac_cv_path_MSGFMT"
2708 if test -n "$MSGFMT"; then
2709 echo "$ac_t""$MSGFMT" 1>&6
2711 echo "$ac_t""no" 1>&6
2714 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2715 set dummy gmsgfmt
; ac_word
=$2
2716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2717 echo "configure:2718: checking for $ac_word" >&5
2718 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2723 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2726 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2729 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2731 for ac_dir
in $ac_dummy; do
2732 test -z "$ac_dir" && ac_dir
=.
2733 if test -f $ac_dir/$ac_word; then
2734 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2739 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2743 GMSGFMT
="$ac_cv_path_GMSGFMT"
2744 if test -n "$GMSGFMT"; then
2745 echo "$ac_t""$GMSGFMT" 1>&6
2747 echo "$ac_t""no" 1>&6
2750 # Extract the first word of "xgettext", so it can be a program name with args.
2751 set dummy xgettext
; ac_word
=$2
2752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_word" >&5
2754 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2759 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2762 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2763 for ac_dir
in $PATH; do
2764 test -z "$ac_dir" && ac_dir
=.
2765 if test -f $ac_dir/$ac_word; then
2766 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2767 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2773 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2777 XGETTEXT
="$ac_cv_path_XGETTEXT"
2778 if test -n "$XGETTEXT"; then
2779 echo "$ac_t""$XGETTEXT" 1>&6
2781 echo "$ac_t""no" 1>&6
2785 USE_INCLUDED_LIBINTL
=yes
2789 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2791 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2792 nls_cv_header_intl
=libintl.h
2793 nls_cv_header_libgt
=libgettext.h
2796 if test "$XGETTEXT" != ":"; then
2797 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2800 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2805 # We need to process the po/ directory.
2809 nls_cv_header_intl
=libintl.h
2810 nls_cv_header_libgt
=libgettext.h
2813 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2814 # because some of the sources are only built for this goal.
2815 if test "$PACKAGE" = gettext; then
2817 USE_INCLUDED_LIBINTL
=yes
2820 for lang
in $ALL_LINGUAS; do
2821 GMOFILES
="$GMOFILES $lang.gmo"
2822 POFILES
="$POFILES $lang.po"
2838 if test "x$CATOBJEXT" != "x"; then
2839 if test "x$ALL_LINGUAS" = "x"; then
2842 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2843 echo "configure:2844: checking for catalogs to be installed" >&5
2845 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2846 case "$ALL_LINGUAS" in
2847 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2850 LINGUAS
=$NEW_LINGUAS
2851 echo "$ac_t""$LINGUAS" 1>&6
2854 if test -n "$LINGUAS"; then
2855 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2859 if test $ac_cv_header_locale_h = yes; then
2860 INCLUDE_LOCALE_H
="#include <locale.h>"
2863 /* The system does not provide the header <locale.h>. Take care yourself. */"
2867 if test -f $srcdir/po2tbl.
sed.
in; then
2868 if test "$CATOBJEXT" = ".cat"; then
2869 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2870 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2871 echo "configure:2872: checking for linux/version.h" >&5
2872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 cat > conftest.
$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2878 #include <linux/version.h>
2880 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2881 { (eval echo configure
:2882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2882 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2883 if test -z "$ac_err"; then
2885 eval "ac_cv_header_$ac_safe=yes"
2888 echo "configure: failed program was:" >&5
2889 cat conftest.
$ac_ext >&5
2891 eval "ac_cv_header_$ac_safe=no"
2895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2899 echo "$ac_t""no" 1>&6
2904 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2906 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2907 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2910 if test "$PACKAGE" = "gettext"; then
2920 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2926 if test -d $srcdir/po
; then
2927 test -d po || mkdir po
2928 if test "x$srcdir" != "x."; then
2929 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2930 posrcprefix
="$srcdir/"
2932 posrcprefix
="../$srcdir/"
2938 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2939 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2943 # Check for common headers.
2944 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2945 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2946 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2948 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2950 echo "configure:2951: checking for $ac_hdr" >&5
2951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2954 cat > conftest.
$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2959 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2960 { (eval echo configure
:2961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2961 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2962 if test -z "$ac_err"; then
2964 eval "ac_cv_header_$ac_safe=yes"
2967 echo "configure: failed program was:" >&5
2968 cat conftest.
$ac_ext >&5
2970 eval "ac_cv_header_$ac_safe=no"
2974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2975 echo "$ac_t""yes" 1>&6
2976 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2977 cat >> confdefs.h
<<EOF
2978 #define $ac_tr_hdr 1
2982 echo "$ac_t""no" 1>&6
2986 for ac_hdr
in sys
/time.h sys
/resource.h
2988 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2990 echo "configure:2991: checking for $ac_hdr" >&5
2991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2994 cat > conftest.
$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2999 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3000 { (eval echo configure
:3001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3001 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3002 if test -z "$ac_err"; then
3004 eval "ac_cv_header_$ac_safe=yes"
3007 echo "configure: failed program was:" >&5
3008 cat conftest.
$ac_ext >&5
3010 eval "ac_cv_header_$ac_safe=no"
3014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3015 echo "$ac_t""yes" 1>&6
3016 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3017 cat >> confdefs.h
<<EOF
3018 #define $ac_tr_hdr 1
3022 echo "$ac_t""no" 1>&6
3026 for ac_hdr
in fcntl.h fpu_control.h
3028 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_hdr" >&5
3031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.
$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3039 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3040 { (eval echo configure
:3041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3041 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3042 if test -z "$ac_err"; then
3044 eval "ac_cv_header_$ac_safe=yes"
3047 echo "configure: failed program was:" >&5
3048 cat conftest.
$ac_ext >&5
3050 eval "ac_cv_header_$ac_safe=no"
3054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3055 echo "$ac_t""yes" 1>&6
3056 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3057 cat >> confdefs.h
<<EOF
3058 #define $ac_tr_hdr 1
3062 echo "$ac_t""no" 1>&6
3066 for ac_hdr
in dlfcn.h errno.h sys
/stat.h
3068 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3070 echo "configure:3071: checking for $ac_hdr" >&5
3071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 cat > conftest.
$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3079 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3080 { (eval echo configure
:3081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3081 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3082 if test -z "$ac_err"; then
3084 eval "ac_cv_header_$ac_safe=yes"
3087 echo "configure: failed program was:" >&5
3088 cat conftest.
$ac_ext >&5
3090 eval "ac_cv_header_$ac_safe=no"
3094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
3096 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3097 cat >> confdefs.h
<<EOF
3098 #define $ac_tr_hdr 1
3102 echo "$ac_t""no" 1>&6
3106 for ac_func
in getrusage
time sigaction __setfpucw
3108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_func" >&5
3110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.
$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 /* System header to define __stub macros and hopefully few prototypes,
3117 which can conflict with char $ac_func(); below. */
3119 /* Override any gcc2 internal prototype to avoid an error. */
3120 /* We use char because int might match the return type of a gcc2
3121 builtin and then its argument prototype would still apply. */
3126 /* The GNU C library defines this for functions which it implements
3127 to always fail with ENOSYS. Some functions are actually named
3128 something starting with __ and the normal name is an alias. */
3129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3137 if { (eval echo configure
:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3139 eval "ac_cv_func_$ac_func=yes"
3141 echo "configure: failed program was:" >&5
3142 cat conftest.
$ac_ext >&5
3144 eval "ac_cv_func_$ac_func=no"
3149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3150 echo "$ac_t""yes" 1>&6
3151 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3152 cat >> confdefs.h
<<EOF
3153 #define $ac_tr_func 1
3157 echo "$ac_t""no" 1>&6
3162 # Check for socket libraries
3163 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3164 echo "configure:3165: checking for bind in -lsocket" >&5
3165 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 ac_save_LIBS
="$LIBS"
3170 LIBS
="-lsocket $LIBS"
3171 cat > conftest.
$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3174 /* Override any gcc2 internal prototype to avoid an error. */
3175 /* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3183 if { (eval echo configure
:3184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3185 eval "ac_cv_lib_$ac_lib_var=yes"
3187 echo "configure: failed program was:" >&5
3188 cat conftest.
$ac_ext >&5
3190 eval "ac_cv_lib_$ac_lib_var=no"
3193 LIBS
="$ac_save_LIBS"
3196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3197 echo "$ac_t""yes" 1>&6
3198 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3199 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3200 cat >> confdefs.h
<<EOF
3201 #define $ac_tr_lib 1
3204 LIBS
="-lsocket $LIBS"
3207 echo "$ac_t""no" 1>&6
3210 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3211 echo "configure:3212: checking for gethostbyname in -lnsl" >&5
3212 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 ac_save_LIBS
="$LIBS"
3218 cat > conftest.
$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3221 /* Override any gcc2 internal prototype to avoid an error. */
3222 /* We use char because int might match the return type of a gcc2
3223 builtin and then its argument prototype would still apply. */
3224 char gethostbyname();
3230 if { (eval echo configure
:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3232 eval "ac_cv_lib_$ac_lib_var=yes"
3234 echo "configure: failed program was:" >&5
3235 cat conftest.
$ac_ext >&5
3237 eval "ac_cv_lib_$ac_lib_var=no"
3240 LIBS
="$ac_save_LIBS"
3243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3244 echo "$ac_t""yes" 1>&6
3245 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3246 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3247 cat >> confdefs.h
<<EOF
3248 #define $ac_tr_lib 1
3254 echo "$ac_t""no" 1>&6
3258 .
${srcdir}/..
/..
/bfd
/configure.
host
3262 USE_MAINTAINER_MODE
=no
3263 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3264 if test "${enable_maintainer_mode+set}" = set; then
3265 enableval
="$enable_maintainer_mode"
3266 case "${enableval}" in
3267 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3269 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3271 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3272 echo "Setting maintainer mode" 6>&1
3280 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3281 if test "${enable_sim_bswap+set}" = set; then
3282 enableval
="$enable_sim_bswap"
3283 case "${enableval}" in
3284 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3285 no
) sim_bswap
="-DWITH_BSWAP=0";;
3286 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3288 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3289 echo "Setting bswap flags = $sim_bswap" 6>&1
3297 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3298 if test "${enable_sim_cflags+set}" = set; then
3299 enableval
="$enable_sim_cflags"
3300 case "${enableval}" in
3301 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3302 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3304 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3306 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3307 echo "Setting sim cflags = $sim_cflags" 6>&1
3315 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3316 if test "${enable_sim_debug+set}" = set; then
3317 enableval
="$enable_sim_debug"
3318 case "${enableval}" in
3319 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3320 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3321 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3323 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3324 echo "Setting sim debug = $sim_debug" 6>&1
3332 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3333 if test "${enable_sim_stdio+set}" = set; then
3334 enableval
="$enable_sim_stdio"
3335 case "${enableval}" in
3336 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3337 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3338 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3340 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3341 echo "Setting stdio flags = $sim_stdio" 6>&1
3349 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3350 if test "${enable_sim_trace+set}" = set; then
3351 enableval
="$enable_sim_trace"
3352 case "${enableval}" in
3353 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3354 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3356 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3359 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3360 if test x
"$sim_trace" = x
; then
3361 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3363 sim_trace
="${sim_trace}|TRACE_$x"
3366 sim_trace
="$sim_trace)'" ;;
3368 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3369 echo "Setting sim trace = $sim_trace" 6>&1
3377 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3378 if test "${enable_sim_profile+set}" = set; then
3379 enableval
="$enable_sim_profile"
3380 case "${enableval}" in
3381 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3382 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3384 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3387 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3388 if test x
"$sim_profile" = x
; then
3389 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3391 sim_profile
="${sim_profile}|PROFILE_$x"
3394 sim_profile
="$sim_profile)'" ;;
3396 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3397 echo "Setting sim profile = $sim_profile" 6>&1
3405 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3406 echo "configure:3407: checking return type of signal handlers" >&5
3407 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.
$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <sys/types.h>
3419 extern "C" void (*signal (int, void (*)(int)))(int);
3421 void (*signal ()) ();
3428 if { (eval echo configure
:3429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3430 ac_cv_type_signal
=void
3432 echo "configure: failed program was:" >&5
3433 cat conftest.
$ac_ext >&5
3435 ac_cv_type_signal
=int
3440 echo "$ac_t""$ac_cv_type_signal" 1>&6
3441 cat >> confdefs.h
<<EOF
3442 #define RETSIGTYPE $ac_cv_type_signal
3449 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3450 echo "configure:3451: checking for executable suffix" >&5
3451 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3454 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3458 echo 'int main () { return 0; }' > conftest.
$ac_ext
3460 if { (eval echo configure
:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3461 for file in conftest.
*; do
3463 *.c |
*.o |
*.obj
) ;;
3464 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3468 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3471 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3476 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3477 echo "$ac_t""${ac_cv_exeext}" 1>&6
3484 sim_link_links
=tconfig.h
3485 if test -f ${srcdir}/tconfig.
in
3487 sim_link_files
=tconfig.
in
3489 sim_link_files
=..
/common
/tconfig.
in
3492 # targ-vals.def points to the libc macro description file.
3494 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3496 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3497 sim_link_links
="${sim_link_links} targ-vals.def"
3502 wire_endian
="BIG_ENDIAN"
3504 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3505 if test "${enable_sim_endian+set}" = set; then
3506 enableval
="$enable_sim_endian"
3507 case "${enableval}" in
3508 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3509 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3510 yes) if test x
"$wire_endian" != x
; then
3511 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3513 if test x
"$default_endian" != x
; then
3514 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3516 echo "No hard-wired endian for target $target" 1>&6
3517 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
3520 no
) if test x
"$default_endian" != x
; then
3521 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3523 if test x
"$wire_endian" != x
; then
3524 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3526 echo "No default endian for target $target" 1>&6
3527 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3530 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
3532 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
3533 echo "Setting endian flags = $sim_endian" 6>&1
3536 if test x
"$default_endian" != x
; then
3537 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3539 if test x
"$wire_endian" != x
; then
3540 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3547 wire_alignment
="STRICT_ALIGNMENT"
3548 default_alignment
=""
3550 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3551 if test "${enable_sim_alignment+set}" = set; then
3552 enableval
="$enable_sim_alignment"
3553 case "${enableval}" in
3554 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3555 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3556 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3557 yes) if test x
"$wire_alignment" != x
; then
3558 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3560 if test x
"$default_alignment" != x
; then
3561 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3563 echo "No hard-wired alignment for target $target" 1>&6
3564 sim_alignment
="-DWITH_ALIGNMENT=0"
3567 no
) if test x
"$default_alignment" != x
; then
3568 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3570 if test x
"$wire_alignment" != x
; then
3571 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3573 echo "No default alignment for target $target" 1>&6
3574 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3577 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3579 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3580 echo "Setting alignment flags = $sim_alignment" 6>&1
3583 if test x
"$default_alignment" != x
; then
3584 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3586 if test x
"$wire_alignment" != x
; then
3587 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3595 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3596 if test "${enable_sim_hostendian+set}" = set; then
3597 enableval
="$enable_sim_hostendian"
3598 case "${enableval}" in
3599 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3600 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3601 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3602 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3604 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3605 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3609 if test "x$cross_compiling" = "xno"; then
3610 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3611 echo "configure:3612: checking whether byte ordering is bigendian" >&5
3612 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3615 ac_cv_c_bigendian
=unknown
3616 # See if sys/param.h defines the BYTE_ORDER macro.
3617 cat > conftest.
$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 #include <sys/types.h>
3621 #include <sys/param.h>
3624 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3629 if { (eval echo configure
:3630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3631 # It does; now see whether it defined to BIG_ENDIAN or not.
3632 cat > conftest.
$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 #include <sys/types.h>
3636 #include <sys/param.h>
3639 #if BYTE_ORDER != BIG_ENDIAN
3644 if { (eval echo configure
:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646 ac_cv_c_bigendian
=yes
3648 echo "configure: failed program was:" >&5
3649 cat conftest.
$ac_ext >&5
3651 ac_cv_c_bigendian
=no
3655 echo "configure: failed program was:" >&5
3656 cat conftest.
$ac_ext >&5
3659 if test $ac_cv_c_bigendian = unknown
; then
3660 if test "$cross_compiling" = yes; then
3661 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3663 cat > conftest.
$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3667 /* Are we little or big endian? From Harbison&Steele. */
3671 char c[sizeof (long)];
3674 exit (u.c[sizeof (long) - 1] == 1);
3677 if { (eval echo configure
:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3679 ac_cv_c_bigendian
=no
3681 echo "configure: failed program was:" >&5
3682 cat conftest.
$ac_ext >&5
3684 ac_cv_c_bigendian
=yes
3692 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3693 if test $ac_cv_c_bigendian = yes; then
3694 cat >> confdefs.h
<<\EOF
3695 #define WORDS_BIGENDIAN 1
3700 if test $ac_cv_c_bigendian = yes; then
3701 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3703 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3706 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3711 default_sim_scache
="16384"
3712 # Check whether --enable-sim-scache or --disable-sim-scache was given.
3713 if test "${enable_sim_scache+set}" = set; then
3714 enableval
="$enable_sim_scache"
3715 case "${enableval}" in
3716 yes) sim_scache
="-DWITH_SCACHE=${default_sim_scache}";;
3717 no
) sim_scache
="-DWITH_SCACHE=0" ;;
3718 [0-9]*) sim_cache
=${enableval};;
3719 *) { echo "configure: error: "Bad value
$enableval passed to
--enable-sim-scache"" 1>&2; exit 1; };
3722 if test x
"$silent" != x
"yes" && test x
"$sim_scache" != x
""; then
3723 echo "Setting scache size = $sim_scache" 6>&1
3726 sim_scache
="-DWITH_SCACHE=${default_sim_scache}"
3731 default_sim_default_model
="m32r/d"
3732 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
3733 if test "${enable_sim_default_model+set}" = set; then
3734 enableval
="$enable_sim_default_model"
3735 case "${enableval}" in
3736 yes|no
) { echo "configure: error: "Missing argument to
--enable-sim-default-model"" 1>&2; exit 1; };;
3737 *) sim_default_model
="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
3739 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
3740 echo "Setting default model = $sim_default_model" 6>&1
3743 sim_default_model
="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
3748 # Check whether --enable-sim-environment or --disable-sim-environment was given.
3749 if test "${enable_sim_environment+set}" = set; then
3750 enableval
="$enable_sim_environment"
3751 case "${enableval}" in
3752 all | ALL
) sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
3753 user | USER
) sim_environment
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
3754 virtual | VIRTUAL
) sim_environment
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
3755 operating | OPERATING
) sim_environment
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
3756 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-environment"" 1>&2; exit 1; };
3757 sim_environment
="";;
3759 if test x
"$silent" != x
"yes" && test x
"$sim_environment" != x
""; then
3760 echo "Setting sim environment = $sim_environment" 6>&1
3763 sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
3767 default_sim_inline
=""
3768 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3769 if test "${enable_sim_inline+set}" = set; then
3770 enableval
="$enable_sim_inline"
3772 case "$enableval" in
3773 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3774 0) sim_inline
="-DDEFAULT_INLINE=0";;
3775 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
3776 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3777 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3780 *_INLINE
=*) new_flag
="-D$x";;
3781 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3782 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
3783 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
3785 if test x
"$sim_inline" = x
""; then
3786 sim_inline
="$new_flag"
3788 sim_inline
="$sim_inline $new_flag"
3792 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3793 echo "Setting inline flags = $sim_inline" 6>&1
3797 if test "x$cross_compiling" = "xno"; then
3798 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
3799 sim_inline
="${default_sim_inline}"
3800 if test x
"$silent" != x
"yes"; then
3801 echo "Setting inline flags = $sim_inline" 6>&1
3807 sim_inline
="-DDEFAULT_INLINE=0"
3813 cgen
=..
/..
/cgen
/cgen
3814 cgendir
='$(srcdir)/../../cgen'
3815 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
3816 if test "${enable_cgen_maint+set}" = set; then
3817 enableval
="$enable_cgen_maint"
3818 case "${enableval}" in
3819 yes) cgen_maint
=yes ;;
3820 no
) cgen_maint
=no
;;
3822 # argument is cgen install directory (not implemented yet).
3823 # Having a `share' directory might be more appropriate for the .scm,
3825 cgendir
=${cgen_maint}/lib
/cgen
3826 cgen
=${cgendir}/bin
/cgen
3830 if test x
${cgen_maint} != xno
; then
3843 cat > confcache
<<\EOF
3844 # This file is a shell script that caches the results of configure
3845 # tests run on this system so they can be shared between configure
3846 # scripts and configure runs. It is not useful on other systems.
3847 # If it contains results you don't want to keep, you may remove or edit it.
3849 # By default, configure uses ./config.cache as the cache file,
3850 # creating it if it does not exist already. You can give configure
3851 # the --cache-file=FILE option to use a different cache file; that is
3852 # what configure does when it calls configure scripts in
3853 # subdirectories, so they share the cache.
3854 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3855 # config.status only pays attention to the cache file if you give it the
3856 # --recheck option to rerun configure.
3859 # The following way of writing the cache mishandles newlines in values,
3860 # but we know of no workaround that is simple, portable, and efficient.
3861 # So, don't put newlines in cache variables' values.
3862 # Ultrix sh set writes to stderr and can't be redirected directly,
3863 # and sets the high bit in the cache file unless we assign to the vars.
3865 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3867 # `set' does not quote correctly, so add quotes (double-quote substitution
3868 # turns \\\\ into \\, and sed turns \\ into \).
3870 -e "s/'/'\\\\''/g" \
3871 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3874 # `set' quotes correctly as required by POSIX, so do not add quotes.
3875 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3878 if cmp -s $cache_file confcache
; then
3881 if test -w $cache_file; then
3882 echo "updating cache $cache_file"
3883 cat confcache
> $cache_file
3885 echo "not updating unwritable cache $cache_file"
3890 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3892 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3893 # Let make expand exec_prefix.
3894 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3896 # Any assignment to VPATH causes Sun make to only execute
3897 # the first set of double-colon rules, so remove it if not needed.
3898 # If there is a colon in the path, we need to keep it.
3899 if test "x$srcdir" = x.
; then
3900 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3903 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3905 DEFS
=-DHAVE_CONFIG_H
3907 # Without the "./", some shells look in PATH for config.status.
3908 : ${CONFIG_STATUS=./config.status}
3910 echo creating
$CONFIG_STATUS
3911 rm -f $CONFIG_STATUS
3912 cat > $CONFIG_STATUS <<EOF
3914 # Generated automatically by configure.
3915 # Run this file to recreate the current configuration.
3916 # This directory was configured as follows,
3917 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3919 # $0 $ac_configure_args
3921 # Compiler output produced by configure, useful for debugging
3922 # configure, is in ./config.log if it exists.
3924 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3927 case "\$ac_option" in
3928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3929 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3930 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3931 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3932 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3934 -help | --help | --hel | --he | --h)
3935 echo "\$ac_cs_usage"; exit 0 ;;
3936 *) echo "\$ac_cs_usage"; exit 1 ;;
3940 ac_given_srcdir=$srcdir
3941 ac_given_INSTALL="$INSTALL"
3943 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
3945 cat >> $CONFIG_STATUS <<EOF
3947 # Protect against being on the right side of a sed subst in config.status.
3948 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3949 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3952 s%@sim_environment@%$sim_environment%g
3953 s%@sim_alignment@%$sim_alignment%g
3954 s%@sim_assert@%$sim_assert%g
3955 s%@sim_bitsize@%$sim_bitsize%g
3956 s%@sim_endian@%$sim_endian%g
3957 s%@sim_hostendian@%$sim_hostendian%g
3958 s%@sim_float@%$sim_float%g
3959 s%@sim_scache@%$sim_scache%g
3960 s%@sim_default_model@%$sim_default_model%g
3961 s%@sim_hw_cflags@%$sim_hw_cflags%g
3962 s%@sim_hw_objs@%$sim_hw_objs%g
3963 s%@sim_hw@%$sim_hw%g
3964 s%@sim_inline@%$sim_inline%g
3965 s%@sim_packages@%$sim_packages%g
3966 s%@sim_regparm@%$sim_regparm%g
3967 s%@sim_reserved_bits@%$sim_reserved_bits%g
3968 s%@sim_smp@%$sim_smp%g
3969 s%@sim_stdcall@%$sim_stdcall%g
3970 s%@sim_xor_endian@%$sim_xor_endian%g
3971 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
3972 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
3974 s%@CFLAGS@%$CFLAGS%g
3975 s%@CPPFLAGS@%$CPPFLAGS%g
3976 s%@CXXFLAGS@%$CXXFLAGS%g
3977 s%@FFLAGS@%$FFLAGS%g
3979 s%@LDFLAGS@%$LDFLAGS%g
3981 s%@exec_prefix@%$exec_prefix%g
3982 s%@prefix@%$prefix%g
3983 s%@program_transform_name@%$program_transform_name%g
3984 s%@bindir@%$bindir%g
3985 s%@sbindir@%$sbindir%g
3986 s%@libexecdir@%$libexecdir%g
3987 s%@datadir@%$datadir%g
3988 s%@sysconfdir@%$sysconfdir%g
3989 s%@sharedstatedir@%$sharedstatedir%g
3990 s%@localstatedir@%$localstatedir%g
3991 s%@libdir@%$libdir%g
3992 s%@includedir@%$includedir%g
3993 s%@oldincludedir@%$oldincludedir%g
3994 s%@infodir@%$infodir%g
3995 s%@mandir@%$mandir%g
3997 s%@host_alias@%$host_alias%g
3998 s%@host_cpu@%$host_cpu%g
3999 s%@host_vendor@%$host_vendor%g
4000 s%@host_os@%$host_os%g
4001 s%@target@%$target%g
4002 s%@target_alias@%$target_alias%g
4003 s%@target_cpu@%$target_cpu%g
4004 s%@target_vendor@%$target_vendor%g
4005 s%@target_os@%$target_os%g
4007 s%@build_alias@%$build_alias%g
4008 s%@build_cpu@%$build_cpu%g
4009 s%@build_vendor@%$build_vendor%g
4010 s%@build_os@%$build_os%g
4012 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4013 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4014 s%@INSTALL_DATA@%$INSTALL_DATA%g
4015 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4016 s%@HDEFINES@%$HDEFINES%g
4018 s%@RANLIB@%$RANLIB%g
4019 s%@SET_MAKE@%$SET_MAKE%g
4021 s%@ALLOCA@%$ALLOCA%g
4022 s%@USE_NLS@%$USE_NLS%g
4023 s%@MSGFMT@%$MSGFMT%g
4024 s%@GMSGFMT@%$GMSGFMT%g
4025 s%@XGETTEXT@%$XGETTEXT%g
4026 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4027 s%@CATALOGS@%$CATALOGS%g
4028 s%@CATOBJEXT@%$CATOBJEXT%g
4029 s%@DATADIRNAME@%$DATADIRNAME%g
4030 s%@GMOFILES@%$GMOFILES%g
4031 s%@INSTOBJEXT@%$INSTOBJEXT%g
4032 s%@INTLDEPS@%$INTLDEPS%g
4033 s%@INTLLIBS@%$INTLLIBS%g
4034 s%@INTLOBJS@%$INTLOBJS%g
4035 s%@POFILES@%$POFILES%g
4037 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4039 s%@GT_YES@%$GT_YES%g
4040 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4043 s%@sim_bswap@%$sim_bswap%g
4044 s%@sim_cflags@%$sim_cflags%g
4045 s%@sim_debug@%$sim_debug%g
4046 s%@sim_stdio@%$sim_stdio%g
4047 s%@sim_trace@%$sim_trace%g
4048 s%@sim_profile@%$sim_profile%g
4049 s%@EXEEXT@%$EXEEXT%g
4050 s%@CGEN_MAINT@%$CGEN_MAINT%g
4051 s%@cgendir@%$cgendir%g
4057 cat >> $CONFIG_STATUS <<\EOF
4059 # Split the substitutions into bite-sized pieces for seds with
4060 # small command number limits, like on Digital OSF/1 and HP-UX.
4061 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4062 ac_file
=1 # Number of current file.
4063 ac_beg
=1 # First line for current file.
4064 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4067 while $ac_more_lines; do
4068 if test $ac_beg -gt 1; then
4069 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4071 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4073 if test ! -s conftest.s
$ac_file; then
4075 rm -f conftest.s
$ac_file
4077 if test -z "$ac_sed_cmds"; then
4078 ac_sed_cmds
="sed -f conftest.s$ac_file"
4080 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4082 ac_file
=`expr $ac_file + 1`
4084 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4087 if test -z "$ac_sed_cmds"; then
4092 cat >> $CONFIG_STATUS <<EOF
4094 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4096 cat >> $CONFIG_STATUS <<\EOF
4097 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4098 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4100 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4101 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4102 *) ac_file_in
="${ac_file}.in" ;;
4105 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4107 # Remove last slash and all that follows it. Not all systems have dirname.
4108 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4109 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4110 # The file is in a subdirectory.
4111 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4112 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4113 # A "../" for each directory in $ac_dir_suffix.
4114 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4116 ac_dir_suffix
= ac_dots
=
4119 case "$ac_given_srcdir" in
4121 if test -z "$ac_dots"; then top_srcdir
=.
4122 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4123 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4125 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4126 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4129 case "$ac_given_INSTALL" in
4130 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4131 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4134 echo creating
"$ac_file"
4136 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4138 *Makefile
*) ac_comsub
="1i\\
4139 # $configure_input" ;;
4143 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4145 s%@configure_input@%$configure_input%g
4146 s%@srcdir@%$srcdir%g
4147 s%@top_srcdir@%$top_srcdir%g
4148 s%@INSTALL@%$INSTALL%g
4149 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4153 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4154 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4156 # ac_d sets the value in "#define NAME VALUE" lines.
4157 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4158 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4161 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4162 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4163 ac_uB
='\([ ]\)%\1#\2define\3'
4166 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4167 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4168 ac_eB
='$%\1#\2define\3'
4172 if test "${CONFIG_HEADERS+set}" != set; then
4174 cat >> $CONFIG_STATUS <<EOF
4175 CONFIG_HEADERS="config.h:config.in"
4177 cat >> $CONFIG_STATUS <<\EOF
4179 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4180 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4182 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4183 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4184 *) ac_file_in
="${ac_file}.in" ;;
4187 echo creating
$ac_file
4189 rm -f conftest.frag conftest.
in conftest.out
4190 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4191 cat $ac_file_inputs > conftest.
in
4195 # Transform confdefs.h into a sed script conftest.vals that substitutes
4196 # the proper values into config.h.in to produce config.h. And first:
4197 # Protect against being on the right side of a sed subst in config.status.
4198 # Protect against being in an unquoted here document in config.status.
4200 cat > conftest.hdr
<<\EOF
4203 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4207 sed -n -f conftest.hdr confdefs.h > conftest.vals
4210 # This sed command replaces #undef with comments. This is necessary, for
4211 # example, in the case of _POSIX_SOURCE, which is predefined and required
4212 # on some systems where configure will not decide to define it.
4213 cat >> conftest.vals <<\EOF
4214 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4217 # Break up conftest.vals because some shells have a limit on
4218 # the size of here documents, and old seds have small limits too.
4223 ac_lines=`grep -c . conftest.vals
`
4224 # grep -c gives empty output for an empty file on some AIX systems.
4225 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4226 # Write a limited-size here document to conftest.frag.
4227 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4228 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4230 sed -f conftest.frag conftest.in > conftest.out
4232 mv conftest.out conftest.in
4234 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4236 mv conftest.tail conftest.vals
4240 cat >> $CONFIG_STATUS <<\EOF
4241 rm -f conftest.frag conftest.h
4242 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4243 cat conftest.in >> conftest.h
4245 if cmp -s $ac_file conftest.h 2>/dev/null; then
4246 echo "$ac_file is unchanged"
4249 # Remove last slash and all that follows it. Not all systems have dirname.
4250 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4251 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4252 # The file is in a subdirectory.
4253 test ! -d "$ac_dir" && mkdir "$ac_dir"
4256 mv conftest.h $ac_file
4262 cat >> $CONFIG_STATUS <<EOF
4263 ac_sources="$sim_link_files"
4264 ac_dests="$sim_link_links"
4267 cat >> $CONFIG_STATUS <<\EOF
4268 srcdir=$ac_given_srcdir
4269 while test -n "$ac_sources"; do
4270 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4271 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4273 echo "linking $srcdir/$ac_source to $ac_dest"
4275 if test ! -r $srcdir/$ac_source; then
4276 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4280 # Make relative symlinks.
4281 # Remove last slash and all that follows it. Not all systems have dirname.
4282 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4283 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4284 # The dest file is in a subdirectory.
4285 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4286 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4287 # A "../" for each directory in $ac_dest_dir_suffix.
4288 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4290 ac_dest_dir_suffix= ac_dots=
4294 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4295 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4298 # Make a symlink if possible; otherwise try a hard link.
4299 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4300 ln $srcdir/$ac_source $ac_dest; then :
4302 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4306 cat >> $CONFIG_STATUS <<EOF
4309 cat >> $CONFIG_STATUS <<\EOF
4310 case "x$CONFIG_FILES" in
4312 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4313 rm -f Makesim1.tmp Makesim2.tmp Makefile
4314 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4315 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4316 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4317 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4318 <Makefile.sim >Makefile
4319 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4322 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4326 chmod +x $CONFIG_STATUS
4327 rm -fr confdefs* $ac_clean_files
4328 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1