45 sim_inline
="-DDEFAULT_INLINE=0"
81 # This file is derived from `gettext.m4'. The difference is that the
82 # included macros assume Cygnus-style source and build trees.
84 # Macro to add for using GNU gettext.
85 # Ulrich Drepper <drepper@cygnus.com>, 1995.
87 # This file file be copied and used freely without restrictions. It can
88 # be used in projects which are not available under the GNU Public License
89 # but which still want to provide support for the GNU gettext functionality.
90 # Please note that the actual code is *not* freely available.
98 # Search path for a program which passes the given test.
99 # Ulrich Drepper <drepper@cygnus.com>, 1996.
101 # This file file be copied and used freely without restrictions. It can
102 # be used in projects which are not available under the GNU Public License
103 # but which still want to provide support for the GNU gettext functionality.
104 # Please note that the actual code is *not* freely available.
110 # Check whether LC_MESSAGES is available in <locale.h>.
111 # Ulrich Drepper <drepper@cygnus.com>, 1995.
113 # This file file be copied and used freely without restrictions. It can
114 # be used in projects which are not available under the GNU Public License
115 # but which still want to provide support for the GNU gettext functionality.
116 # Please note that the actual code is *not* freely available.
125 # Guess values for system-dependent variables and create Makefiles.
126 # Generated automatically using autoconf version 2.13
127 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
129 # This configure script is free software; the Free Software Foundation
130 # gives unlimited permission to copy, distribute and modify it.
134 ac_default_prefix
=/usr
/local
135 # Any additions from configure.in:
137 --disable-nls do not use Native Language Support"
139 --with-included-gettext use the GNU gettext library included here"
141 --enable-maintainer-mode Enable developer functionality."
143 --enable-sim-bswap Use Host specific BSWAP instruction."
145 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
147 --enable-sim-debug=opts Enable debugging flags"
149 --enable-sim-stdio Specify whether to use stdio for console input/output."
151 --enable-sim-trace=opts Enable tracing flags"
153 --enable-sim-profile=opts Enable profiling flags"
155 --enable-sim-inline=inlines Specify which functions should be inlined."
157 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
159 --enable-sim-hostendian=end Specify host byte endian orientation."
161 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
163 --enable-sim-endian=endian Specify target byte endian orientation."
165 --enable-sim-bitsize=N Specify target bitsize (32 or 64)."
167 --enable-sim-float Specify that the target processor has floating point hardware."
169 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp})."
171 --enable-sim-hardware=LIST Specify the hardware to be included in the build."
173 --with-x use the X Window System"
175 --with-sim-gpu2=path Use GPU2 library under given directory"
177 --with-x use the X Window System"
179 --with-sim-funit=path Use target FP library under given directory"
181 # Initialize some variables set by options.
182 # The variables have the same names as the options, with
183 # dashes changed to underlines.
185 cache_file
=.
/config.cache
194 program_transform_name
=s
,x
,x
,
203 bindir
='${exec_prefix}/bin'
204 sbindir
='${exec_prefix}/sbin'
205 libexecdir
='${exec_prefix}/libexec'
206 datadir
='${prefix}/share'
207 sysconfdir
='${prefix}/etc'
208 sharedstatedir
='${prefix}/com'
209 localstatedir
='${prefix}/var'
210 libdir
='${exec_prefix}/lib'
211 includedir
='${prefix}/include'
212 oldincludedir
='/usr/include'
213 infodir
='${prefix}/info'
214 mandir
='${prefix}/man'
216 # Initialize some other variables.
219 SHELL
=${CONFIG_SHELL-/bin/sh}
220 # Maximum number of lines to put in a shell here document.
227 # If the previous option needs an argument, assign it.
228 if test -n "$ac_prev"; then
229 eval "$ac_prev=\$ac_option"
235 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
239 # Accept the important Cygnus configure options, so we can diagnose typos.
243 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
245 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
246 bindir
="$ac_optarg" ;;
248 -build |
--build |
--buil |
--bui |
--bu)
250 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
251 build
="$ac_optarg" ;;
253 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
254 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
255 ac_prev
=cache_file
;;
256 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
257 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
258 cache_file
="$ac_optarg" ;;
260 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
262 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
264 datadir
="$ac_optarg" ;;
266 -disable-* |
--disable-*)
267 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
273 eval "enable_${ac_feature}=no" ;;
275 -enable-* |
--enable-*)
276 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
277 # Reject names that are not valid shell variable names.
278 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
279 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
281 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
286 eval "enable_${ac_feature}='$ac_optarg'" ;;
288 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
289 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
290 |
--exec |
--exe |
--ex)
291 ac_prev
=exec_prefix
;;
292 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
293 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
294 |
--exec=* |
--exe=* |
--ex=*)
295 exec_prefix
="$ac_optarg" ;;
297 -gas |
--gas |
--ga |
--g)
298 # Obsolete; use --with-gas.
301 -help |
--help |
--hel |
--he)
302 # Omit some internal or obsolete options to make the list less imposing.
303 # This message is too long to be a string in the A/UX 3.1 sh.
305 Usage: configure [options] [host]
306 Options: [defaults in brackets after descriptions]
308 --cache-file=FILE cache test results in FILE
309 --help print this message
310 --no-create do not create output files
311 --quiet, --silent do not print \`checking...' messages
312 --site-file=FILE use FILE as the site file
313 --version print the version of autoconf that created configure
314 Directory and file names:
315 --prefix=PREFIX install architecture-independent files in PREFIX
317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
319 --bindir=DIR user executables in DIR [EPREFIX/bin]
320 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
321 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
322 --datadir=DIR read-only architecture-independent data in DIR
324 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
325 --sharedstatedir=DIR modifiable architecture-independent data in DIR
327 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
328 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
329 --includedir=DIR C header files in DIR [PREFIX/include]
330 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
331 --infodir=DIR info documentation in DIR [PREFIX/info]
332 --mandir=DIR man documentation in DIR [PREFIX/man]
333 --srcdir=DIR find the sources in DIR [configure dir or ..]
334 --program-prefix=PREFIX prepend PREFIX to installed program names
335 --program-suffix=SUFFIX append SUFFIX to installed program names
336 --program-transform-name=PROGRAM
337 run sed PROGRAM on installed program names
341 --build=BUILD configure for building on BUILD [BUILD=HOST]
342 --host=HOST configure for HOST [guessed]
343 --target=TARGET configure for TARGET [TARGET=HOST]
344 Features and packages:
345 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
346 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
347 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
348 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
349 --x-includes=DIR X include files are in DIR
350 --x-libraries=DIR X library files are in DIR
352 if test -n "$ac_help"; then
353 echo "--enable and --with options recognized:$ac_help"
357 -host |
--host |
--hos |
--ho)
359 -host=* |
--host=* |
--hos=* |
--ho=*)
362 -includedir |
--includedir |
--includedi |
--included |
--include \
363 |
--includ |
--inclu |
--incl |
--inc)
364 ac_prev
=includedir
;;
365 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
366 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
367 includedir
="$ac_optarg" ;;
369 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
371 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
372 infodir
="$ac_optarg" ;;
374 -libdir |
--libdir |
--libdi |
--libd)
376 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
377 libdir
="$ac_optarg" ;;
379 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
380 |
--libexe |
--libex |
--libe)
381 ac_prev
=libexecdir
;;
382 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
383 |
--libexe=* |
--libex=* |
--libe=*)
384 libexecdir
="$ac_optarg" ;;
386 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
387 |
--localstate |
--localstat |
--localsta |
--localst \
388 |
--locals |
--local |
--loca |
--loc |
--lo)
389 ac_prev
=localstatedir
;;
390 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
391 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
392 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
393 localstatedir
="$ac_optarg" ;;
395 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
397 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
398 mandir
="$ac_optarg" ;;
401 # Obsolete; use --without-fp.
404 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
408 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
409 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
412 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
413 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
414 |
--oldin |
--oldi |
--old |
--ol |
--o)
415 ac_prev
=oldincludedir
;;
416 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
417 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
418 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
419 oldincludedir
="$ac_optarg" ;;
421 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
423 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
424 prefix
="$ac_optarg" ;;
426 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
427 |
--program-pre |
--program-pr |
--program-p)
428 ac_prev
=program_prefix
;;
429 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
430 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
431 program_prefix
="$ac_optarg" ;;
433 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
434 |
--program-suf |
--program-su |
--program-s)
435 ac_prev
=program_suffix
;;
436 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
437 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
438 program_suffix
="$ac_optarg" ;;
440 -program-transform-name |
--program-transform-name \
441 |
--program-transform-nam |
--program-transform-na \
442 |
--program-transform-n |
--program-transform- \
443 |
--program-transform |
--program-transfor \
444 |
--program-transfo |
--program-transf \
445 |
--program-trans |
--program-tran \
446 |
--progr-tra |
--program-tr |
--program-t)
447 ac_prev
=program_transform_name
;;
448 -program-transform-name=* |
--program-transform-name=* \
449 |
--program-transform-nam=* |
--program-transform-na=* \
450 |
--program-transform-n=* |
--program-transform-=* \
451 |
--program-transform=* |
--program-transfor=* \
452 |
--program-transfo=* |
--program-transf=* \
453 |
--program-trans=* |
--program-tran=* \
454 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
455 program_transform_name
="$ac_optarg" ;;
457 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
458 |
-silent |
--silent |
--silen |
--sile |
--sil)
461 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
463 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
465 sbindir
="$ac_optarg" ;;
467 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
468 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
469 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
471 ac_prev
=sharedstatedir
;;
472 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
473 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
474 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
476 sharedstatedir
="$ac_optarg" ;;
478 -site |
--site |
--sit)
480 -site=* |
--site=* |
--sit=*)
483 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
485 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
486 sitefile
="$ac_optarg" ;;
488 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
490 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
491 srcdir
="$ac_optarg" ;;
493 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
494 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
495 ac_prev
=sysconfdir
;;
496 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
497 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
498 sysconfdir
="$ac_optarg" ;;
500 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
502 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
503 target
="$ac_optarg" ;;
505 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
508 -version |
--version |
--versio |
--versi |
--vers)
509 echo "configure generated by autoconf version 2.13"
513 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
514 # Reject names that are not valid shell variable names.
515 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
516 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
518 ac_package
=`echo $ac_package| sed 's/-/_/g'`
523 eval "with_${ac_package}='$ac_optarg'" ;;
525 -without-* |
--without-*)
526 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
527 # Reject names that are not valid shell variable names.
528 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
529 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
531 ac_package
=`echo $ac_package| sed 's/-/_/g'`
532 eval "with_${ac_package}=no" ;;
535 # Obsolete; use --with-x.
538 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
539 |
--x-incl |
--x-inc |
--x-in |
--x-i)
540 ac_prev
=x_includes
;;
541 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
542 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
543 x_includes
="$ac_optarg" ;;
545 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
546 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
547 ac_prev
=x_libraries
;;
548 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
549 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
550 x_libraries
="$ac_optarg" ;;
552 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
556 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
557 echo "configure: warning: $ac_option: invalid host type" 1>&2
559 if test "x$nonopt" != xNONE
; then
560 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
568 if test -n "$ac_prev"; then
569 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
572 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
574 # File descriptor usage:
577 # 2 errors and warnings
578 # 3 some systems may open it to /dev/tty
579 # 4 used on the Kubota Titan
580 # 6 checking for... messages and results
581 # 5 compiler messages saved in config.log
582 if test "$silent" = yes; then
590 This file contains any messages produced by compilers while
591 running configure, to aid debugging if configure makes a mistake.
594 # Strip out --no-create and --no-recursion so they do not pile up.
595 # Also quote any args containing shell metacharacters.
600 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
601 |
--no-cr |
--no-c) ;;
602 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
603 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
604 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
605 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
606 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
611 # Only set these to C if already set. These must not be set unconditionally
612 # because not all systems understand e.g. LANG=C (notably SCO).
613 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
614 # Non-C LC_CTYPE values break the ctype check.
615 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
616 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
617 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
618 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
621 rm -rf conftest
* confdefs.h
622 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
625 # A filename unique to this package, relative to the directory that
626 # configure is in, which we can look for to find out if srcdir is correct.
627 ac_unique_file
=Makefile.
in
629 # Find the source files, if location was not specified.
630 if test -z "$srcdir"; then
631 ac_srcdir_defaulted
=yes
632 # Try the directory containing this script, then its parent.
634 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
635 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
637 if test ! -r $srcdir/$ac_unique_file; then
641 ac_srcdir_defaulted
=no
643 if test ! -r $srcdir/$ac_unique_file; then
644 if test "$ac_srcdir_defaulted" = yes; then
645 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
647 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
650 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
652 # Prefer explicitly selected file to automatically selected ones.
653 if test -z "$sitefile"; then
654 if test -z "$CONFIG_SITE"; then
655 if test "x$prefix" != xNONE
; then
656 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
658 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
662 CONFIG_SITE
="$sitefile"
664 for ac_site_file
in $CONFIG_SITE; do
665 if test -r "$ac_site_file"; then
666 echo "loading site script $ac_site_file"
671 if test -r "$cache_file"; then
672 echo "loading cache $cache_file"
675 echo "creating cache $cache_file"
680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
681 ac_cpp
='$CPP $CPPFLAGS'
682 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
683 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
684 cross_compiling
=$ac_cv_prog_cc_cross
688 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
689 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
690 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
697 ac_n
= ac_c
='\c' ac_t
=
702 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
703 echo "configure:704: checking how to run the C preprocessor" >&5
704 # On Suns, sometimes $CPP names a directory.
705 if test -n "$CPP" && test -d "$CPP"; then
708 if test -z "$CPP"; then
709 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
712 # This must be in double quotes, not single quotes, because CPP may get
713 # substituted into the Makefile and "${CC-cc}" will confuse make.
715 # On the NeXT, cc -E runs the code through the compiler's parser,
716 # not just through cpp.
717 cat > conftest.
$ac_ext <<EOF
718 #line 719 "configure"
719 #include "confdefs.h"
723 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
724 { (eval echo configure
:725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
725 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
726 if test -z "$ac_err"; then
730 echo "configure: failed program was:" >&5
731 cat conftest.
$ac_ext >&5
733 CPP
="${CC-cc} -E -traditional-cpp"
734 cat > conftest.
$ac_ext <<EOF
735 #line 736 "configure"
736 #include "confdefs.h"
740 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
741 { (eval echo configure
:742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
742 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
743 if test -z "$ac_err"; then
747 echo "configure: failed program was:" >&5
748 cat conftest.
$ac_ext >&5
750 CPP
="${CC-cc} -nologo -E"
751 cat > conftest.
$ac_ext <<EOF
752 #line 753 "configure"
753 #include "confdefs.h"
757 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
758 { (eval echo configure
:759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
759 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
760 if test -z "$ac_err"; then
764 echo "configure: failed program was:" >&5
765 cat conftest.
$ac_ext >&5
774 ac_cv_prog_CPP
="$CPP"
776 CPP
="$ac_cv_prog_CPP"
778 ac_cv_prog_CPP
="$CPP"
780 echo "$ac_t""$CPP" 1>&6
782 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
783 echo "configure:784: checking whether ${MAKE-make} sets \${MAKE}" >&5
784 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
785 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 cat > conftestmake
<<\EOF
790 @
echo 'ac_maketemp="${MAKE}"'
792 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
793 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
794 if test -n "$ac_maketemp"; then
795 eval ac_cv_prog_make_
${ac_make}_set
=yes
797 eval ac_cv_prog_make_
${ac_make}_set
=no
801 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
802 echo "$ac_t""yes" 1>&6
805 echo "$ac_t""no" 1>&6
806 SET_MAKE
="MAKE=${MAKE-make}"
809 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
810 echo "configure:811: checking for POSIXized ISC" >&5
811 if test -d /etc
/conf
/kconfig.d
&&
812 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
814 echo "$ac_t""yes" 1>&6
815 ISC
=yes # If later tests want to check for ISC.
816 cat >> confdefs.h
<<\EOF
817 #define _POSIX_SOURCE 1
820 if test "$GCC" = yes; then
826 echo "$ac_t""no" 1>&6
830 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
831 echo "configure:832: checking for ANSI C header files" >&5
832 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
835 cat > conftest.
$ac_ext <<EOF
836 #line 837 "configure"
837 #include "confdefs.h"
843 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
844 { (eval echo configure
:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
845 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
846 if test -z "$ac_err"; then
848 ac_cv_header_stdc
=yes
851 echo "configure: failed program was:" >&5
852 cat conftest.
$ac_ext >&5
858 if test $ac_cv_header_stdc = yes; then
859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
860 cat > conftest.
$ac_ext <<EOF
861 #line 862 "configure"
862 #include "confdefs.h"
865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
866 egrep "memchr" >/dev
/null
2>&1; then
876 if test $ac_cv_header_stdc = yes; then
877 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
878 cat > conftest.
$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
884 egrep "free" >/dev
/null
2>&1; then
894 if test $ac_cv_header_stdc = yes; then
895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
896 if test "$cross_compiling" = yes; then
899 cat > conftest.
$ac_ext <<EOF
900 #line 901 "configure"
901 #include "confdefs.h"
903 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
904 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
906 int main () { int i; for (i = 0; i < 256; i++)
907 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
911 if { (eval echo configure
:912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
915 echo "configure: failed program was:" >&5
916 cat conftest.
$ac_ext >&5
926 echo "$ac_t""$ac_cv_header_stdc" 1>&6
927 if test $ac_cv_header_stdc = yes; then
928 cat >> confdefs.h
<<\EOF
929 #define STDC_HEADERS 1
934 echo $ac_n "checking for working const""... $ac_c" 1>&6
935 echo "configure:936: checking for working const" >&5
936 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 cat > conftest.
$ac_ext <<EOF
940 #line 941 "configure"
941 #include "confdefs.h"
945 /* Ultrix mips cc rejects this. */
946 typedef int charset[2]; const charset x;
947 /* SunOS 4.1.1 cc rejects this. */
948 char const *const *ccp;
950 /* NEC SVR4.0.2 mips cc rejects this. */
951 struct point {int x, y;};
952 static struct point const zero = {0,0};
953 /* AIX XL C 1.02.0.0 rejects this.
954 It does not let you subtract one const X* pointer from another in an arm
955 of an if-expression whose if-part is not a constant expression */
956 const char *g = "string";
957 ccp = &g + (g ? g-g : 0);
958 /* HPUX 7.0 cc rejects these. */
961 ccp = (char const *const *) p;
962 { /* SCO 3.2v4 cc rejects this. */
964 char const *s = 0 ? (char *) 0 : (char const *) 0;
968 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
970 const int *foo = &x[0];
973 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
974 typedef const int *iptr;
978 { /* AIX XL C 1.02.0.0 rejects this saying
979 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
980 struct s { int j; const int *ap[3]; };
981 struct s *b; b->j = 5;
983 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
989 if { (eval echo configure
:990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
993 echo "configure: failed program was:" >&5
994 cat conftest.
$ac_ext >&5
1001 echo "$ac_t""$ac_cv_c_const" 1>&6
1002 if test $ac_cv_c_const = no
; then
1003 cat >> confdefs.h
<<\EOF
1009 echo $ac_n "checking for inline""... $ac_c" 1>&6
1010 echo "configure:1011: checking for inline" >&5
1011 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1015 for ac_kw
in inline __inline__ __inline
; do
1016 cat > conftest.
$ac_ext <<EOF
1017 #line 1018 "configure"
1018 #include "confdefs.h"
1024 if { (eval echo configure
:1025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1026 ac_cv_c_inline
=$ac_kw; break
1028 echo "configure: failed program was:" >&5
1029 cat conftest.
$ac_ext >&5
1036 echo "$ac_t""$ac_cv_c_inline" 1>&6
1037 case "$ac_cv_c_inline" in
1039 no
) cat >> confdefs.h
<<\EOF
1043 *) cat >> confdefs.h
<<EOF
1044 #define inline $ac_cv_c_inline
1049 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1050 echo "configure:1051: checking for off_t" >&5
1051 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 cat > conftest.
$ac_ext <<EOF
1055 #line 1056 "configure"
1056 #include "confdefs.h"
1057 #include <sys/types.h>
1063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1064 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1066 ac_cv_type_off_t
=yes
1074 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1075 if test $ac_cv_type_off_t = no
; then
1076 cat >> confdefs.h
<<\EOF
1082 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1083 echo "configure:1084: checking for size_t" >&5
1084 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 cat > conftest.
$ac_ext <<EOF
1088 #line 1089 "configure"
1089 #include "confdefs.h"
1090 #include <sys/types.h>
1096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1097 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1099 ac_cv_type_size_t
=yes
1102 ac_cv_type_size_t
=no
1107 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1108 if test $ac_cv_type_size_t = no
; then
1109 cat >> confdefs.h
<<\EOF
1110 #define size_t unsigned
1115 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1116 # for constant arguments. Useless!
1117 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1118 echo "configure:1119: checking for working alloca.h" >&5
1119 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 cat > conftest.
$ac_ext <<EOF
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1127 char *p = alloca(2 * sizeof(int));
1130 if { (eval echo configure
:1131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1132 ac_cv_header_alloca_h
=yes
1134 echo "configure: failed program was:" >&5
1135 cat conftest.
$ac_ext >&5
1137 ac_cv_header_alloca_h
=no
1142 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1143 if test $ac_cv_header_alloca_h = yes; then
1144 cat >> confdefs.h
<<\EOF
1145 #define HAVE_ALLOCA_H 1
1150 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1151 echo "configure:1152: checking for alloca" >&5
1152 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 cat > conftest.
$ac_ext <<EOF
1156 #line 1157 "configure"
1157 #include "confdefs.h"
1160 # define alloca __builtin_alloca
1163 # include <malloc.h>
1164 # define alloca _alloca
1167 # include <alloca.h>
1172 # ifndef alloca /* predefined by HP cc +Olibcalls */
1181 char *p = (char *) alloca(1);
1184 if { (eval echo configure
:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1186 ac_cv_func_alloca_works
=yes
1188 echo "configure: failed program was:" >&5
1189 cat conftest.
$ac_ext >&5
1191 ac_cv_func_alloca_works
=no
1196 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1197 if test $ac_cv_func_alloca_works = yes; then
1198 cat >> confdefs.h
<<\EOF
1199 #define HAVE_ALLOCA 1
1204 if test $ac_cv_func_alloca_works = no
; then
1205 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1206 # that cause trouble. Some versions do not even contain alloca or
1207 # contain a buggy version. If you still want to use their alloca,
1208 # use ar to extract alloca.o from them instead of compiling alloca.c.
1209 ALLOCA
=alloca.
${ac_objext}
1210 cat >> confdefs.h
<<\EOF
1215 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether alloca needs Cray hooks" >&5
1217 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1220 cat > conftest.
$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1223 #if defined(CRAY) && ! defined(CRAY2)
1230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1231 egrep "webecray" >/dev
/null
2>&1; then
1242 echo "$ac_t""$ac_cv_os_cray" 1>&6
1243 if test $ac_cv_os_cray = yes; then
1244 for ac_func
in _getb67 GETB67 getb67
; do
1245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_func" >&5
1247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 cat > conftest.
$ac_ext <<EOF
1251 #line 1252 "configure"
1252 #include "confdefs.h"
1253 /* System header to define __stub macros and hopefully few prototypes,
1254 which can conflict with char $ac_func(); below. */
1256 /* Override any gcc2 internal prototype to avoid an error. */
1257 /* We use char because int might match the return type of a gcc2
1258 builtin and then its argument prototype would still apply. */
1263 /* The GNU C library defines this for functions which it implements
1264 to always fail with ENOSYS. Some functions are actually named
1265 something starting with __ and the normal name is an alias. */
1266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1274 if { (eval echo configure
:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1276 eval "ac_cv_func_$ac_func=yes"
1278 echo "configure: failed program was:" >&5
1279 cat conftest.
$ac_ext >&5
1281 eval "ac_cv_func_$ac_func=no"
1286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1287 echo "$ac_t""yes" 1>&6
1288 cat >> confdefs.h
<<EOF
1289 #define CRAY_STACKSEG_END $ac_func
1294 echo "$ac_t""no" 1>&6
1300 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1301 echo "configure:1302: checking stack direction for C alloca" >&5
1302 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 if test "$cross_compiling" = yes; then
1306 ac_cv_c_stack_direction
=0
1308 cat > conftest.
$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 find_stack_direction ()
1313 static char *addr = 0;
1318 return find_stack_direction ();
1321 return (&dummy > addr) ? 1 : -1;
1325 exit (find_stack_direction() < 0);
1328 if { (eval echo configure
:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1330 ac_cv_c_stack_direction
=1
1332 echo "configure: failed program was:" >&5
1333 cat conftest.
$ac_ext >&5
1335 ac_cv_c_stack_direction
=-1
1342 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1343 cat >> confdefs.h
<<EOF
1344 #define STACK_DIRECTION $ac_cv_c_stack_direction
1349 for ac_hdr
in unistd.h
1351 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1352 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1353 echo "configure:1354: checking for $ac_hdr" >&5
1354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 cat > conftest.
$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1362 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1363 { (eval echo configure
:1364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1364 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1365 if test -z "$ac_err"; then
1367 eval "ac_cv_header_$ac_safe=yes"
1370 echo "configure: failed program was:" >&5
1371 cat conftest.
$ac_ext >&5
1373 eval "ac_cv_header_$ac_safe=no"
1377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1378 echo "$ac_t""yes" 1>&6
1379 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1380 cat >> confdefs.h
<<EOF
1381 #define $ac_tr_hdr 1
1385 echo "$ac_t""no" 1>&6
1389 for ac_func
in getpagesize
1391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1392 echo "configure:1393: checking for $ac_func" >&5
1393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 cat > conftest.
$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399 /* System header to define __stub macros and hopefully few prototypes,
1400 which can conflict with char $ac_func(); below. */
1402 /* Override any gcc2 internal prototype to avoid an error. */
1403 /* We use char because int might match the return type of a gcc2
1404 builtin and then its argument prototype would still apply. */
1409 /* The GNU C library defines this for functions which it implements
1410 to always fail with ENOSYS. Some functions are actually named
1411 something starting with __ and the normal name is an alias. */
1412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1420 if { (eval echo configure
:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1422 eval "ac_cv_func_$ac_func=yes"
1424 echo "configure: failed program was:" >&5
1425 cat conftest.
$ac_ext >&5
1427 eval "ac_cv_func_$ac_func=no"
1432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1433 echo "$ac_t""yes" 1>&6
1434 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1435 cat >> confdefs.h
<<EOF
1436 #define $ac_tr_func 1
1440 echo "$ac_t""no" 1>&6
1444 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1445 echo "configure:1446: checking for working mmap" >&5
1446 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 if test "$cross_compiling" = yes; then
1450 ac_cv_func_mmap_fixed_mapped
=no
1452 cat > conftest.
$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1456 /* Thanks to Mike Haertel and Jim Avera for this test.
1457 Here is a matrix of mmap possibilities:
1458 mmap private not fixed
1459 mmap private fixed at somewhere currently unmapped
1460 mmap private fixed at somewhere already mapped
1461 mmap shared not fixed
1462 mmap shared fixed at somewhere currently unmapped
1463 mmap shared fixed at somewhere already mapped
1464 For private mappings, we should verify that changes cannot be read()
1465 back from the file, nor mmap's back from the file at a different
1466 address. (There have been systems where private was not correctly
1467 implemented like the infamous i386 svr4.0, and systems where the
1468 VM page cache was not coherent with the filesystem buffer cache
1469 like early versions of FreeBSD and possibly contemporary NetBSD.)
1470 For shared mappings, we should conversely verify that changes get
1471 propogated back to all the places they're supposed to be.
1473 Grep wants private fixed already mapped.
1474 The main things grep needs to know about mmap are:
1475 * does it exist and is it safe to write into the mmap'd area
1476 * how to use it (BSD variants) */
1477 #include <sys/types.h>
1479 #include <sys/mman.h>
1481 /* This mess was copied from the GNU getpagesize.h. */
1482 #ifndef HAVE_GETPAGESIZE
1483 # ifdef HAVE_UNISTD_H
1484 # include <unistd.h>
1487 /* Assume that all systems that can run configure have sys/param.h. */
1488 # ifndef HAVE_SYS_PARAM_H
1489 # define HAVE_SYS_PARAM_H 1
1492 # ifdef _SC_PAGESIZE
1493 # define getpagesize() sysconf(_SC_PAGESIZE)
1494 # else /* no _SC_PAGESIZE */
1495 # ifdef HAVE_SYS_PARAM_H
1496 # include <sys/param.h>
1497 # ifdef EXEC_PAGESIZE
1498 # define getpagesize() EXEC_PAGESIZE
1499 # else /* no EXEC_PAGESIZE */
1501 # define getpagesize() NBPG * CLSIZE
1504 # endif /* no CLSIZE */
1505 # else /* no NBPG */
1507 # define getpagesize() NBPC
1508 # else /* no NBPC */
1510 # define getpagesize() PAGESIZE
1511 # endif /* PAGESIZE */
1512 # endif /* no NBPC */
1513 # endif /* no NBPG */
1514 # endif /* no EXEC_PAGESIZE */
1515 # else /* no HAVE_SYS_PARAM_H */
1516 # define getpagesize() 8192 /* punt totally */
1517 # endif /* no HAVE_SYS_PARAM_H */
1518 # endif /* no _SC_PAGESIZE */
1520 #endif /* no HAVE_GETPAGESIZE */
1523 extern "C" { void *malloc(unsigned); }
1531 char *data, *data2, *data3;
1535 pagesize = getpagesize();
1538 * First, make a file with some known garbage in it.
1540 data = malloc(pagesize);
1543 for (i = 0; i < pagesize; ++i)
1544 *(data + i) = rand();
1546 fd = creat("conftestmmap", 0600);
1549 if (write(fd, data, pagesize) != pagesize)
1554 * Next, try to mmap the file at a fixed address which
1555 * already has something else allocated at it. If we can,
1556 * also make sure that we see the same garbage.
1558 fd = open("conftestmmap", O_RDWR);
1561 data2 = malloc(2 * pagesize);
1564 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1565 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1566 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1568 for (i = 0; i < pagesize; ++i)
1569 if (*(data + i) != *(data2 + i))
1573 * Finally, make sure that changes to the mapped area
1574 * do not percolate back to the file as seen by read().
1575 * (This is a bug on some variants of i386 svr4.0.)
1577 for (i = 0; i < pagesize; ++i)
1578 *(data2 + i) = *(data2 + i) + 1;
1579 data3 = malloc(pagesize);
1582 if (read(fd, data3, pagesize) != pagesize)
1584 for (i = 0; i < pagesize; ++i)
1585 if (*(data + i) != *(data3 + i))
1588 unlink("conftestmmap");
1593 if { (eval echo configure
:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1595 ac_cv_func_mmap_fixed_mapped
=yes
1597 echo "configure: failed program was:" >&5
1598 cat conftest.
$ac_ext >&5
1600 ac_cv_func_mmap_fixed_mapped
=no
1607 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1608 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1609 cat >> confdefs.h
<<\EOF
1615 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1616 echo "configure:1617: checking for Cygwin environment" >&5
1617 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 cat > conftest.
$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1627 #define __CYGWIN__ __CYGWIN32__
1632 if { (eval echo configure
:1633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1636 echo "configure: failed program was:" >&5
1637 cat conftest.
$ac_ext >&5
1645 echo "$ac_t""$ac_cv_cygwin" 1>&6
1647 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1648 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1649 echo "configure:1650: checking for mingw32 environment" >&5
1650 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 cat > conftest.
$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1661 if { (eval echo configure
:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1665 echo "configure: failed program was:" >&5
1666 cat conftest.
$ac_ext >&5
1674 echo "$ac_t""$ac_cv_mingw32" 1>&6
1676 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1678 # autoconf.info says this should be called right after AC_INIT.
1682 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1683 if test -f $ac_dir/install-sh
; then
1685 ac_install_sh
="$ac_aux_dir/install-sh -c"
1687 elif test -f $ac_dir/install.sh
; then
1689 ac_install_sh
="$ac_aux_dir/install.sh -c"
1693 if test -z "$ac_aux_dir"; then
1694 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1696 ac_config_guess
=$ac_aux_dir/config.guess
1697 ac_config_sub
=$ac_aux_dir/config.sub
1698 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1701 # Do some error checking and defaulting for the host and target type.
1703 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1706 # 1. You are not allowed to specify --host, --target, and nonopt at the
1708 # 2. Host defaults to nonopt.
1709 # 3. If nonopt is not specified, then host defaults to the current host,
1710 # as determined by config.guess.
1711 # 4. Target and build default to nonopt.
1712 # 5. If nonopt is not specified, then target and build default to host.
1714 # The aliases save the names the user supplied, while $host etc.
1715 # will get canonicalized.
1716 case $host---$target---$nonopt in
1717 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1718 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1722 # Make sure we can run config.sub.
1723 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1724 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1727 echo $ac_n "checking host system type""... $ac_c" 1>&6
1728 echo "configure:1729: checking host system type" >&5
1731 case "$host_alias" in
1735 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1736 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1738 *) host_alias
=$nonopt ;;
1742 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1743 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1744 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1745 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746 echo "$ac_t""$host" 1>&6
1748 echo $ac_n "checking target system type""... $ac_c" 1>&6
1749 echo "configure:1750: checking target system type" >&5
1751 target_alias
=$target
1752 case "$target_alias" in
1755 NONE
) target_alias
=$host_alias ;;
1756 *) target_alias
=$nonopt ;;
1760 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1761 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1762 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1763 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1764 echo "$ac_t""$target" 1>&6
1766 echo $ac_n "checking build system type""... $ac_c" 1>&6
1767 echo "configure:1768: checking build system type" >&5
1770 case "$build_alias" in
1773 NONE
) build_alias
=$host_alias ;;
1774 *) build_alias
=$nonopt ;;
1778 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1779 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1780 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1781 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1782 echo "$ac_t""$build" 1>&6
1784 test "$host_alias" != "$target_alias" &&
1785 test "$program_prefix$program_suffix$program_transform_name" = \
1787 program_prefix
=${target_alias}-
1789 if test "$program_transform_name" = s
,x
,x
,; then
1790 program_transform_name
=
1792 # Double any \ or $. echo might interpret backslashes.
1793 cat <<\EOF_SED
> conftestsed
1794 s
,\\,\\\\,g
; s
,\$
,$$
,g
1796 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1799 test "$program_prefix" != NONE
&&
1800 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1801 # Use a double $ so make ignores it.
1802 test "$program_suffix" != NONE
&&
1803 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1805 # sed with no file args requires a program.
1806 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1808 # Extract the first word of "gcc", so it can be a program name with args.
1809 set dummy gcc
; ac_word
=$2
1810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1811 echo "configure:1812: checking for $ac_word" >&5
1812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 if test -n "$CC"; then
1816 ac_cv_prog_CC
="$CC" # Let the user override the test.
1818 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1820 for ac_dir
in $ac_dummy; do
1821 test -z "$ac_dir" && ac_dir
=.
1822 if test -f $ac_dir/$ac_word; then
1831 if test -n "$CC"; then
1832 echo "$ac_t""$CC" 1>&6
1834 echo "$ac_t""no" 1>&6
1837 if test -z "$CC"; then
1838 # Extract the first word of "cc", so it can be a program name with args.
1839 set dummy cc
; ac_word
=$2
1840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $ac_word" >&5
1842 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 if test -n "$CC"; then
1846 ac_cv_prog_CC
="$CC" # Let the user override the test.
1848 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1851 for ac_dir
in $ac_dummy; do
1852 test -z "$ac_dir" && ac_dir
=.
1853 if test -f $ac_dir/$ac_word; then
1854 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1855 ac_prog_rejected
=yes
1863 if test $ac_prog_rejected = yes; then
1864 # We found a bogon in the path, so make sure we never use it.
1865 set dummy
$ac_cv_prog_CC
1867 if test $# -gt 0; then
1868 # We chose a different compiler from the bogus one.
1869 # However, it has the same basename, so the bogon will be chosen
1870 # first if we set CC to just the basename; use the full file name.
1872 set dummy
"$ac_dir/$ac_word" "$@"
1880 if test -n "$CC"; then
1881 echo "$ac_t""$CC" 1>&6
1883 echo "$ac_t""no" 1>&6
1886 if test -z "$CC"; then
1887 case "`uname -s`" in
1889 # Extract the first word of "cl", so it can be a program name with args.
1890 set dummy cl
; ac_word
=$2
1891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1892 echo "configure:1893: checking for $ac_word" >&5
1893 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1896 if test -n "$CC"; then
1897 ac_cv_prog_CC
="$CC" # Let the user override the test.
1899 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1901 for ac_dir
in $ac_dummy; do
1902 test -z "$ac_dir" && ac_dir
=.
1903 if test -f $ac_dir/$ac_word; then
1912 if test -n "$CC"; then
1913 echo "$ac_t""$CC" 1>&6
1915 echo "$ac_t""no" 1>&6
1920 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1923 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1924 echo "configure:1925: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1928 ac_cpp
='$CPP $CPPFLAGS'
1929 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1930 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1931 cross_compiling
=$ac_cv_prog_cc_cross
1933 cat > conftest.
$ac_ext << EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1940 if { (eval echo configure
:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1941 ac_cv_prog_cc_works
=yes
1942 # If we can't run a trivial program, we are probably using a cross compiler.
1943 if (.
/conftest
; exit) 2>/dev
/null
; then
1944 ac_cv_prog_cc_cross
=no
1946 ac_cv_prog_cc_cross
=yes
1949 echo "configure: failed program was:" >&5
1950 cat conftest.
$ac_ext >&5
1951 ac_cv_prog_cc_works
=no
1955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1956 ac_cpp
='$CPP $CPPFLAGS'
1957 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1958 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1959 cross_compiling
=$ac_cv_prog_cc_cross
1961 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1962 if test $ac_cv_prog_cc_works = no
; then
1963 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1965 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1966 echo "configure:1967: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1967 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1968 cross_compiling
=$ac_cv_prog_cc_cross
1970 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1971 echo "configure:1972: checking whether we are using GNU C" >&5
1972 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1975 cat > conftest.c
<<EOF
1980 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1987 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1989 if test $ac_cv_prog_gcc = yes; then
1995 ac_test_CFLAGS
="${CFLAGS+set}"
1996 ac_save_CFLAGS
="$CFLAGS"
1998 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1999 echo "configure:2000: checking whether ${CC-cc} accepts -g" >&5
2000 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2003 echo 'void f(){}' > conftest.c
2004 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2013 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2014 if test "$ac_test_CFLAGS" = set; then
2015 CFLAGS
="$ac_save_CFLAGS"
2016 elif test $ac_cv_prog_cc_g = yes; then
2017 if test "$GCC" = yes; then
2023 if test "$GCC" = yes; then
2030 # Find a good install program. We prefer a C program (faster),
2031 # so one script is as good as another. But avoid the broken or
2032 # incompatible versions:
2033 # SysV /etc/install, /usr/sbin/install
2034 # SunOS /usr/etc/install
2035 # IRIX /sbin/install
2037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2040 # ./install, which can be erroneously created by make from ./install.sh.
2041 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2042 echo "configure:2043: checking for a BSD compatible install" >&5
2043 if test -z "$INSTALL"; then
2044 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2048 for ac_dir
in $PATH; do
2049 # Account for people who put trailing slashes in PATH elements.
2051 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2053 # OSF1 and SCO ODT 3.0 have their own names for install.
2054 # Don't use installbsd from OSF since it installs stuff as root
2056 for ac_prog
in ginstall scoinst
install; do
2057 if test -f $ac_dir/$ac_prog; then
2058 if test $ac_prog = install &&
2059 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2060 # AIX install. It has an incompatible calling convention.
2063 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2074 if test "${ac_cv_path_install+set}" = set; then
2075 INSTALL
="$ac_cv_path_install"
2077 # As a last resort, use the slow shell script. We don't cache a
2078 # path for INSTALL within a source directory, because that will
2079 # break other packages using the cache if that directory is
2080 # removed, or if the path is relative.
2081 INSTALL
="$ac_install_sh"
2084 echo "$ac_t""$INSTALL" 1>&6
2086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2087 # It thinks the first close brace ends the variable substitution.
2088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2092 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2095 # Put a plausible default for CC_FOR_BUILD in Makefile.
2096 if test "x$cross_compiling" = "xno"; then
2097 CC_FOR_BUILD
='$(CC)'
2107 # Extract the first word of "ranlib", so it can be a program name with args.
2108 set dummy ranlib
; ac_word
=$2
2109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_word" >&5
2111 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2114 if test -n "$RANLIB"; then
2115 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2117 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2119 for ac_dir
in $ac_dummy; do
2120 test -z "$ac_dir" && ac_dir
=.
2121 if test -f $ac_dir/$ac_word; then
2122 ac_cv_prog_RANLIB
="ranlib"
2127 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2130 RANLIB
="$ac_cv_prog_RANLIB"
2131 if test -n "$RANLIB"; then
2132 echo "$ac_t""$RANLIB" 1>&6
2134 echo "$ac_t""no" 1>&6
2140 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2141 unistd.h values.h sys
/param.h
2143 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2144 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2145 echo "configure:2146: checking for $ac_hdr" >&5
2146 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 cat > conftest.
$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2154 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2155 { (eval echo configure
:2156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2156 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2157 if test -z "$ac_err"; then
2159 eval "ac_cv_header_$ac_safe=yes"
2162 echo "configure: failed program was:" >&5
2163 cat conftest.
$ac_ext >&5
2165 eval "ac_cv_header_$ac_safe=no"
2169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2170 echo "$ac_t""yes" 1>&6
2171 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2172 cat >> confdefs.h
<<EOF
2173 #define $ac_tr_hdr 1
2177 echo "$ac_t""no" 1>&6
2181 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2182 __argz_count __argz_stringify __argz_next
2184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2185 echo "configure:2186: checking for $ac_func" >&5
2186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2189 cat > conftest.
$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2192 /* System header to define __stub macros and hopefully few prototypes,
2193 which can conflict with char $ac_func(); below. */
2195 /* Override any gcc2 internal prototype to avoid an error. */
2196 /* We use char because int might match the return type of a gcc2
2197 builtin and then its argument prototype would still apply. */
2202 /* The GNU C library defines this for functions which it implements
2203 to always fail with ENOSYS. Some functions are actually named
2204 something starting with __ and the normal name is an alias. */
2205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2213 if { (eval echo configure
:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2215 eval "ac_cv_func_$ac_func=yes"
2217 echo "configure: failed program was:" >&5
2218 cat conftest.
$ac_ext >&5
2220 eval "ac_cv_func_$ac_func=no"
2225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2226 echo "$ac_t""yes" 1>&6
2227 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2228 cat >> confdefs.h
<<EOF
2229 #define $ac_tr_func 1
2233 echo "$ac_t""no" 1>&6
2238 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2239 for ac_func
in stpcpy
2241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2242 echo "configure:2243: checking for $ac_func" >&5
2243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.
$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2249 /* System header to define __stub macros and hopefully few prototypes,
2250 which can conflict with char $ac_func(); below. */
2252 /* Override any gcc2 internal prototype to avoid an error. */
2253 /* We use char because int might match the return type of a gcc2
2254 builtin and then its argument prototype would still apply. */
2259 /* The GNU C library defines this for functions which it implements
2260 to always fail with ENOSYS. Some functions are actually named
2261 something starting with __ and the normal name is an alias. */
2262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2270 if { (eval echo configure
:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2272 eval "ac_cv_func_$ac_func=yes"
2274 echo "configure: failed program was:" >&5
2275 cat conftest.
$ac_ext >&5
2277 eval "ac_cv_func_$ac_func=no"
2282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2283 echo "$ac_t""yes" 1>&6
2284 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2285 cat >> confdefs.h
<<EOF
2286 #define $ac_tr_func 1
2290 echo "$ac_t""no" 1>&6
2295 if test "${ac_cv_func_stpcpy}" = "yes"; then
2296 cat >> confdefs.h
<<\EOF
2297 #define HAVE_STPCPY 1
2302 if test $ac_cv_header_locale_h = yes; then
2303 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2304 echo "configure:2305: checking for LC_MESSAGES" >&5
2305 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2316 if { (eval echo configure
:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2318 am_cv_val_LC_MESSAGES
=yes
2320 echo "configure: failed program was:" >&5
2321 cat conftest.
$ac_ext >&5
2323 am_cv_val_LC_MESSAGES
=no
2328 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2329 if test $am_cv_val_LC_MESSAGES = yes; then
2330 cat >> confdefs.h
<<\EOF
2331 #define HAVE_LC_MESSAGES 1
2336 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2337 echo "configure:2338: checking whether NLS is requested" >&5
2338 # Check whether --enable-nls or --disable-nls was given.
2339 if test "${enable_nls+set}" = set; then
2340 enableval
="$enable_nls"
2346 echo "$ac_t""$USE_NLS" 1>&6
2349 USE_INCLUDED_LIBINTL
=no
2351 if test "$USE_NLS" = "yes"; then
2352 cat >> confdefs.h
<<\EOF
2353 #define ENABLE_NLS 1
2356 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2357 echo "configure:2358: checking whether included gettext is requested" >&5
2358 # Check whether --with-included-gettext or --without-included-gettext was given.
2359 if test "${with_included_gettext+set}" = set; then
2360 withval
="$with_included_gettext"
2361 nls_cv_force_use_gnu_gettext
=$withval
2363 nls_cv_force_use_gnu_gettext
=no
2366 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2368 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2369 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2371 nls_cv_header_libgt
=
2374 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2375 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2376 echo "configure:2377: checking for libintl.h" >&5
2377 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2380 cat > conftest.
$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2383 #include <libintl.h>
2385 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2386 { (eval echo configure
:2387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2387 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2388 if test -z "$ac_err"; then
2390 eval "ac_cv_header_$ac_safe=yes"
2393 echo "configure: failed program was:" >&5
2394 cat conftest.
$ac_ext >&5
2396 eval "ac_cv_header_$ac_safe=no"
2400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2401 echo "$ac_t""yes" 1>&6
2402 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2403 echo "configure:2404: checking for gettext in libc" >&5
2404 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 cat > conftest.
$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2410 #include <libintl.h>
2412 return (int) gettext ("")
2415 if { (eval echo configure
:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2417 gt_cv_func_gettext_libc
=yes
2419 echo "configure: failed program was:" >&5
2420 cat conftest.
$ac_ext >&5
2422 gt_cv_func_gettext_libc
=no
2427 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2429 if test "$gt_cv_func_gettext_libc" != "yes"; then
2430 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2431 echo "configure:2432: checking for bindtextdomain in -lintl" >&5
2432 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 ac_save_LIBS
="$LIBS"
2438 cat > conftest.
$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441 /* Override any gcc2 internal prototype to avoid an error. */
2442 /* We use char because int might match the return type of a gcc2
2443 builtin and then its argument prototype would still apply. */
2444 char bindtextdomain();
2450 if { (eval echo configure
:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2452 eval "ac_cv_lib_$ac_lib_var=yes"
2454 echo "configure: failed program was:" >&5
2455 cat conftest.
$ac_ext >&5
2457 eval "ac_cv_lib_$ac_lib_var=no"
2460 LIBS
="$ac_save_LIBS"
2463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2464 echo "$ac_t""yes" 1>&6
2465 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2466 echo "configure:2467: checking for gettext in libintl" >&5
2467 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.
$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2475 return (int) gettext ("")
2478 if { (eval echo configure
:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2480 gt_cv_func_gettext_libintl
=yes
2482 echo "configure: failed program was:" >&5
2483 cat conftest.
$ac_ext >&5
2485 gt_cv_func_gettext_libintl
=no
2490 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2492 echo "$ac_t""no" 1>&6
2497 if test "$gt_cv_func_gettext_libc" = "yes" \
2498 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2499 cat >> confdefs.h
<<\EOF
2500 #define HAVE_GETTEXT 1
2503 # Extract the first word of "msgfmt", so it can be a program name with args.
2504 set dummy msgfmt
; ac_word
=$2
2505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2506 echo "configure:2507: checking for $ac_word" >&5
2507 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2512 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2515 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2516 for ac_dir
in $PATH; do
2517 test -z "$ac_dir" && ac_dir
=.
2518 if test -f $ac_dir/$ac_word; then
2519 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2520 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2526 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2530 MSGFMT
="$ac_cv_path_MSGFMT"
2531 if test -n "$MSGFMT"; then
2532 echo "$ac_t""$MSGFMT" 1>&6
2534 echo "$ac_t""no" 1>&6
2536 if test "$MSGFMT" != "no"; then
2537 for ac_func
in dcgettext
2539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_func" >&5
2541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 cat > conftest.
$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2547 /* System header to define __stub macros and hopefully few prototypes,
2548 which can conflict with char $ac_func(); below. */
2550 /* Override any gcc2 internal prototype to avoid an error. */
2551 /* We use char because int might match the return type of a gcc2
2552 builtin and then its argument prototype would still apply. */
2557 /* The GNU C library defines this for functions which it implements
2558 to always fail with ENOSYS. Some functions are actually named
2559 something starting with __ and the normal name is an alias. */
2560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2568 if { (eval echo configure
:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2570 eval "ac_cv_func_$ac_func=yes"
2572 echo "configure: failed program was:" >&5
2573 cat conftest.
$ac_ext >&5
2575 eval "ac_cv_func_$ac_func=no"
2580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2582 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2583 cat >> confdefs.h
<<EOF
2584 #define $ac_tr_func 1
2588 echo "$ac_t""no" 1>&6
2592 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2593 set dummy gmsgfmt
; ac_word
=$2
2594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2595 echo "configure:2596: checking for $ac_word" >&5
2596 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2601 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2604 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2607 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2609 for ac_dir
in $ac_dummy; do
2610 test -z "$ac_dir" && ac_dir
=.
2611 if test -f $ac_dir/$ac_word; then
2612 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2617 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2621 GMSGFMT
="$ac_cv_path_GMSGFMT"
2622 if test -n "$GMSGFMT"; then
2623 echo "$ac_t""$GMSGFMT" 1>&6
2625 echo "$ac_t""no" 1>&6
2628 # Extract the first word of "xgettext", so it can be a program name with args.
2629 set dummy xgettext
; ac_word
=$2
2630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2631 echo "configure:2632: checking for $ac_word" >&5
2632 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2637 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2640 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2641 for ac_dir
in $PATH; do
2642 test -z "$ac_dir" && ac_dir
=.
2643 if test -f $ac_dir/$ac_word; then
2644 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2645 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2651 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2655 XGETTEXT
="$ac_cv_path_XGETTEXT"
2656 if test -n "$XGETTEXT"; then
2657 echo "$ac_t""$XGETTEXT" 1>&6
2659 echo "$ac_t""no" 1>&6
2662 cat > conftest.
$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2667 extern int _nl_msg_cat_cntr;
2668 return _nl_msg_cat_cntr
2671 if { (eval echo configure
:2672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2676 echo "configure: failed program was:" >&5
2677 cat conftest.
$ac_ext >&5
2688 echo "$ac_t""no" 1>&6
2693 if test "$CATOBJEXT" = "NONE"; then
2694 nls_cv_use_gnu_gettext
=yes
2698 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2699 INTLOBJS
="\$(GETTOBJS)"
2700 # Extract the first word of "msgfmt", so it can be a program name with args.
2701 set dummy msgfmt
; ac_word
=$2
2702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2703 echo "configure:2704: checking for $ac_word" >&5
2704 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2709 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2712 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2713 for ac_dir
in $PATH; do
2714 test -z "$ac_dir" && ac_dir
=.
2715 if test -f $ac_dir/$ac_word; then
2716 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2717 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2723 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2727 MSGFMT
="$ac_cv_path_MSGFMT"
2728 if test -n "$MSGFMT"; then
2729 echo "$ac_t""$MSGFMT" 1>&6
2731 echo "$ac_t""no" 1>&6
2734 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2735 set dummy gmsgfmt
; ac_word
=$2
2736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_word" >&5
2738 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2743 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2746 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2749 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2751 for ac_dir
in $ac_dummy; do
2752 test -z "$ac_dir" && ac_dir
=.
2753 if test -f $ac_dir/$ac_word; then
2754 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2759 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2763 GMSGFMT
="$ac_cv_path_GMSGFMT"
2764 if test -n "$GMSGFMT"; then
2765 echo "$ac_t""$GMSGFMT" 1>&6
2767 echo "$ac_t""no" 1>&6
2770 # Extract the first word of "xgettext", so it can be a program name with args.
2771 set dummy xgettext
; ac_word
=$2
2772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2773 echo "configure:2774: checking for $ac_word" >&5
2774 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2779 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2782 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2783 for ac_dir
in $PATH; do
2784 test -z "$ac_dir" && ac_dir
=.
2785 if test -f $ac_dir/$ac_word; then
2786 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2787 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2793 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2797 XGETTEXT
="$ac_cv_path_XGETTEXT"
2798 if test -n "$XGETTEXT"; then
2799 echo "$ac_t""$XGETTEXT" 1>&6
2801 echo "$ac_t""no" 1>&6
2805 USE_INCLUDED_LIBINTL
=yes
2809 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2811 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2812 nls_cv_header_intl
=libintl.h
2813 nls_cv_header_libgt
=libgettext.h
2816 if test "$XGETTEXT" != ":"; then
2817 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2820 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2825 # We need to process the po/ directory.
2829 nls_cv_header_intl
=libintl.h
2830 nls_cv_header_libgt
=libgettext.h
2833 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2834 # because some of the sources are only built for this goal.
2835 if test "$PACKAGE" = gettext; then
2837 USE_INCLUDED_LIBINTL
=yes
2840 for lang
in $ALL_LINGUAS; do
2841 GMOFILES
="$GMOFILES $lang.gmo"
2842 POFILES
="$POFILES $lang.po"
2858 if test "x$CATOBJEXT" != "x"; then
2859 if test "x$ALL_LINGUAS" = "x"; then
2862 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2863 echo "configure:2864: checking for catalogs to be installed" >&5
2865 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2866 case "$ALL_LINGUAS" in
2867 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2870 LINGUAS
=$NEW_LINGUAS
2871 echo "$ac_t""$LINGUAS" 1>&6
2874 if test -n "$LINGUAS"; then
2875 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2879 if test $ac_cv_header_locale_h = yes; then
2880 INCLUDE_LOCALE_H
="#include <locale.h>"
2883 /* The system does not provide the header <locale.h>. Take care yourself. */"
2887 if test -f $srcdir/po2tbl.
sed.
in; then
2888 if test "$CATOBJEXT" = ".cat"; then
2889 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2890 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2891 echo "configure:2892: checking for linux/version.h" >&5
2892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 cat > conftest.
$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2898 #include <linux/version.h>
2900 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2901 { (eval echo configure
:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2902 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2903 if test -z "$ac_err"; then
2905 eval "ac_cv_header_$ac_safe=yes"
2908 echo "configure: failed program was:" >&5
2909 cat conftest.
$ac_ext >&5
2911 eval "ac_cv_header_$ac_safe=no"
2915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2916 echo "$ac_t""yes" 1>&6
2919 echo "$ac_t""no" 1>&6
2924 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2926 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2927 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2930 if test "$PACKAGE" = "gettext"; then
2940 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2946 if test -d $srcdir/po
; then
2947 test -d po || mkdir po
2948 if test "x$srcdir" != "x."; then
2949 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2950 posrcprefix
="$srcdir/"
2952 posrcprefix
="../$srcdir/"
2958 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2959 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2963 # Check for common headers.
2964 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2965 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2966 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2968 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2969 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2970 echo "configure:2971: checking for $ac_hdr" >&5
2971 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2974 cat > conftest.
$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2979 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2980 { (eval echo configure
:2981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2981 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2982 if test -z "$ac_err"; then
2984 eval "ac_cv_header_$ac_safe=yes"
2987 echo "configure: failed program was:" >&5
2988 cat conftest.
$ac_ext >&5
2990 eval "ac_cv_header_$ac_safe=no"
2994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2995 echo "$ac_t""yes" 1>&6
2996 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2997 cat >> confdefs.h
<<EOF
2998 #define $ac_tr_hdr 1
3002 echo "$ac_t""no" 1>&6
3006 for ac_hdr
in sys
/time.h sys
/resource.h
3008 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3009 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3010 echo "configure:3011: checking for $ac_hdr" >&5
3011 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3012 echo $ac_n "(cached) $ac_c" 1>&6
3014 cat > conftest.
$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3019 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3020 { (eval echo configure
:3021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3021 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3022 if test -z "$ac_err"; then
3024 eval "ac_cv_header_$ac_safe=yes"
3027 echo "configure: failed program was:" >&5
3028 cat conftest.
$ac_ext >&5
3030 eval "ac_cv_header_$ac_safe=no"
3034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3035 echo "$ac_t""yes" 1>&6
3036 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3037 cat >> confdefs.h
<<EOF
3038 #define $ac_tr_hdr 1
3042 echo "$ac_t""no" 1>&6
3046 for ac_hdr
in fcntl.h fpu_control.h
3048 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3049 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3050 echo "configure:3051: checking for $ac_hdr" >&5
3051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 cat > conftest.
$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3059 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3060 { (eval echo configure
:3061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3061 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3062 if test -z "$ac_err"; then
3064 eval "ac_cv_header_$ac_safe=yes"
3067 echo "configure: failed program was:" >&5
3068 cat conftest.
$ac_ext >&5
3070 eval "ac_cv_header_$ac_safe=no"
3074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3075 echo "$ac_t""yes" 1>&6
3076 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3077 cat >> confdefs.h
<<EOF
3078 #define $ac_tr_hdr 1
3082 echo "$ac_t""no" 1>&6
3086 for ac_hdr
in dlfcn.h errno.h sys
/stat.h
3088 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3090 echo "configure:3091: checking for $ac_hdr" >&5
3091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3092 echo $ac_n "(cached) $ac_c" 1>&6
3094 cat > conftest.
$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3099 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3100 { (eval echo configure
:3101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3101 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3102 if test -z "$ac_err"; then
3104 eval "ac_cv_header_$ac_safe=yes"
3107 echo "configure: failed program was:" >&5
3108 cat conftest.
$ac_ext >&5
3110 eval "ac_cv_header_$ac_safe=no"
3114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3115 echo "$ac_t""yes" 1>&6
3116 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3117 cat >> confdefs.h
<<EOF
3118 #define $ac_tr_hdr 1
3122 echo "$ac_t""no" 1>&6
3126 for ac_func
in getrusage
time sigaction __setfpucw
3128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3129 echo "configure:3130: checking for $ac_func" >&5
3130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3133 cat > conftest.
$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3136 /* System header to define __stub macros and hopefully few prototypes,
3137 which can conflict with char $ac_func(); below. */
3139 /* Override any gcc2 internal prototype to avoid an error. */
3140 /* We use char because int might match the return type of a gcc2
3141 builtin and then its argument prototype would still apply. */
3146 /* The GNU C library defines this for functions which it implements
3147 to always fail with ENOSYS. Some functions are actually named
3148 something starting with __ and the normal name is an alias. */
3149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3157 if { (eval echo configure
:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3159 eval "ac_cv_func_$ac_func=yes"
3161 echo "configure: failed program was:" >&5
3162 cat conftest.
$ac_ext >&5
3164 eval "ac_cv_func_$ac_func=no"
3169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3170 echo "$ac_t""yes" 1>&6
3171 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3172 cat >> confdefs.h
<<EOF
3173 #define $ac_tr_func 1
3177 echo "$ac_t""no" 1>&6
3182 # Check for socket libraries
3183 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3184 echo "configure:3185: checking for bind in -lsocket" >&5
3185 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 ac_save_LIBS
="$LIBS"
3190 LIBS
="-lsocket $LIBS"
3191 cat > conftest.
$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 /* Override any gcc2 internal prototype to avoid an error. */
3195 /* We use char because int might match the return type of a gcc2
3196 builtin and then its argument prototype would still apply. */
3203 if { (eval echo configure
:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3205 eval "ac_cv_lib_$ac_lib_var=yes"
3207 echo "configure: failed program was:" >&5
3208 cat conftest.
$ac_ext >&5
3210 eval "ac_cv_lib_$ac_lib_var=no"
3213 LIBS
="$ac_save_LIBS"
3216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3220 cat >> confdefs.h
<<EOF
3221 #define $ac_tr_lib 1
3224 LIBS
="-lsocket $LIBS"
3227 echo "$ac_t""no" 1>&6
3230 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3231 echo "configure:3232: checking for gethostbyname in -lnsl" >&5
3232 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 ac_save_LIBS
="$LIBS"
3238 cat > conftest.
$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 /* Override any gcc2 internal prototype to avoid an error. */
3242 /* We use char because int might match the return type of a gcc2
3243 builtin and then its argument prototype would still apply. */
3244 char gethostbyname();
3250 if { (eval echo configure
:3251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3252 eval "ac_cv_lib_$ac_lib_var=yes"
3254 echo "configure: failed program was:" >&5
3255 cat conftest.
$ac_ext >&5
3257 eval "ac_cv_lib_$ac_lib_var=no"
3260 LIBS
="$ac_save_LIBS"
3263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3264 echo "$ac_t""yes" 1>&6
3265 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3266 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3267 cat >> confdefs.h
<<EOF
3268 #define $ac_tr_lib 1
3274 echo "$ac_t""no" 1>&6
3278 .
${srcdir}/..
/..
/bfd
/configure.
host
3282 USE_MAINTAINER_MODE
=no
3283 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3284 if test "${enable_maintainer_mode+set}" = set; then
3285 enableval
="$enable_maintainer_mode"
3286 case "${enableval}" in
3287 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3289 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3291 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3292 echo "Setting maintainer mode" 6>&1
3300 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3301 if test "${enable_sim_bswap+set}" = set; then
3302 enableval
="$enable_sim_bswap"
3303 case "${enableval}" in
3304 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3305 no
) sim_bswap
="-DWITH_BSWAP=0";;
3306 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3308 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3309 echo "Setting bswap flags = $sim_bswap" 6>&1
3317 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3318 if test "${enable_sim_cflags+set}" = set; then
3319 enableval
="$enable_sim_cflags"
3320 case "${enableval}" in
3321 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3322 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3324 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3326 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3327 echo "Setting sim cflags = $sim_cflags" 6>&1
3335 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3336 if test "${enable_sim_debug+set}" = set; then
3337 enableval
="$enable_sim_debug"
3338 case "${enableval}" in
3339 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3340 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3341 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3343 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3344 echo "Setting sim debug = $sim_debug" 6>&1
3352 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3353 if test "${enable_sim_stdio+set}" = set; then
3354 enableval
="$enable_sim_stdio"
3355 case "${enableval}" in
3356 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3357 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3358 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3360 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3361 echo "Setting stdio flags = $sim_stdio" 6>&1
3369 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3370 if test "${enable_sim_trace+set}" = set; then
3371 enableval
="$enable_sim_trace"
3372 case "${enableval}" in
3373 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3374 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3376 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3379 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3380 if test x
"$sim_trace" = x
; then
3381 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3383 sim_trace
="${sim_trace}|TRACE_$x"
3386 sim_trace
="$sim_trace)'" ;;
3388 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3389 echo "Setting sim trace = $sim_trace" 6>&1
3397 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3398 if test "${enable_sim_profile+set}" = set; then
3399 enableval
="$enable_sim_profile"
3400 case "${enableval}" in
3401 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3402 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3404 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3407 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3408 if test x
"$sim_profile" = x
; then
3409 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3411 sim_profile
="${sim_profile}|PROFILE_$x"
3414 sim_profile
="$sim_profile)'" ;;
3416 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3417 echo "Setting sim profile = $sim_profile" 6>&1
3425 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3426 echo "configure:3427: checking return type of signal handlers" >&5
3427 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 cat > conftest.
$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 #include <sys/types.h>
3439 extern "C" void (*signal (int, void (*)(int)))(int);
3441 void (*signal ()) ();
3448 if { (eval echo configure
:3449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3450 ac_cv_type_signal
=void
3452 echo "configure: failed program was:" >&5
3453 cat conftest.
$ac_ext >&5
3455 ac_cv_type_signal
=int
3460 echo "$ac_t""$ac_cv_type_signal" 1>&6
3461 cat >> confdefs.h
<<EOF
3462 #define RETSIGTYPE $ac_cv_type_signal
3469 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3470 echo "configure:3471: checking for executable suffix" >&5
3471 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3474 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3478 echo 'int main () { return 0; }' > conftest.
$ac_ext
3480 if { (eval echo configure
:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3481 for file in conftest.
*; do
3483 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3484 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3488 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3491 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3496 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3497 echo "$ac_t""${ac_cv_exeext}" 1>&6
3504 sim_link_links
=tconfig.h
3505 if test -f ${srcdir}/tconfig.
in
3507 sim_link_files
=tconfig.
in
3509 sim_link_files
=..
/common
/tconfig.
in
3512 # targ-vals.def points to the libc macro description file.
3514 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3516 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3517 sim_link_links
="${sim_link_links} targ-vals.def"
3522 default_sim_inline
=""
3523 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3524 if test "${enable_sim_inline+set}" = set; then
3525 enableval
="$enable_sim_inline"
3527 case "$enableval" in
3528 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3529 0) sim_inline
="-DDEFAULT_INLINE=0";;
3530 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
3531 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3532 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3535 *_INLINE
=*) new_flag
="-D$x";;
3536 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3537 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
3538 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
3540 if test x
"$sim_inline" = x
""; then
3541 sim_inline
="$new_flag"
3543 sim_inline
="$sim_inline $new_flag"
3547 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3548 echo "Setting inline flags = $sim_inline" 6>&1
3552 if test "x$cross_compiling" = "xno"; then
3553 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
3554 sim_inline
="${default_sim_inline}"
3555 if test x
"$silent" != x
"yes"; then
3556 echo "Setting inline flags = $sim_inline" 6>&1
3562 sim_inline
="-DDEFAULT_INLINE=0"
3566 wire_alignment
="NONSTRICT_ALIGNMENT"
3567 default_alignment
=""
3569 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3570 if test "${enable_sim_alignment+set}" = set; then
3571 enableval
="$enable_sim_alignment"
3572 case "${enableval}" in
3573 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3574 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3575 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3576 yes) if test x
"$wire_alignment" != x
; then
3577 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3579 if test x
"$default_alignment" != x
; then
3580 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3582 echo "No hard-wired alignment for target $target" 1>&6
3583 sim_alignment
="-DWITH_ALIGNMENT=0"
3586 no
) if test x
"$default_alignment" != x
; then
3587 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3589 if test x
"$wire_alignment" != x
; then
3590 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3592 echo "No default alignment for target $target" 1>&6
3593 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3596 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3598 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3599 echo "Setting alignment flags = $sim_alignment" 6>&1
3602 if test x
"$default_alignment" != x
; then
3603 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3605 if test x
"$wire_alignment" != x
; then
3606 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3614 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3615 if test "${enable_sim_hostendian+set}" = set; then
3616 enableval
="$enable_sim_hostendian"
3617 case "${enableval}" in
3618 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3619 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3620 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3621 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3623 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3624 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3628 if test "x$cross_compiling" = "xno"; then
3629 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3630 echo "configure:3631: checking whether byte ordering is bigendian" >&5
3631 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 ac_cv_c_bigendian
=unknown
3635 # See if sys/param.h defines the BYTE_ORDER macro.
3636 cat > conftest.
$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 #include <sys/types.h>
3640 #include <sys/param.h>
3643 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3648 if { (eval echo configure
:3649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3650 # It does; now see whether it defined to BIG_ENDIAN or not.
3651 cat > conftest.
$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3654 #include <sys/types.h>
3655 #include <sys/param.h>
3658 #if BYTE_ORDER != BIG_ENDIAN
3663 if { (eval echo configure
:3664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3665 ac_cv_c_bigendian
=yes
3667 echo "configure: failed program was:" >&5
3668 cat conftest.
$ac_ext >&5
3670 ac_cv_c_bigendian
=no
3674 echo "configure: failed program was:" >&5
3675 cat conftest.
$ac_ext >&5
3678 if test $ac_cv_c_bigendian = unknown
; then
3679 if test "$cross_compiling" = yes; then
3680 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3682 cat > conftest.
$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3686 /* Are we little or big endian? From Harbison&Steele. */
3690 char c[sizeof (long)];
3693 exit (u.c[sizeof (long) - 1] == 1);
3696 if { (eval echo configure
:3697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3698 ac_cv_c_bigendian
=no
3700 echo "configure: failed program was:" >&5
3701 cat conftest.
$ac_ext >&5
3703 ac_cv_c_bigendian
=yes
3711 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3712 if test $ac_cv_c_bigendian = yes; then
3713 cat >> confdefs.h
<<\EOF
3714 #define WORDS_BIGENDIAN 1
3719 if test $ac_cv_c_bigendian = yes; then
3720 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3722 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3725 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3730 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3731 if test "${enable_build_warnings+set}" = set; then
3732 enableval
="$enable_build_warnings"
3733 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
3734 case "${enableval}" in
3736 no
) build_warnings
="-w";;
3737 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3738 build_warnings
="${build_warnings} ${t}";;
3739 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3740 build_warnings
="${t} ${build_warnings}";;
3741 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3743 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3744 echo "Setting warning flags = $build_warnings" 6>&1
3753 # Instead of defining a `subtarget' macro, code should be checking
3754 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
3758 mips
*tx39
*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
3759 *) SIM_SUBTARGET
="";;
3766 # Select the byte order of the target
3771 mips64el
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
3772 mips64vr
*el-
*-*) default_endian
=LITTLE_ENDIAN
;;
3773 mips64
*-*-*) default_endian
=BIG_ENDIAN
;;
3774 mips16
*-*-*) default_endian
=BIG_ENDIAN
;;
3775 mips
*-*-*) default_endian
=BIG_ENDIAN
;;
3776 *) default_endian
=BIG_ENDIAN
;;
3779 wire_endian
="$mips_endian"
3780 default_endian
="$default_endian"
3781 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3782 if test "${enable_sim_endian+set}" = set; then
3783 enableval
="$enable_sim_endian"
3784 case "${enableval}" in
3785 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3786 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3787 yes) if test x
"$wire_endian" != x
; then
3788 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3790 if test x
"$default_endian" != x
; then
3791 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3793 echo "No hard-wired endian for target $target" 1>&6
3794 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
3797 no
) if test x
"$default_endian" != x
; then
3798 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3800 if test x
"$wire_endian" != x
; then
3801 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3803 echo "No default endian for target $target" 1>&6
3804 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3807 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
3809 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
3810 echo "Setting endian flags = $sim_endian" 6>&1
3813 if test x
"$default_endian" != x
; then
3814 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3816 if test x
"$wire_endian" != x
; then
3817 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3828 # Select the bitsize of the target
3832 mips64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3833 mips16
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3834 mips
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3835 *) mips_bitsize
=64 ; mips_msb
=63 ;;
3837 wire_word_bitsize
="$mips_bitsize"
3838 wire_word_msb
="$mips_msb"
3839 wire_address_bitsize
="$mips_addr_bitsize"
3840 wire_cell_bitsize
=""
3841 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3842 if test "${enable_sim_bitsize+set}" = set; then
3843 enableval
="$enable_sim_bitsize"
3845 case "${enableval}" in
3846 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3847 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3848 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3849 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3850 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3851 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3853 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3855 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3856 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3858 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3860 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3863 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3866 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3867 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3868 * ) { echo "configure: error: "--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3871 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3874 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3875 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3876 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3878 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
3879 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3883 if test x
"$wire_word_bitsize" != x
; then
3884 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3886 if test x
"$wire_word_msb" != x
; then
3887 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3889 if test x
"$wire_address_bitsize" != x
; then
3890 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3892 if test x
"$wire_cell_bitsize" != x
; then
3893 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3901 # Select the floating hardware support of the target
3903 mips_fpu
=HARDWARE_FLOATING_POINT
3906 mips
*tx39
*) mips_fpu
=HARD_FLOATING_POINT
3909 mips64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3910 mips16
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3911 mips
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
3912 *) mips_fpu
=HARD_FLOATING_POINT
;;
3915 default_sim_float
="$mips_fpu"
3916 default_sim_float_bitsize
="$mips_fpu_bitsize"
3917 # Check whether --enable-sim-float or --disable-sim-float was given.
3918 if test "${enable_sim_float+set}" = set; then
3919 enableval
="$enable_sim_float"
3920 case "${enableval}" in
3921 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3922 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3923 32) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
3924 64) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
3925 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-float"" 1>&2; exit 1; }; sim_float
="";;
3927 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
3928 echo "Setting float flags = $sim_float" 6>&1
3933 if test x
"${default_sim_float}" != x
""; then
3934 sim_float
="-DWITH_FLOATING_POINT=${default_sim_float}"
3936 if test x
"${default_sim_float_bitsize}" != x
""; then
3937 sim_float
="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
3946 # Select the level of SMP support
3952 default_sim_smp
="$mips_smp"
3953 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3954 if test "${enable_sim_smp+set}" = set; then
3955 enableval
="$enable_sim_smp"
3956 case "${enableval}" in
3957 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
3958 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
3959 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
3961 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
3962 echo "Setting smp flags = $sim_smp" 6>&1
3965 sim_smp
="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp
="-N ${default_sim_smp}"
3966 if test x
"$silent" != x
"yes"; then
3967 echo "Setting smp flags = $sim_smp" 6>&1
3975 # Select the IGEN architecture
3978 sim_igen_machine
="-M mipsIV"
3979 sim_m16_machine
="-M mips16"
3980 sim_igen_filter
="32,64,f"
3983 mips
*tx39
*) sim_gen
=IGEN
3984 sim_igen_filter
="32,f"
3985 sim_igen_machine
="-M r3900"
3987 mips64vr43
*-*-*) sim_gen
=IGEN
3988 sim_igen_machine
="-M mipsIV"
3990 mips64vr5
*-*-*) sim_gen
=IGEN
3991 sim_igen_machine
="-M vr5000"
3993 mips64vr41
*) sim_gen
=M16
3994 sim_igen_machine
="-M vr4100"
3995 sim_m16_machine
="-M vr4100"
3996 sim_igen_filter
="32,64,f"
3999 mips64
*-*-*) sim_igen_filter
="32,64,f"
4002 mips16
*-*-*) sim_gen
=M16
4003 sim_igen_filter
="32,64,f"
4006 mips
*lsi
*) sim_gen
=M16
4007 sim_igen_machine
="-M mipsIII,mips16"
4008 sim_m16_machine
="-M mips16,mipsIII"
4009 sim_igen_filter
="32,f"
4012 mips
*-*-*) sim_gen
=IGEN
4013 sim_igen_filter
="32,f"
4016 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
4017 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
4024 # Add simulated hardware devices
4030 hw_extra_devices
="tx3904cpu tx3904irc tx3904tmr tx3904sio"
4031 mips_extra_objs
="dv-sockser.o"
4032 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_TX3904=1"
4039 if test x
"$hw_enabled" = x
"yes"; then
4044 if test "$hw_devices"; then
4045 hardware
="core pal glue"
4047 hardware
="core pal glue $hw_extra_devices"
4049 sim_hw_cflags
="-DWITH_HW=1"
4051 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
4052 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
4053 if test "${enable_sim_hardware+set}" = set; then
4054 enableval
="$enable_sim_hardware"
4056 case "${enableval}" in
4059 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
4060 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
4061 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
4063 if test "$sim_hw_p" != yes; then
4065 sim_hw_cflags
="-DWITH_HW=0"
4068 sim_hw_cflags
="-DWITH_HW=1"
4071 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
4072 for i
in x
$hardware ; do
4076 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
4080 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
4081 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4085 if test "$sim_hw_p" != yes; then
4087 sim_hw_cflags
="-DWITH_HW=0"
4090 if test x
"$silent" != x
"yes"; then
4091 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4098 # Choose simulator engine
4100 *) mips_igen_engine
="engine.o"
4106 # If we find X, set shell vars x_includes and x_libraries to the
4107 # paths, otherwise set no_x=yes.
4108 # Uses ac_ vars as temps to allow command line to override cache and checks.
4109 # --without-x overrides everything else, but does not touch the cache.
4110 echo $ac_n "checking for X""... $ac_c" 1>&6
4111 echo "configure:4212: checking for X" >&5
4113 # Check whether --with-x or --without-x was given.
4114 if test "${with_x+set}" = set; then
4119 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4120 if test "x$with_x" = xno
; then
4121 # The user explicitly disabled X.
4124 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
4125 # Both variables are already set.
4128 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4129 echo $ac_n "(cached) $ac_c" 1>&6
4131 # One or both of the vars are not set, and there is no cached value.
4132 ac_x_includes
=NO ac_x_libraries
=NO
4134 if mkdir conftestdir
; then
4136 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4137 cat > Imakefile
<<'EOF'
4139 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4141 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4142 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4143 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4144 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4145 for ac_extension
in a so sl
; do
4146 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
4147 test -f $ac_im_libdir/libX11.
$ac_extension; then
4148 ac_im_usrlibdir
=$ac_im_libdir; break
4151 # Screen out bogus values from the imake configuration. They are
4152 # bogus both because they are the default anyway, and because
4153 # using them would break gcc on systems where it needs fixed includes.
4154 case "$ac_im_incroot" in
4156 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
4158 case "$ac_im_usrlibdir" in
4160 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
4167 if test "$ac_x_includes" = NO
; then
4168 # Guess where to find include files, by looking for this one X11 .h file.
4169 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
4171 # First, try using that file with no special directory specified.
4172 cat > conftest.
$ac_ext <<EOF
4173 #line 4274 "configure"
4174 #include "confdefs.h"
4175 #include <$x_direct_test_include>
4177 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4178 { (eval echo configure
:4279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4179 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4180 if test -z "$ac_err"; then
4182 # We can compile using X headers with no special include directory.
4186 echo "configure: failed program was:" >&5
4187 cat conftest.
$ac_ext >&5
4189 # Look for the header file in a standard set of common directories.
4190 # Check X11 before X11Rn because it is often a symlink to the current release.
4193 /usr
/X11R
6/include \
4194 /usr
/X11R
5/include \
4195 /usr
/X11R
4/include \
4198 /usr
/include
/X11R6 \
4199 /usr
/include
/X11R5 \
4200 /usr
/include
/X11R4 \
4202 /usr
/local
/X11
/include \
4203 /usr
/local
/X11R
6/include \
4204 /usr
/local
/X11R
5/include \
4205 /usr
/local
/X11R
4/include \
4207 /usr
/local
/include
/X11 \
4208 /usr
/local
/include
/X11R6 \
4209 /usr
/local
/include
/X11R5 \
4210 /usr
/local
/include
/X11R4 \
4214 /usr
/XFree86
/include
/X11 \
4217 /usr
/local
/include \
4218 /usr
/unsupported
/include \
4219 /usr
/athena
/include \
4220 /usr
/local
/x11r
5/include \
4221 /usr
/lpp
/Xamples
/include \
4223 /usr
/openwin
/include \
4224 /usr
/openwin
/share
/include \
4227 if test -r "$ac_dir/$x_direct_test_include"; then
4228 ac_x_includes
=$ac_dir
4234 fi # $ac_x_includes = NO
4236 if test "$ac_x_libraries" = NO
; then
4237 # Check for the libraries.
4239 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
4240 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
4242 # See if we find them without any special options.
4243 # Don't add to $LIBS permanently.
4244 ac_save_LIBS
="$LIBS"
4245 LIBS
="-l$x_direct_test_library $LIBS"
4246 cat > conftest.
$ac_ext <<EOF
4247 #line 4348 "configure"
4248 #include "confdefs.h"
4251 ${x_direct_test_function}()
4254 if { (eval echo configure
:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4256 LIBS
="$ac_save_LIBS"
4257 # We can link X programs with no special library path.
4260 echo "configure: failed program was:" >&5
4261 cat conftest.
$ac_ext >&5
4263 LIBS
="$ac_save_LIBS"
4264 # First see if replacing the include by lib works.
4265 # Check X11 before X11Rn because it is often a symlink to the current release.
4266 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
4277 /usr
/local
/X11
/lib \
4278 /usr
/local
/X11R
6/lib \
4279 /usr
/local
/X11R
5/lib \
4280 /usr
/local
/X11R
4/lib \
4282 /usr
/local
/lib
/X11 \
4283 /usr
/local
/lib
/X11R6 \
4284 /usr
/local
/lib
/X11R5 \
4285 /usr
/local
/lib
/X11R4 \
4289 /usr
/XFree86
/lib
/X11 \
4293 /usr
/unsupported
/lib \
4295 /usr
/local
/x11r
5/lib \
4296 /usr
/lpp
/Xamples
/lib \
4300 /usr
/openwin
/share
/lib \
4303 for ac_extension
in a so sl
; do
4304 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
4305 ac_x_libraries
=$ac_dir
4312 fi # $ac_x_libraries = NO
4314 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
4315 # Didn't find X anywhere. Cache the known absence of X.
4316 ac_cv_have_x
="have_x=no"
4318 # Record where we found X for the cache.
4319 ac_cv_have_x
="have_x=yes \
4320 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4324 eval "$ac_cv_have_x"
4327 if test "$have_x" != yes; then
4328 echo "$ac_t""$have_x" 1>&6
4331 # If each of the values was on the command line, it overrides each guess.
4332 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4333 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4334 # Update the cache value to reflect the command line values.
4335 ac_cv_have_x
="have_x=yes \
4336 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4337 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4343 for ac_hdr
in string.h
strings.h stdlib.h stdlib.h
4345 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4347 echo "configure:5242: checking for $ac_hdr" >&5
4348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4351 cat > conftest.
$ac_ext <<EOF
4352 #line 5247 "configure"
4353 #include "confdefs.h"
4356 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4357 { (eval echo configure
:5252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4358 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4359 if test -z "$ac_err"; then
4361 eval "ac_cv_header_$ac_safe=yes"
4364 echo "configure: failed program was:" >&5
4365 cat conftest.
$ac_ext >&5
4367 eval "ac_cv_header_$ac_safe=no"
4371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4372 echo "$ac_t""yes" 1>&6
4373 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4374 cat >> confdefs.h
<<EOF
4375 #define $ac_tr_hdr 1
4379 echo "$ac_t""no" 1>&6
4383 echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
4384 echo "configure:5279: checking for fabs in -lm" >&5
4385 ac_lib_var
=`echo m'_'fabs | sed 'y%./+-%__p_%'`
4386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 ac_save_LIBS
="$LIBS"
4391 cat > conftest.
$ac_ext <<EOF
4392 #line 5287 "configure"
4393 #include "confdefs.h"
4394 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4403 if { (eval echo configure
:5298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4405 eval "ac_cv_lib_$ac_lib_var=yes"
4407 echo "configure: failed program was:" >&5
4408 cat conftest.
$ac_ext >&5
4410 eval "ac_cv_lib_$ac_lib_var=no"
4413 LIBS
="$ac_save_LIBS"
4416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4417 echo "$ac_t""yes" 1>&6
4418 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4419 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4420 cat >> confdefs.h
<<EOF
4421 #define $ac_tr_lib 1
4427 echo "$ac_t""no" 1>&6
4430 for ac_func
in aint anint sqrt
4432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4433 echo "configure:5328: checking for $ac_func" >&5
4434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 cat > conftest.
$ac_ext <<EOF
4438 #line 5333 "configure"
4439 #include "confdefs.h"
4440 /* System header to define __stub macros and hopefully few prototypes,
4441 which can conflict with char $ac_func(); below. */
4443 /* Override any gcc2 internal prototype to avoid an error. */
4444 /* We use char because int might match the return type of a gcc2
4445 builtin and then its argument prototype would still apply. */
4450 /* The GNU C library defines this for functions which it implements
4451 to always fail with ENOSYS. Some functions are actually named
4452 something starting with __ and the normal name is an alias. */
4453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4461 if { (eval echo configure
:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4463 eval "ac_cv_func_$ac_func=yes"
4465 echo "configure: failed program was:" >&5
4466 cat conftest.
$ac_ext >&5
4468 eval "ac_cv_func_$ac_func=no"
4473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4474 echo "$ac_t""yes" 1>&6
4475 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4476 cat >> confdefs.h
<<EOF
4477 #define $ac_tr_func 1
4481 echo "$ac_t""no" 1>&6
4489 cat > confcache
<<\EOF
4490 # This file is a shell script that caches the results of configure
4491 # tests run on this system so they can be shared between configure
4492 # scripts and configure runs. It is not useful on other systems.
4493 # If it contains results you don't want to keep, you may remove or edit it.
4495 # By default, configure uses ./config.cache as the cache file,
4496 # creating it if it does not exist already. You can give configure
4497 # the --cache-file=FILE option to use a different cache file; that is
4498 # what configure does when it calls configure scripts in
4499 # subdirectories, so they share the cache.
4500 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4501 # config.status only pays attention to the cache file if you give it the
4502 # --recheck option to rerun configure.
4505 # The following way of writing the cache mishandles newlines in values,
4506 # but we know of no workaround that is simple, portable, and efficient.
4507 # So, don't put newlines in cache variables' values.
4508 # Ultrix sh set writes to stderr and can't be redirected directly,
4509 # and sets the high bit in the cache file unless we assign to the vars.
4511 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4513 # `set' does not quote correctly, so add quotes (double-quote substitution
4514 # turns \\\\ into \\, and sed turns \\ into \).
4516 -e "s/'/'\\\\''/g" \
4517 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4520 # `set' quotes correctly as required by POSIX, so do not add quotes.
4521 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4524 if cmp -s $cache_file confcache
; then
4527 if test -w $cache_file; then
4528 echo "updating cache $cache_file"
4529 cat confcache
> $cache_file
4531 echo "not updating unwritable cache $cache_file"
4536 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4538 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4539 # Let make expand exec_prefix.
4540 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4542 # Any assignment to VPATH causes Sun make to only execute
4543 # the first set of double-colon rules, so remove it if not needed.
4544 # If there is a colon in the path, we need to keep it.
4545 if test "x$srcdir" = x.
; then
4546 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4549 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4551 DEFS
=-DHAVE_CONFIG_H
4553 # Without the "./", some shells look in PATH for config.status.
4554 : ${CONFIG_STATUS=./config.status}
4556 echo creating
$CONFIG_STATUS
4557 rm -f $CONFIG_STATUS
4558 cat > $CONFIG_STATUS <<EOF
4560 # Generated automatically by configure.
4561 # Run this file to recreate the current configuration.
4562 # This directory was configured as follows,
4563 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4565 # $0 $ac_configure_args
4567 # Compiler output produced by configure, useful for debugging
4568 # configure, is in ./config.log if it exists.
4570 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4573 case "\$ac_option" in
4574 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4575 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4576 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4577 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4578 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4580 -help | --help | --hel | --he | --h)
4581 echo "\$ac_cs_usage"; exit 0 ;;
4582 *) echo "\$ac_cs_usage"; exit 1 ;;
4586 ac_given_srcdir=$srcdir
4587 ac_given_INSTALL="$INSTALL"
4589 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
4591 cat >> $CONFIG_STATUS <<EOF
4593 # Protect against being on the right side of a sed subst in config.status.
4594 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4595 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4598 s%@sim_environment@%$sim_environment%g
4599 s%@sim_alignment@%$sim_alignment%g
4600 s%@sim_assert@%$sim_assert%g
4601 s%@sim_bitsize@%$sim_bitsize%g
4602 s%@sim_endian@%$sim_endian%g
4603 s%@sim_hostendian@%$sim_hostendian%g
4604 s%@sim_float@%$sim_float%g
4605 s%@sim_scache@%$sim_scache%g
4606 s%@sim_default_model@%$sim_default_model%g
4607 s%@sim_hw_cflags@%$sim_hw_cflags%g
4608 s%@sim_hw_objs@%$sim_hw_objs%g
4609 s%@sim_hw@%$sim_hw%g
4610 s%@sim_inline@%$sim_inline%g
4611 s%@sim_packages@%$sim_packages%g
4612 s%@sim_regparm@%$sim_regparm%g
4613 s%@sim_reserved_bits@%$sim_reserved_bits%g
4614 s%@sim_smp@%$sim_smp%g
4615 s%@sim_stdcall@%$sim_stdcall%g
4616 s%@sim_xor_endian@%$sim_xor_endian%g
4617 s%@build_warnings@%$build_warnings%g
4619 s%@CFLAGS@%$CFLAGS%g
4620 s%@CPPFLAGS@%$CPPFLAGS%g
4621 s%@CXXFLAGS@%$CXXFLAGS%g
4622 s%@FFLAGS@%$FFLAGS%g
4624 s%@LDFLAGS@%$LDFLAGS%g
4626 s%@exec_prefix@%$exec_prefix%g
4627 s%@prefix@%$prefix%g
4628 s%@program_transform_name@%$program_transform_name%g
4629 s%@bindir@%$bindir%g
4630 s%@sbindir@%$sbindir%g
4631 s%@libexecdir@%$libexecdir%g
4632 s%@datadir@%$datadir%g
4633 s%@sysconfdir@%$sysconfdir%g
4634 s%@sharedstatedir@%$sharedstatedir%g
4635 s%@localstatedir@%$localstatedir%g
4636 s%@libdir@%$libdir%g
4637 s%@includedir@%$includedir%g
4638 s%@oldincludedir@%$oldincludedir%g
4639 s%@infodir@%$infodir%g
4640 s%@mandir@%$mandir%g
4642 s%@host_alias@%$host_alias%g
4643 s%@host_cpu@%$host_cpu%g
4644 s%@host_vendor@%$host_vendor%g
4645 s%@host_os@%$host_os%g
4646 s%@target@%$target%g
4647 s%@target_alias@%$target_alias%g
4648 s%@target_cpu@%$target_cpu%g
4649 s%@target_vendor@%$target_vendor%g
4650 s%@target_os@%$target_os%g
4652 s%@build_alias@%$build_alias%g
4653 s%@build_cpu@%$build_cpu%g
4654 s%@build_vendor@%$build_vendor%g
4655 s%@build_os@%$build_os%g
4657 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4658 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4659 s%@INSTALL_DATA@%$INSTALL_DATA%g
4660 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4661 s%@HDEFINES@%$HDEFINES%g
4663 s%@RANLIB@%$RANLIB%g
4664 s%@SET_MAKE@%$SET_MAKE%g
4666 s%@ALLOCA@%$ALLOCA%g
4667 s%@USE_NLS@%$USE_NLS%g
4668 s%@MSGFMT@%$MSGFMT%g
4669 s%@GMSGFMT@%$GMSGFMT%g
4670 s%@XGETTEXT@%$XGETTEXT%g
4671 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4672 s%@CATALOGS@%$CATALOGS%g
4673 s%@CATOBJEXT@%$CATOBJEXT%g
4674 s%@DATADIRNAME@%$DATADIRNAME%g
4675 s%@GMOFILES@%$GMOFILES%g
4676 s%@INSTOBJEXT@%$INSTOBJEXT%g
4677 s%@INTLDEPS@%$INTLDEPS%g
4678 s%@INTLLIBS@%$INTLLIBS%g
4679 s%@INTLOBJS@%$INTLOBJS%g
4680 s%@POFILES@%$POFILES%g
4682 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4684 s%@GT_YES@%$GT_YES%g
4685 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4688 s%@sim_bswap@%$sim_bswap%g
4689 s%@sim_cflags@%$sim_cflags%g
4690 s%@sim_debug@%$sim_debug%g
4691 s%@sim_stdio@%$sim_stdio%g
4692 s%@sim_trace@%$sim_trace%g
4693 s%@sim_profile@%$sim_profile%g
4694 s%@EXEEXT@%$EXEEXT%g
4695 s%@SIM_SUBTARGET@%$SIM_SUBTARGET%g
4696 s%@sim_igen_flags@%$sim_igen_flags%g
4697 s%@sim_m16_flags@%$sim_m16_flags%g
4698 s%@sim_gen@%$sim_gen%g
4699 s%@mips_extra_objs@%$mips_extra_objs%g
4700 s%@mips_igen_engine@%$mips_igen_engine%g
4701 s%@mips_extra_libs@%$mips_extra_libs%g
4706 cat >> $CONFIG_STATUS <<\EOF
4708 # Split the substitutions into bite-sized pieces for seds with
4709 # small command number limits, like on Digital OSF/1 and HP-UX.
4710 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4711 ac_file
=1 # Number of current file.
4712 ac_beg
=1 # First line for current file.
4713 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4716 while $ac_more_lines; do
4717 if test $ac_beg -gt 1; then
4718 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4720 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4722 if test ! -s conftest.s
$ac_file; then
4724 rm -f conftest.s
$ac_file
4726 if test -z "$ac_sed_cmds"; then
4727 ac_sed_cmds
="sed -f conftest.s$ac_file"
4729 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4731 ac_file
=`expr $ac_file + 1`
4733 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4736 if test -z "$ac_sed_cmds"; then
4741 cat >> $CONFIG_STATUS <<EOF
4743 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4745 cat >> $CONFIG_STATUS <<\EOF
4746 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4747 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4749 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4750 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4751 *) ac_file_in
="${ac_file}.in" ;;
4754 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4756 # Remove last slash and all that follows it. Not all systems have dirname.
4757 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4758 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4759 # The file is in a subdirectory.
4760 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4761 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4762 # A "../" for each directory in $ac_dir_suffix.
4763 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4765 ac_dir_suffix
= ac_dots
=
4768 case "$ac_given_srcdir" in
4770 if test -z "$ac_dots"; then top_srcdir
=.
4771 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4772 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4774 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4775 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4778 case "$ac_given_INSTALL" in
4779 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4780 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4783 echo creating
"$ac_file"
4785 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4787 *Makefile
*) ac_comsub
="1i\\
4788 # $configure_input" ;;
4792 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4794 s%@configure_input@%$configure_input%g
4795 s%@srcdir@%$srcdir%g
4796 s%@top_srcdir@%$top_srcdir%g
4797 s%@INSTALL@%$INSTALL%g
4798 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4802 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4803 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4805 # ac_d sets the value in "#define NAME VALUE" lines.
4806 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4807 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4810 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4811 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4812 ac_uB
='\([ ]\)%\1#\2define\3'
4815 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4816 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4817 ac_eB
='$%\1#\2define\3'
4821 if test "${CONFIG_HEADERS+set}" != set; then
4823 cat >> $CONFIG_STATUS <<EOF
4824 CONFIG_HEADERS="config.h:config.in"
4826 cat >> $CONFIG_STATUS <<\EOF
4828 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4829 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4831 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4832 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4833 *) ac_file_in
="${ac_file}.in" ;;
4836 echo creating
$ac_file
4838 rm -f conftest.frag conftest.
in conftest.out
4839 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4840 cat $ac_file_inputs > conftest.
in
4844 # Transform confdefs.h into a sed script conftest.vals that substitutes
4845 # the proper values into config.h.in to produce config.h. And first:
4846 # Protect against being on the right side of a sed subst in config.status.
4847 # Protect against being in an unquoted here document in config.status.
4849 cat > conftest.hdr
<<\EOF
4852 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4856 sed -n -f conftest.hdr confdefs.h > conftest.vals
4859 # This sed command replaces #undef with comments. This is necessary, for
4860 # example, in the case of _POSIX_SOURCE, which is predefined and required
4861 # on some systems where configure will not decide to define it.
4862 cat >> conftest.vals <<\EOF
4863 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4866 # Break up conftest.vals because some shells have a limit on
4867 # the size of here documents, and old seds have small limits too.
4872 ac_lines=`grep -c . conftest.vals
`
4873 # grep -c gives empty output for an empty file on some AIX systems.
4874 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4875 # Write a limited-size here document to conftest.frag.
4876 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4877 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4879 sed -f conftest.frag conftest.in > conftest.out
4881 mv conftest.out conftest.in
4883 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4885 mv conftest.tail conftest.vals
4889 cat >> $CONFIG_STATUS <<\EOF
4890 rm -f conftest.frag conftest.h
4891 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4892 cat conftest.in >> conftest.h
4894 if cmp -s $ac_file conftest.h 2>/dev/null; then
4895 echo "$ac_file is unchanged"
4898 # Remove last slash and all that follows it. Not all systems have dirname.
4899 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4900 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4901 # The file is in a subdirectory.
4902 test ! -d "$ac_dir" && mkdir "$ac_dir"
4905 mv conftest.h $ac_file
4911 cat >> $CONFIG_STATUS <<EOF
4912 ac_sources="$sim_link_files"
4913 ac_dests="$sim_link_links"
4916 cat >> $CONFIG_STATUS <<\EOF
4917 srcdir=$ac_given_srcdir
4918 while test -n "$ac_sources"; do
4919 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4920 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4922 echo "linking $srcdir/$ac_source to $ac_dest"
4924 if test ! -r $srcdir/$ac_source; then
4925 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4929 # Make relative symlinks.
4930 # Remove last slash and all that follows it. Not all systems have dirname.
4931 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4932 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4933 # The dest file is in a subdirectory.
4934 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4935 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4936 # A "../" for each directory in $ac_dest_dir_suffix.
4937 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4939 ac_dest_dir_suffix= ac_dots=
4943 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4944 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4947 # Make a symlink if possible; otherwise try a hard link.
4948 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4949 ln $srcdir/$ac_source $ac_dest; then :
4951 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4955 cat >> $CONFIG_STATUS <<EOF
4958 cat >> $CONFIG_STATUS <<\EOF
4959 case "x$CONFIG_FILES" in
4961 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4962 rm -f Makesim1.tmp Makesim2.tmp Makefile
4963 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4964 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4965 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4966 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4967 <Makefile.sim >Makefile
4968 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4971 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4975 chmod +x $CONFIG_STATUS
4976 rm -fr confdefs* $ac_clean_files
4977 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1