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-cgen-maint[=DIR] build cgen generated files"
170 # Initialize some variables set by options.
171 # The variables have the same names as the options, with
172 # dashes changed to underlines.
174 cache_file
=.
/config.cache
183 program_transform_name
=s
,x
,x
,
191 bindir
='${exec_prefix}/bin'
192 sbindir
='${exec_prefix}/sbin'
193 libexecdir
='${exec_prefix}/libexec'
194 datadir
='${prefix}/share'
195 sysconfdir
='${prefix}/etc'
196 sharedstatedir
='${prefix}/com'
197 localstatedir
='${prefix}/var'
198 libdir
='${exec_prefix}/lib'
199 includedir
='${prefix}/include'
200 oldincludedir
='/usr/include'
201 infodir
='${prefix}/info'
202 mandir
='${prefix}/man'
204 # Initialize some other variables.
207 SHELL
=${CONFIG_SHELL-/bin/sh}
208 # Maximum number of lines to put in a shell here document.
215 # If the previous option needs an argument, assign it.
216 if test -n "$ac_prev"; then
217 eval "$ac_prev=\$ac_option"
223 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
227 # Accept the important Cygnus configure options, so we can diagnose typos.
231 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
233 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
234 bindir
="$ac_optarg" ;;
236 -build |
--build |
--buil |
--bui |
--bu)
238 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
239 build
="$ac_optarg" ;;
241 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
242 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
243 ac_prev
=cache_file
;;
244 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
245 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
246 cache_file
="$ac_optarg" ;;
248 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
250 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
252 datadir
="$ac_optarg" ;;
254 -disable-* |
--disable-*)
255 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
256 # Reject names that are not valid shell variable names.
257 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
258 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
260 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
261 eval "enable_${ac_feature}=no" ;;
263 -enable-* |
--enable-*)
264 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
265 # Reject names that are not valid shell variable names.
266 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
267 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
269 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
274 eval "enable_${ac_feature}='$ac_optarg'" ;;
276 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
277 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
278 |
--exec |
--exe |
--ex)
279 ac_prev
=exec_prefix
;;
280 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
281 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
282 |
--exec=* |
--exe=* |
--ex=*)
283 exec_prefix
="$ac_optarg" ;;
285 -gas |
--gas |
--ga |
--g)
286 # Obsolete; use --with-gas.
289 -help |
--help |
--hel |
--he)
290 # Omit some internal or obsolete options to make the list less imposing.
291 # This message is too long to be a string in the A/UX 3.1 sh.
293 Usage: configure [options] [host]
294 Options: [defaults in brackets after descriptions]
296 --cache-file=FILE cache test results in FILE
297 --help print this message
298 --no-create do not create output files
299 --quiet, --silent do not print \`checking...' messages
300 --version print the version of autoconf that created configure
301 Directory and file names:
302 --prefix=PREFIX install architecture-independent files in PREFIX
304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
306 --bindir=DIR user executables in DIR [EPREFIX/bin]
307 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
308 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
309 --datadir=DIR read-only architecture-independent data in DIR
311 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
312 --sharedstatedir=DIR modifiable architecture-independent data in DIR
314 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
315 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
316 --includedir=DIR C header files in DIR [PREFIX/include]
317 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
318 --infodir=DIR info documentation in DIR [PREFIX/info]
319 --mandir=DIR man documentation in DIR [PREFIX/man]
320 --srcdir=DIR find the sources in DIR [configure dir or ..]
321 --program-prefix=PREFIX prepend PREFIX to installed program names
322 --program-suffix=SUFFIX append SUFFIX to installed program names
323 --program-transform-name=PROGRAM
324 run sed PROGRAM on installed program names
328 --build=BUILD configure for building on BUILD [BUILD=HOST]
329 --host=HOST configure for HOST [guessed]
330 --target=TARGET configure for TARGET [TARGET=HOST]
331 Features and packages:
332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
334 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
335 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
336 --x-includes=DIR X include files are in DIR
337 --x-libraries=DIR X library files are in DIR
339 if test -n "$ac_help"; then
340 echo "--enable and --with options recognized:$ac_help"
344 -host |
--host |
--hos |
--ho)
346 -host=* |
--host=* |
--hos=* |
--ho=*)
349 -includedir |
--includedir |
--includedi |
--included |
--include \
350 |
--includ |
--inclu |
--incl |
--inc)
351 ac_prev
=includedir
;;
352 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
353 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
354 includedir
="$ac_optarg" ;;
356 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
358 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
359 infodir
="$ac_optarg" ;;
361 -libdir |
--libdir |
--libdi |
--libd)
363 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
364 libdir
="$ac_optarg" ;;
366 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
367 |
--libexe |
--libex |
--libe)
368 ac_prev
=libexecdir
;;
369 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
370 |
--libexe=* |
--libex=* |
--libe=*)
371 libexecdir
="$ac_optarg" ;;
373 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
374 |
--localstate |
--localstat |
--localsta |
--localst \
375 |
--locals |
--local |
--loca |
--loc |
--lo)
376 ac_prev
=localstatedir
;;
377 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
378 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
379 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
380 localstatedir
="$ac_optarg" ;;
382 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
384 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
385 mandir
="$ac_optarg" ;;
388 # Obsolete; use --without-fp.
391 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
395 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
396 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
399 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
400 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
401 |
--oldin |
--oldi |
--old |
--ol |
--o)
402 ac_prev
=oldincludedir
;;
403 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
404 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
405 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
406 oldincludedir
="$ac_optarg" ;;
408 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
410 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
411 prefix
="$ac_optarg" ;;
413 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
414 |
--program-pre |
--program-pr |
--program-p)
415 ac_prev
=program_prefix
;;
416 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
417 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
418 program_prefix
="$ac_optarg" ;;
420 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
421 |
--program-suf |
--program-su |
--program-s)
422 ac_prev
=program_suffix
;;
423 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
424 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
425 program_suffix
="$ac_optarg" ;;
427 -program-transform-name |
--program-transform-name \
428 |
--program-transform-nam |
--program-transform-na \
429 |
--program-transform-n |
--program-transform- \
430 |
--program-transform |
--program-transfor \
431 |
--program-transfo |
--program-transf \
432 |
--program-trans |
--program-tran \
433 |
--progr-tra |
--program-tr |
--program-t)
434 ac_prev
=program_transform_name
;;
435 -program-transform-name=* |
--program-transform-name=* \
436 |
--program-transform-nam=* |
--program-transform-na=* \
437 |
--program-transform-n=* |
--program-transform-=* \
438 |
--program-transform=* |
--program-transfor=* \
439 |
--program-transfo=* |
--program-transf=* \
440 |
--program-trans=* |
--program-tran=* \
441 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
442 program_transform_name
="$ac_optarg" ;;
444 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
445 |
-silent |
--silent |
--silen |
--sile |
--sil)
448 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
450 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
452 sbindir
="$ac_optarg" ;;
454 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
455 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
456 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
458 ac_prev
=sharedstatedir
;;
459 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
460 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
461 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
463 sharedstatedir
="$ac_optarg" ;;
465 -site |
--site |
--sit)
467 -site=* |
--site=* |
--sit=*)
470 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
472 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
473 srcdir
="$ac_optarg" ;;
475 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
476 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
477 ac_prev
=sysconfdir
;;
478 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
479 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
480 sysconfdir
="$ac_optarg" ;;
482 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
484 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
485 target
="$ac_optarg" ;;
487 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
490 -version |
--version |
--versio |
--versi |
--vers)
491 echo "configure generated by autoconf version 2.13"
495 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
496 # Reject names that are not valid shell variable names.
497 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
498 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
500 ac_package
=`echo $ac_package| sed 's/-/_/g'`
505 eval "with_${ac_package}='$ac_optarg'" ;;
507 -without-* |
--without-*)
508 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
509 # Reject names that are not valid shell variable names.
510 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
511 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
513 ac_package
=`echo $ac_package| sed 's/-/_/g'`
514 eval "with_${ac_package}=no" ;;
517 # Obsolete; use --with-x.
520 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
521 |
--x-incl |
--x-inc |
--x-in |
--x-i)
522 ac_prev
=x_includes
;;
523 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
524 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
525 x_includes
="$ac_optarg" ;;
527 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
528 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
529 ac_prev
=x_libraries
;;
530 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
531 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
532 x_libraries
="$ac_optarg" ;;
534 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
538 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
539 echo "configure: warning: $ac_option: invalid host type" 1>&2
541 if test "x$nonopt" != xNONE
; then
542 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
550 if test -n "$ac_prev"; then
551 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
554 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
556 # File descriptor usage:
559 # 2 errors and warnings
560 # 3 some systems may open it to /dev/tty
561 # 4 used on the Kubota Titan
562 # 6 checking for... messages and results
563 # 5 compiler messages saved in config.log
564 if test "$silent" = yes; then
572 This file contains any messages produced by compilers while
573 running configure, to aid debugging if configure makes a mistake.
576 # Strip out --no-create and --no-recursion so they do not pile up.
577 # Also quote any args containing shell metacharacters.
582 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
583 |
--no-cr |
--no-c) ;;
584 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
585 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
586 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
587 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
588 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
593 # Only set these to C if already set. These must not be set unconditionally
594 # because not all systems understand e.g. LANG=C (notably SCO).
595 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
596 # Non-C LC_CTYPE values break the ctype check.
597 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
598 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
599 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
600 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
602 # confdefs.h avoids OS command line length limits that DEFS can exceed.
603 rm -rf conftest
* confdefs.h
604 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
607 # A filename unique to this package, relative to the directory that
608 # configure is in, which we can look for to find out if srcdir is correct.
609 ac_unique_file
=Makefile.
in
611 # Find the source files, if location was not specified.
612 if test -z "$srcdir"; then
613 ac_srcdir_defaulted
=yes
614 # Try the directory containing this script, then its parent.
616 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
617 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
619 if test ! -r $srcdir/$ac_unique_file; then
623 ac_srcdir_defaulted
=no
625 if test ! -r $srcdir/$ac_unique_file; then
626 if test "$ac_srcdir_defaulted" = yes; then
627 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
629 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
632 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
634 # Prefer explicitly selected file to automatically selected ones.
635 if test -z "$CONFIG_SITE"; then
636 if test "x$prefix" != xNONE
; then
637 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
639 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
642 for ac_site_file
in $CONFIG_SITE; do
643 if test -r "$ac_site_file"; then
644 echo "loading site script $ac_site_file"
649 if test -r "$cache_file"; then
650 echo "loading cache $cache_file"
653 echo "creating cache $cache_file"
658 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
659 ac_cpp
='$CPP $CPPFLAGS'
660 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
661 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
662 cross_compiling
=$ac_cv_prog_cc_cross
666 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
667 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
668 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
675 ac_n
= ac_c
='\c' ac_t
=
680 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
681 echo "configure:682: checking how to run the C preprocessor" >&5
682 # On Suns, sometimes $CPP names a directory.
683 if test -n "$CPP" && test -d "$CPP"; then
686 if test -z "$CPP"; then
687 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6
690 # This must be in double quotes, not single quotes, because CPP may get
691 # substituted into the Makefile and "${CC-cc}" will confuse make.
693 # On the NeXT, cc -E runs the code through the compiler's parser,
694 # not just through cpp.
695 cat > conftest.
$ac_ext <<EOF
696 #line 697 "configure"
697 #include "confdefs.h"
701 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
702 { (eval echo configure
:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
703 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
704 if test -z "$ac_err"; then
708 echo "configure: failed program was:" >&5
709 cat conftest.
$ac_ext >&5
711 CPP
="${CC-cc} -E -traditional-cpp"
712 cat > conftest.
$ac_ext <<EOF
713 #line 714 "configure"
714 #include "confdefs.h"
718 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
719 { (eval echo configure
:720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
720 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
721 if test -z "$ac_err"; then
725 echo "configure: failed program was:" >&5
726 cat conftest.
$ac_ext >&5
728 CPP
="${CC-cc} -nologo -E"
729 cat > conftest.
$ac_ext <<EOF
730 #line 731 "configure"
731 #include "confdefs.h"
735 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
736 { (eval echo configure
:737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
737 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
738 if test -z "$ac_err"; then
742 echo "configure: failed program was:" >&5
743 cat conftest.
$ac_ext >&5
752 ac_cv_prog_CPP
="$CPP"
754 CPP
="$ac_cv_prog_CPP"
756 ac_cv_prog_CPP
="$CPP"
758 echo "$ac_t""$CPP" 1>&6
760 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
761 echo "configure:762: checking whether ${MAKE-make} sets \${MAKE}" >&5
762 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
763 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
766 cat > conftestmake
<<\EOF
768 @
echo 'ac_maketemp="${MAKE}"'
770 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
771 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
772 if test -n "$ac_maketemp"; then
773 eval ac_cv_prog_make_
${ac_make}_set
=yes
775 eval ac_cv_prog_make_
${ac_make}_set
=no
779 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
780 echo "$ac_t""yes" 1>&6
783 echo "$ac_t""no" 1>&6
784 SET_MAKE
="MAKE=${MAKE-make}"
787 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
788 echo "configure:789: checking for POSIXized ISC" >&5
789 if test -d /etc
/conf
/kconfig.d
&&
790 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
792 echo "$ac_t""yes" 1>&6
793 ISC
=yes # If later tests want to check for ISC.
794 cat >> confdefs.h
<<\EOF
795 #define _POSIX_SOURCE 1
798 if test "$GCC" = yes; then
804 echo "$ac_t""no" 1>&6
808 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
809 echo "configure:810: checking for ANSI C header files" >&5
810 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 cat > conftest.
$ac_ext <<EOF
814 #line 815 "configure"
815 #include "confdefs.h"
821 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
822 { (eval echo configure
:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
823 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
824 if test -z "$ac_err"; then
826 ac_cv_header_stdc
=yes
829 echo "configure: failed program was:" >&5
830 cat conftest.
$ac_ext >&5
836 if test $ac_cv_header_stdc = yes; then
837 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
838 cat > conftest.
$ac_ext <<EOF
839 #line 840 "configure"
840 #include "confdefs.h"
843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
844 egrep "memchr" >/dev
/null
2>&1; then
854 if test $ac_cv_header_stdc = yes; then
855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
856 cat > conftest.
$ac_ext <<EOF
857 #line 858 "configure"
858 #include "confdefs.h"
861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
862 egrep "free" >/dev
/null
2>&1; then
872 if test $ac_cv_header_stdc = yes; then
873 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
874 if test "$cross_compiling" = yes; then
877 cat > conftest.
$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
881 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
882 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
884 int main () { int i; for (i = 0; i < 256; i++)
885 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
889 if { (eval echo configure
:890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
893 echo "configure: failed program was:" >&5
894 cat conftest.
$ac_ext >&5
904 echo "$ac_t""$ac_cv_header_stdc" 1>&6
905 if test $ac_cv_header_stdc = yes; then
906 cat >> confdefs.h
<<\EOF
907 #define STDC_HEADERS 1
912 echo $ac_n "checking for working const""... $ac_c" 1>&6
913 echo "configure:914: checking for working const" >&5
914 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
917 cat > conftest.
$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
923 /* Ultrix mips cc rejects this. */
924 typedef int charset[2]; const charset x;
925 /* SunOS 4.1.1 cc rejects this. */
926 char const *const *ccp;
928 /* NEC SVR4.0.2 mips cc rejects this. */
929 struct point {int x, y;};
930 static struct point const zero = {0,0};
931 /* AIX XL C 1.02.0.0 rejects this.
932 It does not let you subtract one const X* pointer from another in an arm
933 of an if-expression whose if-part is not a constant expression */
934 const char *g = "string";
935 ccp = &g + (g ? g-g : 0);
936 /* HPUX 7.0 cc rejects these. */
939 ccp = (char const *const *) p;
940 { /* SCO 3.2v4 cc rejects this. */
942 char const *s = 0 ? (char *) 0 : (char const *) 0;
946 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
948 const int *foo = &x[0];
951 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
952 typedef const int *iptr;
956 { /* AIX XL C 1.02.0.0 rejects this saying
957 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
958 struct s { int j; const int *ap[3]; };
959 struct s *b; b->j = 5;
961 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
967 if { (eval echo configure
:968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
971 echo "configure: failed program was:" >&5
972 cat conftest.
$ac_ext >&5
979 echo "$ac_t""$ac_cv_c_const" 1>&6
980 if test $ac_cv_c_const = no
; then
981 cat >> confdefs.h
<<\EOF
987 echo $ac_n "checking for inline""... $ac_c" 1>&6
988 echo "configure:989: checking for inline" >&5
989 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
993 for ac_kw
in inline __inline__ __inline
; do
994 cat > conftest.
$ac_ext <<EOF
995 #line 996 "configure"
996 #include "confdefs.h"
1002 if { (eval echo configure
:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1004 ac_cv_c_inline
=$ac_kw; break
1006 echo "configure: failed program was:" >&5
1007 cat conftest.
$ac_ext >&5
1014 echo "$ac_t""$ac_cv_c_inline" 1>&6
1015 case "$ac_cv_c_inline" in
1017 no
) cat >> confdefs.h
<<\EOF
1021 *) cat >> confdefs.h
<<EOF
1022 #define inline $ac_cv_c_inline
1027 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1028 echo "configure:1029: checking for off_t" >&5
1029 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 cat > conftest.
$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1035 #include <sys/types.h>
1041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1042 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1044 ac_cv_type_off_t
=yes
1052 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1053 if test $ac_cv_type_off_t = no
; then
1054 cat >> confdefs.h
<<\EOF
1060 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1061 echo "configure:1062: checking for size_t" >&5
1062 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 cat > conftest.
$ac_ext <<EOF
1066 #line 1067 "configure"
1067 #include "confdefs.h"
1068 #include <sys/types.h>
1074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1075 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1077 ac_cv_type_size_t
=yes
1080 ac_cv_type_size_t
=no
1085 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1086 if test $ac_cv_type_size_t = no
; then
1087 cat >> confdefs.h
<<\EOF
1088 #define size_t unsigned
1093 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1094 # for constant arguments. Useless!
1095 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1096 echo "configure:1097: checking for working alloca.h" >&5
1097 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 cat > conftest.
$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1105 char *p = alloca(2 * sizeof(int));
1108 if { (eval echo configure
:1109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1110 ac_cv_header_alloca_h
=yes
1112 echo "configure: failed program was:" >&5
1113 cat conftest.
$ac_ext >&5
1115 ac_cv_header_alloca_h
=no
1120 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1121 if test $ac_cv_header_alloca_h = yes; then
1122 cat >> confdefs.h
<<\EOF
1123 #define HAVE_ALLOCA_H 1
1128 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1129 echo "configure:1130: checking for alloca" >&5
1130 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 cat > conftest.
$ac_ext <<EOF
1134 #line 1135 "configure"
1135 #include "confdefs.h"
1138 # define alloca __builtin_alloca
1141 # include <malloc.h>
1142 # define alloca _alloca
1145 # include <alloca.h>
1150 # ifndef alloca /* predefined by HP cc +Olibcalls */
1159 char *p = (char *) alloca(1);
1162 if { (eval echo configure
:1163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1164 ac_cv_func_alloca_works
=yes
1166 echo "configure: failed program was:" >&5
1167 cat conftest.
$ac_ext >&5
1169 ac_cv_func_alloca_works
=no
1174 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1175 if test $ac_cv_func_alloca_works = yes; then
1176 cat >> confdefs.h
<<\EOF
1177 #define HAVE_ALLOCA 1
1182 if test $ac_cv_func_alloca_works = no
; then
1183 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1184 # that cause trouble. Some versions do not even contain alloca or
1185 # contain a buggy version. If you still want to use their alloca,
1186 # use ar to extract alloca.o from them instead of compiling alloca.c.
1187 ALLOCA
=alloca.
${ac_objext}
1188 cat >> confdefs.h
<<\EOF
1193 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether alloca needs Cray hooks" >&5
1195 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftest.
$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1201 #if defined(CRAY) && ! defined(CRAY2)
1208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1209 egrep "webecray" >/dev
/null
2>&1; then
1220 echo "$ac_t""$ac_cv_os_cray" 1>&6
1221 if test $ac_cv_os_cray = yes; then
1222 for ac_func
in _getb67 GETB67 getb67
; do
1223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1224 echo "configure:1225: checking for $ac_func" >&5
1225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 cat > conftest.
$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1231 /* System header to define __stub macros and hopefully few prototypes,
1232 which can conflict with char $ac_func(); below. */
1234 /* Override any gcc2 internal prototype to avoid an error. */
1235 /* We use char because int might match the return type of a gcc2
1236 builtin and then its argument prototype would still apply. */
1241 /* The GNU C library defines this for functions which it implements
1242 to always fail with ENOSYS. Some functions are actually named
1243 something starting with __ and the normal name is an alias. */
1244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1252 if { (eval echo configure
:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1254 eval "ac_cv_func_$ac_func=yes"
1256 echo "configure: failed program was:" >&5
1257 cat conftest.
$ac_ext >&5
1259 eval "ac_cv_func_$ac_func=no"
1264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1265 echo "$ac_t""yes" 1>&6
1266 cat >> confdefs.h
<<EOF
1267 #define CRAY_STACKSEG_END $ac_func
1272 echo "$ac_t""no" 1>&6
1278 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1279 echo "configure:1280: checking stack direction for C alloca" >&5
1280 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 if test "$cross_compiling" = yes; then
1284 ac_cv_c_stack_direction
=0
1286 cat > conftest.
$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1289 find_stack_direction ()
1291 static char *addr = 0;
1296 return find_stack_direction ();
1299 return (&dummy > addr) ? 1 : -1;
1303 exit (find_stack_direction() < 0);
1306 if { (eval echo configure
:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1308 ac_cv_c_stack_direction
=1
1310 echo "configure: failed program was:" >&5
1311 cat conftest.
$ac_ext >&5
1313 ac_cv_c_stack_direction
=-1
1320 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1321 cat >> confdefs.h
<<EOF
1322 #define STACK_DIRECTION $ac_cv_c_stack_direction
1327 for ac_hdr
in unistd.h
1329 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1331 echo "configure:1332: checking for $ac_hdr" >&5
1332 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 cat > conftest.
$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1340 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1341 { (eval echo configure
:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1342 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1343 if test -z "$ac_err"; then
1345 eval "ac_cv_header_$ac_safe=yes"
1348 echo "configure: failed program was:" >&5
1349 cat conftest.
$ac_ext >&5
1351 eval "ac_cv_header_$ac_safe=no"
1355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1357 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1358 cat >> confdefs.h
<<EOF
1359 #define $ac_tr_hdr 1
1363 echo "$ac_t""no" 1>&6
1367 for ac_func
in getpagesize
1369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1370 echo "configure:1371: checking for $ac_func" >&5
1371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1374 cat > conftest.
$ac_ext <<EOF
1375 #line 1376 "configure"
1376 #include "confdefs.h"
1377 /* System header to define __stub macros and hopefully few prototypes,
1378 which can conflict with char $ac_func(); below. */
1380 /* Override any gcc2 internal prototype to avoid an error. */
1381 /* We use char because int might match the return type of a gcc2
1382 builtin and then its argument prototype would still apply. */
1387 /* The GNU C library defines this for functions which it implements
1388 to always fail with ENOSYS. Some functions are actually named
1389 something starting with __ and the normal name is an alias. */
1390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1398 if { (eval echo configure
:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1400 eval "ac_cv_func_$ac_func=yes"
1402 echo "configure: failed program was:" >&5
1403 cat conftest.
$ac_ext >&5
1405 eval "ac_cv_func_$ac_func=no"
1410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1411 echo "$ac_t""yes" 1>&6
1412 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1413 cat >> confdefs.h
<<EOF
1414 #define $ac_tr_func 1
1418 echo "$ac_t""no" 1>&6
1422 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1423 echo "configure:1424: checking for working mmap" >&5
1424 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 if test "$cross_compiling" = yes; then
1428 ac_cv_func_mmap_fixed_mapped
=no
1430 cat > conftest.
$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1434 /* Thanks to Mike Haertel and Jim Avera for this test.
1435 Here is a matrix of mmap possibilities:
1436 mmap private not fixed
1437 mmap private fixed at somewhere currently unmapped
1438 mmap private fixed at somewhere already mapped
1439 mmap shared not fixed
1440 mmap shared fixed at somewhere currently unmapped
1441 mmap shared fixed at somewhere already mapped
1442 For private mappings, we should verify that changes cannot be read()
1443 back from the file, nor mmap's back from the file at a different
1444 address. (There have been systems where private was not correctly
1445 implemented like the infamous i386 svr4.0, and systems where the
1446 VM page cache was not coherent with the filesystem buffer cache
1447 like early versions of FreeBSD and possibly contemporary NetBSD.)
1448 For shared mappings, we should conversely verify that changes get
1449 propogated back to all the places they're supposed to be.
1451 Grep wants private fixed already mapped.
1452 The main things grep needs to know about mmap are:
1453 * does it exist and is it safe to write into the mmap'd area
1454 * how to use it (BSD variants) */
1455 #include <sys/types.h>
1457 #include <sys/mman.h>
1459 /* This mess was copied from the GNU getpagesize.h. */
1460 #ifndef HAVE_GETPAGESIZE
1461 # ifdef HAVE_UNISTD_H
1462 # include <unistd.h>
1465 /* Assume that all systems that can run configure have sys/param.h. */
1466 # ifndef HAVE_SYS_PARAM_H
1467 # define HAVE_SYS_PARAM_H 1
1470 # ifdef _SC_PAGESIZE
1471 # define getpagesize() sysconf(_SC_PAGESIZE)
1472 # else /* no _SC_PAGESIZE */
1473 # ifdef HAVE_SYS_PARAM_H
1474 # include <sys/param.h>
1475 # ifdef EXEC_PAGESIZE
1476 # define getpagesize() EXEC_PAGESIZE
1477 # else /* no EXEC_PAGESIZE */
1479 # define getpagesize() NBPG * CLSIZE
1482 # endif /* no CLSIZE */
1483 # else /* no NBPG */
1485 # define getpagesize() NBPC
1486 # else /* no NBPC */
1488 # define getpagesize() PAGESIZE
1489 # endif /* PAGESIZE */
1490 # endif /* no NBPC */
1491 # endif /* no NBPG */
1492 # endif /* no EXEC_PAGESIZE */
1493 # else /* no HAVE_SYS_PARAM_H */
1494 # define getpagesize() 8192 /* punt totally */
1495 # endif /* no HAVE_SYS_PARAM_H */
1496 # endif /* no _SC_PAGESIZE */
1498 #endif /* no HAVE_GETPAGESIZE */
1501 extern "C" { void *malloc(unsigned); }
1509 char *data, *data2, *data3;
1513 pagesize = getpagesize();
1516 * First, make a file with some known garbage in it.
1518 data = malloc(pagesize);
1521 for (i = 0; i < pagesize; ++i)
1522 *(data + i) = rand();
1524 fd = creat("conftestmmap", 0600);
1527 if (write(fd, data, pagesize) != pagesize)
1532 * Next, try to mmap the file at a fixed address which
1533 * already has something else allocated at it. If we can,
1534 * also make sure that we see the same garbage.
1536 fd = open("conftestmmap", O_RDWR);
1539 data2 = malloc(2 * pagesize);
1542 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1543 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1544 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1546 for (i = 0; i < pagesize; ++i)
1547 if (*(data + i) != *(data2 + i))
1551 * Finally, make sure that changes to the mapped area
1552 * do not percolate back to the file as seen by read().
1553 * (This is a bug on some variants of i386 svr4.0.)
1555 for (i = 0; i < pagesize; ++i)
1556 *(data2 + i) = *(data2 + i) + 1;
1557 data3 = malloc(pagesize);
1560 if (read(fd, data3, pagesize) != pagesize)
1562 for (i = 0; i < pagesize; ++i)
1563 if (*(data + i) != *(data3 + i))
1566 unlink("conftestmmap");
1571 if { (eval echo configure
:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1573 ac_cv_func_mmap_fixed_mapped
=yes
1575 echo "configure: failed program was:" >&5
1576 cat conftest.
$ac_ext >&5
1578 ac_cv_func_mmap_fixed_mapped
=no
1585 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1586 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1587 cat >> confdefs.h
<<\EOF
1593 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1594 echo "configure:1595: checking for Cygwin environment" >&5
1595 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1598 cat > conftest.
$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1605 #define __CYGWIN__ __CYGWIN32__
1610 if { (eval echo configure
:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1614 echo "configure: failed program was:" >&5
1615 cat conftest.
$ac_ext >&5
1623 echo "$ac_t""$ac_cv_cygwin" 1>&6
1625 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1626 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1627 echo "configure:1628: checking for mingw32 environment" >&5
1628 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 cat > conftest.
$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1639 if { (eval echo configure
:1640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1643 echo "configure: failed program was:" >&5
1644 cat conftest.
$ac_ext >&5
1652 echo "$ac_t""$ac_cv_mingw32" 1>&6
1654 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1656 # autoconf.info says this should be called right after AC_INIT.
1660 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1661 if test -f $ac_dir/install-sh
; then
1663 ac_install_sh
="$ac_aux_dir/install-sh -c"
1665 elif test -f $ac_dir/install.sh
; then
1667 ac_install_sh
="$ac_aux_dir/install.sh -c"
1671 if test -z "$ac_aux_dir"; then
1672 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1674 ac_config_guess
=$ac_aux_dir/config.guess
1675 ac_config_sub
=$ac_aux_dir/config.sub
1676 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1679 # Do some error checking and defaulting for the host and target type.
1681 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1684 # 1. You are not allowed to specify --host, --target, and nonopt at the
1686 # 2. Host defaults to nonopt.
1687 # 3. If nonopt is not specified, then host defaults to the current host,
1688 # as determined by config.guess.
1689 # 4. Target and build default to nonopt.
1690 # 5. If nonopt is not specified, then target and build default to host.
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 case $host---$target---$nonopt in
1695 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1696 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1700 # Make sure we can run config.sub.
1701 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1702 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1705 echo $ac_n "checking host system type""... $ac_c" 1>&6
1706 echo "configure:1707: checking host system type" >&5
1709 case "$host_alias" in
1713 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1714 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1716 *) host_alias
=$nonopt ;;
1720 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1721 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1722 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1723 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1724 echo "$ac_t""$host" 1>&6
1726 echo $ac_n "checking target system type""... $ac_c" 1>&6
1727 echo "configure:1728: checking target system type" >&5
1729 target_alias
=$target
1730 case "$target_alias" in
1733 NONE
) target_alias
=$host_alias ;;
1734 *) target_alias
=$nonopt ;;
1738 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1739 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1740 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1741 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1742 echo "$ac_t""$target" 1>&6
1744 echo $ac_n "checking build system type""... $ac_c" 1>&6
1745 echo "configure:1746: checking build system type" >&5
1748 case "$build_alias" in
1751 NONE
) build_alias
=$host_alias ;;
1752 *) build_alias
=$nonopt ;;
1756 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1757 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1758 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1759 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1760 echo "$ac_t""$build" 1>&6
1762 test "$host_alias" != "$target_alias" &&
1763 test "$program_prefix$program_suffix$program_transform_name" = \
1765 program_prefix
=${target_alias}-
1767 if test "$program_transform_name" = s
,x
,x
,; then
1768 program_transform_name
=
1770 # Double any \ or $. echo might interpret backslashes.
1771 cat <<\EOF_SED
> conftestsed
1772 s
,\\,\\\\,g
; s
,\$
,$$
,g
1774 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1777 test "$program_prefix" != NONE
&&
1778 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1779 # Use a double $ so make ignores it.
1780 test "$program_suffix" != NONE
&&
1781 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1783 # sed with no file args requires a program.
1784 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1786 # Extract the first word of "gcc", so it can be a program name with args.
1787 set dummy gcc
; ac_word
=$2
1788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1789 echo "configure:1790: checking for $ac_word" >&5
1790 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 if test -n "$CC"; then
1794 ac_cv_prog_CC
="$CC" # Let the user override the test.
1796 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1798 for ac_dir
in $ac_dummy; do
1799 test -z "$ac_dir" && ac_dir
=.
1800 if test -f $ac_dir/$ac_word; then
1809 if test -n "$CC"; then
1810 echo "$ac_t""$CC" 1>&6
1812 echo "$ac_t""no" 1>&6
1815 if test -z "$CC"; then
1816 # Extract the first word of "cc", so it can be a program name with args.
1817 set dummy cc
; ac_word
=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC
="$CC" # Let the user override the test.
1826 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1829 for ac_dir
in $ac_dummy; do
1830 test -z "$ac_dir" && ac_dir
=.
1831 if test -f $ac_dir/$ac_word; then
1832 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1833 ac_prog_rejected
=yes
1841 if test $ac_prog_rejected = yes; then
1842 # We found a bogon in the path, so make sure we never use it.
1843 set dummy
$ac_cv_prog_CC
1845 if test $# -gt 0; then
1846 # We chose a different compiler from the bogus one.
1847 # However, it has the same basename, so the bogon will be chosen
1848 # first if we set CC to just the basename; use the full file name.
1850 set dummy
"$ac_dir/$ac_word" "$@"
1858 if test -n "$CC"; then
1859 echo "$ac_t""$CC" 1>&6
1861 echo "$ac_t""no" 1>&6
1864 if test -z "$CC"; then
1865 case "`uname -s`" in
1867 # Extract the first word of "cl", so it can be a program name with args.
1868 set dummy cl
; ac_word
=$2
1869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1870 echo "configure:1871: checking for $ac_word" >&5
1871 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1874 if test -n "$CC"; then
1875 ac_cv_prog_CC
="$CC" # Let the user override the test.
1877 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1879 for ac_dir
in $ac_dummy; do
1880 test -z "$ac_dir" && ac_dir
=.
1881 if test -f $ac_dir/$ac_word; then
1890 if test -n "$CC"; then
1891 echo "$ac_t""$CC" 1>&6
1893 echo "$ac_t""no" 1>&6
1898 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1901 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1902 echo "configure:1903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1905 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1906 ac_cpp
='$CPP $CPPFLAGS'
1907 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1908 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1909 cross_compiling
=$ac_cv_prog_cc_cross
1911 cat > conftest.
$ac_ext << EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1918 if { (eval echo configure
:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1919 ac_cv_prog_cc_works
=yes
1920 # If we can't run a trivial program, we are probably using a cross compiler.
1921 if (.
/conftest
; exit) 2>/dev
/null
; then
1922 ac_cv_prog_cc_cross
=no
1924 ac_cv_prog_cc_cross
=yes
1927 echo "configure: failed program was:" >&5
1928 cat conftest.
$ac_ext >&5
1929 ac_cv_prog_cc_works
=no
1933 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1934 ac_cpp
='$CPP $CPPFLAGS'
1935 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1936 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1937 cross_compiling
=$ac_cv_prog_cc_cross
1939 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1940 if test $ac_cv_prog_cc_works = no
; then
1941 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1943 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1944 echo "configure:1945: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1945 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1946 cross_compiling
=$ac_cv_prog_cc_cross
1948 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1949 echo "configure:1950: checking whether we are using GNU C" >&5
1950 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 cat > conftest.c
<<EOF
1958 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1965 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1967 if test $ac_cv_prog_gcc = yes; then
1973 ac_test_CFLAGS
="${CFLAGS+set}"
1974 ac_save_CFLAGS
="$CFLAGS"
1976 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1977 echo "configure:1978: checking whether ${CC-cc} accepts -g" >&5
1978 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 echo 'void f(){}' > conftest.c
1982 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1991 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1992 if test "$ac_test_CFLAGS" = set; then
1993 CFLAGS
="$ac_save_CFLAGS"
1994 elif test $ac_cv_prog_cc_g = yes; then
1995 if test "$GCC" = yes; then
2001 if test "$GCC" = yes; then
2008 # Find a good install program. We prefer a C program (faster),
2009 # so one script is as good as another. But avoid the broken or
2010 # incompatible versions:
2011 # SysV /etc/install, /usr/sbin/install
2012 # SunOS /usr/etc/install
2013 # IRIX /sbin/install
2015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2018 # ./install, which can be erroneously created by make from ./install.sh.
2019 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2020 echo "configure:2021: checking for a BSD compatible install" >&5
2021 if test -z "$INSTALL"; then
2022 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2025 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2026 for ac_dir
in $PATH; do
2027 # Account for people who put trailing slashes in PATH elements.
2029 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2031 # OSF1 and SCO ODT 3.0 have their own names for install.
2032 # Don't use installbsd from OSF since it installs stuff as root
2034 for ac_prog
in ginstall scoinst
install; do
2035 if test -f $ac_dir/$ac_prog; then
2036 if test $ac_prog = install &&
2037 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2038 # AIX install. It has an incompatible calling convention.
2041 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2052 if test "${ac_cv_path_install+set}" = set; then
2053 INSTALL
="$ac_cv_path_install"
2055 # As a last resort, use the slow shell script. We don't cache a
2056 # path for INSTALL within a source directory, because that will
2057 # break other packages using the cache if that directory is
2058 # removed, or if the path is relative.
2059 INSTALL
="$ac_install_sh"
2062 echo "$ac_t""$INSTALL" 1>&6
2064 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2065 # It thinks the first close brace ends the variable substitution.
2066 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2068 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2070 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2073 # Put a plausible default for CC_FOR_BUILD in Makefile.
2074 if test "x$cross_compiling" = "xno"; then
2075 CC_FOR_BUILD
='$(CC)'
2085 # Extract the first word of "ranlib", so it can be a program name with args.
2086 set dummy ranlib
; ac_word
=$2
2087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2088 echo "configure:2089: checking for $ac_word" >&5
2089 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 if test -n "$RANLIB"; then
2093 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2095 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2097 for ac_dir
in $ac_dummy; do
2098 test -z "$ac_dir" && ac_dir
=.
2099 if test -f $ac_dir/$ac_word; then
2100 ac_cv_prog_RANLIB
="ranlib"
2105 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2108 RANLIB
="$ac_cv_prog_RANLIB"
2109 if test -n "$RANLIB"; then
2110 echo "$ac_t""$RANLIB" 1>&6
2112 echo "$ac_t""no" 1>&6
2118 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2119 unistd.h values.h sys
/param.h
2121 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_hdr" >&5
2124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.
$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2132 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2133 { (eval echo configure
:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2134 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2135 if test -z "$ac_err"; then
2137 eval "ac_cv_header_$ac_safe=yes"
2140 echo "configure: failed program was:" >&5
2141 cat conftest.
$ac_ext >&5
2143 eval "ac_cv_header_$ac_safe=no"
2147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2148 echo "$ac_t""yes" 1>&6
2149 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2150 cat >> confdefs.h
<<EOF
2151 #define $ac_tr_hdr 1
2155 echo "$ac_t""no" 1>&6
2159 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2160 __argz_count __argz_stringify __argz_next
2162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2163 echo "configure:2164: checking for $ac_func" >&5
2164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2167 cat > conftest.
$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2170 /* System header to define __stub macros and hopefully few prototypes,
2171 which can conflict with char $ac_func(); below. */
2173 /* Override any gcc2 internal prototype to avoid an error. */
2174 /* We use char because int might match the return type of a gcc2
2175 builtin and then its argument prototype would still apply. */
2180 /* The GNU C library defines this for functions which it implements
2181 to always fail with ENOSYS. Some functions are actually named
2182 something starting with __ and the normal name is an alias. */
2183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2191 if { (eval echo configure
:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2193 eval "ac_cv_func_$ac_func=yes"
2195 echo "configure: failed program was:" >&5
2196 cat conftest.
$ac_ext >&5
2198 eval "ac_cv_func_$ac_func=no"
2203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2204 echo "$ac_t""yes" 1>&6
2205 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2206 cat >> confdefs.h
<<EOF
2207 #define $ac_tr_func 1
2211 echo "$ac_t""no" 1>&6
2216 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2217 for ac_func
in stpcpy
2219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2220 echo "configure:2221: checking for $ac_func" >&5
2221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 cat > conftest.
$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2227 /* System header to define __stub macros and hopefully few prototypes,
2228 which can conflict with char $ac_func(); below. */
2230 /* Override any gcc2 internal prototype to avoid an error. */
2231 /* We use char because int might match the return type of a gcc2
2232 builtin and then its argument prototype would still apply. */
2237 /* The GNU C library defines this for functions which it implements
2238 to always fail with ENOSYS. Some functions are actually named
2239 something starting with __ and the normal name is an alias. */
2240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2248 if { (eval echo configure
:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2250 eval "ac_cv_func_$ac_func=yes"
2252 echo "configure: failed program was:" >&5
2253 cat conftest.
$ac_ext >&5
2255 eval "ac_cv_func_$ac_func=no"
2260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2263 cat >> confdefs.h
<<EOF
2264 #define $ac_tr_func 1
2268 echo "$ac_t""no" 1>&6
2273 if test "${ac_cv_func_stpcpy}" = "yes"; then
2274 cat >> confdefs.h
<<\EOF
2275 #define HAVE_STPCPY 1
2280 if test $ac_cv_header_locale_h = yes; then
2281 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2282 echo "configure:2283: checking for LC_MESSAGES" >&5
2283 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 cat > conftest.
$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2294 if { (eval echo configure
:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2296 am_cv_val_LC_MESSAGES
=yes
2298 echo "configure: failed program was:" >&5
2299 cat conftest.
$ac_ext >&5
2301 am_cv_val_LC_MESSAGES
=no
2306 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2307 if test $am_cv_val_LC_MESSAGES = yes; then
2308 cat >> confdefs.h
<<\EOF
2309 #define HAVE_LC_MESSAGES 1
2314 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2315 echo "configure:2316: checking whether NLS is requested" >&5
2316 # Check whether --enable-nls or --disable-nls was given.
2317 if test "${enable_nls+set}" = set; then
2318 enableval
="$enable_nls"
2324 echo "$ac_t""$USE_NLS" 1>&6
2327 USE_INCLUDED_LIBINTL
=no
2329 if test "$USE_NLS" = "yes"; then
2330 cat >> confdefs.h
<<\EOF
2331 #define ENABLE_NLS 1
2334 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2335 echo "configure:2336: checking whether included gettext is requested" >&5
2336 # Check whether --with-included-gettext or --without-included-gettext was given.
2337 if test "${with_included_gettext+set}" = set; then
2338 withval
="$with_included_gettext"
2339 nls_cv_force_use_gnu_gettext
=$withval
2341 nls_cv_force_use_gnu_gettext
=no
2344 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2346 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2347 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2349 nls_cv_header_libgt
=
2352 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2353 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2354 echo "configure:2355: checking for libintl.h" >&5
2355 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 cat > conftest.
$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2361 #include <libintl.h>
2363 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2364 { (eval echo configure
:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2365 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2366 if test -z "$ac_err"; then
2368 eval "ac_cv_header_$ac_safe=yes"
2371 echo "configure: failed program was:" >&5
2372 cat conftest.
$ac_ext >&5
2374 eval "ac_cv_header_$ac_safe=no"
2378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2381 echo "configure:2382: checking for gettext in libc" >&5
2382 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 cat > conftest.
$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 #include <libintl.h>
2390 return (int) gettext ("")
2393 if { (eval echo configure
:2394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2395 gt_cv_func_gettext_libc
=yes
2397 echo "configure: failed program was:" >&5
2398 cat conftest.
$ac_ext >&5
2400 gt_cv_func_gettext_libc
=no
2405 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2407 if test "$gt_cv_func_gettext_libc" != "yes"; then
2408 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2409 echo "configure:2410: checking for bindtextdomain in -lintl" >&5
2410 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 ac_save_LIBS
="$LIBS"
2416 cat > conftest.
$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 /* Override any gcc2 internal prototype to avoid an error. */
2420 /* We use char because int might match the return type of a gcc2
2421 builtin and then its argument prototype would still apply. */
2422 char bindtextdomain();
2428 if { (eval echo configure
:2429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2430 eval "ac_cv_lib_$ac_lib_var=yes"
2432 echo "configure: failed program was:" >&5
2433 cat conftest.
$ac_ext >&5
2435 eval "ac_cv_lib_$ac_lib_var=no"
2438 LIBS
="$ac_save_LIBS"
2441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2442 echo "$ac_t""yes" 1>&6
2443 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2444 echo "configure:2445: checking for gettext in libintl" >&5
2445 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 cat > conftest.
$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2453 return (int) gettext ("")
2456 if { (eval echo configure
:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2458 gt_cv_func_gettext_libintl
=yes
2460 echo "configure: failed program was:" >&5
2461 cat conftest.
$ac_ext >&5
2463 gt_cv_func_gettext_libintl
=no
2468 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2470 echo "$ac_t""no" 1>&6
2475 if test "$gt_cv_func_gettext_libc" = "yes" \
2476 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2477 cat >> confdefs.h
<<\EOF
2478 #define HAVE_GETTEXT 1
2481 # Extract the first word of "msgfmt", so it can be a program name with args.
2482 set dummy msgfmt
; ac_word
=$2
2483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2484 echo "configure:2485: checking for $ac_word" >&5
2485 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2490 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2493 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2494 for ac_dir
in $PATH; do
2495 test -z "$ac_dir" && ac_dir
=.
2496 if test -f $ac_dir/$ac_word; then
2497 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2498 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2504 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2508 MSGFMT
="$ac_cv_path_MSGFMT"
2509 if test -n "$MSGFMT"; then
2510 echo "$ac_t""$MSGFMT" 1>&6
2512 echo "$ac_t""no" 1>&6
2514 if test "$MSGFMT" != "no"; then
2515 for ac_func
in dcgettext
2517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_func" >&5
2519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 cat > conftest.
$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2525 /* System header to define __stub macros and hopefully few prototypes,
2526 which can conflict with char $ac_func(); below. */
2528 /* Override any gcc2 internal prototype to avoid an error. */
2529 /* We use char because int might match the return type of a gcc2
2530 builtin and then its argument prototype would still apply. */
2535 /* The GNU C library defines this for functions which it implements
2536 to always fail with ENOSYS. Some functions are actually named
2537 something starting with __ and the normal name is an alias. */
2538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2546 if { (eval echo configure
:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2548 eval "ac_cv_func_$ac_func=yes"
2550 echo "configure: failed program was:" >&5
2551 cat conftest.
$ac_ext >&5
2553 eval "ac_cv_func_$ac_func=no"
2558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2559 echo "$ac_t""yes" 1>&6
2560 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2561 cat >> confdefs.h
<<EOF
2562 #define $ac_tr_func 1
2566 echo "$ac_t""no" 1>&6
2570 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2571 set dummy gmsgfmt
; ac_word
=$2
2572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2573 echo "configure:2574: checking for $ac_word" >&5
2574 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2579 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2582 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2585 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2587 for ac_dir
in $ac_dummy; do
2588 test -z "$ac_dir" && ac_dir
=.
2589 if test -f $ac_dir/$ac_word; then
2590 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2595 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2599 GMSGFMT
="$ac_cv_path_GMSGFMT"
2600 if test -n "$GMSGFMT"; then
2601 echo "$ac_t""$GMSGFMT" 1>&6
2603 echo "$ac_t""no" 1>&6
2606 # Extract the first word of "xgettext", so it can be a program name with args.
2607 set dummy xgettext
; ac_word
=$2
2608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2609 echo "configure:2610: checking for $ac_word" >&5
2610 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2615 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2618 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2619 for ac_dir
in $PATH; do
2620 test -z "$ac_dir" && ac_dir
=.
2621 if test -f $ac_dir/$ac_word; then
2622 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2623 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2629 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2633 XGETTEXT
="$ac_cv_path_XGETTEXT"
2634 if test -n "$XGETTEXT"; then
2635 echo "$ac_t""$XGETTEXT" 1>&6
2637 echo "$ac_t""no" 1>&6
2640 cat > conftest.
$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2645 extern int _nl_msg_cat_cntr;
2646 return _nl_msg_cat_cntr
2649 if { (eval echo configure
:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2654 echo "configure: failed program was:" >&5
2655 cat conftest.
$ac_ext >&5
2666 echo "$ac_t""no" 1>&6
2671 if test "$CATOBJEXT" = "NONE"; then
2672 nls_cv_use_gnu_gettext
=yes
2676 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2677 INTLOBJS
="\$(GETTOBJS)"
2678 # Extract the first word of "msgfmt", so it can be a program name with args.
2679 set dummy msgfmt
; ac_word
=$2
2680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2681 echo "configure:2682: checking for $ac_word" >&5
2682 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2687 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2690 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2691 for ac_dir
in $PATH; do
2692 test -z "$ac_dir" && ac_dir
=.
2693 if test -f $ac_dir/$ac_word; then
2694 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2695 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2701 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2705 MSGFMT
="$ac_cv_path_MSGFMT"
2706 if test -n "$MSGFMT"; then
2707 echo "$ac_t""$MSGFMT" 1>&6
2709 echo "$ac_t""no" 1>&6
2712 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2713 set dummy gmsgfmt
; ac_word
=$2
2714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2715 echo "configure:2716: checking for $ac_word" >&5
2716 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2721 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2724 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2727 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2729 for ac_dir
in $ac_dummy; do
2730 test -z "$ac_dir" && ac_dir
=.
2731 if test -f $ac_dir/$ac_word; then
2732 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2737 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2741 GMSGFMT
="$ac_cv_path_GMSGFMT"
2742 if test -n "$GMSGFMT"; then
2743 echo "$ac_t""$GMSGFMT" 1>&6
2745 echo "$ac_t""no" 1>&6
2748 # Extract the first word of "xgettext", so it can be a program name with args.
2749 set dummy xgettext
; ac_word
=$2
2750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2751 echo "configure:2752: checking for $ac_word" >&5
2752 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2757 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2760 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2761 for ac_dir
in $PATH; do
2762 test -z "$ac_dir" && ac_dir
=.
2763 if test -f $ac_dir/$ac_word; then
2764 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2765 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2771 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2775 XGETTEXT
="$ac_cv_path_XGETTEXT"
2776 if test -n "$XGETTEXT"; then
2777 echo "$ac_t""$XGETTEXT" 1>&6
2779 echo "$ac_t""no" 1>&6
2783 USE_INCLUDED_LIBINTL
=yes
2787 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2789 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2790 nls_cv_header_intl
=libintl.h
2791 nls_cv_header_libgt
=libgettext.h
2794 if test "$XGETTEXT" != ":"; then
2795 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2798 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2803 # We need to process the po/ directory.
2807 nls_cv_header_intl
=libintl.h
2808 nls_cv_header_libgt
=libgettext.h
2811 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2812 # because some of the sources are only built for this goal.
2813 if test "$PACKAGE" = gettext; then
2815 USE_INCLUDED_LIBINTL
=yes
2818 for lang
in $ALL_LINGUAS; do
2819 GMOFILES
="$GMOFILES $lang.gmo"
2820 POFILES
="$POFILES $lang.po"
2836 if test "x$CATOBJEXT" != "x"; then
2837 if test "x$ALL_LINGUAS" = "x"; then
2840 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2841 echo "configure:2842: checking for catalogs to be installed" >&5
2843 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2844 case "$ALL_LINGUAS" in
2845 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2848 LINGUAS
=$NEW_LINGUAS
2849 echo "$ac_t""$LINGUAS" 1>&6
2852 if test -n "$LINGUAS"; then
2853 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2857 if test $ac_cv_header_locale_h = yes; then
2858 INCLUDE_LOCALE_H
="#include <locale.h>"
2861 /* The system does not provide the header <locale.h>. Take care yourself. */"
2865 if test -f $srcdir/po2tbl.
sed.
in; then
2866 if test "$CATOBJEXT" = ".cat"; then
2867 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2868 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2869 echo "configure:2870: checking for linux/version.h" >&5
2870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 cat > conftest.
$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 #include <linux/version.h>
2878 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2879 { (eval echo configure
:2880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2880 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2881 if test -z "$ac_err"; then
2883 eval "ac_cv_header_$ac_safe=yes"
2886 echo "configure: failed program was:" >&5
2887 cat conftest.
$ac_ext >&5
2889 eval "ac_cv_header_$ac_safe=no"
2893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2894 echo "$ac_t""yes" 1>&6
2897 echo "$ac_t""no" 1>&6
2902 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2904 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2905 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2908 if test "$PACKAGE" = "gettext"; then
2918 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2924 if test -d $srcdir/po
; then
2925 test -d po || mkdir po
2926 if test "x$srcdir" != "x."; then
2927 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2928 posrcprefix
="$srcdir/"
2930 posrcprefix
="../$srcdir/"
2936 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2937 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2941 # Check for common headers.
2942 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2943 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2944 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2946 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2947 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2948 echo "configure:2949: checking for $ac_hdr" >&5
2949 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 cat > conftest.
$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2957 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2958 { (eval echo configure
:2959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2959 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2960 if test -z "$ac_err"; then
2962 eval "ac_cv_header_$ac_safe=yes"
2965 echo "configure: failed program was:" >&5
2966 cat conftest.
$ac_ext >&5
2968 eval "ac_cv_header_$ac_safe=no"
2972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2973 echo "$ac_t""yes" 1>&6
2974 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2975 cat >> confdefs.h
<<EOF
2976 #define $ac_tr_hdr 1
2980 echo "$ac_t""no" 1>&6
2984 for ac_hdr
in sys
/time.h sys
/resource.h
2986 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2988 echo "configure:2989: checking for $ac_hdr" >&5
2989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 cat > conftest.
$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2997 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2998 { (eval echo configure
:2999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2999 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3000 if test -z "$ac_err"; then
3002 eval "ac_cv_header_$ac_safe=yes"
3005 echo "configure: failed program was:" >&5
3006 cat conftest.
$ac_ext >&5
3008 eval "ac_cv_header_$ac_safe=no"
3012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3014 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3015 cat >> confdefs.h
<<EOF
3016 #define $ac_tr_hdr 1
3020 echo "$ac_t""no" 1>&6
3024 for ac_hdr
in fcntl.h fpu_control.h
3026 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_hdr" >&5
3029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 cat > conftest.
$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3037 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3038 { (eval echo configure
:3039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3039 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3040 if test -z "$ac_err"; then
3042 eval "ac_cv_header_$ac_safe=yes"
3045 echo "configure: failed program was:" >&5
3046 cat conftest.
$ac_ext >&5
3048 eval "ac_cv_header_$ac_safe=no"
3052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3053 echo "$ac_t""yes" 1>&6
3054 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3055 cat >> confdefs.h
<<EOF
3056 #define $ac_tr_hdr 1
3060 echo "$ac_t""no" 1>&6
3064 for ac_hdr
in dlfcn.h errno.h sys
/stat.h
3066 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3068 echo "configure:3069: checking for $ac_hdr" >&5
3069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3072 cat > conftest.
$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3077 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3078 { (eval echo configure
:3079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3079 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3080 if test -z "$ac_err"; then
3082 eval "ac_cv_header_$ac_safe=yes"
3085 echo "configure: failed program was:" >&5
3086 cat conftest.
$ac_ext >&5
3088 eval "ac_cv_header_$ac_safe=no"
3092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3093 echo "$ac_t""yes" 1>&6
3094 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3095 cat >> confdefs.h
<<EOF
3096 #define $ac_tr_hdr 1
3100 echo "$ac_t""no" 1>&6
3104 for ac_func
in getrusage
time sigaction __setfpucw
3106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3107 echo "configure:3108: checking for $ac_func" >&5
3108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 cat > conftest.
$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 /* System header to define __stub macros and hopefully few prototypes,
3115 which can conflict with char $ac_func(); below. */
3117 /* Override any gcc2 internal prototype to avoid an error. */
3118 /* We use char because int might match the return type of a gcc2
3119 builtin and then its argument prototype would still apply. */
3124 /* The GNU C library defines this for functions which it implements
3125 to always fail with ENOSYS. Some functions are actually named
3126 something starting with __ and the normal name is an alias. */
3127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3135 if { (eval echo configure
:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3137 eval "ac_cv_func_$ac_func=yes"
3139 echo "configure: failed program was:" >&5
3140 cat conftest.
$ac_ext >&5
3142 eval "ac_cv_func_$ac_func=no"
3147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3148 echo "$ac_t""yes" 1>&6
3149 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3150 cat >> confdefs.h
<<EOF
3151 #define $ac_tr_func 1
3155 echo "$ac_t""no" 1>&6
3160 # Check for socket libraries
3161 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3162 echo "configure:3163: checking for bind in -lsocket" >&5
3163 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 ac_save_LIBS
="$LIBS"
3168 LIBS
="-lsocket $LIBS"
3169 cat > conftest.
$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3172 /* Override any gcc2 internal prototype to avoid an error. */
3173 /* We use char because int might match the return type of a gcc2
3174 builtin and then its argument prototype would still apply. */
3181 if { (eval echo configure
:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3183 eval "ac_cv_lib_$ac_lib_var=yes"
3185 echo "configure: failed program was:" >&5
3186 cat conftest.
$ac_ext >&5
3188 eval "ac_cv_lib_$ac_lib_var=no"
3191 LIBS
="$ac_save_LIBS"
3194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3195 echo "$ac_t""yes" 1>&6
3196 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3197 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3198 cat >> confdefs.h
<<EOF
3199 #define $ac_tr_lib 1
3202 LIBS
="-lsocket $LIBS"
3205 echo "$ac_t""no" 1>&6
3208 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3209 echo "configure:3210: checking for gethostbyname in -lnsl" >&5
3210 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3214 ac_save_LIBS
="$LIBS"
3216 cat > conftest.
$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219 /* Override any gcc2 internal prototype to avoid an error. */
3220 /* We use char because int might match the return type of a gcc2
3221 builtin and then its argument prototype would still apply. */
3222 char gethostbyname();
3228 if { (eval echo configure
:3229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3230 eval "ac_cv_lib_$ac_lib_var=yes"
3232 echo "configure: failed program was:" >&5
3233 cat conftest.
$ac_ext >&5
3235 eval "ac_cv_lib_$ac_lib_var=no"
3238 LIBS
="$ac_save_LIBS"
3241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3242 echo "$ac_t""yes" 1>&6
3243 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3244 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3245 cat >> confdefs.h
<<EOF
3246 #define $ac_tr_lib 1
3252 echo "$ac_t""no" 1>&6
3256 .
${srcdir}/..
/..
/bfd
/configure.
host
3260 USE_MAINTAINER_MODE
=no
3261 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3262 if test "${enable_maintainer_mode+set}" = set; then
3263 enableval
="$enable_maintainer_mode"
3264 case "${enableval}" in
3265 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3267 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3269 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3270 echo "Setting maintainer mode" 6>&1
3278 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3279 if test "${enable_sim_bswap+set}" = set; then
3280 enableval
="$enable_sim_bswap"
3281 case "${enableval}" in
3282 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3283 no
) sim_bswap
="-DWITH_BSWAP=0";;
3284 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3286 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3287 echo "Setting bswap flags = $sim_bswap" 6>&1
3295 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3296 if test "${enable_sim_cflags+set}" = set; then
3297 enableval
="$enable_sim_cflags"
3298 case "${enableval}" in
3299 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3300 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3302 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3304 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3305 echo "Setting sim cflags = $sim_cflags" 6>&1
3313 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3314 if test "${enable_sim_debug+set}" = set; then
3315 enableval
="$enable_sim_debug"
3316 case "${enableval}" in
3317 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3318 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3319 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3321 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3322 echo "Setting sim debug = $sim_debug" 6>&1
3330 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3331 if test "${enable_sim_stdio+set}" = set; then
3332 enableval
="$enable_sim_stdio"
3333 case "${enableval}" in
3334 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3335 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3336 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3338 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3339 echo "Setting stdio flags = $sim_stdio" 6>&1
3347 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3348 if test "${enable_sim_trace+set}" = set; then
3349 enableval
="$enable_sim_trace"
3350 case "${enableval}" in
3351 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3352 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3354 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3357 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3358 if test x
"$sim_trace" = x
; then
3359 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3361 sim_trace
="${sim_trace}|TRACE_$x"
3364 sim_trace
="$sim_trace)'" ;;
3366 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3367 echo "Setting sim trace = $sim_trace" 6>&1
3375 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3376 if test "${enable_sim_profile+set}" = set; then
3377 enableval
="$enable_sim_profile"
3378 case "${enableval}" in
3379 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3380 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3382 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3385 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3386 if test x
"$sim_profile" = x
; then
3387 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3389 sim_profile
="${sim_profile}|PROFILE_$x"
3392 sim_profile
="$sim_profile)'" ;;
3394 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3395 echo "Setting sim profile = $sim_profile" 6>&1
3403 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3404 echo "configure:3405: checking return type of signal handlers" >&5
3405 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 cat > conftest.
$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 #include <sys/types.h>
3417 extern "C" void (*signal (int, void (*)(int)))(int);
3419 void (*signal ()) ();
3426 if { (eval echo configure
:3427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3428 ac_cv_type_signal
=void
3430 echo "configure: failed program was:" >&5
3431 cat conftest.
$ac_ext >&5
3433 ac_cv_type_signal
=int
3438 echo "$ac_t""$ac_cv_type_signal" 1>&6
3439 cat >> confdefs.h
<<EOF
3440 #define RETSIGTYPE $ac_cv_type_signal
3447 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3448 echo "configure:3449: checking for executable suffix" >&5
3449 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3456 echo 'int main () { return 0; }' > conftest.
$ac_ext
3458 if { (eval echo configure
:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3459 for file in conftest.
*; do
3461 *.c |
*.o |
*.obj
) ;;
3462 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3466 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3469 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3474 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3475 echo "$ac_t""${ac_cv_exeext}" 1>&6
3482 sim_link_links
=tconfig.h
3483 if test -f ${srcdir}/tconfig.
in
3485 sim_link_files
=tconfig.
in
3487 sim_link_files
=..
/common
/tconfig.
in
3490 # targ-vals.def points to the libc macro description file.
3492 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3494 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3495 sim_link_links
="${sim_link_links} targ-vals.def"
3500 wire_endian
="LITTLE_ENDIAN"
3502 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3503 if test "${enable_sim_endian+set}" = set; then
3504 enableval
="$enable_sim_endian"
3505 case "${enableval}" in
3506 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3507 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3508 yes) if test x
"$wire_endian" != x
; then
3509 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3511 if test x
"$default_endian" != x
; then
3512 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3514 echo "No hard-wired endian for target $target" 1>&6
3515 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
3518 no
) if test x
"$default_endian" != x
; then
3519 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3521 if test x
"$wire_endian" != x
; then
3522 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3524 echo "No default endian for target $target" 1>&6
3525 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3528 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
3530 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
3531 echo "Setting endian flags = $sim_endian" 6>&1
3534 if test x
"$default_endian" != x
; then
3535 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3537 if test x
"$wire_endian" != x
; then
3538 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3545 wire_alignment
="NONSTRICT_ALIGNMENT"
3546 default_alignment
=""
3548 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3549 if test "${enable_sim_alignment+set}" = set; then
3550 enableval
="$enable_sim_alignment"
3551 case "${enableval}" in
3552 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3553 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3554 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3555 yes) if test x
"$wire_alignment" != x
; then
3556 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3558 if test x
"$default_alignment" != x
; then
3559 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3561 echo "No hard-wired alignment for target $target" 1>&6
3562 sim_alignment
="-DWITH_ALIGNMENT=0"
3565 no
) if test x
"$default_alignment" != x
; then
3566 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3568 if test x
"$wire_alignment" != x
; then
3569 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3571 echo "No default alignment for target $target" 1>&6
3572 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3575 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3577 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3578 echo "Setting alignment flags = $sim_alignment" 6>&1
3581 if test x
"$default_alignment" != x
; then
3582 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3584 if test x
"$wire_alignment" != x
; then
3585 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3593 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3594 if test "${enable_sim_hostendian+set}" = set; then
3595 enableval
="$enable_sim_hostendian"
3596 case "${enableval}" in
3597 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3598 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3599 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3600 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3602 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3603 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3607 if test "x$cross_compiling" = "xno"; then
3608 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3609 echo "configure:3610: checking whether byte ordering is bigendian" >&5
3610 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3613 ac_cv_c_bigendian
=unknown
3614 # See if sys/param.h defines the BYTE_ORDER macro.
3615 cat > conftest.
$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 #include <sys/types.h>
3619 #include <sys/param.h>
3622 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3627 if { (eval echo configure
:3628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629 # It does; now see whether it defined to BIG_ENDIAN or not.
3630 cat > conftest.
$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <sys/types.h>
3634 #include <sys/param.h>
3637 #if BYTE_ORDER != BIG_ENDIAN
3642 if { (eval echo configure
:3643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3644 ac_cv_c_bigendian
=yes
3646 echo "configure: failed program was:" >&5
3647 cat conftest.
$ac_ext >&5
3649 ac_cv_c_bigendian
=no
3653 echo "configure: failed program was:" >&5
3654 cat conftest.
$ac_ext >&5
3657 if test $ac_cv_c_bigendian = unknown
; then
3658 if test "$cross_compiling" = yes; then
3659 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3661 cat > conftest.
$ac_ext <<EOF
3662 #line 3663 "configure"
3663 #include "confdefs.h"
3665 /* Are we little or big endian? From Harbison&Steele. */
3669 char c[sizeof (long)];
3672 exit (u.c[sizeof (long) - 1] == 1);
3675 if { (eval echo configure
:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3677 ac_cv_c_bigendian
=no
3679 echo "configure: failed program was:" >&5
3680 cat conftest.
$ac_ext >&5
3682 ac_cv_c_bigendian
=yes
3690 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3691 if test $ac_cv_c_bigendian = yes; then
3692 cat >> confdefs.h
<<\EOF
3693 #define WORDS_BIGENDIAN 1
3698 if test $ac_cv_c_bigendian = yes; then
3699 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3701 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3704 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3709 default_sim_scache
="1024"
3710 # Check whether --enable-sim-scache or --disable-sim-scache was given.
3711 if test "${enable_sim_scache+set}" = set; then
3712 enableval
="$enable_sim_scache"
3713 case "${enableval}" in
3714 yes) sim_scache
="-DWITH_SCACHE=${default_sim_scache}";;
3715 no
) sim_scache
="-DWITH_SCACHE=0" ;;
3716 [0-9]*) sim_cache
=${enableval};;
3717 *) { echo "configure: error: "Bad value
$enableval passed to
--enable-sim-scache"" 1>&2; exit 1; };
3720 if test x
"$silent" != x
"yes" && test x
"$sim_scache" != x
""; then
3721 echo "Setting scache size = $sim_scache" 6>&1
3724 sim_scache
="-DWITH_SCACHE=${default_sim_scache}"
3729 default_sim_default_model
="i960KA"
3730 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
3731 if test "${enable_sim_default_model+set}" = set; then
3732 enableval
="$enable_sim_default_model"
3733 case "${enableval}" in
3734 yes|no
) { echo "configure: error: "Missing argument to
--enable-sim-default-model"" 1>&2; exit 1; };;
3735 *) sim_default_model
="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
3737 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
3738 echo "Setting default model = $sim_default_model" 6>&1
3741 sim_default_model
="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
3746 # Check whether --enable-sim-environment or --disable-sim-environment was given.
3747 if test "${enable_sim_environment+set}" = set; then
3748 enableval
="$enable_sim_environment"
3749 case "${enableval}" in
3750 all | ALL
) sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
3751 user | USER
) sim_environment
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
3752 virtual | VIRTUAL
) sim_environment
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
3753 operating | OPERATING
) sim_environment
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
3754 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-environment"" 1>&2; exit 1; };
3755 sim_environment
="";;
3757 if test x
"$silent" != x
"yes" && test x
"$sim_environment" != x
""; then
3758 echo "Setting sim environment = $sim_environment" 6>&1
3761 sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
3766 cgen
=..
/..
/cgen
/cgen
3767 cgendir
='$(srcdir)/../../cgen'
3768 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
3769 if test "${enable_cgen_maint+set}" = set; then
3770 enableval
="$enable_cgen_maint"
3771 case "${enableval}" in
3772 yes) cgen_maint
=yes ;;
3773 no
) cgen_maint
=no
;;
3775 # argument is cgen install directory (not implemented yet).
3776 # Having a `share' directory might be more appropriate for the .scm,
3778 cgendir
=${cgen_maint}/lib
/cgen
3779 cgen
=${cgendir}/bin
/cgen
3783 if test x
${cgen_maint} != xno
; then
3796 cat > confcache
<<\EOF
3797 # This file is a shell script that caches the results of configure
3798 # tests run on this system so they can be shared between configure
3799 # scripts and configure runs. It is not useful on other systems.
3800 # If it contains results you don't want to keep, you may remove or edit it.
3802 # By default, configure uses ./config.cache as the cache file,
3803 # creating it if it does not exist already. You can give configure
3804 # the --cache-file=FILE option to use a different cache file; that is
3805 # what configure does when it calls configure scripts in
3806 # subdirectories, so they share the cache.
3807 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3808 # config.status only pays attention to the cache file if you give it the
3809 # --recheck option to rerun configure.
3812 # The following way of writing the cache mishandles newlines in values,
3813 # but we know of no workaround that is simple, portable, and efficient.
3814 # So, don't put newlines in cache variables' values.
3815 # Ultrix sh set writes to stderr and can't be redirected directly,
3816 # and sets the high bit in the cache file unless we assign to the vars.
3818 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3820 # `set' does not quote correctly, so add quotes (double-quote substitution
3821 # turns \\\\ into \\, and sed turns \\ into \).
3823 -e "s/'/'\\\\''/g" \
3824 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3827 # `set' quotes correctly as required by POSIX, so do not add quotes.
3828 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3831 if cmp -s $cache_file confcache
; then
3834 if test -w $cache_file; then
3835 echo "updating cache $cache_file"
3836 cat confcache
> $cache_file
3838 echo "not updating unwritable cache $cache_file"
3843 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3845 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3846 # Let make expand exec_prefix.
3847 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3849 # Any assignment to VPATH causes Sun make to only execute
3850 # the first set of double-colon rules, so remove it if not needed.
3851 # If there is a colon in the path, we need to keep it.
3852 if test "x$srcdir" = x.
; then
3853 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3856 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3858 DEFS
=-DHAVE_CONFIG_H
3860 # Without the "./", some shells look in PATH for config.status.
3861 : ${CONFIG_STATUS=./config.status}
3863 echo creating
$CONFIG_STATUS
3864 rm -f $CONFIG_STATUS
3865 cat > $CONFIG_STATUS <<EOF
3867 # Generated automatically by configure.
3868 # Run this file to recreate the current configuration.
3869 # This directory was configured as follows,
3870 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3872 # $0 $ac_configure_args
3874 # Compiler output produced by configure, useful for debugging
3875 # configure, is in ./config.log if it exists.
3877 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3880 case "\$ac_option" in
3881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3882 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3883 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3884 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3885 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3887 -help | --help | --hel | --he | --h)
3888 echo "\$ac_cs_usage"; exit 0 ;;
3889 *) echo "\$ac_cs_usage"; exit 1 ;;
3893 ac_given_srcdir=$srcdir
3894 ac_given_INSTALL="$INSTALL"
3896 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
3898 cat >> $CONFIG_STATUS <<EOF
3900 # Protect against being on the right side of a sed subst in config.status.
3901 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3902 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3905 s%@sim_environment@%$sim_environment%g
3906 s%@sim_alignment@%$sim_alignment%g
3907 s%@sim_assert@%$sim_assert%g
3908 s%@sim_bitsize@%$sim_bitsize%g
3909 s%@sim_endian@%$sim_endian%g
3910 s%@sim_hostendian@%$sim_hostendian%g
3911 s%@sim_float@%$sim_float%g
3912 s%@sim_scache@%$sim_scache%g
3913 s%@sim_default_model@%$sim_default_model%g
3914 s%@sim_hw_cflags@%$sim_hw_cflags%g
3915 s%@sim_hw_objs@%$sim_hw_objs%g
3916 s%@sim_hw@%$sim_hw%g
3917 s%@sim_inline@%$sim_inline%g
3918 s%@sim_packages@%$sim_packages%g
3919 s%@sim_regparm@%$sim_regparm%g
3920 s%@sim_reserved_bits@%$sim_reserved_bits%g
3921 s%@sim_smp@%$sim_smp%g
3922 s%@sim_stdcall@%$sim_stdcall%g
3923 s%@sim_xor_endian@%$sim_xor_endian%g
3924 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
3925 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
3927 s%@CFLAGS@%$CFLAGS%g
3928 s%@CPPFLAGS@%$CPPFLAGS%g
3929 s%@CXXFLAGS@%$CXXFLAGS%g
3930 s%@FFLAGS@%$FFLAGS%g
3932 s%@LDFLAGS@%$LDFLAGS%g
3934 s%@exec_prefix@%$exec_prefix%g
3935 s%@prefix@%$prefix%g
3936 s%@program_transform_name@%$program_transform_name%g
3937 s%@bindir@%$bindir%g
3938 s%@sbindir@%$sbindir%g
3939 s%@libexecdir@%$libexecdir%g
3940 s%@datadir@%$datadir%g
3941 s%@sysconfdir@%$sysconfdir%g
3942 s%@sharedstatedir@%$sharedstatedir%g
3943 s%@localstatedir@%$localstatedir%g
3944 s%@libdir@%$libdir%g
3945 s%@includedir@%$includedir%g
3946 s%@oldincludedir@%$oldincludedir%g
3947 s%@infodir@%$infodir%g
3948 s%@mandir@%$mandir%g
3950 s%@host_alias@%$host_alias%g
3951 s%@host_cpu@%$host_cpu%g
3952 s%@host_vendor@%$host_vendor%g
3953 s%@host_os@%$host_os%g
3954 s%@target@%$target%g
3955 s%@target_alias@%$target_alias%g
3956 s%@target_cpu@%$target_cpu%g
3957 s%@target_vendor@%$target_vendor%g
3958 s%@target_os@%$target_os%g
3960 s%@build_alias@%$build_alias%g
3961 s%@build_cpu@%$build_cpu%g
3962 s%@build_vendor@%$build_vendor%g
3963 s%@build_os@%$build_os%g
3965 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3966 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3967 s%@INSTALL_DATA@%$INSTALL_DATA%g
3968 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3969 s%@HDEFINES@%$HDEFINES%g
3971 s%@RANLIB@%$RANLIB%g
3972 s%@SET_MAKE@%$SET_MAKE%g
3974 s%@ALLOCA@%$ALLOCA%g
3975 s%@USE_NLS@%$USE_NLS%g
3976 s%@MSGFMT@%$MSGFMT%g
3977 s%@GMSGFMT@%$GMSGFMT%g
3978 s%@XGETTEXT@%$XGETTEXT%g
3979 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3980 s%@CATALOGS@%$CATALOGS%g
3981 s%@CATOBJEXT@%$CATOBJEXT%g
3982 s%@DATADIRNAME@%$DATADIRNAME%g
3983 s%@GMOFILES@%$GMOFILES%g
3984 s%@INSTOBJEXT@%$INSTOBJEXT%g
3985 s%@INTLDEPS@%$INTLDEPS%g
3986 s%@INTLLIBS@%$INTLLIBS%g
3987 s%@INTLOBJS@%$INTLOBJS%g
3988 s%@POFILES@%$POFILES%g
3990 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3992 s%@GT_YES@%$GT_YES%g
3993 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3996 s%@sim_bswap@%$sim_bswap%g
3997 s%@sim_cflags@%$sim_cflags%g
3998 s%@sim_debug@%$sim_debug%g
3999 s%@sim_stdio@%$sim_stdio%g
4000 s%@sim_trace@%$sim_trace%g
4001 s%@sim_profile@%$sim_profile%g
4002 s%@EXEEXT@%$EXEEXT%g
4003 s%@CGEN_MAINT@%$CGEN_MAINT%g
4004 s%@cgendir@%$cgendir%g
4010 cat >> $CONFIG_STATUS <<\EOF
4012 # Split the substitutions into bite-sized pieces for seds with
4013 # small command number limits, like on Digital OSF/1 and HP-UX.
4014 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4015 ac_file
=1 # Number of current file.
4016 ac_beg
=1 # First line for current file.
4017 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4020 while $ac_more_lines; do
4021 if test $ac_beg -gt 1; then
4022 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4024 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4026 if test ! -s conftest.s
$ac_file; then
4028 rm -f conftest.s
$ac_file
4030 if test -z "$ac_sed_cmds"; then
4031 ac_sed_cmds
="sed -f conftest.s$ac_file"
4033 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4035 ac_file
=`expr $ac_file + 1`
4037 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4040 if test -z "$ac_sed_cmds"; then
4045 cat >> $CONFIG_STATUS <<EOF
4047 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4049 cat >> $CONFIG_STATUS <<\EOF
4050 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4051 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4053 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4054 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4055 *) ac_file_in
="${ac_file}.in" ;;
4058 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4060 # Remove last slash and all that follows it. Not all systems have dirname.
4061 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4062 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4063 # The file is in a subdirectory.
4064 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4065 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4066 # A "../" for each directory in $ac_dir_suffix.
4067 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4069 ac_dir_suffix
= ac_dots
=
4072 case "$ac_given_srcdir" in
4074 if test -z "$ac_dots"; then top_srcdir
=.
4075 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4076 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4078 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4079 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4082 case "$ac_given_INSTALL" in
4083 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4084 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4087 echo creating
"$ac_file"
4089 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4091 *Makefile
*) ac_comsub
="1i\\
4092 # $configure_input" ;;
4096 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4098 s%@configure_input@%$configure_input%g
4099 s%@srcdir@%$srcdir%g
4100 s%@top_srcdir@%$top_srcdir%g
4101 s%@INSTALL@%$INSTALL%g
4102 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4106 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4107 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4109 # ac_d sets the value in "#define NAME VALUE" lines.
4110 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4111 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4114 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4115 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4116 ac_uB
='\([ ]\)%\1#\2define\3'
4119 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4120 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4121 ac_eB
='$%\1#\2define\3'
4125 if test "${CONFIG_HEADERS+set}" != set; then
4127 cat >> $CONFIG_STATUS <<EOF
4128 CONFIG_HEADERS="config.h:config.in"
4130 cat >> $CONFIG_STATUS <<\EOF
4132 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4133 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4135 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4136 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4137 *) ac_file_in
="${ac_file}.in" ;;
4140 echo creating
$ac_file
4142 rm -f conftest.frag conftest.
in conftest.out
4143 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4144 cat $ac_file_inputs > conftest.
in
4148 # Transform confdefs.h into a sed script conftest.vals that substitutes
4149 # the proper values into config.h.in to produce config.h. And first:
4150 # Protect against being on the right side of a sed subst in config.status.
4151 # Protect against being in an unquoted here document in config.status.
4153 cat > conftest.hdr
<<\EOF
4156 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4160 sed -n -f conftest.hdr confdefs.h > conftest.vals
4163 # This sed command replaces #undef with comments. This is necessary, for
4164 # example, in the case of _POSIX_SOURCE, which is predefined and required
4165 # on some systems where configure will not decide to define it.
4166 cat >> conftest.vals <<\EOF
4167 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4170 # Break up conftest.vals because some shells have a limit on
4171 # the size of here documents, and old seds have small limits too.
4176 ac_lines=`grep -c . conftest.vals
`
4177 # grep -c gives empty output for an empty file on some AIX systems.
4178 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4179 # Write a limited-size here document to conftest.frag.
4180 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4181 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4183 sed -f conftest.frag conftest.in > conftest.out
4185 mv conftest.out conftest.in
4187 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4189 mv conftest.tail conftest.vals
4193 cat >> $CONFIG_STATUS <<\EOF
4194 rm -f conftest.frag conftest.h
4195 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4196 cat conftest.in >> conftest.h
4198 if cmp -s $ac_file conftest.h 2>/dev/null; then
4199 echo "$ac_file is unchanged"
4202 # Remove last slash and all that follows it. Not all systems have dirname.
4203 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4204 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4205 # The file is in a subdirectory.
4206 test ! -d "$ac_dir" && mkdir "$ac_dir"
4209 mv conftest.h $ac_file
4215 cat >> $CONFIG_STATUS <<EOF
4216 ac_sources="$sim_link_files"
4217 ac_dests="$sim_link_links"
4220 cat >> $CONFIG_STATUS <<\EOF
4221 srcdir=$ac_given_srcdir
4222 while test -n "$ac_sources"; do
4223 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4224 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4226 echo "linking $srcdir/$ac_source to $ac_dest"
4228 if test ! -r $srcdir/$ac_source; then
4229 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4233 # Make relative symlinks.
4234 # Remove last slash and all that follows it. Not all systems have dirname.
4235 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4236 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4237 # The dest file is in a subdirectory.
4238 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4239 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4240 # A "../" for each directory in $ac_dest_dir_suffix.
4241 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4243 ac_dest_dir_suffix= ac_dots=
4247 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4248 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4251 # Make a symlink if possible; otherwise try a hard link.
4252 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4253 ln $srcdir/$ac_source $ac_dest; then :
4255 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4259 cat >> $CONFIG_STATUS <<EOF
4262 cat >> $CONFIG_STATUS <<\EOF
4263 case "x$CONFIG_FILES" in
4265 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4266 rm -f Makesim1.tmp Makesim2.tmp Makefile
4267 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4268 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4269 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4270 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4271 <Makefile.sim >Makefile
4272 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4275 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4279 chmod +x $CONFIG_STATUS
4280 rm -fr confdefs* $ac_clean_files
4281 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1