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 --enable-sim-trapdump Make unknown traps dump the registers"
172 # Initialize some variables set by options.
173 # The variables have the same names as the options, with
174 # dashes changed to underlines.
176 cache_file=./config.cache
185 program_transform_name=s,x,x,
194 bindir='${exec_prefix}/bin'
195 sbindir='${exec_prefix}/sbin'
196 libexecdir='${exec_prefix}/libexec'
197 datadir='${prefix}/share'
198 sysconfdir='${prefix}/etc'
199 sharedstatedir='${prefix}/com'
200 localstatedir='${prefix}/var'
201 libdir='${exec_prefix}/lib'
202 includedir='${prefix}/include'
203 oldincludedir='/usr/include'
204 infodir='${prefix}/info'
205 mandir='${prefix}/man'
207 # Initialize some other variables.
210 SHELL=${CONFIG_SHELL-/bin/sh}
211 # Maximum number of lines to put in a shell here document.
218 # If the previous option needs an argument, assign it.
219 if test -n "$ac_prev"; then
220 eval "$ac_prev=\$ac_option"
226 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
230 # Accept the important Cygnus configure options, so we can diagnose typos.
234 -bindir | --bindir | --bindi | --bind | --bin | --bi)
236 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
237 bindir="$ac_optarg" ;;
239 -build | --build | --buil | --bui | --bu)
241 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
242 build="$ac_optarg" ;;
244 -cache-file | --cache-file | --cache-fil | --cache-fi \
245 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
246 ac_prev=cache_file ;;
247 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
248 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
249 cache_file="$ac_optarg" ;;
251 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
253 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
255 datadir="$ac_optarg" ;;
257 -disable-* | --disable-*)
258 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
259 # Reject names that are not valid shell variable names.
260 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
261 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
263 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
264 eval "enable_${ac_feature}=no" ;;
266 -enable-* | --enable-*)
267 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
268 # Reject names that are not valid shell variable names.
269 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
270 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
272 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
277 eval "enable_${ac_feature}='$ac_optarg'" ;;
279 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
280 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
281 | --exec | --exe | --ex)
282 ac_prev=exec_prefix ;;
283 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
284 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
285 | --exec=* | --exe=* | --ex=*)
286 exec_prefix="$ac_optarg" ;;
288 -gas | --gas | --ga | --g)
289 # Obsolete; use --with-gas.
292 -help | --help | --hel | --he)
293 # Omit some internal or obsolete options to make the list less imposing.
294 # This message is too long to be a string in the A/UX 3.1 sh.
296 Usage: configure [options] [host]
297 Options: [defaults in brackets after descriptions]
299 --cache-file=FILE cache test results in FILE
300 --help print this message
301 --no-create do not create output files
302 --quiet, --silent do not print \`checking...' messages
303 --site-file=FILE use FILE as the site file
304 --version print the version of autoconf that created configure
305 Directory and file names:
306 --prefix=PREFIX install architecture-independent files in PREFIX
308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
310 --bindir=DIR user executables in DIR [EPREFIX/bin]
311 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
312 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
313 --datadir=DIR read-only architecture-independent data in DIR
315 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
316 --sharedstatedir=DIR modifiable architecture-independent data in DIR
318 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
319 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
320 --includedir=DIR C header files in DIR [PREFIX/include]
321 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
322 --infodir=DIR info documentation in DIR [PREFIX/info]
323 --mandir=DIR man documentation in DIR [PREFIX/man]
324 --srcdir=DIR find the sources in DIR [configure dir or ..]
325 --program-prefix=PREFIX prepend PREFIX to installed program names
326 --program-suffix=SUFFIX append SUFFIX to installed program names
327 --program-transform-name=PROGRAM
328 run sed PROGRAM on installed program names
332 --build=BUILD configure for building on BUILD [BUILD=HOST]
333 --host=HOST configure for HOST [guessed]
334 --target=TARGET configure for TARGET [TARGET=HOST]
335 Features and packages:
336 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
337 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
338 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
339 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
340 --x-includes=DIR X include files are in DIR
341 --x-libraries=DIR X library files are in DIR
343 if test -n "$ac_help"; then
344 echo "--enable and --with options recognized:$ac_help"
348 -host | --host | --hos | --ho)
350 -host=* | --host=* | --hos=* | --ho=*)
353 -includedir | --includedir | --includedi | --included | --include \
354 | --includ | --inclu | --incl | --inc)
355 ac_prev=includedir ;;
356 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
357 | --includ=* | --inclu=* | --incl=* | --inc=*)
358 includedir="$ac_optarg" ;;
360 -infodir | --infodir | --infodi | --infod | --info | --inf)
362 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
363 infodir="$ac_optarg" ;;
365 -libdir | --libdir | --libdi | --libd)
367 -libdir=* | --libdir=* | --libdi=* | --libd=*)
368 libdir="$ac_optarg" ;;
370 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
371 | --libexe | --libex | --libe)
372 ac_prev=libexecdir ;;
373 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
374 | --libexe=* | --libex=* | --libe=*)
375 libexecdir="$ac_optarg" ;;
377 -localstatedir | --localstatedir | --localstatedi | --localstated \
378 | --localstate | --localstat | --localsta | --localst \
379 | --locals | --local | --loca | --loc | --lo)
380 ac_prev=localstatedir ;;
381 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
382 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
383 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
384 localstatedir="$ac_optarg" ;;
386 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
388 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
389 mandir="$ac_optarg" ;;
392 # Obsolete; use --without-fp.
395 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
399 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
400 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
403 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
404 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
405 | --oldin | --oldi | --old | --ol | --o)
406 ac_prev=oldincludedir ;;
407 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
408 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
409 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
410 oldincludedir="$ac_optarg" ;;
412 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
414 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
415 prefix="$ac_optarg" ;;
417 -program-prefix | --program-prefix | --program-prefi | --program-pref \
418 | --program-pre | --program-pr | --program-p)
419 ac_prev=program_prefix ;;
420 -program-prefix=* | --program-prefix=* | --program-prefi=* \
421 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
422 program_prefix="$ac_optarg" ;;
424 -program-suffix | --program-suffix | --program-suffi | --program-suff \
425 | --program-suf | --program-su | --program-s)
426 ac_prev=program_suffix ;;
427 -program-suffix=* | --program-suffix=* | --program-suffi=* \
428 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
429 program_suffix="$ac_optarg" ;;
431 -program-transform-name | --program-transform-name \
432 | --program-transform-nam | --program-transform-na \
433 | --program-transform-n | --program-transform- \
434 | --program-transform | --program-transfor \
435 | --program-transfo | --program-transf \
436 | --program-trans | --program-tran \
437 | --progr-tra | --program-tr | --program-t)
438 ac_prev=program_transform_name ;;
439 -program-transform-name=* | --program-transform-name=* \
440 | --program-transform-nam=* | --program-transform-na=* \
441 | --program-transform-n=* | --program-transform-=* \
442 | --program-transform=* | --program-transfor=* \
443 | --program-transfo=* | --program-transf=* \
444 | --program-trans=* | --program-tran=* \
445 | --progr-tra=* | --program-tr=* | --program-t=*)
446 program_transform_name="$ac_optarg" ;;
448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
449 | -silent | --silent | --silen | --sile | --sil)
452 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
454 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
456 sbindir="$ac_optarg" ;;
458 -sharedstatedir | --sharedstatedir | --sharedstatedi \
459 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
460 | --sharedst | --shareds | --shared | --share | --shar \
462 ac_prev=sharedstatedir ;;
463 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
464 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
465 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
467 sharedstatedir="$ac_optarg" ;;
469 -site | --site | --sit)
471 -site=* | --site=* | --sit=*)
474 -site-file | --site-file | --site-fil | --site-fi | --site-f)
476 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
477 sitefile="$ac_optarg" ;;
479 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
481 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
482 srcdir="$ac_optarg" ;;
484 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
485 | --syscon | --sysco | --sysc | --sys | --sy)
486 ac_prev=sysconfdir ;;
487 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
488 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
489 sysconfdir="$ac_optarg" ;;
491 -target | --target | --targe | --targ | --tar | --ta | --t)
493 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
494 target="$ac_optarg" ;;
496 -v | -verbose | --verbose | --verbos | --verbo | --verb)
499 -version | --version | --versio | --versi | --vers)
500 echo "configure generated by autoconf version 2.13"
504 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
505 # Reject names that are not valid shell variable names.
506 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
507 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
509 ac_package=`echo $ac_package| sed 's/-/_/g'`
514 eval "with_${ac_package}='$ac_optarg'" ;;
516 -without-* | --without-*)
517 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
518 # Reject names that are not valid shell variable names.
519 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
520 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
522 ac_package=`echo $ac_package| sed 's/-/_/g'`
523 eval "with_${ac_package}=no" ;;
526 # Obsolete; use --with-x.
529 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
530 | --x-incl | --x-inc | --x-in | --x-i)
531 ac_prev=x_includes ;;
532 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
533 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
534 x_includes="$ac_optarg" ;;
536 -x-libraries | --x-libraries | --x-librarie | --x-librari \
537 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
538 ac_prev=x_libraries ;;
539 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
540 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
541 x_libraries="$ac_optarg" ;;
543 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
547 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
548 echo "configure: warning: $ac_option: invalid host type" 1>&2
550 if test "x$nonopt" != xNONE; then
551 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
559 if test -n "$ac_prev"; then
560 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
563 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
565 # File descriptor usage:
568 # 2 errors and warnings
569 # 3 some systems may open it to /dev/tty
570 # 4 used on the Kubota Titan
571 # 6 checking for... messages and results
572 # 5 compiler messages saved in config.log
573 if test "$silent" = yes; then
581 This file contains any messages produced by compilers while
582 running configure, to aid debugging if configure makes a mistake.
585 # Strip out --no-create and --no-recursion so they do not pile up.
586 # Also quote any args containing shell metacharacters.
591 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
592 | --no-cr | --no-c) ;;
593 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
594 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
595 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
596 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
597 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
602 # Only set these to C if already set. These must not be set unconditionally
603 # because not all systems understand e.g. LANG=C (notably SCO).
604 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
605 # Non-C LC_CTYPE values break the ctype check.
606 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
607 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
608 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
609 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
612 rm -rf conftest* confdefs.h
613 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
616 # A filename unique to this package, relative to the directory that
617 # configure is in, which we can look for to find out if srcdir is correct.
618 ac_unique_file=Makefile.in
620 # Find the source files, if location was not specified.
621 if test -z "$srcdir"; then
622 ac_srcdir_defaulted=yes
623 # Try the directory containing this script, then its parent.
625 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
626 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
628 if test ! -r $srcdir/$ac_unique_file; then
632 ac_srcdir_defaulted=no
634 if test ! -r $srcdir/$ac_unique_file; then
635 if test "$ac_srcdir_defaulted" = yes; then
636 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
638 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
641 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
643 # Prefer explicitly selected file to automatically selected ones.
644 if test -z "$sitefile"; then
645 if test -z "$CONFIG_SITE"; then
646 if test "x$prefix" != xNONE; then
647 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
649 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
653 CONFIG_SITE="$sitefile"
655 for ac_site_file in $CONFIG_SITE; do
656 if test -r "$ac_site_file"; then
657 echo "loading site script $ac_site_file"
662 if test -r "$cache_file"; then
663 echo "loading cache $cache_file"
666 echo "creating cache $cache_file"
671 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
672 ac_cpp='$CPP $CPPFLAGS'
673 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
674 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
675 cross_compiling=$ac_cv_prog_cc_cross
679 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
680 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
681 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
688 ac_n= ac_c='\c' ac_t=
693 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
694 echo "configure:695: checking how to run the C preprocessor" >&5
695 # On Suns, sometimes $CPP names a directory.
696 if test -n "$CPP" && test -d "$CPP"; then
699 if test -z "$CPP"; then
700 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
703 # This must be in double quotes, not single quotes, because CPP may get
704 # substituted into the Makefile and "${CC-cc}" will confuse make.
706 # On the NeXT, cc -E runs the code through the compiler's parser,
707 # not just through cpp.
708 cat > conftest.$ac_ext <<EOF
709 #line 710 "configure"
710 #include "confdefs.h"
714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
715 { (eval echo configure:716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
717 if test -z "$ac_err"; then
721 echo "configure: failed program was:" >&5
722 cat conftest.$ac_ext >&5
724 CPP="${CC-cc} -E -traditional-cpp"
725 cat > conftest.$ac_ext <<EOF
726 #line 727 "configure"
727 #include "confdefs.h"
731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
732 { (eval echo configure:733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
734 if test -z "$ac_err"; then
738 echo "configure: failed program was:" >&5
739 cat conftest.$ac_ext >&5
741 CPP="${CC-cc} -nologo -E"
742 cat > conftest.$ac_ext <<EOF
743 #line 744 "configure"
744 #include "confdefs.h"
748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
749 { (eval echo configure:750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
751 if test -z "$ac_err"; then
755 echo "configure: failed program was:" >&5
756 cat conftest.$ac_ext >&5
765 ac_cv_prog_CPP="$CPP"
767 CPP="$ac_cv_prog_CPP"
769 ac_cv_prog_CPP="$CPP"
771 echo "$ac_t""$CPP" 1>&6
773 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
774 echo "configure:775: checking whether ${MAKE-make} sets \${MAKE}" >&5
775 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
776 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 cat > conftestmake <<\EOF
781 @echo 'ac_maketemp="${MAKE}"'
783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
784 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
785 if test -n "$ac_maketemp"; then
786 eval ac_cv_prog_make_${ac_make}_set=yes
788 eval ac_cv_prog_make_${ac_make}_set=no
792 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
793 echo "$ac_t""yes" 1>&6
796 echo "$ac_t""no" 1>&6
797 SET_MAKE="MAKE=${MAKE-make}"
800 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
801 echo "configure:802: checking for POSIXized ISC" >&5
802 if test -d /etc/conf/kconfig.d &&
803 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
805 echo "$ac_t""yes" 1>&6
806 ISC=yes # If later tests want to check for ISC.
807 cat >> confdefs.h <<\EOF
808 #define _POSIX_SOURCE 1
811 if test "$GCC" = yes; then
817 echo "$ac_t""no" 1>&6
821 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
822 echo "configure:823: checking for ANSI C header files" >&5
823 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 cat > conftest.$ac_ext <<EOF
827 #line 828 "configure"
828 #include "confdefs.h"
834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
835 { (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
837 if test -z "$ac_err"; then
839 ac_cv_header_stdc=yes
842 echo "configure: failed program was:" >&5
843 cat conftest.$ac_ext >&5
849 if test $ac_cv_header_stdc = yes; then
850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
851 cat > conftest.$ac_ext <<EOF
852 #line 853 "configure"
853 #include "confdefs.h"
856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
857 egrep "memchr" >/dev/null 2>&1; then
867 if test $ac_cv_header_stdc = yes; then
868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
869 cat > conftest.$ac_ext <<EOF
870 #line 871 "configure"
871 #include "confdefs.h"
874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
875 egrep "free" >/dev/null 2>&1; then
885 if test $ac_cv_header_stdc = yes; then
886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
887 if test "$cross_compiling" = yes; then
890 cat > conftest.$ac_ext <<EOF
891 #line 892 "configure"
892 #include "confdefs.h"
894 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
895 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
896 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
897 int main () { int i; for (i = 0; i < 256; i++)
898 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
902 if { (eval echo configure:903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
906 echo "configure: failed program was:" >&5
907 cat conftest.$ac_ext >&5
917 echo "$ac_t""$ac_cv_header_stdc" 1>&6
918 if test $ac_cv_header_stdc = yes; then
919 cat >> confdefs.h <<\EOF
920 #define STDC_HEADERS 1
925 echo $ac_n "checking for working const""... $ac_c" 1>&6
926 echo "configure:927: checking for working const" >&5
927 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 /* Ultrix mips cc rejects this. */
937 typedef int charset[2]; const charset x;
938 /* SunOS 4.1.1 cc rejects this. */
939 char const *const *ccp;
941 /* NEC SVR4.0.2 mips cc rejects this. */
942 struct point {int x, y;};
943 static struct point const zero = {0,0};
944 /* AIX XL C 1.02.0.0 rejects this.
945 It does not let you subtract one const X* pointer from another in an arm
946 of an if-expression whose if-part is not a constant expression */
947 const char *g = "string";
948 ccp = &g + (g ? g-g : 0);
949 /* HPUX 7.0 cc rejects these. */
952 ccp = (char const *const *) p;
953 { /* SCO 3.2v4 cc rejects this. */
955 char const *s = 0 ? (char *) 0 : (char const *) 0;
959 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
961 const int *foo = &x[0];
964 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
965 typedef const int *iptr;
969 { /* AIX XL C 1.02.0.0 rejects this saying
970 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
971 struct s { int j; const int *ap[3]; };
972 struct s *b; b->j = 5;
974 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
980 if { (eval echo configure:981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
984 echo "configure: failed program was:" >&5
985 cat conftest.$ac_ext >&5
992 echo "$ac_t""$ac_cv_c_const" 1>&6
993 if test $ac_cv_c_const = no; then
994 cat >> confdefs.h <<\EOF
1000 echo $ac_n "checking for inline""... $ac_c" 1>&6
1001 echo "configure:1002: checking for inline" >&5
1002 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1006 for ac_kw in inline __inline__ __inline; do
1007 cat > conftest.$ac_ext <<EOF
1008 #line 1009 "configure"
1009 #include "confdefs.h"
1015 if { (eval echo configure:1016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1017 ac_cv_c_inline=$ac_kw; break
1019 echo "configure: failed program was:" >&5
1020 cat conftest.$ac_ext >&5
1027 echo "$ac_t""$ac_cv_c_inline" 1>&6
1028 case "$ac_cv_c_inline" in
1030 no) cat >> confdefs.h <<\EOF
1034 *) cat >> confdefs.h <<EOF
1035 #define inline $ac_cv_c_inline
1040 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1041 echo "configure:1042: checking for off_t" >&5
1042 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 cat > conftest.$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1048 #include <sys/types.h>
1054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1055 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1057 ac_cv_type_off_t=yes
1065 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1066 if test $ac_cv_type_off_t = no; then
1067 cat >> confdefs.h <<\EOF
1073 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1074 echo "configure:1075: checking for size_t" >&5
1075 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 cat > conftest.$ac_ext <<EOF
1079 #line 1080 "configure"
1080 #include "confdefs.h"
1081 #include <sys/types.h>
1087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1088 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1090 ac_cv_type_size_t=yes
1093 ac_cv_type_size_t=no
1098 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1099 if test $ac_cv_type_size_t = no; then
1100 cat >> confdefs.h <<\EOF
1101 #define size_t unsigned
1106 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1107 # for constant arguments. Useless!
1108 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1109 echo "configure:1110: checking for working alloca.h" >&5
1110 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 cat > conftest.$ac_ext <<EOF
1114 #line 1115 "configure"
1115 #include "confdefs.h"
1118 char *p = alloca(2 * sizeof(int));
1121 if { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1123 ac_cv_header_alloca_h=yes
1125 echo "configure: failed program was:" >&5
1126 cat conftest.$ac_ext >&5
1128 ac_cv_header_alloca_h=no
1133 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1134 if test $ac_cv_header_alloca_h = yes; then
1135 cat >> confdefs.h <<\EOF
1136 #define HAVE_ALLOCA_H 1
1141 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1142 echo "configure:1143: checking for alloca" >&5
1143 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 cat > conftest.$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1151 # define alloca __builtin_alloca
1154 # include <malloc.h>
1155 # define alloca _alloca
1158 # include <alloca.h>
1163 # ifndef alloca /* predefined by HP cc +Olibcalls */
1172 char *p = (char *) alloca(1);
1175 if { (eval echo configure:1176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1177 ac_cv_func_alloca_works=yes
1179 echo "configure: failed program was:" >&5
1180 cat conftest.$ac_ext >&5
1182 ac_cv_func_alloca_works=no
1187 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1188 if test $ac_cv_func_alloca_works = yes; then
1189 cat >> confdefs.h <<\EOF
1190 #define HAVE_ALLOCA 1
1195 if test $ac_cv_func_alloca_works = no; then
1196 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1197 # that cause trouble. Some versions do not even contain alloca or
1198 # contain a buggy version. If you still want to use their alloca,
1199 # use ar to extract alloca.o from them instead of compiling alloca.c.
1200 ALLOCA=alloca.${ac_objext}
1201 cat >> confdefs.h <<\EOF
1206 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1207 echo "configure:1208: checking whether alloca needs Cray hooks" >&5
1208 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 #if defined(CRAY) && ! defined(CRAY2)
1221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1222 egrep "webecray" >/dev/null 2>&1; then
1233 echo "$ac_t""$ac_cv_os_cray" 1>&6
1234 if test $ac_cv_os_cray = yes; then
1235 for ac_func in _getb67 GETB67 getb67; do
1236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1237 echo "configure:1238: checking for $ac_func" >&5
1238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 cat > conftest.$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1244 /* System header to define __stub macros and hopefully few prototypes,
1245 which can conflict with char $ac_func(); below. */
1247 /* Override any gcc2 internal prototype to avoid an error. */
1248 /* We use char because int might match the return type of a gcc2
1249 builtin and then its argument prototype would still apply. */
1254 /* The GNU C library defines this for functions which it implements
1255 to always fail with ENOSYS. Some functions are actually named
1256 something starting with __ and the normal name is an alias. */
1257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1265 if { (eval echo configure:1266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1267 eval "ac_cv_func_$ac_func=yes"
1269 echo "configure: failed program was:" >&5
1270 cat conftest.$ac_ext >&5
1272 eval "ac_cv_func_$ac_func=no"
1277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1278 echo "$ac_t""yes" 1>&6
1279 cat >> confdefs.h <<EOF
1280 #define CRAY_STACKSEG_END $ac_func
1285 echo "$ac_t""no" 1>&6
1291 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1292 echo "configure:1293: checking stack direction for C alloca" >&5
1293 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 if test "$cross_compiling" = yes; then
1297 ac_cv_c_stack_direction=0
1299 cat > conftest.$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1302 find_stack_direction ()
1304 static char *addr = 0;
1309 return find_stack_direction ();
1312 return (&dummy > addr) ? 1 : -1;
1316 exit (find_stack_direction() < 0);
1319 if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1321 ac_cv_c_stack_direction=1
1323 echo "configure: failed program was:" >&5
1324 cat conftest.$ac_ext >&5
1326 ac_cv_c_stack_direction=-1
1333 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1334 cat >> confdefs.h <<EOF
1335 #define STACK_DIRECTION $ac_cv_c_stack_direction
1340 for ac_hdr in unistd.h
1342 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_hdr" >&5
1345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 cat > conftest.$ac_ext <<EOF
1349 #line 1350 "configure"
1350 #include "confdefs.h"
1353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1354 { (eval echo configure:1355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1356 if test -z "$ac_err"; then
1358 eval "ac_cv_header_$ac_safe=yes"
1361 echo "configure: failed program was:" >&5
1362 cat conftest.$ac_ext >&5
1364 eval "ac_cv_header_$ac_safe=no"
1368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1369 echo "$ac_t""yes" 1>&6
1370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1371 cat >> confdefs.h <<EOF
1372 #define $ac_tr_hdr 1
1376 echo "$ac_t""no" 1>&6
1380 for ac_func in getpagesize
1382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1383 echo "configure:1384: checking for $ac_func" >&5
1384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1387 cat > conftest.$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1390 /* System header to define __stub macros and hopefully few prototypes,
1391 which can conflict with char $ac_func(); below. */
1393 /* Override any gcc2 internal prototype to avoid an error. */
1394 /* We use char because int might match the return type of a gcc2
1395 builtin and then its argument prototype would still apply. */
1400 /* The GNU C library defines this for functions which it implements
1401 to always fail with ENOSYS. Some functions are actually named
1402 something starting with __ and the normal name is an alias. */
1403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1411 if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1413 eval "ac_cv_func_$ac_func=yes"
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1418 eval "ac_cv_func_$ac_func=no"
1423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1424 echo "$ac_t""yes" 1>&6
1425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1426 cat >> confdefs.h <<EOF
1427 #define $ac_tr_func 1
1431 echo "$ac_t""no" 1>&6
1435 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1436 echo "configure:1437: checking for working mmap" >&5
1437 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1440 if test "$cross_compiling" = yes; then
1441 ac_cv_func_mmap_fixed_mapped=no
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1447 /* Thanks to Mike Haertel and Jim Avera for this test.
1448 Here is a matrix of mmap possibilities:
1449 mmap private not fixed
1450 mmap private fixed at somewhere currently unmapped
1451 mmap private fixed at somewhere already mapped
1452 mmap shared not fixed
1453 mmap shared fixed at somewhere currently unmapped
1454 mmap shared fixed at somewhere already mapped
1455 For private mappings, we should verify that changes cannot be read()
1456 back from the file, nor mmap's back from the file at a different
1457 address. (There have been systems where private was not correctly
1458 implemented like the infamous i386 svr4.0, and systems where the
1459 VM page cache was not coherent with the filesystem buffer cache
1460 like early versions of FreeBSD and possibly contemporary NetBSD.)
1461 For shared mappings, we should conversely verify that changes get
1462 propogated back to all the places they're supposed to be.
1464 Grep wants private fixed already mapped.
1465 The main things grep needs to know about mmap are:
1466 * does it exist and is it safe to write into the mmap'd area
1467 * how to use it (BSD variants) */
1468 #include <sys/types.h>
1470 #include <sys/mman.h>
1472 /* This mess was copied from the GNU getpagesize.h. */
1473 #ifndef HAVE_GETPAGESIZE
1474 # ifdef HAVE_UNISTD_H
1475 # include <unistd.h>
1478 /* Assume that all systems that can run configure have sys/param.h. */
1479 # ifndef HAVE_SYS_PARAM_H
1480 # define HAVE_SYS_PARAM_H 1
1483 # ifdef _SC_PAGESIZE
1484 # define getpagesize() sysconf(_SC_PAGESIZE)
1485 # else /* no _SC_PAGESIZE */
1486 # ifdef HAVE_SYS_PARAM_H
1487 # include <sys/param.h>
1488 # ifdef EXEC_PAGESIZE
1489 # define getpagesize() EXEC_PAGESIZE
1490 # else /* no EXEC_PAGESIZE */
1492 # define getpagesize() NBPG * CLSIZE
1495 # endif /* no CLSIZE */
1496 # else /* no NBPG */
1498 # define getpagesize() NBPC
1499 # else /* no NBPC */
1501 # define getpagesize() PAGESIZE
1502 # endif /* PAGESIZE */
1503 # endif /* no NBPC */
1504 # endif /* no NBPG */
1505 # endif /* no EXEC_PAGESIZE */
1506 # else /* no HAVE_SYS_PARAM_H */
1507 # define getpagesize() 8192 /* punt totally */
1508 # endif /* no HAVE_SYS_PARAM_H */
1509 # endif /* no _SC_PAGESIZE */
1511 #endif /* no HAVE_GETPAGESIZE */
1514 extern "C" { void *malloc(unsigned); }
1522 char *data, *data2, *data3;
1526 pagesize = getpagesize();
1529 * First, make a file with some known garbage in it.
1531 data = malloc(pagesize);
1534 for (i = 0; i < pagesize; ++i)
1535 *(data + i) = rand();
1537 fd = creat("conftestmmap", 0600);
1540 if (write(fd, data, pagesize) != pagesize)
1545 * Next, try to mmap the file at a fixed address which
1546 * already has something else allocated at it. If we can,
1547 * also make sure that we see the same garbage.
1549 fd = open("conftestmmap", O_RDWR);
1552 data2 = malloc(2 * pagesize);
1555 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1556 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1557 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1559 for (i = 0; i < pagesize; ++i)
1560 if (*(data + i) != *(data2 + i))
1564 * Finally, make sure that changes to the mapped area
1565 * do not percolate back to the file as seen by read().
1566 * (This is a bug on some variants of i386 svr4.0.)
1568 for (i = 0; i < pagesize; ++i)
1569 *(data2 + i) = *(data2 + i) + 1;
1570 data3 = malloc(pagesize);
1573 if (read(fd, data3, pagesize) != pagesize)
1575 for (i = 0; i < pagesize; ++i)
1576 if (*(data + i) != *(data3 + i))
1579 unlink("conftestmmap");
1584 if { (eval echo configure:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1586 ac_cv_func_mmap_fixed_mapped=yes
1588 echo "configure: failed program was:" >&5
1589 cat conftest.$ac_ext >&5
1591 ac_cv_func_mmap_fixed_mapped=no
1598 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1599 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1600 cat >> confdefs.h <<\EOF
1606 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1607 echo "configure:1608: checking for Cygwin environment" >&5
1608 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1618 #define __CYGWIN__ __CYGWIN32__
1623 if { (eval echo configure:1624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1627 echo "configure: failed program was:" >&5
1628 cat conftest.$ac_ext >&5
1636 echo "$ac_t""$ac_cv_cygwin" 1>&6
1638 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1639 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1640 echo "configure:1641: checking for mingw32 environment" >&5
1641 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1652 if { (eval echo configure:1653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1665 echo "$ac_t""$ac_cv_mingw32" 1>&6
1667 test "$ac_cv_mingw32" = yes && MINGW32=yes
1669 # autoconf.info says this should be called right after AC_INIT.
1673 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1674 if test -f $ac_dir/install-sh; then
1676 ac_install_sh="$ac_aux_dir/install-sh -c"
1678 elif test -f $ac_dir/install.sh; then
1680 ac_install_sh="$ac_aux_dir/install.sh -c"
1684 if test -z "$ac_aux_dir"; then
1685 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1687 ac_config_guess=$ac_aux_dir/config.guess
1688 ac_config_sub=$ac_aux_dir/config.sub
1689 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1692 # Do some error checking and defaulting for the host and target type.
1694 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1697 # 1. You are not allowed to specify --host, --target, and nonopt at the
1699 # 2. Host defaults to nonopt.
1700 # 3. If nonopt is not specified, then host defaults to the current host,
1701 # as determined by config.guess.
1702 # 4. Target and build default to nonopt.
1703 # 5. If nonopt is not specified, then target and build default to host.
1705 # The aliases save the names the user supplied, while $host etc.
1706 # will get canonicalized.
1707 case $host---$target---$nonopt in
1708 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1709 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1713 # Make sure we can run config.sub.
1714 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1715 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1718 echo $ac_n "checking host system type""... $ac_c" 1>&6
1719 echo "configure:1720: checking host system type" >&5
1722 case "$host_alias" in
1726 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1727 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1729 *) host_alias=$nonopt ;;
1733 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1734 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1735 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1736 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737 echo "$ac_t""$host" 1>&6
1739 echo $ac_n "checking target system type""... $ac_c" 1>&6
1740 echo "configure:1741: checking target system type" >&5
1742 target_alias=$target
1743 case "$target_alias" in
1746 NONE) target_alias=$host_alias ;;
1747 *) target_alias=$nonopt ;;
1751 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1752 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1753 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1754 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1755 echo "$ac_t""$target" 1>&6
1757 echo $ac_n "checking build system type""... $ac_c" 1>&6
1758 echo "configure:1759: checking build system type" >&5
1761 case "$build_alias" in
1764 NONE) build_alias=$host_alias ;;
1765 *) build_alias=$nonopt ;;
1769 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1770 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1771 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1772 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1773 echo "$ac_t""$build" 1>&6
1775 test "$host_alias" != "$target_alias" &&
1776 test "$program_prefix$program_suffix$program_transform_name" = \
1778 program_prefix=${target_alias}-
1780 if test "$program_transform_name" = s,x,x,; then
1781 program_transform_name=
1783 # Double any \ or $. echo might interpret backslashes.
1784 cat <<\EOF_SED > conftestsed
1785 s,\\,\\\\,g; s,\$,$$,g
1787 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1796 # sed with no file args requires a program.
1797 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1799 # Extract the first word of "gcc", so it can be a program name with args.
1800 set dummy gcc; ac_word=$2
1801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1802 echo "configure:1803: checking for $ac_word" >&5
1803 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 if test -n "$CC"; then
1807 ac_cv_prog_CC="$CC" # Let the user override the test.
1809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1811 for ac_dir in $ac_dummy; do
1812 test -z "$ac_dir" && ac_dir=.
1813 if test -f $ac_dir/$ac_word; then
1822 if test -n "$CC"; then
1823 echo "$ac_t""$CC" 1>&6
1825 echo "$ac_t""no" 1>&6
1828 if test -z "$CC"; then
1829 # Extract the first word of "cc", so it can be a program name with args.
1830 set dummy cc; ac_word=$2
1831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1832 echo "configure:1833: checking for $ac_word" >&5
1833 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test.
1839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1842 for ac_dir in $ac_dummy; do
1843 test -z "$ac_dir" && ac_dir=.
1844 if test -f $ac_dir/$ac_word; then
1845 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1846 ac_prog_rejected=yes
1854 if test $ac_prog_rejected = yes; then
1855 # We found a bogon in the path, so make sure we never use it.
1856 set dummy $ac_cv_prog_CC
1858 if test $# -gt 0; then
1859 # We chose a different compiler from the bogus one.
1860 # However, it has the same basename, so the bogon will be chosen
1861 # first if we set CC to just the basename; use the full file name.
1863 set dummy "$ac_dir/$ac_word" "$@"
1871 if test -n "$CC"; then
1872 echo "$ac_t""$CC" 1>&6
1874 echo "$ac_t""no" 1>&6
1877 if test -z "$CC"; then
1878 case "`uname -s`" in
1880 # Extract the first word of "cl", so it can be a program name with args.
1881 set dummy cl; ac_word=$2
1882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_word" >&5
1884 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 if test -n "$CC"; then
1888 ac_cv_prog_CC="$CC" # Let the user override the test.
1890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1892 for ac_dir in $ac_dummy; do
1893 test -z "$ac_dir" && ac_dir=.
1894 if test -f $ac_dir/$ac_word; then
1903 if test -n "$CC"; then
1904 echo "$ac_t""$CC" 1>&6
1906 echo "$ac_t""no" 1>&6
1911 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1914 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1915 echo "configure:1916: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1922 cross_compiling=$ac_cv_prog_cc_cross
1924 cat > conftest.$ac_ext << EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1931 if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1932 ac_cv_prog_cc_works=yes
1933 # If we can't run a trivial program, we are probably using a cross compiler.
1934 if (./conftest; exit) 2>/dev/null; then
1935 ac_cv_prog_cc_cross=no
1937 ac_cv_prog_cc_cross=yes
1940 echo "configure: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1942 ac_cv_prog_cc_works=no
1946 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1949 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1950 cross_compiling=$ac_cv_prog_cc_cross
1952 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1953 if test $ac_cv_prog_cc_works = no; then
1954 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1956 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1957 echo "configure:1958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1958 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1959 cross_compiling=$ac_cv_prog_cc_cross
1961 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether we are using GNU C" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 cat > conftest.c <<EOF
1971 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1978 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1980 if test $ac_cv_prog_gcc = yes; then
1986 ac_test_CFLAGS="${CFLAGS+set}"
1987 ac_save_CFLAGS="$CFLAGS"
1989 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1990 echo "configure:1991: checking whether ${CC-cc} accepts -g" >&5
1991 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 echo 'void f(){}' > conftest.c
1995 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2004 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2005 if test "$ac_test_CFLAGS" = set; then
2006 CFLAGS="$ac_save_CFLAGS"
2007 elif test $ac_cv_prog_cc_g = yes; then
2008 if test "$GCC" = yes; then
2014 if test "$GCC" = yes; then
2021 # Find a good install program. We prefer a C program (faster),
2022 # so one script is as good as another. But avoid the broken or
2023 # incompatible versions:
2024 # SysV /etc/install, /usr/sbin/install
2025 # SunOS /usr/etc/install
2026 # IRIX /sbin/install
2028 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2029 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2030 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2031 # ./install, which can be erroneously created by make from ./install.sh.
2032 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2033 echo "configure:2034: checking for a BSD compatible install" >&5
2034 if test -z "$INSTALL"; then
2035 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2039 for ac_dir in $PATH; do
2040 # Account for people who put trailing slashes in PATH elements.
2042 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2044 # OSF1 and SCO ODT 3.0 have their own names for install.
2045 # Don't use installbsd from OSF since it installs stuff as root
2047 for ac_prog in ginstall scoinst install; do
2048 if test -f $ac_dir/$ac_prog; then
2049 if test $ac_prog = install &&
2050 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2051 # AIX install. It has an incompatible calling convention.
2054 ac_cv_path_install="$ac_dir/$ac_prog -c"
2065 if test "${ac_cv_path_install+set}" = set; then
2066 INSTALL="$ac_cv_path_install"
2068 # As a last resort, use the slow shell script. We don't cache a
2069 # path for INSTALL within a source directory, because that will
2070 # break other packages using the cache if that directory is
2071 # removed, or if the path is relative.
2072 INSTALL="$ac_install_sh"
2075 echo "$ac_t""$INSTALL" 1>&6
2077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2078 # It thinks the first close brace ends the variable substitution.
2079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2086 # Put a plausible default for CC_FOR_BUILD in Makefile.
2087 if test "x$cross_compiling" = "xno"; then
2088 CC_FOR_BUILD='$(CC)'
2098 # Extract the first word of "ranlib", so it can be a program name with args.
2099 set dummy ranlib; ac_word=$2
2100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2101 echo "configure:2102: checking for $ac_word" >&5
2102 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 if test -n "$RANLIB"; then
2106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2110 for ac_dir in $ac_dummy; do
2111 test -z "$ac_dir" && ac_dir=.
2112 if test -f $ac_dir/$ac_word; then
2113 ac_cv_prog_RANLIB="ranlib"
2118 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2121 RANLIB="$ac_cv_prog_RANLIB"
2122 if test -n "$RANLIB"; then
2123 echo "$ac_t""$RANLIB" 1>&6
2125 echo "$ac_t""no" 1>&6
2131 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2132 unistd.h values.h sys/param.h
2134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_hdr" >&5
2137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 cat > conftest.$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2146 { (eval echo configure:2147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2148 if test -z "$ac_err"; then
2150 eval "ac_cv_header_$ac_safe=yes"
2153 echo "configure: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2156 eval "ac_cv_header_$ac_safe=no"
2160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2161 echo "$ac_t""yes" 1>&6
2162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2163 cat >> confdefs.h <<EOF
2164 #define $ac_tr_hdr 1
2168 echo "$ac_t""no" 1>&6
2172 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2173 __argz_count __argz_stringify __argz_next
2175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2176 echo "configure:2177: checking for $ac_func" >&5
2177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2180 cat > conftest.$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2183 /* System header to define __stub macros and hopefully few prototypes,
2184 which can conflict with char $ac_func(); below. */
2186 /* Override any gcc2 internal prototype to avoid an error. */
2187 /* We use char because int might match the return type of a gcc2
2188 builtin and then its argument prototype would still apply. */
2193 /* The GNU C library defines this for functions which it implements
2194 to always fail with ENOSYS. Some functions are actually named
2195 something starting with __ and the normal name is an alias. */
2196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2204 if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2206 eval "ac_cv_func_$ac_func=yes"
2208 echo "configure: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2211 eval "ac_cv_func_$ac_func=no"
2216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2219 cat >> confdefs.h <<EOF
2220 #define $ac_tr_func 1
2224 echo "$ac_t""no" 1>&6
2229 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2230 for ac_func in stpcpy
2232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_func" >&5
2234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 /* System header to define __stub macros and hopefully few prototypes,
2241 which can conflict with char $ac_func(); below. */
2243 /* Override any gcc2 internal prototype to avoid an error. */
2244 /* We use char because int might match the return type of a gcc2
2245 builtin and then its argument prototype would still apply. */
2250 /* The GNU C library defines this for functions which it implements
2251 to always fail with ENOSYS. Some functions are actually named
2252 something starting with __ and the normal name is an alias. */
2253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2263 eval "ac_cv_func_$ac_func=yes"
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2268 eval "ac_cv_func_$ac_func=no"
2273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2276 cat >> confdefs.h <<EOF
2277 #define $ac_tr_func 1
2281 echo "$ac_t""no" 1>&6
2286 if test "${ac_cv_func_stpcpy}" = "yes"; then
2287 cat >> confdefs.h <<\EOF
2288 #define HAVE_STPCPY 1
2293 if test $ac_cv_header_locale_h = yes; then
2294 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2295 echo "configure:2296: checking for LC_MESSAGES" >&5
2296 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2309 am_cv_val_LC_MESSAGES=yes
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2314 am_cv_val_LC_MESSAGES=no
2319 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2320 if test $am_cv_val_LC_MESSAGES = yes; then
2321 cat >> confdefs.h <<\EOF
2322 #define HAVE_LC_MESSAGES 1
2327 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2328 echo "configure:2329: checking whether NLS is requested" >&5
2329 # Check whether --enable-nls or --disable-nls was given.
2330 if test "${enable_nls+set}" = set; then
2331 enableval="$enable_nls"
2337 echo "$ac_t""$USE_NLS" 1>&6
2340 USE_INCLUDED_LIBINTL=no
2342 if test "$USE_NLS" = "yes"; then
2343 cat >> confdefs.h <<\EOF
2344 #define ENABLE_NLS 1
2347 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2348 echo "configure:2349: checking whether included gettext is requested" >&5
2349 # Check whether --with-included-gettext or --without-included-gettext was given.
2350 if test "${with_included_gettext+set}" = set; then
2351 withval="$with_included_gettext"
2352 nls_cv_force_use_gnu_gettext=$withval
2354 nls_cv_force_use_gnu_gettext=no
2357 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2359 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2360 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2362 nls_cv_header_libgt=
2365 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2366 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2367 echo "configure:2368: checking for libintl.h" >&5
2368 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <libintl.h>
2376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2377 { (eval echo configure:2378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2379 if test -z "$ac_err"; then
2381 eval "ac_cv_header_$ac_safe=yes"
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2387 eval "ac_cv_header_$ac_safe=no"
2391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2392 echo "$ac_t""yes" 1>&6
2393 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2394 echo "configure:2395: checking for gettext in libc" >&5
2395 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2401 #include <libintl.h>
2403 return (int) gettext ("")
2406 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2408 gt_cv_func_gettext_libc=yes
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2413 gt_cv_func_gettext_libc=no
2418 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2420 if test "$gt_cv_func_gettext_libc" != "yes"; then
2421 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2422 echo "configure:2423: checking for bindtextdomain in -lintl" >&5
2423 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 ac_save_LIBS="$LIBS"
2429 cat > conftest.$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 /* Override any gcc2 internal prototype to avoid an error. */
2433 /* We use char because int might match the return type of a gcc2
2434 builtin and then its argument prototype would still apply. */
2435 char bindtextdomain();
2441 if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2443 eval "ac_cv_lib_$ac_lib_var=yes"
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2448 eval "ac_cv_lib_$ac_lib_var=no"
2451 LIBS="$ac_save_LIBS"
2454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2455 echo "$ac_t""yes" 1>&6
2456 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2457 echo "configure:2458: checking for gettext in libintl" >&5
2458 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2459 echo $ac_n "(cached) $ac_c" 1>&6
2461 cat > conftest.$ac_ext <<EOF
2462 #line 2463 "configure"
2463 #include "confdefs.h"
2466 return (int) gettext ("")
2469 if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2471 gt_cv_func_gettext_libintl=yes
2473 echo "configure: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2476 gt_cv_func_gettext_libintl=no
2481 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2483 echo "$ac_t""no" 1>&6
2488 if test "$gt_cv_func_gettext_libc" = "yes" \
2489 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2490 cat >> confdefs.h <<\EOF
2491 #define HAVE_GETTEXT 1
2494 # Extract the first word of "msgfmt", so it can be a program name with args.
2495 set dummy msgfmt; ac_word=$2
2496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2497 echo "configure:2498: checking for $ac_word" >&5
2498 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2503 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2507 for ac_dir in $PATH; do
2508 test -z "$ac_dir" && ac_dir=.
2509 if test -f $ac_dir/$ac_word; then
2510 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2511 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2517 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2521 MSGFMT="$ac_cv_path_MSGFMT"
2522 if test -n "$MSGFMT"; then
2523 echo "$ac_t""$MSGFMT" 1>&6
2525 echo "$ac_t""no" 1>&6
2527 if test "$MSGFMT" != "no"; then
2528 for ac_func in dcgettext
2530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2531 echo "configure:2532: checking for $ac_func" >&5
2532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 /* System header to define __stub macros and hopefully few prototypes,
2539 which can conflict with char $ac_func(); below. */
2541 /* Override any gcc2 internal prototype to avoid an error. */
2542 /* We use char because int might match the return type of a gcc2
2543 builtin and then its argument prototype would still apply. */
2548 /* The GNU C library defines this for functions which it implements
2549 to always fail with ENOSYS. Some functions are actually named
2550 something starting with __ and the normal name is an alias. */
2551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2559 if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2561 eval "ac_cv_func_$ac_func=yes"
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2566 eval "ac_cv_func_$ac_func=no"
2571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2572 echo "$ac_t""yes" 1>&6
2573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2574 cat >> confdefs.h <<EOF
2575 #define $ac_tr_func 1
2579 echo "$ac_t""no" 1>&6
2583 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2584 set dummy gmsgfmt; ac_word=$2
2585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_word" >&5
2587 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2592 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2595 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2600 for ac_dir in $ac_dummy; do
2601 test -z "$ac_dir" && ac_dir=.
2602 if test -f $ac_dir/$ac_word; then
2603 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2608 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2612 GMSGFMT="$ac_cv_path_GMSGFMT"
2613 if test -n "$GMSGFMT"; then
2614 echo "$ac_t""$GMSGFMT" 1>&6
2616 echo "$ac_t""no" 1>&6
2619 # Extract the first word of "xgettext", so it can be a program name with args.
2620 set dummy xgettext; ac_word=$2
2621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2622 echo "configure:2623: checking for $ac_word" >&5
2623 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2628 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2632 for ac_dir in $PATH; do
2633 test -z "$ac_dir" && ac_dir=.
2634 if test -f $ac_dir/$ac_word; then
2635 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2636 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2642 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2646 XGETTEXT="$ac_cv_path_XGETTEXT"
2647 if test -n "$XGETTEXT"; then
2648 echo "$ac_t""$XGETTEXT" 1>&6
2650 echo "$ac_t""no" 1>&6
2653 cat > conftest.$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2658 extern int _nl_msg_cat_cntr;
2659 return _nl_msg_cat_cntr
2662 if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2679 echo "$ac_t""no" 1>&6
2684 if test "$CATOBJEXT" = "NONE"; then
2685 nls_cv_use_gnu_gettext=yes
2689 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2690 INTLOBJS="\$(GETTOBJS)"
2691 # Extract the first word of "msgfmt", so it can be a program name with args.
2692 set dummy msgfmt; ac_word=$2
2693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2694 echo "configure:2695: checking for $ac_word" >&5
2695 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2700 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2704 for ac_dir in $PATH; do
2705 test -z "$ac_dir" && ac_dir=.
2706 if test -f $ac_dir/$ac_word; then
2707 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2708 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2714 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2718 MSGFMT="$ac_cv_path_MSGFMT"
2719 if test -n "$MSGFMT"; then
2720 echo "$ac_t""$MSGFMT" 1>&6
2722 echo "$ac_t""no" 1>&6
2725 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2726 set dummy gmsgfmt; ac_word=$2
2727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2728 echo "configure:2729: checking for $ac_word" >&5
2729 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2734 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2737 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2742 for ac_dir in $ac_dummy; do
2743 test -z "$ac_dir" && ac_dir=.
2744 if test -f $ac_dir/$ac_word; then
2745 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2750 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2754 GMSGFMT="$ac_cv_path_GMSGFMT"
2755 if test -n "$GMSGFMT"; then
2756 echo "$ac_t""$GMSGFMT" 1>&6
2758 echo "$ac_t""no" 1>&6
2761 # Extract the first word of "xgettext", so it can be a program name with args.
2762 set dummy xgettext; ac_word=$2
2763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2764 echo "configure:2765: checking for $ac_word" >&5
2765 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2770 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2774 for ac_dir in $PATH; do
2775 test -z "$ac_dir" && ac_dir=.
2776 if test -f $ac_dir/$ac_word; then
2777 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2778 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2784 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2788 XGETTEXT="$ac_cv_path_XGETTEXT"
2789 if test -n "$XGETTEXT"; then
2790 echo "$ac_t""$XGETTEXT" 1>&6
2792 echo "$ac_t""no" 1>&6
2796 USE_INCLUDED_LIBINTL=yes
2800 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2802 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2803 nls_cv_header_intl=libintl.h
2804 nls_cv_header_libgt=libgettext.h
2807 if test "$XGETTEXT" != ":"; then
2808 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2811 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2816 # We need to process the po/ directory.
2820 nls_cv_header_intl=libintl.h
2821 nls_cv_header_libgt=libgettext.h
2824 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2825 # because some of the sources are only built for this goal.
2826 if test "$PACKAGE" = gettext; then
2828 USE_INCLUDED_LIBINTL=yes
2831 for lang in $ALL_LINGUAS; do
2832 GMOFILES="$GMOFILES $lang.gmo"
2833 POFILES="$POFILES $lang.po"
2849 if test "x$CATOBJEXT" != "x"; then
2850 if test "x$ALL_LINGUAS" = "x"; then
2853 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2854 echo "configure:2855: checking for catalogs to be installed" >&5
2856 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2857 case "$ALL_LINGUAS" in
2858 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2861 LINGUAS=$NEW_LINGUAS
2862 echo "$ac_t""$LINGUAS" 1>&6
2865 if test -n "$LINGUAS"; then
2866 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2870 if test $ac_cv_header_locale_h = yes; then
2871 INCLUDE_LOCALE_H="#include <locale.h>"
2874 /* The system does not provide the header <locale.h>. Take care yourself. */"
2878 if test -f $srcdir/po2tbl.sed.in; then
2879 if test "$CATOBJEXT" = ".cat"; then
2880 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2881 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2882 echo "configure:2883: checking for linux/version.h" >&5
2883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2889 #include <linux/version.h>
2891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2892 { (eval echo configure:2893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2894 if test -z "$ac_err"; then
2896 eval "ac_cv_header_$ac_safe=yes"
2899 echo "configure: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2902 eval "ac_cv_header_$ac_safe=no"
2906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2907 echo "$ac_t""yes" 1>&6
2910 echo "$ac_t""no" 1>&6
2915 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2917 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2918 $srcdir/po2tbl.sed.in > po2tbl.sed
2921 if test "$PACKAGE" = "gettext"; then
2931 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2937 if test -d $srcdir/po; then
2938 test -d po || mkdir po
2939 if test "x$srcdir" != "x."; then
2940 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2941 posrcprefix="$srcdir/"
2943 posrcprefix="../$srcdir/"
2949 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2950 < $srcdir/po/POTFILES.in > po/POTFILES
2954 # Check for common headers.
2955 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2956 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2957 for ac_hdr in stdlib.h string.h strings.h unistd.h time.h
2959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2961 echo "configure:2962: checking for $ac_hdr" >&5
2962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 cat > conftest.$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2971 { (eval echo configure:2972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2973 if test -z "$ac_err"; then
2975 eval "ac_cv_header_$ac_safe=yes"
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2981 eval "ac_cv_header_$ac_safe=no"
2985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2986 echo "$ac_t""yes" 1>&6
2987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2988 cat >> confdefs.h <<EOF
2989 #define $ac_tr_hdr 1
2993 echo "$ac_t""no" 1>&6
2997 for ac_hdr in sys/time.h sys/resource.h
2999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3001 echo "configure:3002: checking for $ac_hdr" >&5
3002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3011 { (eval echo configure:3012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3013 if test -z "$ac_err"; then
3015 eval "ac_cv_header_$ac_safe=yes"
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3021 eval "ac_cv_header_$ac_safe=no"
3025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3026 echo "$ac_t""yes" 1>&6
3027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3028 cat >> confdefs.h <<EOF
3029 #define $ac_tr_hdr 1
3033 echo "$ac_t""no" 1>&6
3037 for ac_hdr in fcntl.h fpu_control.h
3039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3041 echo "configure:3042: checking for $ac_hdr" >&5
3042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3051 { (eval echo configure:3052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3053 if test -z "$ac_err"; then
3055 eval "ac_cv_header_$ac_safe=yes"
3058 echo "configure: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3061 eval "ac_cv_header_$ac_safe=no"
3065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
3067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3068 cat >> confdefs.h <<EOF
3069 #define $ac_tr_hdr 1
3073 echo "$ac_t""no" 1>&6
3077 for ac_hdr in dlfcn.h errno.h sys/stat.h
3079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3081 echo "configure:3082: checking for $ac_hdr" >&5
3082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3091 { (eval echo configure:3092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3093 if test -z "$ac_err"; then
3095 eval "ac_cv_header_$ac_safe=yes"
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3101 eval "ac_cv_header_$ac_safe=no"
3105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3108 cat >> confdefs.h <<EOF
3109 #define $ac_tr_hdr 1
3113 echo "$ac_t""no" 1>&6
3117 for ac_func in getrusage time sigaction __setfpucw
3119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3120 echo "configure:3121: checking for $ac_func" >&5
3121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 /* System header to define __stub macros and hopefully few prototypes,
3128 which can conflict with char $ac_func(); below. */
3130 /* Override any gcc2 internal prototype to avoid an error. */
3131 /* We use char because int might match the return type of a gcc2
3132 builtin and then its argument prototype would still apply. */
3137 /* The GNU C library defines this for functions which it implements
3138 to always fail with ENOSYS. Some functions are actually named
3139 something starting with __ and the normal name is an alias. */
3140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3148 if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3150 eval "ac_cv_func_$ac_func=yes"
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3155 eval "ac_cv_func_$ac_func=no"
3160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3163 cat >> confdefs.h <<EOF
3164 #define $ac_tr_func 1
3168 echo "$ac_t""no" 1>&6
3173 # Check for socket libraries
3174 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3175 echo "configure:3176: checking for bind in -lsocket" >&5
3176 ac_lib_var=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 ac_save_LIBS="$LIBS"
3181 LIBS="-lsocket $LIBS"
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 /* Override any gcc2 internal prototype to avoid an error. */
3186 /* We use char because int might match the return type of a gcc2
3187 builtin and then its argument prototype would still apply. */
3194 if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3196 eval "ac_cv_lib_$ac_lib_var=yes"
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3201 eval "ac_cv_lib_$ac_lib_var=no"
3204 LIBS="$ac_save_LIBS"
3207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3208 echo "$ac_t""yes" 1>&6
3209 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3210 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3211 cat >> confdefs.h <<EOF
3212 #define $ac_tr_lib 1
3215 LIBS="-lsocket $LIBS"
3218 echo "$ac_t""no" 1>&6
3221 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3222 echo "configure:3223: checking for gethostbyname in -lnsl" >&5
3223 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3227 ac_save_LIBS="$LIBS"
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 /* Override any gcc2 internal prototype to avoid an error. */
3233 /* We use char because int might match the return type of a gcc2
3234 builtin and then its argument prototype would still apply. */
3235 char gethostbyname();
3241 if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3243 eval "ac_cv_lib_$ac_lib_var=yes"
3245 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3248 eval "ac_cv_lib_$ac_lib_var=no"
3251 LIBS="$ac_save_LIBS"
3254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3255 echo "$ac_t""yes" 1>&6
3256 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3257 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3258 cat >> confdefs.h <<EOF
3259 #define $ac_tr_lib 1
3265 echo "$ac_t""no" 1>&6
3269 . ${srcdir}/../../bfd/configure.host
3273 USE_MAINTAINER_MODE=no
3274 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3275 if test "${enable_maintainer_mode+set}" = set; then
3276 enableval="$enable_maintainer_mode"
3277 case "${enableval}" in
3278 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
3280 *) { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;
3282 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
3283 echo "Setting maintainer mode" 6>&1
3291 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3292 if test "${enable_sim_bswap+set}" = set; then
3293 enableval="$enable_sim_bswap"
3294 case "${enableval}" in
3295 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3296 no) sim_bswap="-DWITH_BSWAP=0";;
3297 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
3299 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3300 echo "Setting bswap flags = $sim_bswap" 6>&1
3308 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3309 if test "${enable_sim_cflags+set}" = set; then
3310 enableval="$enable_sim_cflags"
3311 case "${enableval}" in
3312 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3313 trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
3315 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3317 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3318 echo "Setting sim cflags = $sim_cflags" 6>&1
3326 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3327 if test "${enable_sim_debug+set}" = set; then
3328 enableval="$enable_sim_debug"
3329 case "${enableval}" in
3330 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
3331 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
3332 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3334 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
3335 echo "Setting sim debug = $sim_debug" 6>&1
3343 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3344 if test "${enable_sim_stdio+set}" = set; then
3345 enableval="$enable_sim_stdio"
3346 case "${enableval}" in
3347 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3348 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3349 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
3351 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3352 echo "Setting stdio flags = $sim_stdio" 6>&1
3360 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3361 if test "${enable_sim_trace+set}" = set; then
3362 enableval="$enable_sim_trace"
3363 case "${enableval}" in
3364 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
3365 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
3367 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3370 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3371 if test x"$sim_trace" = x; then
3372 sim_trace="-DWITH_TRACE='(TRACE_$x"
3374 sim_trace="${sim_trace}|TRACE_$x"
3377 sim_trace="$sim_trace)'" ;;
3379 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3380 echo "Setting sim trace = $sim_trace" 6>&1
3388 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3389 if test "${enable_sim_profile+set}" = set; then
3390 enableval="$enable_sim_profile"
3391 case "${enableval}" in
3392 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
3393 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
3395 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3398 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3399 if test x"$sim_profile" = x; then
3400 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
3402 sim_profile="${sim_profile}|PROFILE_$x"
3405 sim_profile="$sim_profile)'" ;;
3407 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
3408 echo "Setting sim profile = $sim_profile" 6>&1
3411 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
3416 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3417 echo "configure:3418: checking return type of signal handlers" >&5
3418 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 #include <sys/types.h>
3430 extern "C" void (*signal (int, void (*)(int)))(int);
3432 void (*signal ()) ();
3439 if { (eval echo configure:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3441 ac_cv_type_signal=void
3443 echo "configure: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3446 ac_cv_type_signal=int
3451 echo "$ac_t""$ac_cv_type_signal" 1>&6
3452 cat >> confdefs.h <<EOF
3453 #define RETSIGTYPE $ac_cv_type_signal
3460 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3461 echo "configure:3462: checking for executable suffix" >&5
3462 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3469 echo 'int main () { return 0; }' > conftest.$ac_ext
3471 if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3472 for file in conftest.*; do
3474 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
3475 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3479 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3482 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3487 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3488 echo "$ac_t""${ac_cv_exeext}" 1>&6
3495 sim_link_links=tconfig.h
3496 if test -f ${srcdir}/tconfig.in
3498 sim_link_files=tconfig.in
3500 sim_link_files=../common/tconfig.in
3503 # targ-vals.def points to the libc macro description file.
3505 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
3507 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
3508 sim_link_links="${sim_link_links} targ-vals.def"
3513 wire_endian="BIG_ENDIAN"
3515 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3516 if test "${enable_sim_endian+set}" = set; then
3517 enableval="$enable_sim_endian"
3518 case "${enableval}" in
3519 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3520 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3521 yes) if test x"$wire_endian" != x; then
3522 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3524 if test x"$default_endian" != x; then
3525 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3527 echo "No hard-wired endian for target $target" 1>&6
3528 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
3531 no) if test x"$default_endian" != x; then
3532 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3534 if test x"$wire_endian" != x; then
3535 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3537 echo "No default endian for target $target" 1>&6
3538 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3541 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian="";;
3543 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3544 echo "Setting endian flags = $sim_endian" 6>&1
3547 if test x"$default_endian" != x; then
3548 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3550 if test x"$wire_endian" != x; then
3551 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3558 wire_alignment="STRICT_ALIGNMENT"
3559 default_alignment=""
3561 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3562 if test "${enable_sim_alignment+set}" = set; then
3563 enableval="$enable_sim_alignment"
3564 case "${enableval}" in
3565 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3566 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3567 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3568 yes) if test x"$wire_alignment" != x; then
3569 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
3571 if test x"$default_alignment" != x; then
3572 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
3574 echo "No hard-wired alignment for target $target" 1>&6
3575 sim_alignment="-DWITH_ALIGNMENT=0"
3578 no) if test x"$default_alignment" != x; then
3579 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3581 if test x"$wire_alignment" != x; then
3582 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3584 echo "No default alignment for target $target" 1>&6
3585 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
3588 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment="";;
3590 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
3591 echo "Setting alignment flags = $sim_alignment" 6>&1
3594 if test x"$default_alignment" != x; then
3595 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3597 if test x"$wire_alignment" != x; then
3598 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
3606 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3607 if test "${enable_sim_hostendian+set}" = set; then
3608 enableval="$enable_sim_hostendian"
3609 case "${enableval}" in
3610 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
3611 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3612 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3613 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian="";;
3615 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
3616 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3620 if test "x$cross_compiling" = "xno"; then
3621 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3622 echo "configure:3623: checking whether byte ordering is bigendian" >&5
3623 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 ac_cv_c_bigendian=unknown
3627 # See if sys/param.h defines the BYTE_ORDER macro.
3628 cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3631 #include <sys/types.h>
3632 #include <sys/param.h>
3635 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3640 if { (eval echo configure:3641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3642 # It does; now see whether it defined to BIG_ENDIAN or not.
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <sys/types.h>
3647 #include <sys/param.h>
3650 #if BYTE_ORDER != BIG_ENDIAN
3655 if { (eval echo configure:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3657 ac_cv_c_bigendian=yes
3659 echo "configure: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3662 ac_cv_c_bigendian=no
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3670 if test $ac_cv_c_bigendian = unknown; then
3671 if test "$cross_compiling" = yes; then
3672 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3674 cat > conftest.$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3678 /* Are we little or big endian? From Harbison&Steele. */
3682 char c[sizeof (long)];
3685 exit (u.c[sizeof (long) - 1] == 1);
3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3690 ac_cv_c_bigendian=no
3692 echo "configure: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3695 ac_cv_c_bigendian=yes
3703 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3704 if test $ac_cv_c_bigendian = yes; then
3705 cat >> confdefs.h <<\EOF
3706 #define WORDS_BIGENDIAN 1
3711 if test $ac_cv_c_bigendian = yes; then
3712 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3714 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3717 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
3722 default_sim_scache="16384"
3723 # Check whether --enable-sim-scache or --disable-sim-scache was given.
3724 if test "${enable_sim_scache+set}" = set; then
3725 enableval="$enable_sim_scache"
3726 case "${enableval}" in
3727 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
3728 no) sim_scache="-DWITH_SCACHE=0" ;;
3729 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
3730 *) { echo "configure: error: "Bad value $enableval passed to --enable-sim-scache"" 1>&2; exit 1; };
3733 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
3734 echo "Setting scache size = $sim_scache" 6>&1
3737 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
3742 default_sim_default_model="fr500"
3743 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
3744 if test "${enable_sim_default_model+set}" = set; then
3745 enableval="$enable_sim_default_model"
3746 case "${enableval}" in
3747 yes|no) { echo "configure: error: "Missing argument to --enable-sim-default-model"" 1>&2; exit 1; };;
3748 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
3750 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3751 echo "Setting default model = $sim_default_model" 6>&1
3754 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
3759 # Check whether --enable-sim-environment or --disable-sim-environment was given.
3760 if test "${enable_sim_environment+set}" = set; then
3761 enableval="$enable_sim_environment"
3762 case "${enableval}" in
3763 all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
3764 user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
3765 virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
3766 operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
3767 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-environment"" 1>&2; exit 1; };
3768 sim_environment="";;
3770 if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
3771 echo "Setting sim environment = $sim_environment" 6>&1
3774 sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
3780 cgendir='$(srcdir)/../../cgen'
3781 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
3782 if test "${enable_cgen_maint+set}" = set; then
3783 enableval="$enable_cgen_maint"
3784 case "${enableval}" in
3785 yes) cgen_maint=yes ;;
3786 no) cgen_maint=no ;;
3788 # argument is cgen install directory (not implemented yet).
3789 # Having a `share' directory might be more appropriate for the .scm,
3791 cgendir=${cgen_maint}/lib/cgen
3796 if test x${cgen_maint} != xno ; then
3807 # Enable making unknown traps dump out registers
3809 # Check whether --enable-sim-trapdump or --disable-sim-trapdump was given.
3810 if test "${enable_sim_trapdump+set}" = set; then
3811 enableval="$enable_sim_trapdump"
3812 case "${enableval}" in
3813 yes) sim_trapdump="-DTRAPDUMP=1";;
3814 no) sim_trapdump="-DTRAPDUMP=0";;
3815 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-trapdump"" 1>&2; exit 1; }; sim_trapdump="";;
3817 if test x"$silent" != x"yes" && test x"$sim_trapdump" != x""; then
3818 echo "Setting sim_trapdump = $sim_trapdump" 6>&1
3828 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
3829 cgen_breaks="break cgen_rtx_error";
3833 cat > confcache <<\EOF
3834 # This file is a shell script that caches the results of configure
3835 # tests run on this system so they can be shared between configure
3836 # scripts and configure runs. It is not useful on other systems.
3837 # If it contains results you don't want to keep, you may remove or edit it.
3839 # By default, configure uses ./config.cache as the cache file,
3840 # creating it if it does not exist already. You can give configure
3841 # the --cache-file=FILE option to use a different cache file; that is
3842 # what configure does when it calls configure scripts in
3843 # subdirectories, so they share the cache.
3844 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3845 # config.status only pays attention to the cache file if you give it the
3846 # --recheck option to rerun configure.
3849 # The following way of writing the cache mishandles newlines in values,
3850 # but we know of no workaround that is simple, portable, and efficient.
3851 # So, don't put newlines in cache variables' values.
3852 # Ultrix sh set writes to stderr and can't be redirected directly,
3853 # and sets the high bit in the cache file unless we assign to the vars.
3855 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3857 # `set' does not quote correctly, so add quotes (double-quote substitution
3858 # turns \\\\ into \\, and sed turns \\ into \).
3860 -e "s/'/'\\\\''/g" \
3861 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3864 # `set' quotes correctly as required by POSIX, so do not add quotes.
3865 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3868 if cmp -s $cache_file confcache; then
3871 if test -w $cache_file; then
3872 echo "updating cache $cache_file"
3873 cat confcache > $cache_file
3875 echo "not updating unwritable cache $cache_file"
3880 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3883 # Let make expand exec_prefix.
3884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3886 # Any assignment to VPATH causes Sun make to only execute
3887 # the first set of double-colon rules, so remove it if not needed.
3888 # If there is a colon in the path, we need to keep it.
3889 if test "x$srcdir" = x.; then
3890 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3893 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3895 DEFS=-DHAVE_CONFIG_H
3897 # Without the "./", some shells look in PATH for config.status.
3898 : ${CONFIG_STATUS=./config.status}
3900 echo creating $CONFIG_STATUS
3901 rm -f $CONFIG_STATUS
3902 cat > $CONFIG_STATUS <<EOF
3904 # Generated automatically by configure.
3905 # Run this file to recreate the current configuration.
3906 # This directory was configured as follows,
3907 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3909 # $0 $ac_configure_args
3911 # Compiler output produced by configure, useful for debugging
3912 # configure, is in ./config.log if it exists.
3914 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3917 case "\$ac_option" in
3918 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3919 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3920 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3921 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3922 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3924 -help | --help | --hel | --he | --h)
3925 echo "\$ac_cs_usage"; exit 0 ;;
3926 *) echo "\$ac_cs_usage"; exit 1 ;;
3930 ac_given_srcdir=$srcdir
3931 ac_given_INSTALL="$INSTALL"
3933 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
3935 cat >> $CONFIG_STATUS <<EOF
3937 # Protect against being on the right side of a sed subst in config.status.
3938 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3939 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3942 s%@sim_environment@%$sim_environment%g
3943 s%@sim_alignment@%$sim_alignment%g
3944 s%@sim_assert@%$sim_assert%g
3945 s%@sim_bitsize@%$sim_bitsize%g
3946 s%@sim_endian@%$sim_endian%g
3947 s%@sim_hostendian@%$sim_hostendian%g
3948 s%@sim_float@%$sim_float%g
3949 s%@sim_scache@%$sim_scache%g
3950 s%@sim_default_model@%$sim_default_model%g
3951 s%@sim_hw_cflags@%$sim_hw_cflags%g
3952 s%@sim_hw_objs@%$sim_hw_objs%g
3953 s%@sim_hw@%$sim_hw%g
3954 s%@sim_inline@%$sim_inline%g
3955 s%@sim_packages@%$sim_packages%g
3956 s%@sim_regparm@%$sim_regparm%g
3957 s%@sim_reserved_bits@%$sim_reserved_bits%g
3958 s%@sim_smp@%$sim_smp%g
3959 s%@sim_stdcall@%$sim_stdcall%g
3960 s%@sim_xor_endian@%$sim_xor_endian%g
3961 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
3962 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
3964 s%@CFLAGS@%$CFLAGS%g
3965 s%@CPPFLAGS@%$CPPFLAGS%g
3966 s%@CXXFLAGS@%$CXXFLAGS%g
3967 s%@FFLAGS@%$FFLAGS%g
3969 s%@LDFLAGS@%$LDFLAGS%g
3971 s%@exec_prefix@%$exec_prefix%g
3972 s%@prefix@%$prefix%g
3973 s%@program_transform_name@%$program_transform_name%g
3974 s%@bindir@%$bindir%g
3975 s%@sbindir@%$sbindir%g
3976 s%@libexecdir@%$libexecdir%g
3977 s%@datadir@%$datadir%g
3978 s%@sysconfdir@%$sysconfdir%g
3979 s%@sharedstatedir@%$sharedstatedir%g
3980 s%@localstatedir@%$localstatedir%g
3981 s%@libdir@%$libdir%g
3982 s%@includedir@%$includedir%g
3983 s%@oldincludedir@%$oldincludedir%g
3984 s%@infodir@%$infodir%g
3985 s%@mandir@%$mandir%g
3987 s%@host_alias@%$host_alias%g
3988 s%@host_cpu@%$host_cpu%g
3989 s%@host_vendor@%$host_vendor%g
3990 s%@host_os@%$host_os%g
3991 s%@target@%$target%g
3992 s%@target_alias@%$target_alias%g
3993 s%@target_cpu@%$target_cpu%g
3994 s%@target_vendor@%$target_vendor%g
3995 s%@target_os@%$target_os%g
3997 s%@build_alias@%$build_alias%g
3998 s%@build_cpu@%$build_cpu%g
3999 s%@build_vendor@%$build_vendor%g
4000 s%@build_os@%$build_os%g
4002 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4003 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4004 s%@INSTALL_DATA@%$INSTALL_DATA%g
4005 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4006 s%@HDEFINES@%$HDEFINES%g
4008 s%@RANLIB@%$RANLIB%g
4009 s%@SET_MAKE@%$SET_MAKE%g
4011 s%@ALLOCA@%$ALLOCA%g
4012 s%@USE_NLS@%$USE_NLS%g
4013 s%@MSGFMT@%$MSGFMT%g
4014 s%@GMSGFMT@%$GMSGFMT%g
4015 s%@XGETTEXT@%$XGETTEXT%g
4016 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4017 s%@CATALOGS@%$CATALOGS%g
4018 s%@CATOBJEXT@%$CATOBJEXT%g
4019 s%@DATADIRNAME@%$DATADIRNAME%g
4020 s%@GMOFILES@%$GMOFILES%g
4021 s%@INSTOBJEXT@%$INSTOBJEXT%g
4022 s%@INTLDEPS@%$INTLDEPS%g
4023 s%@INTLLIBS@%$INTLLIBS%g
4024 s%@INTLOBJS@%$INTLOBJS%g
4025 s%@POFILES@%$POFILES%g
4027 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4029 s%@GT_YES@%$GT_YES%g
4030 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4033 s%@sim_bswap@%$sim_bswap%g
4034 s%@sim_cflags@%$sim_cflags%g
4035 s%@sim_debug@%$sim_debug%g
4036 s%@sim_stdio@%$sim_stdio%g
4037 s%@sim_trace@%$sim_trace%g
4038 s%@sim_profile@%$sim_profile%g
4039 s%@EXEEXT@%$EXEEXT%g
4040 s%@CGEN_MAINT@%$CGEN_MAINT%g
4041 s%@cgendir@%$cgendir%g
4043 s%@sim_trapdump@%$sim_trapdump%g
4044 s%@cgen_breaks@%$cgen_breaks%g
4049 cat >> $CONFIG_STATUS <<\EOF
4051 # Split the substitutions into bite-sized pieces for seds with
4052 # small command number limits, like on Digital OSF/1 and HP-UX.
4053 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4054 ac_file=1 # Number of current file.
4055 ac_beg=1 # First line for current file.
4056 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4059 while $ac_more_lines; do
4060 if test $ac_beg -gt 1; then
4061 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4063 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4065 if test ! -s conftest.s$ac_file; then
4067 rm -f conftest.s$ac_file
4069 if test -z "$ac_sed_cmds"; then
4070 ac_sed_cmds="sed -f conftest.s$ac_file"
4072 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4074 ac_file=`expr $ac_file + 1`
4076 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4079 if test -z "$ac_sed_cmds"; then
4084 cat >> $CONFIG_STATUS <<EOF
4086 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4088 cat >> $CONFIG_STATUS <<\EOF
4089 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4090 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4092 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4093 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4094 *) ac_file_in="${ac_file}.in" ;;
4097 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4099 # Remove last slash and all that follows it. Not all systems have dirname.
4100 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4101 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4102 # The file is in a subdirectory.
4103 test ! -d "$ac_dir" && mkdir "$ac_dir"
4104 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4105 # A "../" for each directory in $ac_dir_suffix.
4106 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4108 ac_dir_suffix= ac_dots=
4111 case "$ac_given_srcdir" in
4113 if test -z "$ac_dots"; then top_srcdir=.
4114 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4115 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4117 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4118 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4121 case "$ac_given_INSTALL" in
4122 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4123 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4126 echo creating "$ac_file"
4128 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4130 *Makefile*) ac_comsub="1i\\
4131 # $configure_input" ;;
4135 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4137 s%@configure_input@%$configure_input%g
4138 s%@srcdir@%$srcdir%g
4139 s%@top_srcdir@%$top_srcdir%g
4140 s%@INSTALL@%$INSTALL%g
4141 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4145 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4146 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4148 # ac_d sets the value in "#define NAME VALUE" lines.
4149 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4150 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4153 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4154 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4155 ac_uB='\([ ]\)%\1#\2define\3'
4158 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4159 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4160 ac_eB='$%\1#\2define\3'
4164 if test "${CONFIG_HEADERS+set}" != set; then
4166 cat >> $CONFIG_STATUS <<EOF
4167 CONFIG_HEADERS="config.h:config.in"
4169 cat >> $CONFIG_STATUS <<\EOF
4171 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4172 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4174 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4175 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4176 *) ac_file_in="${ac_file}.in" ;;
4179 echo creating $ac_file
4181 rm -f conftest.frag conftest.in conftest.out
4182 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4183 cat $ac_file_inputs > conftest.in
4187 # Transform confdefs.h into a sed script conftest.vals that substitutes
4188 # the proper values into config.h.in to produce config.h. And first:
4189 # Protect against being on the right side of a sed subst in config.status.
4190 # Protect against being in an unquoted here document in config.status.
4192 cat > conftest.hdr <<\EOF
4195 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4199 sed -n -f conftest.hdr confdefs.h > conftest.vals
4202 # This sed command replaces #undef with comments. This is necessary, for
4203 # example, in the case of _POSIX_SOURCE, which is predefined and required
4204 # on some systems where configure will not decide to define it.
4205 cat >> conftest.vals <<\EOF
4206 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4209 # Break up conftest.vals because some shells have a limit on
4210 # the size of here documents, and old seds have small limits too.
4215 ac_lines=`grep -c . conftest.vals`
4216 # grep -c gives empty output for an empty file on some AIX systems.
4217 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4218 # Write a limited-size here document to conftest.frag.
4219 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4220 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4222 sed -f conftest.frag conftest.in > conftest.out
4224 mv conftest.out conftest.in
4226 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4228 mv conftest.tail conftest.vals
4232 cat >> $CONFIG_STATUS <<\EOF
4233 rm -f conftest.frag conftest.h
4234 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4235 cat conftest.in >> conftest.h
4237 if cmp -s $ac_file conftest.h 2>/dev/null; then
4238 echo "$ac_file is unchanged"
4241 # Remove last slash and all that follows it. Not all systems have dirname.
4242 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4243 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4244 # The file is in a subdirectory.
4245 test ! -d "$ac_dir" && mkdir "$ac_dir"
4248 mv conftest.h $ac_file
4254 cat >> $CONFIG_STATUS <<EOF
4255 ac_sources="$sim_link_files"
4256 ac_dests="$sim_link_links"
4259 cat >> $CONFIG_STATUS <<\EOF
4260 srcdir=$ac_given_srcdir
4261 while test -n "$ac_sources"; do
4262 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4263 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4265 echo "linking $srcdir/$ac_source to $ac_dest"
4267 if test ! -r $srcdir/$ac_source; then
4268 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4272 # Make relative symlinks.
4273 # Remove last slash and all that follows it. Not all systems have dirname.
4274 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4275 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4276 # The dest file is in a subdirectory.
4277 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4278 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4279 # A "../" for each directory in $ac_dest_dir_suffix.
4280 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4282 ac_dest_dir_suffix= ac_dots=
4286 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4287 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4290 # Make a symlink if possible; otherwise try a hard link.
4291 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4292 ln $srcdir/$ac_source $ac_dest; then :
4294 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4298 cat >> $CONFIG_STATUS <<EOF
4301 cat >> $CONFIG_STATUS <<\EOF
4302 case "x$CONFIG_FILES" in
4304 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4305 rm -f Makesim1.tmp Makesim2.tmp Makefile
4306 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4307 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4308 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4309 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4310 <Makefile.sim >Makefile
4311 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4314 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4318 chmod +x $CONFIG_STATUS
4319 rm -fr confdefs* $ac_clean_files
4320 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1