45 sim_inline
="-DDEFAULT_INLINE=0"
82 # This file is derived from `gettext.m4'. The difference is that the
83 # included macros assume Cygnus-style source and build trees.
85 # Macro to add for using GNU gettext.
86 # Ulrich Drepper <drepper@cygnus.com>, 1995.
88 # This file file be copied and used freely without restrictions. It can
89 # be used in projects which are not available under the GNU Public License
90 # but which still want to provide support for the GNU gettext functionality.
91 # Please note that the actual code is *not* freely available.
99 # Search path for a program which passes the given test.
100 # Ulrich Drepper <drepper@cygnus.com>, 1996.
102 # This file file be copied and used freely without restrictions. It can
103 # be used in projects which are not available under the GNU Public License
104 # but which still want to provide support for the GNU gettext functionality.
105 # Please note that the actual code is *not* freely available.
111 # Check whether LC_MESSAGES is available in <locale.h>.
112 # Ulrich Drepper <drepper@cygnus.com>, 1995.
114 # This file file be copied and used freely without restrictions. It can
115 # be used in projects which are not available under the GNU Public License
116 # but which still want to provide support for the GNU gettext functionality.
117 # Please note that the actual code is *not* freely available.
126 # Guess values for system-dependent variables and create Makefiles.
127 # Generated automatically using autoconf version 2.13
128 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 # This configure script is free software; the Free Software Foundation
131 # gives unlimited permission to copy, distribute and modify it.
135 ac_default_prefix
=/usr
/local
136 # Any additions from configure.in:
138 --disable-nls do not use Native Language Support"
140 --with-included-gettext use the GNU gettext library included here"
142 --enable-maintainer-mode Enable developer functionality."
144 --enable-sim-bswap Use Host specific BSWAP instruction."
146 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
148 --enable-sim-debug=opts Enable debugging flags"
150 --enable-sim-stdio Specify whether to use stdio for console input/output."
152 --enable-sim-trace=opts Enable tracing flags"
154 --enable-sim-profile=opts Enable profiling flags"
156 --enable-sim-inline=inlines Specify which functions should be inlined."
158 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
160 --enable-sim-hostendian=end Specify host byte endian orientation."
162 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
164 --enable-sim-endian=endian Specify target byte endian orientation."
166 --enable-sim-bitsize=N Specify target bitsize (32 or 64)."
168 --enable-sim-float Specify that the target processor has floating point hardware."
170 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp})."
172 --enable-sim-hardware=LIST Specify the hardware to be included in the build."
174 --with-x use the X Window System"
176 # Initialize some variables set by options.
177 # The variables have the same names as the options, with
178 # dashes changed to underlines.
180 cache_file
=.
/config.cache
189 program_transform_name
=s
,x
,x
,
198 bindir
='${exec_prefix}/bin'
199 sbindir
='${exec_prefix}/sbin'
200 libexecdir
='${exec_prefix}/libexec'
201 datadir
='${prefix}/share'
202 sysconfdir
='${prefix}/etc'
203 sharedstatedir
='${prefix}/com'
204 localstatedir
='${prefix}/var'
205 libdir
='${exec_prefix}/lib'
206 includedir
='${prefix}/include'
207 oldincludedir
='/usr/include'
208 infodir
='${prefix}/info'
209 mandir
='${prefix}/man'
211 # Initialize some other variables.
214 SHELL
=${CONFIG_SHELL-/bin/sh}
215 # Maximum number of lines to put in a shell here document.
222 # If the previous option needs an argument, assign it.
223 if test -n "$ac_prev"; then
224 eval "$ac_prev=\$ac_option"
230 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
234 # Accept the important Cygnus configure options, so we can diagnose typos.
238 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
240 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
241 bindir
="$ac_optarg" ;;
243 -build |
--build |
--buil |
--bui |
--bu)
245 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
246 build
="$ac_optarg" ;;
248 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
249 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
250 ac_prev
=cache_file
;;
251 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
252 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
253 cache_file
="$ac_optarg" ;;
255 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
257 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
259 datadir
="$ac_optarg" ;;
261 -disable-* |
--disable-*)
262 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
263 # Reject names that are not valid shell variable names.
264 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
265 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
267 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
268 eval "enable_${ac_feature}=no" ;;
270 -enable-* |
--enable-*)
271 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
272 # Reject names that are not valid shell variable names.
273 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
274 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
276 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
281 eval "enable_${ac_feature}='$ac_optarg'" ;;
283 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
284 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
285 |
--exec |
--exe |
--ex)
286 ac_prev
=exec_prefix
;;
287 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
288 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
289 |
--exec=* |
--exe=* |
--ex=*)
290 exec_prefix
="$ac_optarg" ;;
292 -gas |
--gas |
--ga |
--g)
293 # Obsolete; use --with-gas.
296 -help |
--help |
--hel |
--he)
297 # Omit some internal or obsolete options to make the list less imposing.
298 # This message is too long to be a string in the A/UX 3.1 sh.
300 Usage: configure [options] [host]
301 Options: [defaults in brackets after descriptions]
303 --cache-file=FILE cache test results in FILE
304 --help print this message
305 --no-create do not create output files
306 --quiet, --silent do not print \`checking...' messages
307 --site-file=FILE use FILE as the site file
308 --version print the version of autoconf that created configure
309 Directory and file names:
310 --prefix=PREFIX install architecture-independent files in PREFIX
312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
314 --bindir=DIR user executables in DIR [EPREFIX/bin]
315 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
316 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
317 --datadir=DIR read-only architecture-independent data in DIR
319 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
320 --sharedstatedir=DIR modifiable architecture-independent data in DIR
322 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
323 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
324 --includedir=DIR C header files in DIR [PREFIX/include]
325 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
326 --infodir=DIR info documentation in DIR [PREFIX/info]
327 --mandir=DIR man documentation in DIR [PREFIX/man]
328 --srcdir=DIR find the sources in DIR [configure dir or ..]
329 --program-prefix=PREFIX prepend PREFIX to installed program names
330 --program-suffix=SUFFIX append SUFFIX to installed program names
331 --program-transform-name=PROGRAM
332 run sed PROGRAM on installed program names
336 --build=BUILD configure for building on BUILD [BUILD=HOST]
337 --host=HOST configure for HOST [guessed]
338 --target=TARGET configure for TARGET [TARGET=HOST]
339 Features and packages:
340 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
341 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
342 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
343 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
344 --x-includes=DIR X include files are in DIR
345 --x-libraries=DIR X library files are in DIR
347 if test -n "$ac_help"; then
348 echo "--enable and --with options recognized:$ac_help"
352 -host |
--host |
--hos |
--ho)
354 -host=* |
--host=* |
--hos=* |
--ho=*)
357 -includedir |
--includedir |
--includedi |
--included |
--include \
358 |
--includ |
--inclu |
--incl |
--inc)
359 ac_prev
=includedir
;;
360 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
361 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
362 includedir
="$ac_optarg" ;;
364 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
366 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
367 infodir
="$ac_optarg" ;;
369 -libdir |
--libdir |
--libdi |
--libd)
371 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
372 libdir
="$ac_optarg" ;;
374 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
375 |
--libexe |
--libex |
--libe)
376 ac_prev
=libexecdir
;;
377 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
378 |
--libexe=* |
--libex=* |
--libe=*)
379 libexecdir
="$ac_optarg" ;;
381 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
382 |
--localstate |
--localstat |
--localsta |
--localst \
383 |
--locals |
--local |
--loca |
--loc |
--lo)
384 ac_prev
=localstatedir
;;
385 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
386 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
387 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
388 localstatedir
="$ac_optarg" ;;
390 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
392 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
393 mandir
="$ac_optarg" ;;
396 # Obsolete; use --without-fp.
399 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
403 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
404 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
407 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
408 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
409 |
--oldin |
--oldi |
--old |
--ol |
--o)
410 ac_prev
=oldincludedir
;;
411 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
412 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
413 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
414 oldincludedir
="$ac_optarg" ;;
416 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
418 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
419 prefix
="$ac_optarg" ;;
421 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
422 |
--program-pre |
--program-pr |
--program-p)
423 ac_prev
=program_prefix
;;
424 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
425 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
426 program_prefix
="$ac_optarg" ;;
428 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
429 |
--program-suf |
--program-su |
--program-s)
430 ac_prev
=program_suffix
;;
431 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
432 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
433 program_suffix
="$ac_optarg" ;;
435 -program-transform-name |
--program-transform-name \
436 |
--program-transform-nam |
--program-transform-na \
437 |
--program-transform-n |
--program-transform- \
438 |
--program-transform |
--program-transfor \
439 |
--program-transfo |
--program-transf \
440 |
--program-trans |
--program-tran \
441 |
--progr-tra |
--program-tr |
--program-t)
442 ac_prev
=program_transform_name
;;
443 -program-transform-name=* |
--program-transform-name=* \
444 |
--program-transform-nam=* |
--program-transform-na=* \
445 |
--program-transform-n=* |
--program-transform-=* \
446 |
--program-transform=* |
--program-transfor=* \
447 |
--program-transfo=* |
--program-transf=* \
448 |
--program-trans=* |
--program-tran=* \
449 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
450 program_transform_name
="$ac_optarg" ;;
452 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
453 |
-silent |
--silent |
--silen |
--sile |
--sil)
456 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
458 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
460 sbindir
="$ac_optarg" ;;
462 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
463 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
464 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
466 ac_prev
=sharedstatedir
;;
467 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
468 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
469 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
471 sharedstatedir
="$ac_optarg" ;;
473 -site |
--site |
--sit)
475 -site=* |
--site=* |
--sit=*)
478 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
480 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
481 sitefile
="$ac_optarg" ;;
483 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
485 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
486 srcdir
="$ac_optarg" ;;
488 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
489 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
490 ac_prev
=sysconfdir
;;
491 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
492 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
493 sysconfdir
="$ac_optarg" ;;
495 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
497 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
498 target
="$ac_optarg" ;;
500 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
503 -version |
--version |
--versio |
--versi |
--vers)
504 echo "configure generated by autoconf version 2.13"
508 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
509 # Reject names that are not valid shell variable names.
510 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
511 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
513 ac_package
=`echo $ac_package| sed 's/-/_/g'`
518 eval "with_${ac_package}='$ac_optarg'" ;;
520 -without-* |
--without-*)
521 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
522 # Reject names that are not valid shell variable names.
523 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
524 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
526 ac_package
=`echo $ac_package| sed 's/-/_/g'`
527 eval "with_${ac_package}=no" ;;
530 # Obsolete; use --with-x.
533 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
534 |
--x-incl |
--x-inc |
--x-in |
--x-i)
535 ac_prev
=x_includes
;;
536 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
537 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
538 x_includes
="$ac_optarg" ;;
540 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
541 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
542 ac_prev
=x_libraries
;;
543 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
544 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
545 x_libraries
="$ac_optarg" ;;
547 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
551 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
552 echo "configure: warning: $ac_option: invalid host type" 1>&2
554 if test "x$nonopt" != xNONE
; then
555 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
563 if test -n "$ac_prev"; then
564 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
567 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
569 # File descriptor usage:
572 # 2 errors and warnings
573 # 3 some systems may open it to /dev/tty
574 # 4 used on the Kubota Titan
575 # 6 checking for... messages and results
576 # 5 compiler messages saved in config.log
577 if test "$silent" = yes; then
585 This file contains any messages produced by compilers while
586 running configure, to aid debugging if configure makes a mistake.
589 # Strip out --no-create and --no-recursion so they do not pile up.
590 # Also quote any args containing shell metacharacters.
595 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
596 |
--no-cr |
--no-c) ;;
597 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
598 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
599 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
600 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
601 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
606 # Only set these to C if already set. These must not be set unconditionally
607 # because not all systems understand e.g. LANG=C (notably SCO).
608 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
609 # Non-C LC_CTYPE values break the ctype check.
610 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
611 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
612 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
613 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
615 # confdefs.h avoids OS command line length limits that DEFS can exceed.
616 rm -rf conftest
* confdefs.h
617 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
620 # A filename unique to this package, relative to the directory that
621 # configure is in, which we can look for to find out if srcdir is correct.
622 ac_unique_file
=Makefile.
in
624 # Find the source files, if location was not specified.
625 if test -z "$srcdir"; then
626 ac_srcdir_defaulted
=yes
627 # Try the directory containing this script, then its parent.
629 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
630 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
632 if test ! -r $srcdir/$ac_unique_file; then
636 ac_srcdir_defaulted
=no
638 if test ! -r $srcdir/$ac_unique_file; then
639 if test "$ac_srcdir_defaulted" = yes; then
640 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
642 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
645 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
647 # Prefer explicitly selected file to automatically selected ones.
648 if test -z "$sitefile"; then
649 if test -z "$CONFIG_SITE"; then
650 if test "x$prefix" != xNONE
; then
651 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
653 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
657 CONFIG_SITE
="$sitefile"
659 for ac_site_file
in $CONFIG_SITE; do
660 if test -r "$ac_site_file"; then
661 echo "loading site script $ac_site_file"
666 if test -r "$cache_file"; then
667 echo "loading cache $cache_file"
670 echo "creating cache $cache_file"
675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
676 ac_cpp
='$CPP $CPPFLAGS'
677 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
678 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
679 cross_compiling
=$ac_cv_prog_cc_cross
683 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
684 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
685 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
692 ac_n
= ac_c
='\c' ac_t
=
697 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
698 echo "configure:699: checking how to run the C preprocessor" >&5
699 # On Suns, sometimes $CPP names a directory.
700 if test -n "$CPP" && test -d "$CPP"; then
703 if test -z "$CPP"; then
704 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
707 # This must be in double quotes, not single quotes, because CPP may get
708 # substituted into the Makefile and "${CC-cc}" will confuse make.
710 # On the NeXT, cc -E runs the code through the compiler's parser,
711 # not just through cpp.
712 cat > conftest.
$ac_ext <<EOF
713 #line 714 "configure"
714 #include "confdefs.h"
718 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
719 { (eval echo configure
:720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
720 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
721 if test -z "$ac_err"; then
725 echo "configure: failed program was:" >&5
726 cat conftest.
$ac_ext >&5
728 CPP
="${CC-cc} -E -traditional-cpp"
729 cat > conftest.
$ac_ext <<EOF
730 #line 731 "configure"
731 #include "confdefs.h"
735 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
736 { (eval echo configure
:737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
737 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
738 if test -z "$ac_err"; then
742 echo "configure: failed program was:" >&5
743 cat conftest.
$ac_ext >&5
745 CPP
="${CC-cc} -nologo -E"
746 cat > conftest.
$ac_ext <<EOF
747 #line 748 "configure"
748 #include "confdefs.h"
752 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
753 { (eval echo configure
:754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
754 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
755 if test -z "$ac_err"; then
759 echo "configure: failed program was:" >&5
760 cat conftest.
$ac_ext >&5
769 ac_cv_prog_CPP
="$CPP"
771 CPP
="$ac_cv_prog_CPP"
773 ac_cv_prog_CPP
="$CPP"
775 echo "$ac_t""$CPP" 1>&6
777 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
778 echo "configure:779: checking whether ${MAKE-make} sets \${MAKE}" >&5
779 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
780 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 cat > conftestmake
<<\EOF
785 @
echo 'ac_maketemp="${MAKE}"'
787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
788 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
789 if test -n "$ac_maketemp"; then
790 eval ac_cv_prog_make_
${ac_make}_set
=yes
792 eval ac_cv_prog_make_
${ac_make}_set
=no
796 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
797 echo "$ac_t""yes" 1>&6
800 echo "$ac_t""no" 1>&6
801 SET_MAKE
="MAKE=${MAKE-make}"
804 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
805 echo "configure:806: checking for POSIXized ISC" >&5
806 if test -d /etc
/conf
/kconfig.d
&&
807 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
809 echo "$ac_t""yes" 1>&6
810 ISC
=yes # If later tests want to check for ISC.
811 cat >> confdefs.h
<<\EOF
812 #define _POSIX_SOURCE 1
815 if test "$GCC" = yes; then
821 echo "$ac_t""no" 1>&6
825 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
826 echo "configure:827: checking for ANSI C header files" >&5
827 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 cat > conftest.
$ac_ext <<EOF
831 #line 832 "configure"
832 #include "confdefs.h"
838 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
839 { (eval echo configure
:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
840 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
841 if test -z "$ac_err"; then
843 ac_cv_header_stdc
=yes
846 echo "configure: failed program was:" >&5
847 cat conftest.
$ac_ext >&5
853 if test $ac_cv_header_stdc = yes; then
854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
855 cat > conftest.
$ac_ext <<EOF
856 #line 857 "configure"
857 #include "confdefs.h"
860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
861 egrep "memchr" >/dev
/null
2>&1; then
871 if test $ac_cv_header_stdc = yes; then
872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
873 cat > conftest.
$ac_ext <<EOF
874 #line 875 "configure"
875 #include "confdefs.h"
878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
879 egrep "free" >/dev
/null
2>&1; then
889 if test $ac_cv_header_stdc = yes; then
890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
891 if test "$cross_compiling" = yes; then
894 cat > conftest.
$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
898 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
899 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
901 int main () { int i; for (i = 0; i < 256; i++)
902 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
906 if { (eval echo configure
:907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
910 echo "configure: failed program was:" >&5
911 cat conftest.
$ac_ext >&5
921 echo "$ac_t""$ac_cv_header_stdc" 1>&6
922 if test $ac_cv_header_stdc = yes; then
923 cat >> confdefs.h
<<\EOF
924 #define STDC_HEADERS 1
929 echo $ac_n "checking for working const""... $ac_c" 1>&6
930 echo "configure:931: checking for working const" >&5
931 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 cat > conftest.
$ac_ext <<EOF
935 #line 936 "configure"
936 #include "confdefs.h"
940 /* Ultrix mips cc rejects this. */
941 typedef int charset[2]; const charset x;
942 /* SunOS 4.1.1 cc rejects this. */
943 char const *const *ccp;
945 /* NEC SVR4.0.2 mips cc rejects this. */
946 struct point {int x, y;};
947 static struct point const zero = {0,0};
948 /* AIX XL C 1.02.0.0 rejects this.
949 It does not let you subtract one const X* pointer from another in an arm
950 of an if-expression whose if-part is not a constant expression */
951 const char *g = "string";
952 ccp = &g + (g ? g-g : 0);
953 /* HPUX 7.0 cc rejects these. */
956 ccp = (char const *const *) p;
957 { /* SCO 3.2v4 cc rejects this. */
959 char const *s = 0 ? (char *) 0 : (char const *) 0;
963 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
965 const int *foo = &x[0];
968 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
969 typedef const int *iptr;
973 { /* AIX XL C 1.02.0.0 rejects this saying
974 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
975 struct s { int j; const int *ap[3]; };
976 struct s *b; b->j = 5;
978 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
984 if { (eval echo configure
:985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
988 echo "configure: failed program was:" >&5
989 cat conftest.
$ac_ext >&5
996 echo "$ac_t""$ac_cv_c_const" 1>&6
997 if test $ac_cv_c_const = no
; then
998 cat >> confdefs.h
<<\EOF
1004 echo $ac_n "checking for inline""... $ac_c" 1>&6
1005 echo "configure:1006: checking for inline" >&5
1006 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1010 for ac_kw
in inline __inline__ __inline
; do
1011 cat > conftest.
$ac_ext <<EOF
1012 #line 1013 "configure"
1013 #include "confdefs.h"
1019 if { (eval echo configure
:1020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1021 ac_cv_c_inline
=$ac_kw; break
1023 echo "configure: failed program was:" >&5
1024 cat conftest.
$ac_ext >&5
1031 echo "$ac_t""$ac_cv_c_inline" 1>&6
1032 case "$ac_cv_c_inline" in
1034 no
) cat >> confdefs.h
<<\EOF
1038 *) cat >> confdefs.h
<<EOF
1039 #define inline $ac_cv_c_inline
1044 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1045 echo "configure:1046: checking for off_t" >&5
1046 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1049 cat > conftest.
$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1052 #include <sys/types.h>
1058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1059 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1061 ac_cv_type_off_t
=yes
1069 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1070 if test $ac_cv_type_off_t = no
; then
1071 cat >> confdefs.h
<<\EOF
1077 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1078 echo "configure:1079: checking for size_t" >&5
1079 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 cat > conftest.
$ac_ext <<EOF
1083 #line 1084 "configure"
1084 #include "confdefs.h"
1085 #include <sys/types.h>
1091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1092 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1094 ac_cv_type_size_t
=yes
1097 ac_cv_type_size_t
=no
1102 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1103 if test $ac_cv_type_size_t = no
; then
1104 cat >> confdefs.h
<<\EOF
1105 #define size_t unsigned
1110 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1111 # for constant arguments. Useless!
1112 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1113 echo "configure:1114: checking for working alloca.h" >&5
1114 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 cat > conftest.
$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1122 char *p = alloca(2 * sizeof(int));
1125 if { (eval echo configure
:1126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1127 ac_cv_header_alloca_h
=yes
1129 echo "configure: failed program was:" >&5
1130 cat conftest.
$ac_ext >&5
1132 ac_cv_header_alloca_h
=no
1137 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1138 if test $ac_cv_header_alloca_h = yes; then
1139 cat >> confdefs.h
<<\EOF
1140 #define HAVE_ALLOCA_H 1
1145 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1146 echo "configure:1147: checking for alloca" >&5
1147 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 cat > conftest.
$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1155 # define alloca __builtin_alloca
1158 # include <malloc.h>
1159 # define alloca _alloca
1162 # include <alloca.h>
1167 # ifndef alloca /* predefined by HP cc +Olibcalls */
1176 char *p = (char *) alloca(1);
1179 if { (eval echo configure
:1180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1181 ac_cv_func_alloca_works
=yes
1183 echo "configure: failed program was:" >&5
1184 cat conftest.
$ac_ext >&5
1186 ac_cv_func_alloca_works
=no
1191 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1192 if test $ac_cv_func_alloca_works = yes; then
1193 cat >> confdefs.h
<<\EOF
1194 #define HAVE_ALLOCA 1
1199 if test $ac_cv_func_alloca_works = no
; then
1200 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1201 # that cause trouble. Some versions do not even contain alloca or
1202 # contain a buggy version. If you still want to use their alloca,
1203 # use ar to extract alloca.o from them instead of compiling alloca.c.
1204 ALLOCA
=alloca.
${ac_objext}
1205 cat >> confdefs.h
<<\EOF
1210 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1211 echo "configure:1212: checking whether alloca needs Cray hooks" >&5
1212 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 cat > conftest.
$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1218 #if defined(CRAY) && ! defined(CRAY2)
1225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1226 egrep "webecray" >/dev
/null
2>&1; then
1237 echo "$ac_t""$ac_cv_os_cray" 1>&6
1238 if test $ac_cv_os_cray = yes; then
1239 for ac_func
in _getb67 GETB67 getb67
; do
1240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1241 echo "configure:1242: checking for $ac_func" >&5
1242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 cat > conftest.
$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1248 /* System header to define __stub macros and hopefully few prototypes,
1249 which can conflict with char $ac_func(); below. */
1251 /* Override any gcc2 internal prototype to avoid an error. */
1252 /* We use char because int might match the return type of a gcc2
1253 builtin and then its argument prototype would still apply. */
1258 /* The GNU C library defines this for functions which it implements
1259 to always fail with ENOSYS. Some functions are actually named
1260 something starting with __ and the normal name is an alias. */
1261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1269 if { (eval echo configure
:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1271 eval "ac_cv_func_$ac_func=yes"
1273 echo "configure: failed program was:" >&5
1274 cat conftest.
$ac_ext >&5
1276 eval "ac_cv_func_$ac_func=no"
1281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1282 echo "$ac_t""yes" 1>&6
1283 cat >> confdefs.h
<<EOF
1284 #define CRAY_STACKSEG_END $ac_func
1289 echo "$ac_t""no" 1>&6
1295 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1296 echo "configure:1297: checking stack direction for C alloca" >&5
1297 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 if test "$cross_compiling" = yes; then
1301 ac_cv_c_stack_direction
=0
1303 cat > conftest.
$ac_ext <<EOF
1304 #line 1305 "configure"
1305 #include "confdefs.h"
1306 find_stack_direction ()
1308 static char *addr = 0;
1313 return find_stack_direction ();
1316 return (&dummy > addr) ? 1 : -1;
1320 exit (find_stack_direction() < 0);
1323 if { (eval echo configure
:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1325 ac_cv_c_stack_direction
=1
1327 echo "configure: failed program was:" >&5
1328 cat conftest.
$ac_ext >&5
1330 ac_cv_c_stack_direction
=-1
1337 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1338 cat >> confdefs.h
<<EOF
1339 #define STACK_DIRECTION $ac_cv_c_stack_direction
1344 for ac_hdr
in unistd.h
1346 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1348 echo "configure:1349: checking for $ac_hdr" >&5
1349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 cat > conftest.
$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1357 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1358 { (eval echo configure
:1359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1359 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1360 if test -z "$ac_err"; then
1362 eval "ac_cv_header_$ac_safe=yes"
1365 echo "configure: failed program was:" >&5
1366 cat conftest.
$ac_ext >&5
1368 eval "ac_cv_header_$ac_safe=no"
1372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1373 echo "$ac_t""yes" 1>&6
1374 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1375 cat >> confdefs.h
<<EOF
1376 #define $ac_tr_hdr 1
1380 echo "$ac_t""no" 1>&6
1384 for ac_func
in getpagesize
1386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1387 echo "configure:1388: checking for $ac_func" >&5
1388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1391 cat > conftest.
$ac_ext <<EOF
1392 #line 1393 "configure"
1393 #include "confdefs.h"
1394 /* System header to define __stub macros and hopefully few prototypes,
1395 which can conflict with char $ac_func(); below. */
1397 /* Override any gcc2 internal prototype to avoid an error. */
1398 /* We use char because int might match the return type of a gcc2
1399 builtin and then its argument prototype would still apply. */
1404 /* The GNU C library defines this for functions which it implements
1405 to always fail with ENOSYS. Some functions are actually named
1406 something starting with __ and the normal name is an alias. */
1407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1415 if { (eval echo configure
:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1417 eval "ac_cv_func_$ac_func=yes"
1419 echo "configure: failed program was:" >&5
1420 cat conftest.
$ac_ext >&5
1422 eval "ac_cv_func_$ac_func=no"
1427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1428 echo "$ac_t""yes" 1>&6
1429 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1430 cat >> confdefs.h
<<EOF
1431 #define $ac_tr_func 1
1435 echo "$ac_t""no" 1>&6
1439 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1440 echo "configure:1441: checking for working mmap" >&5
1441 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 if test "$cross_compiling" = yes; then
1445 ac_cv_func_mmap_fixed_mapped
=no
1447 cat > conftest.
$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1451 /* Thanks to Mike Haertel and Jim Avera for this test.
1452 Here is a matrix of mmap possibilities:
1453 mmap private not fixed
1454 mmap private fixed at somewhere currently unmapped
1455 mmap private fixed at somewhere already mapped
1456 mmap shared not fixed
1457 mmap shared fixed at somewhere currently unmapped
1458 mmap shared fixed at somewhere already mapped
1459 For private mappings, we should verify that changes cannot be read()
1460 back from the file, nor mmap's back from the file at a different
1461 address. (There have been systems where private was not correctly
1462 implemented like the infamous i386 svr4.0, and systems where the
1463 VM page cache was not coherent with the filesystem buffer cache
1464 like early versions of FreeBSD and possibly contemporary NetBSD.)
1465 For shared mappings, we should conversely verify that changes get
1466 propogated back to all the places they're supposed to be.
1468 Grep wants private fixed already mapped.
1469 The main things grep needs to know about mmap are:
1470 * does it exist and is it safe to write into the mmap'd area
1471 * how to use it (BSD variants) */
1472 #include <sys/types.h>
1474 #include <sys/mman.h>
1476 /* This mess was copied from the GNU getpagesize.h. */
1477 #ifndef HAVE_GETPAGESIZE
1478 # ifdef HAVE_UNISTD_H
1479 # include <unistd.h>
1482 /* Assume that all systems that can run configure have sys/param.h. */
1483 # ifndef HAVE_SYS_PARAM_H
1484 # define HAVE_SYS_PARAM_H 1
1487 # ifdef _SC_PAGESIZE
1488 # define getpagesize() sysconf(_SC_PAGESIZE)
1489 # else /* no _SC_PAGESIZE */
1490 # ifdef HAVE_SYS_PARAM_H
1491 # include <sys/param.h>
1492 # ifdef EXEC_PAGESIZE
1493 # define getpagesize() EXEC_PAGESIZE
1494 # else /* no EXEC_PAGESIZE */
1496 # define getpagesize() NBPG * CLSIZE
1499 # endif /* no CLSIZE */
1500 # else /* no NBPG */
1502 # define getpagesize() NBPC
1503 # else /* no NBPC */
1505 # define getpagesize() PAGESIZE
1506 # endif /* PAGESIZE */
1507 # endif /* no NBPC */
1508 # endif /* no NBPG */
1509 # endif /* no EXEC_PAGESIZE */
1510 # else /* no HAVE_SYS_PARAM_H */
1511 # define getpagesize() 8192 /* punt totally */
1512 # endif /* no HAVE_SYS_PARAM_H */
1513 # endif /* no _SC_PAGESIZE */
1515 #endif /* no HAVE_GETPAGESIZE */
1518 extern "C" { void *malloc(unsigned); }
1526 char *data, *data2, *data3;
1530 pagesize = getpagesize();
1533 * First, make a file with some known garbage in it.
1535 data = malloc(pagesize);
1538 for (i = 0; i < pagesize; ++i)
1539 *(data + i) = rand();
1541 fd = creat("conftestmmap", 0600);
1544 if (write(fd, data, pagesize) != pagesize)
1549 * Next, try to mmap the file at a fixed address which
1550 * already has something else allocated at it. If we can,
1551 * also make sure that we see the same garbage.
1553 fd = open("conftestmmap", O_RDWR);
1556 data2 = malloc(2 * pagesize);
1559 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1560 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1561 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1563 for (i = 0; i < pagesize; ++i)
1564 if (*(data + i) != *(data2 + i))
1568 * Finally, make sure that changes to the mapped area
1569 * do not percolate back to the file as seen by read().
1570 * (This is a bug on some variants of i386 svr4.0.)
1572 for (i = 0; i < pagesize; ++i)
1573 *(data2 + i) = *(data2 + i) + 1;
1574 data3 = malloc(pagesize);
1577 if (read(fd, data3, pagesize) != pagesize)
1579 for (i = 0; i < pagesize; ++i)
1580 if (*(data + i) != *(data3 + i))
1583 unlink("conftestmmap");
1588 if { (eval echo configure
:1589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1590 ac_cv_func_mmap_fixed_mapped
=yes
1592 echo "configure: failed program was:" >&5
1593 cat conftest.
$ac_ext >&5
1595 ac_cv_func_mmap_fixed_mapped
=no
1602 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1603 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1604 cat >> confdefs.h
<<\EOF
1610 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1611 echo "configure:1612: checking for Cygwin environment" >&5
1612 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1615 cat > conftest.
$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1622 #define __CYGWIN__ __CYGWIN32__
1627 if { (eval echo configure
:1628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1631 echo "configure: failed program was:" >&5
1632 cat conftest.
$ac_ext >&5
1640 echo "$ac_t""$ac_cv_cygwin" 1>&6
1642 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1643 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1644 echo "configure:1645: checking for mingw32 environment" >&5
1645 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&6
1648 cat > conftest.
$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1656 if { (eval echo configure
:1657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1660 echo "configure: failed program was:" >&5
1661 cat conftest.
$ac_ext >&5
1669 echo "$ac_t""$ac_cv_mingw32" 1>&6
1671 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1673 # autoconf.info says this should be called right after AC_INIT.
1677 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1678 if test -f $ac_dir/install-sh
; then
1680 ac_install_sh
="$ac_aux_dir/install-sh -c"
1682 elif test -f $ac_dir/install.sh
; then
1684 ac_install_sh
="$ac_aux_dir/install.sh -c"
1688 if test -z "$ac_aux_dir"; then
1689 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1691 ac_config_guess
=$ac_aux_dir/config.guess
1692 ac_config_sub
=$ac_aux_dir/config.sub
1693 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1696 # Do some error checking and defaulting for the host and target type.
1698 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1701 # 1. You are not allowed to specify --host, --target, and nonopt at the
1703 # 2. Host defaults to nonopt.
1704 # 3. If nonopt is not specified, then host defaults to the current host,
1705 # as determined by config.guess.
1706 # 4. Target and build default to nonopt.
1707 # 5. If nonopt is not specified, then target and build default to host.
1709 # The aliases save the names the user supplied, while $host etc.
1710 # will get canonicalized.
1711 case $host---$target---$nonopt in
1712 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1713 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1717 # Make sure we can run config.sub.
1718 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1719 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1722 echo $ac_n "checking host system type""... $ac_c" 1>&6
1723 echo "configure:1724: checking host system type" >&5
1726 case "$host_alias" in
1730 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1731 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1733 *) host_alias
=$nonopt ;;
1737 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1738 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1739 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1740 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1741 echo "$ac_t""$host" 1>&6
1743 echo $ac_n "checking target system type""... $ac_c" 1>&6
1744 echo "configure:1745: checking target system type" >&5
1746 target_alias
=$target
1747 case "$target_alias" in
1750 NONE
) target_alias
=$host_alias ;;
1751 *) target_alias
=$nonopt ;;
1755 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1756 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1757 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1758 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1759 echo "$ac_t""$target" 1>&6
1761 echo $ac_n "checking build system type""... $ac_c" 1>&6
1762 echo "configure:1763: checking build system type" >&5
1765 case "$build_alias" in
1768 NONE
) build_alias
=$host_alias ;;
1769 *) build_alias
=$nonopt ;;
1773 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1774 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1775 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1776 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1777 echo "$ac_t""$build" 1>&6
1779 test "$host_alias" != "$target_alias" &&
1780 test "$program_prefix$program_suffix$program_transform_name" = \
1782 program_prefix
=${target_alias}-
1784 if test "$program_transform_name" = s
,x
,x
,; then
1785 program_transform_name
=
1787 # Double any \ or $. echo might interpret backslashes.
1788 cat <<\EOF_SED
> conftestsed
1789 s
,\\,\\\\,g
; s
,\$
,$$
,g
1791 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1794 test "$program_prefix" != NONE
&&
1795 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1796 # Use a double $ so make ignores it.
1797 test "$program_suffix" != NONE
&&
1798 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1800 # sed with no file args requires a program.
1801 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1803 # Extract the first word of "gcc", so it can be a program name with args.
1804 set dummy gcc
; ac_word
=$2
1805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1806 echo "configure:1807: checking for $ac_word" >&5
1807 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 if test -n "$CC"; then
1811 ac_cv_prog_CC
="$CC" # Let the user override the test.
1813 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1815 for ac_dir
in $ac_dummy; do
1816 test -z "$ac_dir" && ac_dir
=.
1817 if test -f $ac_dir/$ac_word; then
1826 if test -n "$CC"; then
1827 echo "$ac_t""$CC" 1>&6
1829 echo "$ac_t""no" 1>&6
1832 if test -z "$CC"; then
1833 # Extract the first word of "cc", so it can be a program name with args.
1834 set dummy cc
; ac_word
=$2
1835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_word" >&5
1837 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC
="$CC" # Let the user override the test.
1843 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1846 for ac_dir
in $ac_dummy; do
1847 test -z "$ac_dir" && ac_dir
=.
1848 if test -f $ac_dir/$ac_word; then
1849 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1850 ac_prog_rejected
=yes
1858 if test $ac_prog_rejected = yes; then
1859 # We found a bogon in the path, so make sure we never use it.
1860 set dummy
$ac_cv_prog_CC
1862 if test $# -gt 0; then
1863 # We chose a different compiler from the bogus one.
1864 # However, it has the same basename, so the bogon will be chosen
1865 # first if we set CC to just the basename; use the full file name.
1867 set dummy
"$ac_dir/$ac_word" "$@"
1875 if test -n "$CC"; then
1876 echo "$ac_t""$CC" 1>&6
1878 echo "$ac_t""no" 1>&6
1881 if test -z "$CC"; then
1882 case "`uname -s`" in
1884 # Extract the first word of "cl", so it can be a program name with args.
1885 set dummy cl
; ac_word
=$2
1886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1887 echo "configure:1888: checking for $ac_word" >&5
1888 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 if test -n "$CC"; then
1892 ac_cv_prog_CC
="$CC" # Let the user override the test.
1894 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1896 for ac_dir
in $ac_dummy; do
1897 test -z "$ac_dir" && ac_dir
=.
1898 if test -f $ac_dir/$ac_word; then
1907 if test -n "$CC"; then
1908 echo "$ac_t""$CC" 1>&6
1910 echo "$ac_t""no" 1>&6
1915 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1918 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1919 echo "configure:1920: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1923 ac_cpp
='$CPP $CPPFLAGS'
1924 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1925 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1926 cross_compiling
=$ac_cv_prog_cc_cross
1928 cat > conftest.
$ac_ext << EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1935 if { (eval echo configure
:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1936 ac_cv_prog_cc_works
=yes
1937 # If we can't run a trivial program, we are probably using a cross compiler.
1938 if (.
/conftest
; exit) 2>/dev
/null
; then
1939 ac_cv_prog_cc_cross
=no
1941 ac_cv_prog_cc_cross
=yes
1944 echo "configure: failed program was:" >&5
1945 cat conftest.
$ac_ext >&5
1946 ac_cv_prog_cc_works
=no
1950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1951 ac_cpp
='$CPP $CPPFLAGS'
1952 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1953 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1954 cross_compiling
=$ac_cv_prog_cc_cross
1956 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1957 if test $ac_cv_prog_cc_works = no
; then
1958 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1960 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1961 echo "configure:1962: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1962 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1963 cross_compiling
=$ac_cv_prog_cc_cross
1965 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1966 echo "configure:1967: checking whether we are using GNU C" >&5
1967 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1970 cat > conftest.c
<<EOF
1975 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1982 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1984 if test $ac_cv_prog_gcc = yes; then
1990 ac_test_CFLAGS
="${CFLAGS+set}"
1991 ac_save_CFLAGS
="$CFLAGS"
1993 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1994 echo "configure:1995: checking whether ${CC-cc} accepts -g" >&5
1995 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 echo 'void f(){}' > conftest.c
1999 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2008 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2009 if test "$ac_test_CFLAGS" = set; then
2010 CFLAGS
="$ac_save_CFLAGS"
2011 elif test $ac_cv_prog_cc_g = yes; then
2012 if test "$GCC" = yes; then
2018 if test "$GCC" = yes; then
2025 # Find a good install program. We prefer a C program (faster),
2026 # so one script is as good as another. But avoid the broken or
2027 # incompatible versions:
2028 # SysV /etc/install, /usr/sbin/install
2029 # SunOS /usr/etc/install
2030 # IRIX /sbin/install
2032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2035 # ./install, which can be erroneously created by make from ./install.sh.
2036 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2037 echo "configure:2038: checking for a BSD compatible install" >&5
2038 if test -z "$INSTALL"; then
2039 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2043 for ac_dir
in $PATH; do
2044 # Account for people who put trailing slashes in PATH elements.
2046 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2048 # OSF1 and SCO ODT 3.0 have their own names for install.
2049 # Don't use installbsd from OSF since it installs stuff as root
2051 for ac_prog
in ginstall scoinst
install; do
2052 if test -f $ac_dir/$ac_prog; then
2053 if test $ac_prog = install &&
2054 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2055 # AIX install. It has an incompatible calling convention.
2058 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2069 if test "${ac_cv_path_install+set}" = set; then
2070 INSTALL
="$ac_cv_path_install"
2072 # As a last resort, use the slow shell script. We don't cache a
2073 # path for INSTALL within a source directory, because that will
2074 # break other packages using the cache if that directory is
2075 # removed, or if the path is relative.
2076 INSTALL
="$ac_install_sh"
2079 echo "$ac_t""$INSTALL" 1>&6
2081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2082 # It thinks the first close brace ends the variable substitution.
2083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2087 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2090 # Put a plausible default for CC_FOR_BUILD in Makefile.
2091 if test "x$cross_compiling" = "xno"; then
2092 CC_FOR_BUILD
='$(CC)'
2102 # Extract the first word of "ranlib", so it can be a program name with args.
2103 set dummy ranlib
; ac_word
=$2
2104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2105 echo "configure:2106: checking for $ac_word" >&5
2106 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 if test -n "$RANLIB"; then
2110 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2114 for ac_dir
in $ac_dummy; do
2115 test -z "$ac_dir" && ac_dir
=.
2116 if test -f $ac_dir/$ac_word; then
2117 ac_cv_prog_RANLIB
="ranlib"
2122 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2125 RANLIB
="$ac_cv_prog_RANLIB"
2126 if test -n "$RANLIB"; then
2127 echo "$ac_t""$RANLIB" 1>&6
2129 echo "$ac_t""no" 1>&6
2135 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2136 unistd.h values.h sys
/param.h
2138 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2140 echo "configure:2141: checking for $ac_hdr" >&5
2141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2149 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2150 { (eval echo configure
:2151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2151 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2152 if test -z "$ac_err"; then
2154 eval "ac_cv_header_$ac_safe=yes"
2157 echo "configure: failed program was:" >&5
2158 cat conftest.
$ac_ext >&5
2160 eval "ac_cv_header_$ac_safe=no"
2164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2165 echo "$ac_t""yes" 1>&6
2166 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2167 cat >> confdefs.h
<<EOF
2168 #define $ac_tr_hdr 1
2172 echo "$ac_t""no" 1>&6
2176 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2177 __argz_count __argz_stringify __argz_next
2179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_func" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.
$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char $ac_func(); below. */
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2208 if { (eval echo configure
:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2210 eval "ac_cv_func_$ac_func=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.
$ac_ext >&5
2215 eval "ac_cv_func_$ac_func=no"
2220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2223 cat >> confdefs.h
<<EOF
2224 #define $ac_tr_func 1
2228 echo "$ac_t""no" 1>&6
2233 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2234 for ac_func
in stpcpy
2236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2237 echo "configure:2238: checking for $ac_func" >&5
2238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 cat > conftest.
$ac_ext <<EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2244 /* System header to define __stub macros and hopefully few prototypes,
2245 which can conflict with char $ac_func(); below. */
2247 /* Override any gcc2 internal prototype to avoid an error. */
2248 /* We use char because int might match the return type of a gcc2
2249 builtin and then its argument prototype would still apply. */
2254 /* The GNU C library defines this for functions which it implements
2255 to always fail with ENOSYS. Some functions are actually named
2256 something starting with __ and the normal name is an alias. */
2257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2265 if { (eval echo configure
:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2267 eval "ac_cv_func_$ac_func=yes"
2269 echo "configure: failed program was:" >&5
2270 cat conftest.
$ac_ext >&5
2272 eval "ac_cv_func_$ac_func=no"
2277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2278 echo "$ac_t""yes" 1>&6
2279 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2280 cat >> confdefs.h
<<EOF
2281 #define $ac_tr_func 1
2285 echo "$ac_t""no" 1>&6
2290 if test "${ac_cv_func_stpcpy}" = "yes"; then
2291 cat >> confdefs.h
<<\EOF
2292 #define HAVE_STPCPY 1
2297 if test $ac_cv_header_locale_h = yes; then
2298 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2299 echo "configure:2300: checking for LC_MESSAGES" >&5
2300 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.
$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2311 if { (eval echo configure
:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2313 am_cv_val_LC_MESSAGES
=yes
2315 echo "configure: failed program was:" >&5
2316 cat conftest.
$ac_ext >&5
2318 am_cv_val_LC_MESSAGES
=no
2323 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2324 if test $am_cv_val_LC_MESSAGES = yes; then
2325 cat >> confdefs.h
<<\EOF
2326 #define HAVE_LC_MESSAGES 1
2331 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2332 echo "configure:2333: checking whether NLS is requested" >&5
2333 # Check whether --enable-nls or --disable-nls was given.
2334 if test "${enable_nls+set}" = set; then
2335 enableval
="$enable_nls"
2341 echo "$ac_t""$USE_NLS" 1>&6
2344 USE_INCLUDED_LIBINTL
=no
2346 if test "$USE_NLS" = "yes"; then
2347 cat >> confdefs.h
<<\EOF
2348 #define ENABLE_NLS 1
2351 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2352 echo "configure:2353: checking whether included gettext is requested" >&5
2353 # Check whether --with-included-gettext or --without-included-gettext was given.
2354 if test "${with_included_gettext+set}" = set; then
2355 withval
="$with_included_gettext"
2356 nls_cv_force_use_gnu_gettext
=$withval
2358 nls_cv_force_use_gnu_gettext
=no
2361 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2363 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2364 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2366 nls_cv_header_libgt
=
2369 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2370 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2371 echo "configure:2372: checking for libintl.h" >&5
2372 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 cat > conftest.
$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 #include <libintl.h>
2380 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2381 { (eval echo configure
:2382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2382 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2383 if test -z "$ac_err"; then
2385 eval "ac_cv_header_$ac_safe=yes"
2388 echo "configure: failed program was:" >&5
2389 cat conftest.
$ac_ext >&5
2391 eval "ac_cv_header_$ac_safe=no"
2395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2396 echo "$ac_t""yes" 1>&6
2397 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2398 echo "configure:2399: checking for gettext in libc" >&5
2399 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 cat > conftest.
$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 #include <libintl.h>
2407 return (int) gettext ("")
2410 if { (eval echo configure
:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2412 gt_cv_func_gettext_libc
=yes
2414 echo "configure: failed program was:" >&5
2415 cat conftest.
$ac_ext >&5
2417 gt_cv_func_gettext_libc
=no
2422 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2424 if test "$gt_cv_func_gettext_libc" != "yes"; then
2425 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2426 echo "configure:2427: checking for bindtextdomain in -lintl" >&5
2427 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 ac_save_LIBS
="$LIBS"
2433 cat > conftest.
$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439 char bindtextdomain();
2445 if { (eval echo configure
:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2447 eval "ac_cv_lib_$ac_lib_var=yes"
2449 echo "configure: failed program was:" >&5
2450 cat conftest.
$ac_ext >&5
2452 eval "ac_cv_lib_$ac_lib_var=no"
2455 LIBS
="$ac_save_LIBS"
2458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2460 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2461 echo "configure:2462: checking for gettext in libintl" >&5
2462 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 cat > conftest.
$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2470 return (int) gettext ("")
2473 if { (eval echo configure
:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2475 gt_cv_func_gettext_libintl
=yes
2477 echo "configure: failed program was:" >&5
2478 cat conftest.
$ac_ext >&5
2480 gt_cv_func_gettext_libintl
=no
2485 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2487 echo "$ac_t""no" 1>&6
2492 if test "$gt_cv_func_gettext_libc" = "yes" \
2493 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2494 cat >> confdefs.h
<<\EOF
2495 #define HAVE_GETTEXT 1
2498 # Extract the first word of "msgfmt", so it can be a program name with args.
2499 set dummy msgfmt
; ac_word
=$2
2500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2501 echo "configure:2502: checking for $ac_word" >&5
2502 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2507 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2510 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2511 for ac_dir
in $PATH; do
2512 test -z "$ac_dir" && ac_dir
=.
2513 if test -f $ac_dir/$ac_word; then
2514 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2515 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2521 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2525 MSGFMT
="$ac_cv_path_MSGFMT"
2526 if test -n "$MSGFMT"; then
2527 echo "$ac_t""$MSGFMT" 1>&6
2529 echo "$ac_t""no" 1>&6
2531 if test "$MSGFMT" != "no"; then
2532 for ac_func
in dcgettext
2534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2535 echo "configure:2536: checking for $ac_func" >&5
2536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2539 cat > conftest.
$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2542 /* System header to define __stub macros and hopefully few prototypes,
2543 which can conflict with char $ac_func(); below. */
2545 /* Override any gcc2 internal prototype to avoid an error. */
2546 /* We use char because int might match the return type of a gcc2
2547 builtin and then its argument prototype would still apply. */
2552 /* The GNU C library defines this for functions which it implements
2553 to always fail with ENOSYS. Some functions are actually named
2554 something starting with __ and the normal name is an alias. */
2555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2563 if { (eval echo configure
:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2565 eval "ac_cv_func_$ac_func=yes"
2567 echo "configure: failed program was:" >&5
2568 cat conftest.
$ac_ext >&5
2570 eval "ac_cv_func_$ac_func=no"
2575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2576 echo "$ac_t""yes" 1>&6
2577 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2578 cat >> confdefs.h
<<EOF
2579 #define $ac_tr_func 1
2583 echo "$ac_t""no" 1>&6
2587 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2588 set dummy gmsgfmt
; ac_word
=$2
2589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_word" >&5
2591 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2596 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2599 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2602 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2604 for ac_dir
in $ac_dummy; do
2605 test -z "$ac_dir" && ac_dir
=.
2606 if test -f $ac_dir/$ac_word; then
2607 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2612 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2616 GMSGFMT
="$ac_cv_path_GMSGFMT"
2617 if test -n "$GMSGFMT"; then
2618 echo "$ac_t""$GMSGFMT" 1>&6
2620 echo "$ac_t""no" 1>&6
2623 # Extract the first word of "xgettext", so it can be a program name with args.
2624 set dummy xgettext
; ac_word
=$2
2625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2626 echo "configure:2627: checking for $ac_word" >&5
2627 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2632 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2635 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2636 for ac_dir
in $PATH; do
2637 test -z "$ac_dir" && ac_dir
=.
2638 if test -f $ac_dir/$ac_word; then
2639 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2640 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2646 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2650 XGETTEXT
="$ac_cv_path_XGETTEXT"
2651 if test -n "$XGETTEXT"; then
2652 echo "$ac_t""$XGETTEXT" 1>&6
2654 echo "$ac_t""no" 1>&6
2657 cat > conftest.
$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2662 extern int _nl_msg_cat_cntr;
2663 return _nl_msg_cat_cntr
2666 if { (eval echo configure
:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2671 echo "configure: failed program was:" >&5
2672 cat conftest.
$ac_ext >&5
2683 echo "$ac_t""no" 1>&6
2688 if test "$CATOBJEXT" = "NONE"; then
2689 nls_cv_use_gnu_gettext
=yes
2693 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2694 INTLOBJS
="\$(GETTOBJS)"
2695 # Extract the first word of "msgfmt", so it can be a program name with args.
2696 set dummy msgfmt
; ac_word
=$2
2697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2698 echo "configure:2699: checking for $ac_word" >&5
2699 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2704 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2707 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2708 for ac_dir
in $PATH; do
2709 test -z "$ac_dir" && ac_dir
=.
2710 if test -f $ac_dir/$ac_word; then
2711 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2712 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2718 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2722 MSGFMT
="$ac_cv_path_MSGFMT"
2723 if test -n "$MSGFMT"; then
2724 echo "$ac_t""$MSGFMT" 1>&6
2726 echo "$ac_t""no" 1>&6
2729 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2730 set dummy gmsgfmt
; ac_word
=$2
2731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2732 echo "configure:2733: checking for $ac_word" >&5
2733 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2738 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2741 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2744 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2746 for ac_dir
in $ac_dummy; do
2747 test -z "$ac_dir" && ac_dir
=.
2748 if test -f $ac_dir/$ac_word; then
2749 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2754 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2758 GMSGFMT
="$ac_cv_path_GMSGFMT"
2759 if test -n "$GMSGFMT"; then
2760 echo "$ac_t""$GMSGFMT" 1>&6
2762 echo "$ac_t""no" 1>&6
2765 # Extract the first word of "xgettext", so it can be a program name with args.
2766 set dummy xgettext
; ac_word
=$2
2767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2768 echo "configure:2769: checking for $ac_word" >&5
2769 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2774 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2777 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2778 for ac_dir
in $PATH; do
2779 test -z "$ac_dir" && ac_dir
=.
2780 if test -f $ac_dir/$ac_word; then
2781 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2782 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2788 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2792 XGETTEXT
="$ac_cv_path_XGETTEXT"
2793 if test -n "$XGETTEXT"; then
2794 echo "$ac_t""$XGETTEXT" 1>&6
2796 echo "$ac_t""no" 1>&6
2800 USE_INCLUDED_LIBINTL
=yes
2804 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2806 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2807 nls_cv_header_intl
=libintl.h
2808 nls_cv_header_libgt
=libgettext.h
2811 if test "$XGETTEXT" != ":"; then
2812 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2815 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2820 # We need to process the po/ directory.
2824 nls_cv_header_intl
=libintl.h
2825 nls_cv_header_libgt
=libgettext.h
2828 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2829 # because some of the sources are only built for this goal.
2830 if test "$PACKAGE" = gettext; then
2832 USE_INCLUDED_LIBINTL
=yes
2835 for lang
in $ALL_LINGUAS; do
2836 GMOFILES
="$GMOFILES $lang.gmo"
2837 POFILES
="$POFILES $lang.po"
2853 if test "x$CATOBJEXT" != "x"; then
2854 if test "x$ALL_LINGUAS" = "x"; then
2857 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2858 echo "configure:2859: checking for catalogs to be installed" >&5
2860 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2861 case "$ALL_LINGUAS" in
2862 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2865 LINGUAS
=$NEW_LINGUAS
2866 echo "$ac_t""$LINGUAS" 1>&6
2869 if test -n "$LINGUAS"; then
2870 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2874 if test $ac_cv_header_locale_h = yes; then
2875 INCLUDE_LOCALE_H
="#include <locale.h>"
2878 /* The system does not provide the header <locale.h>. Take care yourself. */"
2882 if test -f $srcdir/po2tbl.
sed.
in; then
2883 if test "$CATOBJEXT" = ".cat"; then
2884 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2885 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2886 echo "configure:2887: checking for linux/version.h" >&5
2887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 cat > conftest.
$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2893 #include <linux/version.h>
2895 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2896 { (eval echo configure
:2897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2897 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2898 if test -z "$ac_err"; then
2900 eval "ac_cv_header_$ac_safe=yes"
2903 echo "configure: failed program was:" >&5
2904 cat conftest.
$ac_ext >&5
2906 eval "ac_cv_header_$ac_safe=no"
2910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2911 echo "$ac_t""yes" 1>&6
2914 echo "$ac_t""no" 1>&6
2919 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2921 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2922 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2925 if test "$PACKAGE" = "gettext"; then
2935 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2941 if test -d $srcdir/po
; then
2942 test -d po || mkdir po
2943 if test "x$srcdir" != "x."; then
2944 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2945 posrcprefix
="$srcdir/"
2947 posrcprefix
="../$srcdir/"
2953 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2954 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2958 # Check for common headers.
2959 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2960 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2961 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2963 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2965 echo "configure:2966: checking for $ac_hdr" >&5
2966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 cat > conftest.
$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2974 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2975 { (eval echo configure
:2976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2976 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2977 if test -z "$ac_err"; then
2979 eval "ac_cv_header_$ac_safe=yes"
2982 echo "configure: failed program was:" >&5
2983 cat conftest.
$ac_ext >&5
2985 eval "ac_cv_header_$ac_safe=no"
2989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2990 echo "$ac_t""yes" 1>&6
2991 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2992 cat >> confdefs.h
<<EOF
2993 #define $ac_tr_hdr 1
2997 echo "$ac_t""no" 1>&6
3001 for ac_hdr
in sys
/time.h sys
/resource.h
3003 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3004 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3005 echo "configure:3006: checking for $ac_hdr" >&5
3006 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 cat > conftest.
$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3014 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3015 { (eval echo configure
:3016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3016 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3017 if test -z "$ac_err"; then
3019 eval "ac_cv_header_$ac_safe=yes"
3022 echo "configure: failed program was:" >&5
3023 cat conftest.
$ac_ext >&5
3025 eval "ac_cv_header_$ac_safe=no"
3029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3030 echo "$ac_t""yes" 1>&6
3031 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3032 cat >> confdefs.h
<<EOF
3033 #define $ac_tr_hdr 1
3037 echo "$ac_t""no" 1>&6
3041 for ac_hdr
in fcntl.h fpu_control.h
3043 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3045 echo "configure:3046: checking for $ac_hdr" >&5
3046 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 cat > conftest.
$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3054 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3055 { (eval echo configure
:3056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3056 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3057 if test -z "$ac_err"; then
3059 eval "ac_cv_header_$ac_safe=yes"
3062 echo "configure: failed program was:" >&5
3063 cat conftest.
$ac_ext >&5
3065 eval "ac_cv_header_$ac_safe=no"
3069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3070 echo "$ac_t""yes" 1>&6
3071 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3072 cat >> confdefs.h
<<EOF
3073 #define $ac_tr_hdr 1
3077 echo "$ac_t""no" 1>&6
3081 for ac_hdr
in dlfcn.h errno.h sys
/stat.h
3083 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3085 echo "configure:3086: checking for $ac_hdr" >&5
3086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 cat > conftest.
$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3094 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3095 { (eval echo configure
:3096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3096 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3097 if test -z "$ac_err"; then
3099 eval "ac_cv_header_$ac_safe=yes"
3102 echo "configure: failed program was:" >&5
3103 cat conftest.
$ac_ext >&5
3105 eval "ac_cv_header_$ac_safe=no"
3109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3110 echo "$ac_t""yes" 1>&6
3111 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3112 cat >> confdefs.h
<<EOF
3113 #define $ac_tr_hdr 1
3117 echo "$ac_t""no" 1>&6
3121 for ac_func
in getrusage
time sigaction __setfpucw
3123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3124 echo "configure:3125: checking for $ac_func" >&5
3125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 cat > conftest.
$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 /* System header to define __stub macros and hopefully few prototypes,
3132 which can conflict with char $ac_func(); below. */
3134 /* Override any gcc2 internal prototype to avoid an error. */
3135 /* We use char because int might match the return type of a gcc2
3136 builtin and then its argument prototype would still apply. */
3141 /* The GNU C library defines this for functions which it implements
3142 to always fail with ENOSYS. Some functions are actually named
3143 something starting with __ and the normal name is an alias. */
3144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3152 if { (eval echo configure
:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3154 eval "ac_cv_func_$ac_func=yes"
3156 echo "configure: failed program was:" >&5
3157 cat conftest.
$ac_ext >&5
3159 eval "ac_cv_func_$ac_func=no"
3164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3165 echo "$ac_t""yes" 1>&6
3166 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3167 cat >> confdefs.h
<<EOF
3168 #define $ac_tr_func 1
3172 echo "$ac_t""no" 1>&6
3177 # Check for socket libraries
3178 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3179 echo "configure:3180: checking for bind in -lsocket" >&5
3180 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3182 echo $ac_n "(cached) $ac_c" 1>&6
3184 ac_save_LIBS
="$LIBS"
3185 LIBS
="-lsocket $LIBS"
3186 cat > conftest.
$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 /* Override any gcc2 internal prototype to avoid an error. */
3190 /* We use char because int might match the return type of a gcc2
3191 builtin and then its argument prototype would still apply. */
3198 if { (eval echo configure
:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3200 eval "ac_cv_lib_$ac_lib_var=yes"
3202 echo "configure: failed program was:" >&5
3203 cat conftest.
$ac_ext >&5
3205 eval "ac_cv_lib_$ac_lib_var=no"
3208 LIBS
="$ac_save_LIBS"
3211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3212 echo "$ac_t""yes" 1>&6
3213 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3214 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3215 cat >> confdefs.h
<<EOF
3216 #define $ac_tr_lib 1
3219 LIBS
="-lsocket $LIBS"
3222 echo "$ac_t""no" 1>&6
3225 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3226 echo "configure:3227: checking for gethostbyname in -lnsl" >&5
3227 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 ac_save_LIBS
="$LIBS"
3233 cat > conftest.
$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3236 /* Override any gcc2 internal prototype to avoid an error. */
3237 /* We use char because int might match the return type of a gcc2
3238 builtin and then its argument prototype would still apply. */
3239 char gethostbyname();
3245 if { (eval echo configure
:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3247 eval "ac_cv_lib_$ac_lib_var=yes"
3249 echo "configure: failed program was:" >&5
3250 cat conftest.
$ac_ext >&5
3252 eval "ac_cv_lib_$ac_lib_var=no"
3255 LIBS
="$ac_save_LIBS"
3258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3259 echo "$ac_t""yes" 1>&6
3260 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3262 cat >> confdefs.h
<<EOF
3263 #define $ac_tr_lib 1
3269 echo "$ac_t""no" 1>&6
3273 .
${srcdir}/..
/..
/bfd
/configure.
host
3277 USE_MAINTAINER_MODE
=no
3278 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3279 if test "${enable_maintainer_mode+set}" = set; then
3280 enableval
="$enable_maintainer_mode"
3281 case "${enableval}" in
3282 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3284 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3286 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3287 echo "Setting maintainer mode" 6>&1
3295 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3296 if test "${enable_sim_bswap+set}" = set; then
3297 enableval
="$enable_sim_bswap"
3298 case "${enableval}" in
3299 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3300 no
) sim_bswap
="-DWITH_BSWAP=0";;
3301 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3303 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3304 echo "Setting bswap flags = $sim_bswap" 6>&1
3312 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3313 if test "${enable_sim_cflags+set}" = set; then
3314 enableval
="$enable_sim_cflags"
3315 case "${enableval}" in
3316 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3317 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3319 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3321 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3322 echo "Setting sim cflags = $sim_cflags" 6>&1
3330 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3331 if test "${enable_sim_debug+set}" = set; then
3332 enableval
="$enable_sim_debug"
3333 case "${enableval}" in
3334 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3335 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3336 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3338 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3339 echo "Setting sim debug = $sim_debug" 6>&1
3347 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3348 if test "${enable_sim_stdio+set}" = set; then
3349 enableval
="$enable_sim_stdio"
3350 case "${enableval}" in
3351 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3352 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3353 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3355 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3356 echo "Setting stdio flags = $sim_stdio" 6>&1
3364 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3365 if test "${enable_sim_trace+set}" = set; then
3366 enableval
="$enable_sim_trace"
3367 case "${enableval}" in
3368 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3369 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3371 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3374 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3375 if test x
"$sim_trace" = x
; then
3376 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3378 sim_trace
="${sim_trace}|TRACE_$x"
3381 sim_trace
="$sim_trace)'" ;;
3383 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3384 echo "Setting sim trace = $sim_trace" 6>&1
3392 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3393 if test "${enable_sim_profile+set}" = set; then
3394 enableval
="$enable_sim_profile"
3395 case "${enableval}" in
3396 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3397 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3399 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3402 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3403 if test x
"$sim_profile" = x
; then
3404 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3406 sim_profile
="${sim_profile}|PROFILE_$x"
3409 sim_profile
="$sim_profile)'" ;;
3411 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3412 echo "Setting sim profile = $sim_profile" 6>&1
3415 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
3420 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3421 echo "configure:3422: checking return type of signal handlers" >&5
3422 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 cat > conftest.
$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3428 #include <sys/types.h>
3434 extern "C" void (*signal (int, void (*)(int)))(int);
3436 void (*signal ()) ();
3443 if { (eval echo configure
:3444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3445 ac_cv_type_signal
=void
3447 echo "configure: failed program was:" >&5
3448 cat conftest.
$ac_ext >&5
3450 ac_cv_type_signal
=int
3455 echo "$ac_t""$ac_cv_type_signal" 1>&6
3456 cat >> confdefs.h
<<EOF
3457 #define RETSIGTYPE $ac_cv_type_signal
3464 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3465 echo "configure:3466: checking for executable suffix" >&5
3466 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3469 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3473 echo 'int main () { return 0; }' > conftest.
$ac_ext
3475 if { (eval echo configure
:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3476 for file in conftest.
*; do
3478 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3479 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3483 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3486 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3491 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3492 echo "$ac_t""${ac_cv_exeext}" 1>&6
3499 sim_link_links
=tconfig.h
3500 if test -f ${srcdir}/tconfig.
in
3502 sim_link_files
=tconfig.
in
3504 sim_link_files
=..
/common
/tconfig.
in
3507 # targ-vals.def points to the libc macro description file.
3509 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3511 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3512 sim_link_links
="${sim_link_links} targ-vals.def"
3517 default_sim_inline
=""
3518 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3519 if test "${enable_sim_inline+set}" = set; then
3520 enableval
="$enable_sim_inline"
3522 case "$enableval" in
3523 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3524 0) sim_inline
="-DDEFAULT_INLINE=0";;
3525 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
3526 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3527 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3530 *_INLINE
=*) new_flag
="-D$x";;
3531 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3532 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
3533 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
3535 if test x
"$sim_inline" = x
""; then
3536 sim_inline
="$new_flag"
3538 sim_inline
="$sim_inline $new_flag"
3542 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3543 echo "Setting inline flags = $sim_inline" 6>&1
3547 if test "x$cross_compiling" = "xno"; then
3548 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
3549 sim_inline
="${default_sim_inline}"
3550 if test x
"$silent" != x
"yes"; then
3551 echo "Setting inline flags = $sim_inline" 6>&1
3557 sim_inline
="-DDEFAULT_INLINE=0"
3561 wire_alignment
="NONSTRICT_ALIGNMENT"
3562 default_alignment
=""
3564 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3565 if test "${enable_sim_alignment+set}" = set; then
3566 enableval
="$enable_sim_alignment"
3567 case "${enableval}" in
3568 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3569 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3570 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3571 yes) if test x
"$wire_alignment" != x
; then
3572 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3574 if test x
"$default_alignment" != x
; then
3575 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3577 echo "No hard-wired alignment for target $target" 1>&6
3578 sim_alignment
="-DWITH_ALIGNMENT=0"
3581 no
) if test x
"$default_alignment" != x
; then
3582 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3584 if test x
"$wire_alignment" != x
; then
3585 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3587 echo "No default alignment for target $target" 1>&6
3588 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3591 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3593 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3594 echo "Setting alignment flags = $sim_alignment" 6>&1
3597 if test x
"$default_alignment" != x
; then
3598 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3600 if test x
"$wire_alignment" != x
; then
3601 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3609 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3610 if test "${enable_sim_hostendian+set}" = set; then
3611 enableval
="$enable_sim_hostendian"
3612 case "${enableval}" in
3613 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3614 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3615 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3616 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3618 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3619 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3623 if test "x$cross_compiling" = "xno"; then
3624 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3625 echo "configure:3626: checking whether byte ordering is bigendian" >&5
3626 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 ac_cv_c_bigendian
=unknown
3630 # See if sys/param.h defines the BYTE_ORDER macro.
3631 cat > conftest.
$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #include <sys/types.h>
3635 #include <sys/param.h>
3638 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3643 if { (eval echo configure
:3644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3645 # It does; now see whether it defined to BIG_ENDIAN or not.
3646 cat > conftest.
$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3649 #include <sys/types.h>
3650 #include <sys/param.h>
3653 #if BYTE_ORDER != BIG_ENDIAN
3658 if { (eval echo configure
:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3660 ac_cv_c_bigendian
=yes
3662 echo "configure: failed program was:" >&5
3663 cat conftest.
$ac_ext >&5
3665 ac_cv_c_bigendian
=no
3669 echo "configure: failed program was:" >&5
3670 cat conftest.
$ac_ext >&5
3673 if test $ac_cv_c_bigendian = unknown
; then
3674 if test "$cross_compiling" = yes; then
3675 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3677 cat > conftest.
$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3681 /* Are we little or big endian? From Harbison&Steele. */
3685 char c[sizeof (long)];
3688 exit (u.c[sizeof (long) - 1] == 1);
3691 if { (eval echo configure
:3692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3693 ac_cv_c_bigendian
=no
3695 echo "configure: failed program was:" >&5
3696 cat conftest.
$ac_ext >&5
3698 ac_cv_c_bigendian
=yes
3706 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3707 if test $ac_cv_c_bigendian = yes; then
3708 cat >> confdefs.h
<<\EOF
3709 #define WORDS_BIGENDIAN 1
3714 if test $ac_cv_c_bigendian = yes; then
3715 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3717 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3720 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3725 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3726 if test "${enable_build_warnings+set}" = set; then
3727 enableval
="$enable_build_warnings"
3728 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
3729 case "${enableval}" in
3731 no
) build_warnings
="-w";;
3732 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3733 build_warnings
="${build_warnings} ${t}";;
3734 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3735 build_warnings
="${t} ${build_warnings}";;
3736 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3738 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3739 echo "Setting warning flags = $build_warnings" 6>&1
3743 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
3745 # Separate out the -Werror flag as some files just cannot be
3746 # compiled with it enabled.
3747 for w
in ${build_warnings}; do
3749 -Werr*) WERROR_CFLAGS
=-Werror ;;
3750 *) WARN_CFLAGS
="${WARN_CFLAGS} $w"
3761 # Instead of defining a `subtarget' macro, code should be checking
3762 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
3766 mips
*tx39
*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
3767 mipsisa32
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
3768 mipsisa64
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
3769 *) SIM_SUBTARGET
="";;
3776 # Select the byte order of the target
3781 mips64el
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
3782 mips64vr
*el-
*-*) default_endian
=LITTLE_ENDIAN
;;
3783 mips64
*-*-*) default_endian
=BIG_ENDIAN
;;
3784 mips16
*-*-*) default_endian
=BIG_ENDIAN
;;
3785 mipsisa32
*-*-*) default_endian
=BIG_ENDIAN
;;
3786 mipsisa64
*-*-*) default_endian
=BIG_ENDIAN
;;
3787 mips
*-*-*) default_endian
=BIG_ENDIAN
;;
3788 *) default_endian
=BIG_ENDIAN
;;
3791 wire_endian
="$mips_endian"
3792 default_endian
="$default_endian"
3793 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3794 if test "${enable_sim_endian+set}" = set; then
3795 enableval
="$enable_sim_endian"
3796 case "${enableval}" in
3797 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3798 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3799 yes) if test x
"$wire_endian" != x
; then
3800 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3802 if test x
"$default_endian" != x
; then
3803 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3805 echo "No hard-wired endian for target $target" 1>&6
3806 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
3809 no
) if test x
"$default_endian" != x
; then
3810 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3812 if test x
"$wire_endian" != x
; then
3813 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3815 echo "No default endian for target $target" 1>&6
3816 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3819 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
3821 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
3822 echo "Setting endian flags = $sim_endian" 6>&1
3825 if test x
"$default_endian" != x
; then
3826 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3828 if test x
"$wire_endian" != x
; then
3829 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3840 # Select the bitsize of the target
3844 mips64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3845 mips16
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3846 mipsisa32
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3847 mipsisa64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3848 mips
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3849 *) mips_bitsize
=64 ; mips_msb
=63 ;;
3851 wire_word_bitsize
="$mips_bitsize"
3852 wire_word_msb
="$mips_msb"
3853 wire_address_bitsize
="$mips_addr_bitsize"
3854 wire_cell_bitsize
=""
3855 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3856 if test "${enable_sim_bitsize+set}" = set; then
3857 enableval
="$enable_sim_bitsize"
3859 case "${enableval}" in
3860 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3861 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3862 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3863 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3864 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3865 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3867 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3869 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3870 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3872 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3874 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3877 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3880 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3881 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3882 * ) { echo "configure: error: "--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3885 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3888 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3889 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3890 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3892 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
3893 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3897 if test x
"$wire_word_bitsize" != x
; then
3898 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3900 if test x
"$wire_word_msb" != x
; then
3901 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3903 if test x
"$wire_address_bitsize" != x
; then
3904 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3906 if test x
"$wire_cell_bitsize" != x
; then
3907 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3915 # Select the floating hardware support of the target
3917 mips_fpu
=HARDWARE_FLOATING_POINT
3920 mips
*tx39
*) mips_fpu
=HARD_FLOATING_POINT
3923 mips64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3924 mips16
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3925 mipsisa32
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
3926 mipsisa64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
3927 mips
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
3928 *) mips_fpu
=HARD_FLOATING_POINT
;;
3931 default_sim_float
="$mips_fpu"
3932 default_sim_float_bitsize
="$mips_fpu_bitsize"
3933 # Check whether --enable-sim-float or --disable-sim-float was given.
3934 if test "${enable_sim_float+set}" = set; then
3935 enableval
="$enable_sim_float"
3936 case "${enableval}" in
3937 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3938 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3939 32) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
3940 64) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
3941 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-float"" 1>&2; exit 1; }; sim_float
="";;
3943 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
3944 echo "Setting float flags = $sim_float" 6>&1
3949 if test x
"${default_sim_float}" != x
""; then
3950 sim_float
="-DWITH_FLOATING_POINT=${default_sim_float}"
3952 if test x
"${default_sim_float_bitsize}" != x
""; then
3953 sim_float
="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
3962 # Select the level of SMP support
3968 default_sim_smp
="$mips_smp"
3969 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3970 if test "${enable_sim_smp+set}" = set; then
3971 enableval
="$enable_sim_smp"
3972 case "${enableval}" in
3973 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
3974 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
3975 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
3977 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
3978 echo "Setting smp flags = $sim_smp" 6>&1
3981 sim_smp
="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp
="-N ${default_sim_smp}"
3982 if test x
"$silent" != x
"yes"; then
3983 echo "Setting smp flags = $sim_smp" 6>&1
3991 # Select the IGEN architecture
3994 sim_igen_machine
="-M mipsIV"
3995 sim_m16_machine
="-M mips16"
3996 sim_igen_filter
="32,64,f"
3999 mips
*tx39
*) sim_gen
=IGEN
4000 sim_igen_filter
="32,f"
4001 sim_igen_machine
="-M r3900"
4003 mips64vr43
*-*-*) sim_gen
=IGEN
4004 sim_igen_machine
="-M mipsIV"
4006 mips64vr5
*-*-*) sim_gen
=IGEN
4007 sim_igen_machine
="-M vr5000"
4009 mips64vr41
*) sim_gen
=M16
4010 sim_igen_machine
="-M vr4100"
4011 sim_m16_machine
="-M vr4100"
4012 sim_igen_filter
="32,64,f"
4015 mips64
*-*-*) sim_igen_filter
="32,64,f"
4018 mips16
*-*-*) sim_gen
=M16
4019 sim_igen_filter
="32,64,f"
4022 mipsisa32
*-*-*) sim_gen
=IGEN
4023 sim_igen_machine
="-M mips32"
4024 sim_igen_filter
="32,f"
4026 mipsisa64sb1
*-*-*) sim_gen
=IGEN
4027 sim_igen_machine
="-M mips64,sb1"
4028 sim_igen_filter
="32,64,f"
4030 mipsisa64
*-*-*) sim_gen
=IGEN
4031 sim_igen_machine
="-M mips64,mips3d"
4032 sim_igen_filter
="32,64,f"
4034 mips
*lsi
*) sim_gen
=M16
4035 sim_igen_machine
="-M mipsIII,mips16"
4036 sim_m16_machine
="-M mips16,mipsIII"
4037 sim_igen_filter
="32,f"
4040 mips
*-*-*) sim_gen
=IGEN
4041 sim_igen_filter
="32,f"
4044 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
4045 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
4052 # Add simulated hardware devices
4058 hw_extra_devices
="tx3904cpu tx3904irc tx3904tmr tx3904sio"
4059 mips_extra_objs
="dv-sockser.o"
4060 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_TX3904=1"
4067 if test x
"$hw_enabled" = x
"yes"; then
4072 if test "$hw_devices"; then
4073 hardware
="core pal glue"
4075 hardware
="core pal glue $hw_extra_devices"
4077 sim_hw_cflags
="-DWITH_HW=1"
4079 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
4080 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
4081 if test "${enable_sim_hardware+set}" = set; then
4082 enableval
="$enable_sim_hardware"
4084 case "${enableval}" in
4087 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
4088 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
4089 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
4091 if test "$sim_hw_p" != yes; then
4093 sim_hw_cflags
="-DWITH_HW=0"
4096 sim_hw_cflags
="-DWITH_HW=1"
4099 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
4100 for i
in x
$hardware ; do
4104 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
4108 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
4109 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4113 if test "$sim_hw_p" != yes; then
4115 sim_hw_cflags
="-DWITH_HW=0"
4118 if test x
"$silent" != x
"yes"; then
4119 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4126 # Choose simulator engine
4128 *) mips_igen_engine
="engine.o"
4134 # If we find X, set shell vars x_includes and x_libraries to the
4135 # paths, otherwise set no_x=yes.
4136 # Uses ac_ vars as temps to allow command line to override cache and checks.
4137 # --without-x overrides everything else, but does not touch the cache.
4138 echo $ac_n "checking for X""... $ac_c" 1>&6
4139 echo "configure:4140: checking for X" >&5
4141 # Check whether --with-x or --without-x was given.
4142 if test "${with_x+set}" = set; then
4147 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4148 if test "x$with_x" = xno
; then
4149 # The user explicitly disabled X.
4152 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
4153 # Both variables are already set.
4156 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4157 echo $ac_n "(cached) $ac_c" 1>&6
4159 # One or both of the vars are not set, and there is no cached value.
4160 ac_x_includes
=NO ac_x_libraries
=NO
4162 if mkdir conftestdir
; then
4164 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4165 cat > Imakefile
<<'EOF'
4167 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4169 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4170 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4171 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4172 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4173 for ac_extension
in a so sl
; do
4174 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
4175 test -f $ac_im_libdir/libX11.
$ac_extension; then
4176 ac_im_usrlibdir
=$ac_im_libdir; break
4179 # Screen out bogus values from the imake configuration. They are
4180 # bogus both because they are the default anyway, and because
4181 # using them would break gcc on systems where it needs fixed includes.
4182 case "$ac_im_incroot" in
4184 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
4186 case "$ac_im_usrlibdir" in
4188 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
4195 if test "$ac_x_includes" = NO
; then
4196 # Guess where to find include files, by looking for this one X11 .h file.
4197 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
4199 # First, try using that file with no special directory specified.
4200 cat > conftest.
$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 #include <$x_direct_test_include>
4205 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4206 { (eval echo configure
:4207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4207 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4208 if test -z "$ac_err"; then
4210 # We can compile using X headers with no special include directory.
4214 echo "configure: failed program was:" >&5
4215 cat conftest.
$ac_ext >&5
4217 # Look for the header file in a standard set of common directories.
4218 # Check X11 before X11Rn because it is often a symlink to the current release.
4221 /usr
/X11R
6/include \
4222 /usr
/X11R
5/include \
4223 /usr
/X11R
4/include \
4226 /usr
/include
/X11R6 \
4227 /usr
/include
/X11R5 \
4228 /usr
/include
/X11R4 \
4230 /usr
/local
/X11
/include \
4231 /usr
/local
/X11R
6/include \
4232 /usr
/local
/X11R
5/include \
4233 /usr
/local
/X11R
4/include \
4235 /usr
/local
/include
/X11 \
4236 /usr
/local
/include
/X11R6 \
4237 /usr
/local
/include
/X11R5 \
4238 /usr
/local
/include
/X11R4 \
4242 /usr
/XFree86
/include
/X11 \
4245 /usr
/local
/include \
4246 /usr
/unsupported
/include \
4247 /usr
/athena
/include \
4248 /usr
/local
/x11r
5/include \
4249 /usr
/lpp
/Xamples
/include \
4251 /usr
/openwin
/include \
4252 /usr
/openwin
/share
/include \
4255 if test -r "$ac_dir/$x_direct_test_include"; then
4256 ac_x_includes
=$ac_dir
4262 fi # $ac_x_includes = NO
4264 if test "$ac_x_libraries" = NO
; then
4265 # Check for the libraries.
4267 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
4268 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
4270 # See if we find them without any special options.
4271 # Don't add to $LIBS permanently.
4272 ac_save_LIBS
="$LIBS"
4273 LIBS
="-l$x_direct_test_library $LIBS"
4274 cat > conftest.
$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4279 ${x_direct_test_function}()
4282 if { (eval echo configure
:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4284 LIBS
="$ac_save_LIBS"
4285 # We can link X programs with no special library path.
4288 echo "configure: failed program was:" >&5
4289 cat conftest.
$ac_ext >&5
4291 LIBS
="$ac_save_LIBS"
4292 # First see if replacing the include by lib works.
4293 # Check X11 before X11Rn because it is often a symlink to the current release.
4294 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
4305 /usr
/local
/X11
/lib \
4306 /usr
/local
/X11R
6/lib \
4307 /usr
/local
/X11R
5/lib \
4308 /usr
/local
/X11R
4/lib \
4310 /usr
/local
/lib
/X11 \
4311 /usr
/local
/lib
/X11R6 \
4312 /usr
/local
/lib
/X11R5 \
4313 /usr
/local
/lib
/X11R4 \
4317 /usr
/XFree86
/lib
/X11 \
4321 /usr
/unsupported
/lib \
4323 /usr
/local
/x11r
5/lib \
4324 /usr
/lpp
/Xamples
/lib \
4328 /usr
/openwin
/share
/lib \
4331 for ac_extension
in a so sl
; do
4332 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
4333 ac_x_libraries
=$ac_dir
4340 fi # $ac_x_libraries = NO
4342 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
4343 # Didn't find X anywhere. Cache the known absence of X.
4344 ac_cv_have_x
="have_x=no"
4346 # Record where we found X for the cache.
4347 ac_cv_have_x
="have_x=yes \
4348 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4352 eval "$ac_cv_have_x"
4355 if test "$have_x" != yes; then
4356 echo "$ac_t""$have_x" 1>&6
4359 # If each of the values was on the command line, it overrides each guess.
4360 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4361 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4362 # Update the cache value to reflect the command line values.
4363 ac_cv_have_x
="have_x=yes \
4364 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4365 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4371 for ac_hdr
in string.h
strings.h stdlib.h stdlib.h
4373 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4374 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_hdr" >&5
4376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 cat > conftest.
$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4384 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4385 { (eval echo configure
:4386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4386 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4387 if test -z "$ac_err"; then
4389 eval "ac_cv_header_$ac_safe=yes"
4392 echo "configure: failed program was:" >&5
4393 cat conftest.
$ac_ext >&5
4395 eval "ac_cv_header_$ac_safe=no"
4399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4401 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4402 cat >> confdefs.h
<<EOF
4403 #define $ac_tr_hdr 1
4407 echo "$ac_t""no" 1>&6
4411 echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
4412 echo "configure:4413: checking for fabs in -lm" >&5
4413 ac_lib_var
=`echo m'_'fabs | sed 'y%./+-%__p_%'`
4414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4417 ac_save_LIBS
="$LIBS"
4419 cat > conftest.
$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 /* Override any gcc2 internal prototype to avoid an error. */
4423 /* We use char because int might match the return type of a gcc2
4424 builtin and then its argument prototype would still apply. */
4431 if { (eval echo configure
:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4433 eval "ac_cv_lib_$ac_lib_var=yes"
4435 echo "configure: failed program was:" >&5
4436 cat conftest.
$ac_ext >&5
4438 eval "ac_cv_lib_$ac_lib_var=no"
4441 LIBS
="$ac_save_LIBS"
4444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4445 echo "$ac_t""yes" 1>&6
4446 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4447 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4448 cat >> confdefs.h
<<EOF
4449 #define $ac_tr_lib 1
4455 echo "$ac_t""no" 1>&6
4458 for ac_func
in aint anint sqrt
4460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4461 echo "configure:4462: checking for $ac_func" >&5
4462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4463 echo $ac_n "(cached) $ac_c" 1>&6
4465 cat > conftest.
$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 /* System header to define __stub macros and hopefully few prototypes,
4469 which can conflict with char $ac_func(); below. */
4471 /* Override any gcc2 internal prototype to avoid an error. */
4472 /* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4478 /* The GNU C library defines this for functions which it implements
4479 to always fail with ENOSYS. Some functions are actually named
4480 something starting with __ and the normal name is an alias. */
4481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4489 if { (eval echo configure
:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4491 eval "ac_cv_func_$ac_func=yes"
4493 echo "configure: failed program was:" >&5
4494 cat conftest.
$ac_ext >&5
4496 eval "ac_cv_func_$ac_func=no"
4501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4502 echo "$ac_t""yes" 1>&6
4503 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4504 cat >> confdefs.h
<<EOF
4505 #define $ac_tr_func 1
4509 echo "$ac_t""no" 1>&6
4517 cat > confcache
<<\EOF
4518 # This file is a shell script that caches the results of configure
4519 # tests run on this system so they can be shared between configure
4520 # scripts and configure runs. It is not useful on other systems.
4521 # If it contains results you don't want to keep, you may remove or edit it.
4523 # By default, configure uses ./config.cache as the cache file,
4524 # creating it if it does not exist already. You can give configure
4525 # the --cache-file=FILE option to use a different cache file; that is
4526 # what configure does when it calls configure scripts in
4527 # subdirectories, so they share the cache.
4528 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4529 # config.status only pays attention to the cache file if you give it the
4530 # --recheck option to rerun configure.
4533 # The following way of writing the cache mishandles newlines in values,
4534 # but we know of no workaround that is simple, portable, and efficient.
4535 # So, don't put newlines in cache variables' values.
4536 # Ultrix sh set writes to stderr and can't be redirected directly,
4537 # and sets the high bit in the cache file unless we assign to the vars.
4539 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4541 # `set' does not quote correctly, so add quotes (double-quote substitution
4542 # turns \\\\ into \\, and sed turns \\ into \).
4544 -e "s/'/'\\\\''/g" \
4545 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4548 # `set' quotes correctly as required by POSIX, so do not add quotes.
4549 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4552 if cmp -s $cache_file confcache
; then
4555 if test -w $cache_file; then
4556 echo "updating cache $cache_file"
4557 cat confcache
> $cache_file
4559 echo "not updating unwritable cache $cache_file"
4564 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4566 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4567 # Let make expand exec_prefix.
4568 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4570 # Any assignment to VPATH causes Sun make to only execute
4571 # the first set of double-colon rules, so remove it if not needed.
4572 # If there is a colon in the path, we need to keep it.
4573 if test "x$srcdir" = x.
; then
4574 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4577 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4579 DEFS
=-DHAVE_CONFIG_H
4581 # Without the "./", some shells look in PATH for config.status.
4582 : ${CONFIG_STATUS=./config.status}
4584 echo creating
$CONFIG_STATUS
4585 rm -f $CONFIG_STATUS
4586 cat > $CONFIG_STATUS <<EOF
4588 # Generated automatically by configure.
4589 # Run this file to recreate the current configuration.
4590 # This directory was configured as follows,
4591 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4593 # $0 $ac_configure_args
4595 # Compiler output produced by configure, useful for debugging
4596 # configure, is in ./config.log if it exists.
4598 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4601 case "\$ac_option" in
4602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4603 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4604 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4605 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4606 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4608 -help | --help | --hel | --he | --h)
4609 echo "\$ac_cs_usage"; exit 0 ;;
4610 *) echo "\$ac_cs_usage"; exit 1 ;;
4614 ac_given_srcdir=$srcdir
4615 ac_given_INSTALL="$INSTALL"
4617 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
4619 cat >> $CONFIG_STATUS <<EOF
4621 # Protect against being on the right side of a sed subst in config.status.
4622 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4623 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4626 s%@sim_environment@%$sim_environment%g
4627 s%@sim_alignment@%$sim_alignment%g
4628 s%@sim_assert@%$sim_assert%g
4629 s%@sim_bitsize@%$sim_bitsize%g
4630 s%@sim_endian@%$sim_endian%g
4631 s%@sim_hostendian@%$sim_hostendian%g
4632 s%@sim_float@%$sim_float%g
4633 s%@sim_scache@%$sim_scache%g
4634 s%@sim_default_model@%$sim_default_model%g
4635 s%@sim_hw_cflags@%$sim_hw_cflags%g
4636 s%@sim_hw_objs@%$sim_hw_objs%g
4637 s%@sim_hw@%$sim_hw%g
4638 s%@sim_inline@%$sim_inline%g
4639 s%@sim_packages@%$sim_packages%g
4640 s%@sim_regparm@%$sim_regparm%g
4641 s%@sim_reserved_bits@%$sim_reserved_bits%g
4642 s%@sim_smp@%$sim_smp%g
4643 s%@sim_stdcall@%$sim_stdcall%g
4644 s%@sim_xor_endian@%$sim_xor_endian%g
4645 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4646 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
4648 s%@CFLAGS@%$CFLAGS%g
4649 s%@CPPFLAGS@%$CPPFLAGS%g
4650 s%@CXXFLAGS@%$CXXFLAGS%g
4651 s%@FFLAGS@%$FFLAGS%g
4653 s%@LDFLAGS@%$LDFLAGS%g
4655 s%@exec_prefix@%$exec_prefix%g
4656 s%@prefix@%$prefix%g
4657 s%@program_transform_name@%$program_transform_name%g
4658 s%@bindir@%$bindir%g
4659 s%@sbindir@%$sbindir%g
4660 s%@libexecdir@%$libexecdir%g
4661 s%@datadir@%$datadir%g
4662 s%@sysconfdir@%$sysconfdir%g
4663 s%@sharedstatedir@%$sharedstatedir%g
4664 s%@localstatedir@%$localstatedir%g
4665 s%@libdir@%$libdir%g
4666 s%@includedir@%$includedir%g
4667 s%@oldincludedir@%$oldincludedir%g
4668 s%@infodir@%$infodir%g
4669 s%@mandir@%$mandir%g
4671 s%@host_alias@%$host_alias%g
4672 s%@host_cpu@%$host_cpu%g
4673 s%@host_vendor@%$host_vendor%g
4674 s%@host_os@%$host_os%g
4675 s%@target@%$target%g
4676 s%@target_alias@%$target_alias%g
4677 s%@target_cpu@%$target_cpu%g
4678 s%@target_vendor@%$target_vendor%g
4679 s%@target_os@%$target_os%g
4681 s%@build_alias@%$build_alias%g
4682 s%@build_cpu@%$build_cpu%g
4683 s%@build_vendor@%$build_vendor%g
4684 s%@build_os@%$build_os%g
4686 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4687 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4688 s%@INSTALL_DATA@%$INSTALL_DATA%g
4689 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4690 s%@HDEFINES@%$HDEFINES%g
4692 s%@RANLIB@%$RANLIB%g
4693 s%@SET_MAKE@%$SET_MAKE%g
4695 s%@ALLOCA@%$ALLOCA%g
4696 s%@USE_NLS@%$USE_NLS%g
4697 s%@MSGFMT@%$MSGFMT%g
4698 s%@GMSGFMT@%$GMSGFMT%g
4699 s%@XGETTEXT@%$XGETTEXT%g
4700 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4701 s%@CATALOGS@%$CATALOGS%g
4702 s%@CATOBJEXT@%$CATOBJEXT%g
4703 s%@DATADIRNAME@%$DATADIRNAME%g
4704 s%@GMOFILES@%$GMOFILES%g
4705 s%@INSTOBJEXT@%$INSTOBJEXT%g
4706 s%@INTLDEPS@%$INTLDEPS%g
4707 s%@INTLLIBS@%$INTLLIBS%g
4708 s%@INTLOBJS@%$INTLOBJS%g
4709 s%@POFILES@%$POFILES%g
4711 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4713 s%@GT_YES@%$GT_YES%g
4714 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4717 s%@sim_bswap@%$sim_bswap%g
4718 s%@sim_cflags@%$sim_cflags%g
4719 s%@sim_debug@%$sim_debug%g
4720 s%@sim_stdio@%$sim_stdio%g
4721 s%@sim_trace@%$sim_trace%g
4722 s%@sim_profile@%$sim_profile%g
4723 s%@EXEEXT@%$EXEEXT%g
4724 s%@SIM_SUBTARGET@%$SIM_SUBTARGET%g
4725 s%@sim_igen_flags@%$sim_igen_flags%g
4726 s%@sim_m16_flags@%$sim_m16_flags%g
4727 s%@sim_gen@%$sim_gen%g
4728 s%@mips_extra_objs@%$mips_extra_objs%g
4729 s%@mips_igen_engine@%$mips_igen_engine%g
4730 s%@mips_extra_libs@%$mips_extra_libs%g
4735 cat >> $CONFIG_STATUS <<\EOF
4737 # Split the substitutions into bite-sized pieces for seds with
4738 # small command number limits, like on Digital OSF/1 and HP-UX.
4739 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4740 ac_file
=1 # Number of current file.
4741 ac_beg
=1 # First line for current file.
4742 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4745 while $ac_more_lines; do
4746 if test $ac_beg -gt 1; then
4747 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4749 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4751 if test ! -s conftest.s
$ac_file; then
4753 rm -f conftest.s
$ac_file
4755 if test -z "$ac_sed_cmds"; then
4756 ac_sed_cmds
="sed -f conftest.s$ac_file"
4758 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4760 ac_file
=`expr $ac_file + 1`
4762 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4765 if test -z "$ac_sed_cmds"; then
4770 cat >> $CONFIG_STATUS <<EOF
4772 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4774 cat >> $CONFIG_STATUS <<\EOF
4775 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4778 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4779 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4780 *) ac_file_in
="${ac_file}.in" ;;
4783 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4785 # Remove last slash and all that follows it. Not all systems have dirname.
4786 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4787 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4788 # The file is in a subdirectory.
4789 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4790 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4791 # A "../" for each directory in $ac_dir_suffix.
4792 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4794 ac_dir_suffix
= ac_dots
=
4797 case "$ac_given_srcdir" in
4799 if test -z "$ac_dots"; then top_srcdir
=.
4800 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4801 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4803 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4804 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4807 case "$ac_given_INSTALL" in
4808 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4809 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4812 echo creating
"$ac_file"
4814 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4816 *Makefile
*) ac_comsub
="1i\\
4817 # $configure_input" ;;
4821 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4823 s%@configure_input@%$configure_input%g
4824 s%@srcdir@%$srcdir%g
4825 s%@top_srcdir@%$top_srcdir%g
4826 s%@INSTALL@%$INSTALL%g
4827 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4831 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4832 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4834 # ac_d sets the value in "#define NAME VALUE" lines.
4835 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4836 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4839 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4840 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4841 ac_uB
='\([ ]\)%\1#\2define\3'
4844 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4845 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4846 ac_eB
='$%\1#\2define\3'
4850 if test "${CONFIG_HEADERS+set}" != set; then
4852 cat >> $CONFIG_STATUS <<EOF
4853 CONFIG_HEADERS="config.h:config.in"
4855 cat >> $CONFIG_STATUS <<\EOF
4857 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4858 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4860 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4861 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4862 *) ac_file_in
="${ac_file}.in" ;;
4865 echo creating
$ac_file
4867 rm -f conftest.frag conftest.
in conftest.out
4868 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4869 cat $ac_file_inputs > conftest.
in
4873 # Transform confdefs.h into a sed script conftest.vals that substitutes
4874 # the proper values into config.h.in to produce config.h. And first:
4875 # Protect against being on the right side of a sed subst in config.status.
4876 # Protect against being in an unquoted here document in config.status.
4878 cat > conftest.hdr
<<\EOF
4881 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4885 sed -n -f conftest.hdr confdefs.h > conftest.vals
4888 # This sed command replaces #undef with comments. This is necessary, for
4889 # example, in the case of _POSIX_SOURCE, which is predefined and required
4890 # on some systems where configure will not decide to define it.
4891 cat >> conftest.vals <<\EOF
4892 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4895 # Break up conftest.vals because some shells have a limit on
4896 # the size of here documents, and old seds have small limits too.
4901 ac_lines=`grep -c . conftest.vals
`
4902 # grep -c gives empty output for an empty file on some AIX systems.
4903 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4904 # Write a limited-size here document to conftest.frag.
4905 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4906 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4908 sed -f conftest.frag conftest.in > conftest.out
4910 mv conftest.out conftest.in
4912 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4914 mv conftest.tail conftest.vals
4918 cat >> $CONFIG_STATUS <<\EOF
4919 rm -f conftest.frag conftest.h
4920 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4921 cat conftest.in >> conftest.h
4923 if cmp -s $ac_file conftest.h 2>/dev/null; then
4924 echo "$ac_file is unchanged"
4927 # Remove last slash and all that follows it. Not all systems have dirname.
4928 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4929 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4930 # The file is in a subdirectory.
4931 test ! -d "$ac_dir" && mkdir "$ac_dir"
4934 mv conftest.h $ac_file
4940 cat >> $CONFIG_STATUS <<EOF
4941 ac_sources="$sim_link_files"
4942 ac_dests="$sim_link_links"
4945 cat >> $CONFIG_STATUS <<\EOF
4946 srcdir=$ac_given_srcdir
4947 while test -n "$ac_sources"; do
4948 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4949 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4951 echo "linking $srcdir/$ac_source to $ac_dest"
4953 if test ! -r $srcdir/$ac_source; then
4954 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4958 # Make relative symlinks.
4959 # Remove last slash and all that follows it. Not all systems have dirname.
4960 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4961 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4962 # The dest file is in a subdirectory.
4963 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4964 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4965 # A "../" for each directory in $ac_dest_dir_suffix.
4966 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4968 ac_dest_dir_suffix= ac_dots=
4972 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4973 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4976 # Make a symlink if possible; otherwise try a hard link.
4977 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4978 ln $srcdir/$ac_source $ac_dest; then :
4980 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4984 cat >> $CONFIG_STATUS <<EOF
4987 cat >> $CONFIG_STATUS <<\EOF
4988 case "x$CONFIG_FILES" in
4990 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4991 rm -f Makesim1.tmp Makesim2.tmp Makefile
4992 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4993 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4994 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4995 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4996 <Makefile.sim >Makefile
4997 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
5000 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
5004 chmod +x $CONFIG_STATUS
5005 rm -fr confdefs* $ac_clean_files
5006 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1