304 # Do all the work for Automake. This macro actually does too much --
305 # some checks are only needed if your package does certain things.
306 # But this isn't really a big deal.
319 # Check to make sure that the build environment is sane.
327 # serial 25 AM_PROG_LIBTOOL
330 # AM_ENABLE_SHARED - implement the --enable-shared flag
331 # Usage: AM_ENABLE_SHARED[(DEFAULT)]
332 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
336 # AM_DISABLE_SHARED - set the default shared flag to --disable-shared
339 # AM_DISABLE_STATIC - set the default static flag to --disable-static
342 # AM_ENABLE_STATIC - implement the --enable-static flag
343 # Usage: AM_ENABLE_STATIC[(DEFAULT)]
344 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
349 # AM_PROG_LD - find the path to the GNU or non-GNU linker
354 # AM_PROG_NM - find the path to a BSD-compatible name lister
357 # AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
360 # Like AC_CONFIG_HEADER, but automatically create stamp file.
364 # Add --enable-maintainer-mode option to configure.
371 # Check to see if we're running under Cygwin32, without using
372 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
373 # Otherwise set it to "no".
377 # Check to see if we're running under Win32, without using
378 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
379 # Otherwise set it to "".
383 # Check to see if we're running under Mingw, without using
384 # AC_CANONICAL_*. If so, set output variable MINGW32 to "yes".
385 # Otherwise set it to "no".
389 # This file is derived from `gettext.m4'. The difference is that the
390 # included macros assume Cygnus-style source and build trees.
392 # Macro to add for using GNU gettext.
393 # Ulrich Drepper <drepper@cygnus.com>, 1995.
395 # This file file be copied and used freely without restrictions. It can
396 # be used in projects which are not available under the GNU Public License
397 # but which still want to provide support for the GNU gettext functionality.
398 # Please note that the actual code is *not* freely available.
406 # Search path for a program which passes the given test.
407 # Ulrich Drepper <drepper@cygnus.com>, 1996.
409 # This file file be copied and used freely without restrictions. It can
410 # be used in projects which are not available under the GNU Public License
411 # but which still want to provide support for the GNU gettext functionality.
412 # Please note that the actual code is *not* freely available.
418 # Check whether LC_MESSAGES is available in <locale.h>.
419 # Ulrich Drepper <drepper@cygnus.com>, 1995.
421 # This file file be copied and used freely without restrictions. It can
422 # be used in projects which are not available under the GNU Public License
423 # but which still want to provide support for the GNU gettext functionality.
424 # Please note that the actual code is *not* freely available.
436 # Sometimes the native compiler is a bogus stub for gcc or /usr/ucb/cc. This
437 # makes configure think it's cross compiling. If --target wasn't used, then
438 # we can't configure, so something is wrong. We don't use the cache
439 # here cause if somebody fixes their compiler install, we want this to work.
447 # Defined as a separate macro so we don't have to cache the values
448 # from PATH_TCLCONFIG (because this can also be cached).
451 # Warning: Tk definitions are very similar to Tcl definitions but
452 # are not precisely the same. There are a couple of differences,
453 # so don't do changes to Tcl thinking you can cut and paste it do
454 # the Tk differences and later simply substitute "Tk" for "Tcl".
456 # - Acceptable Tcl major version #s is 7-9 while Tk is 4-9
457 # - Searching for Tcl includes looking for tclInt.h, Tk looks for tk.h
458 # - Computing major/minor versions is different because Tk depends on
459 # headers to Tcl, Tk, and X.
460 # - Symbols in tkConfig.sh are different than tclConfig.sh
461 # - Acceptable for Tk to be missing but not Tcl.
468 # Defined as a separate macro so we don't have to cache the values
469 # from PATH_TKCONFIG (because this can also be cached).
473 # check for Itcl headers.
477 # check for Tix headers.
480 # Guess values for system-dependent variables and create Makefiles.
481 # Generated automatically using autoconf version 2.12.2
482 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
484 # This configure script is free software; the Free Software Foundation
485 # gives unlimited permission to copy, distribute and modify it.
489 ac_default_prefix
=/usr
/local
490 # Any additions from configure.in:
492 --disable-nls do not use Native Language Support"
494 --with-included-gettext use the GNU gettext library included here"
498 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
500 --with-mmalloc Use memory mapped malloc package"
502 --enable-carp Configure alternative readaptive paradigm "
504 --enable-targets alternative target configurations"
506 --enable-ide Enable IDE support"
508 --with-foundry-libs=DIR Use the Foundry SDK in DIR"
510 --enable-gdbtk Enable GDBTK GUI front end"
512 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
514 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
516 --with-tclinclude=DIR Directory where tcl private headers are"
518 --with-tkinclude=DIR Directory where tk private headers are"
520 --with-x use the X Window System"
522 --with-sim-gpu2=DIR Use GPU2 library under given DIR"
524 --with-sim-funit=DIR Use target FP lib under given DIR"
526 --enable-shared Use shared libraries"
528 # Initialize some variables set by options.
529 # The variables have the same names as the options, with
530 # dashes changed to underlines.
532 cache_file
=.
/config.cache
541 program_transform_name
=s
,x
,x
,
549 bindir
='${exec_prefix}/bin'
550 sbindir
='${exec_prefix}/sbin'
551 libexecdir
='${exec_prefix}/libexec'
552 datadir
='${prefix}/share'
553 sysconfdir
='${prefix}/etc'
554 sharedstatedir
='${prefix}/com'
555 localstatedir
='${prefix}/var'
556 libdir
='${exec_prefix}/lib'
557 includedir
='${prefix}/include'
558 oldincludedir
='/usr/include'
559 infodir
='${prefix}/info'
560 mandir
='${prefix}/man'
562 # Initialize some other variables.
565 SHELL
=${CONFIG_SHELL-/bin/sh}
566 # Maximum number of lines to put in a shell here document.
573 # If the previous option needs an argument, assign it.
574 if test -n "$ac_prev"; then
575 eval "$ac_prev=\$ac_option"
581 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
585 # Accept the important Cygnus configure options, so we can diagnose typos.
589 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
591 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
592 bindir
="$ac_optarg" ;;
594 -build |
--build |
--buil |
--bui |
--bu)
596 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
597 build
="$ac_optarg" ;;
599 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
600 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
601 ac_prev
=cache_file
;;
602 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
603 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
604 cache_file
="$ac_optarg" ;;
606 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
608 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
610 datadir
="$ac_optarg" ;;
612 -disable-* |
--disable-*)
613 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
614 # Reject names that are not valid shell variable names.
615 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
616 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
618 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
619 eval "enable_${ac_feature}=no" ;;
621 -enable-* |
--enable-*)
622 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
623 # Reject names that are not valid shell variable names.
624 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
625 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
627 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
632 eval "enable_${ac_feature}='$ac_optarg'" ;;
634 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
635 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
636 |
--exec |
--exe |
--ex)
637 ac_prev
=exec_prefix
;;
638 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
639 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
640 |
--exec=* |
--exe=* |
--ex=*)
641 exec_prefix
="$ac_optarg" ;;
643 -gas |
--gas |
--ga |
--g)
644 # Obsolete; use --with-gas.
647 -help |
--help |
--hel |
--he)
648 # Omit some internal or obsolete options to make the list less imposing.
649 # This message is too long to be a string in the A/UX 3.1 sh.
651 Usage: configure [options] [host]
652 Options: [defaults in brackets after descriptions]
654 --cache-file=FILE cache test results in FILE
655 --help print this message
656 --no-create do not create output files
657 --quiet, --silent do not print \`checking...' messages
658 --version print the version of autoconf that created configure
659 Directory and file names:
660 --prefix=PREFIX install architecture-independent files in PREFIX
662 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
664 --bindir=DIR user executables in DIR [EPREFIX/bin]
665 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
666 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
667 --datadir=DIR read-only architecture-independent data in DIR
669 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
670 --sharedstatedir=DIR modifiable architecture-independent data in DIR
672 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
673 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
674 --includedir=DIR C header files in DIR [PREFIX/include]
675 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
676 --infodir=DIR info documentation in DIR [PREFIX/info]
677 --mandir=DIR man documentation in DIR [PREFIX/man]
678 --srcdir=DIR find the sources in DIR [configure dir or ..]
679 --program-prefix=PREFIX prepend PREFIX to installed program names
680 --program-suffix=SUFFIX append SUFFIX to installed program names
681 --program-transform-name=PROGRAM
682 run sed PROGRAM on installed program names
686 --build=BUILD configure for building on BUILD [BUILD=HOST]
687 --host=HOST configure for HOST [guessed]
688 --target=TARGET configure for TARGET [TARGET=HOST]
689 Features and packages:
690 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
691 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
692 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
693 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
694 --x-includes=DIR X include files are in DIR
695 --x-libraries=DIR X library files are in DIR
697 if test -n "$ac_help"; then
698 echo "--enable and --with options recognized:$ac_help"
702 -host |
--host |
--hos |
--ho)
704 -host=* |
--host=* |
--hos=* |
--ho=*)
707 -includedir |
--includedir |
--includedi |
--included |
--include \
708 |
--includ |
--inclu |
--incl |
--inc)
709 ac_prev
=includedir
;;
710 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
711 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
712 includedir
="$ac_optarg" ;;
714 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
716 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
717 infodir
="$ac_optarg" ;;
719 -libdir |
--libdir |
--libdi |
--libd)
721 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
722 libdir
="$ac_optarg" ;;
724 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
725 |
--libexe |
--libex |
--libe)
726 ac_prev
=libexecdir
;;
727 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
728 |
--libexe=* |
--libex=* |
--libe=*)
729 libexecdir
="$ac_optarg" ;;
731 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
732 |
--localstate |
--localstat |
--localsta |
--localst \
733 |
--locals |
--local |
--loca |
--loc |
--lo)
734 ac_prev
=localstatedir
;;
735 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
736 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
737 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
738 localstatedir
="$ac_optarg" ;;
740 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
742 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
743 mandir
="$ac_optarg" ;;
746 # Obsolete; use --without-fp.
749 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
753 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
754 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
757 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
758 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
759 |
--oldin |
--oldi |
--old |
--ol |
--o)
760 ac_prev
=oldincludedir
;;
761 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
762 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
763 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
764 oldincludedir
="$ac_optarg" ;;
766 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
768 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
769 prefix
="$ac_optarg" ;;
771 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
772 |
--program-pre |
--program-pr |
--program-p)
773 ac_prev
=program_prefix
;;
774 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
775 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
776 program_prefix
="$ac_optarg" ;;
778 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
779 |
--program-suf |
--program-su |
--program-s)
780 ac_prev
=program_suffix
;;
781 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
782 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
783 program_suffix
="$ac_optarg" ;;
785 -program-transform-name |
--program-transform-name \
786 |
--program-transform-nam |
--program-transform-na \
787 |
--program-transform-n |
--program-transform- \
788 |
--program-transform |
--program-transfor \
789 |
--program-transfo |
--program-transf \
790 |
--program-trans |
--program-tran \
791 |
--progr-tra |
--program-tr |
--program-t)
792 ac_prev
=program_transform_name
;;
793 -program-transform-name=* |
--program-transform-name=* \
794 |
--program-transform-nam=* |
--program-transform-na=* \
795 |
--program-transform-n=* |
--program-transform-=* \
796 |
--program-transform=* |
--program-transfor=* \
797 |
--program-transfo=* |
--program-transf=* \
798 |
--program-trans=* |
--program-tran=* \
799 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
800 program_transform_name
="$ac_optarg" ;;
802 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
803 |
-silent |
--silent |
--silen |
--sile |
--sil)
806 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
808 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
810 sbindir
="$ac_optarg" ;;
812 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
813 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
814 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
816 ac_prev
=sharedstatedir
;;
817 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
818 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
819 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
821 sharedstatedir
="$ac_optarg" ;;
823 -site |
--site |
--sit)
825 -site=* |
--site=* |
--sit=*)
828 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
830 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
831 srcdir
="$ac_optarg" ;;
833 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
834 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
835 ac_prev
=sysconfdir
;;
836 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
837 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
838 sysconfdir
="$ac_optarg" ;;
840 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
842 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
843 target
="$ac_optarg" ;;
845 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
848 -version |
--version |
--versio |
--versi |
--vers)
849 echo "configure generated by autoconf version 2.12.2"
853 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
854 # Reject names that are not valid shell variable names.
855 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
856 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
858 ac_package
=`echo $ac_package| sed 's/-/_/g'`
863 eval "with_${ac_package}='$ac_optarg'" ;;
865 -without-* |
--without-*)
866 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
867 # Reject names that are not valid shell variable names.
868 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
869 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
871 ac_package
=`echo $ac_package| sed 's/-/_/g'`
872 eval "with_${ac_package}=no" ;;
875 # Obsolete; use --with-x.
878 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
879 |
--x-incl |
--x-inc |
--x-in |
--x-i)
880 ac_prev
=x_includes
;;
881 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
882 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
883 x_includes
="$ac_optarg" ;;
885 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
886 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
887 ac_prev
=x_libraries
;;
888 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
889 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
890 x_libraries
="$ac_optarg" ;;
892 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
896 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
897 echo "configure: warning: $ac_option: invalid host type" 1>&2
899 if test "x$nonopt" != xNONE
; then
900 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
908 if test -n "$ac_prev"; then
909 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
912 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
914 # File descriptor usage:
917 # 2 errors and warnings
918 # 3 some systems may open it to /dev/tty
919 # 4 used on the Kubota Titan
920 # 6 checking for... messages and results
921 # 5 compiler messages saved in config.log
922 if test "$silent" = yes; then
930 This file contains any messages produced by compilers while
931 running configure, to aid debugging if configure makes a mistake.
934 # Strip out --no-create and --no-recursion so they do not pile up.
935 # Also quote any args containing shell metacharacters.
940 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
941 |
--no-cr |
--no-c) ;;
942 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
943 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
944 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
945 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
946 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
951 # Only set these to C if already set. These must not be set unconditionally
952 # because not all systems understand e.g. LANG=C (notably SCO).
953 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
954 # Non-C LC_CTYPE values break the ctype check.
955 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
956 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
957 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
958 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
960 # confdefs.h avoids OS command line length limits that DEFS can exceed.
961 rm -rf conftest
* confdefs.h
962 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
965 # A filename unique to this package, relative to the directory that
966 # configure is in, which we can look for to find out if srcdir is correct.
967 ac_unique_file
=main.c
969 # Find the source files, if location was not specified.
970 if test -z "$srcdir"; then
971 ac_srcdir_defaulted
=yes
972 # Try the directory containing this script, then its parent.
974 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
975 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
977 if test ! -r $srcdir/$ac_unique_file; then
981 ac_srcdir_defaulted
=no
983 if test ! -r $srcdir/$ac_unique_file; then
984 if test "$ac_srcdir_defaulted" = yes; then
985 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
987 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
990 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
992 # Prefer explicitly selected file to automatically selected ones.
993 if test -z "$CONFIG_SITE"; then
994 if test "x$prefix" != xNONE
; then
995 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
997 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1000 for ac_site_file
in $CONFIG_SITE; do
1001 if test -r "$ac_site_file"; then
1002 echo "loading site script $ac_site_file"
1007 if test -r "$cache_file"; then
1008 echo "loading cache $cache_file"
1011 echo "creating cache $cache_file"
1016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1017 ac_cpp
='$CPP $CPPFLAGS'
1018 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1019 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1020 cross_compiling
=$ac_cv_prog_cc_cross
1024 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
1025 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
1026 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
1033 ac_n
= ac_c
='\c' ac_t
=
1039 # Extract the first word of "gcc", so it can be a program name with args.
1040 set dummy gcc
; ac_word
=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 if test -n "$CC"; then
1047 ac_cv_prog_CC
="$CC" # Let the user override the test.
1049 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1051 for ac_dir
in $ac_dummy; do
1052 test -z "$ac_dir" && ac_dir
=.
1053 if test -f $ac_dir/$ac_word; then
1062 if test -n "$CC"; then
1063 echo "$ac_t""$CC" 1>&6
1065 echo "$ac_t""no" 1>&6
1068 if test -z "$CC"; then
1069 # Extract the first word of "cc", so it can be a program name with args.
1070 set dummy cc
; ac_word
=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 if test -n "$CC"; then
1077 ac_cv_prog_CC
="$CC" # Let the user override the test.
1079 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1082 for ac_dir
in $ac_dummy; do
1083 test -z "$ac_dir" && ac_dir
=.
1084 if test -f $ac_dir/$ac_word; then
1085 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1086 ac_prog_rejected
=yes
1094 if test $ac_prog_rejected = yes; then
1095 # We found a bogon in the path, so make sure we never use it.
1096 set dummy
$ac_cv_prog_CC
1098 if test $# -gt 0; then
1099 # We chose a different compiler from the bogus one.
1100 # However, it has the same basename, so the bogon will be chosen
1101 # first if we set CC to just the basename; use the full file name.
1103 set dummy
"$ac_dir/$ac_word" "$@"
1111 if test -n "$CC"; then
1112 echo "$ac_t""$CC" 1>&6
1114 echo "$ac_t""no" 1>&6
1117 if test -z "$CC"; then
1118 case "`uname -s`" in
1120 # Extract the first word of "cl", so it can be a program name with args.
1121 set dummy cl
; ac_word
=$2
1122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1123 echo "configure:1124: checking for $ac_word" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 if test -n "$CC"; then
1128 ac_cv_prog_CC
="$CC" # Let the user override the test.
1130 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1132 for ac_dir
in $ac_dummy; do
1133 test -z "$ac_dir" && ac_dir
=.
1134 if test -f $ac_dir/$ac_word; then
1143 if test -n "$CC"; then
1144 echo "$ac_t""$CC" 1>&6
1146 echo "$ac_t""no" 1>&6
1151 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1159 ac_cpp
='$CPP $CPPFLAGS'
1160 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1161 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1162 cross_compiling
=$ac_cv_prog_cc_cross
1164 cat > conftest.
$ac_ext << EOF
1166 #line 1167 "configure"
1167 #include "confdefs.h"
1171 if { (eval echo configure
:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1172 ac_cv_prog_cc_works
=yes
1173 # If we can't run a trivial program, we are probably using a cross compiler.
1174 if (.
/conftest
; exit) 2>/dev
/null
; then
1175 ac_cv_prog_cc_cross
=no
1177 ac_cv_prog_cc_cross
=yes
1180 echo "configure: failed program was:" >&5
1181 cat conftest.
$ac_ext >&5
1182 ac_cv_prog_cc_works
=no
1186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1187 ac_cpp
='$CPP $CPPFLAGS'
1188 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1189 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1190 cross_compiling
=$ac_cv_prog_cc_cross
1192 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1193 if test $ac_cv_prog_cc_works = no
; then
1194 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1196 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1198 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1199 cross_compiling
=$ac_cv_prog_cc_cross
1201 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether we are using GNU C" >&5
1203 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1206 cat > conftest.c
<<EOF
1211 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1218 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1220 if test $ac_cv_prog_gcc = yes; then
1226 ac_test_CFLAGS
="${CFLAGS+set}"
1227 ac_save_CFLAGS
="$CFLAGS"
1229 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1230 echo "configure:1231: checking whether ${CC-cc} accepts -g" >&5
1231 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1234 echo 'void f(){}' > conftest.c
1235 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1244 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1245 if test "$ac_test_CFLAGS" = set; then
1246 CFLAGS
="$ac_save_CFLAGS"
1247 elif test $ac_cv_prog_cc_g = yes; then
1248 if test "$GCC" = yes; then
1254 if test "$GCC" = yes; then
1261 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1262 echo "configure:1263: checking how to run the C preprocessor" >&5
1263 # On Suns, sometimes $CPP names a directory.
1264 if test -n "$CPP" && test -d "$CPP"; then
1267 if test -z "$CPP"; then
1268 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1271 # This must be in double quotes, not single quotes, because CPP may get
1272 # substituted into the Makefile and "${CC-cc}" will confuse make.
1274 # On the NeXT, cc -E runs the code through the compiler's parser,
1275 # not just through cpp.
1276 cat > conftest.
$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1282 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1283 { (eval echo configure
:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1284 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1285 if test -z "$ac_err"; then
1289 echo "configure: failed program was:" >&5
1290 cat conftest.
$ac_ext >&5
1292 CPP
="${CC-cc} -E -traditional-cpp"
1293 cat > conftest.
$ac_ext <<EOF
1294 #line 1295 "configure"
1295 #include "confdefs.h"
1299 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1300 { (eval echo configure
:1301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1301 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1302 if test -z "$ac_err"; then
1306 echo "configure: failed program was:" >&5
1307 cat conftest.
$ac_ext >&5
1309 CPP
="${CC-cc} -nologo -E"
1310 cat > conftest.
$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1316 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1317 { (eval echo configure
:1318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1318 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1319 if test -z "$ac_err"; then
1323 echo "configure: failed program was:" >&5
1324 cat conftest.
$ac_ext >&5
1333 ac_cv_prog_CPP
="$CPP"
1335 CPP
="$ac_cv_prog_CPP"
1337 ac_cv_prog_CPP
="$CPP"
1339 echo "$ac_t""$CPP" 1>&6
1341 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1342 echo "configure:1343: checking for AIX" >&5
1343 cat > conftest.
$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1352 egrep "yes" >/dev
/null
2>&1; then
1354 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1355 #define _ALL_SOURCE 1
1360 echo "$ac_t""no" 1>&6
1365 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1366 echo "configure:1367: checking for POSIXized ISC" >&5
1367 if test -d /etc
/conf
/kconfig.d
&&
1368 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1370 echo "$ac_t""yes" 1>&6
1371 ISC
=yes # If later tests want to check for ISC.
1372 cat >> confdefs.h
<<\EOF
1373 #define _POSIX_SOURCE 1
1376 if test "$GCC" = yes; then
1382 echo "$ac_t""no" 1>&6
1388 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1389 if test -f $ac_dir/install-sh
; then
1391 ac_install_sh
="$ac_aux_dir/install-sh -c"
1393 elif test -f $ac_dir/install.sh
; then
1395 ac_install_sh
="$ac_aux_dir/install.sh -c"
1399 if test -z "$ac_aux_dir"; then
1400 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1402 ac_config_guess
=$ac_aux_dir/config.guess
1403 ac_config_sub
=$ac_aux_dir/config.sub
1404 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1407 # Do some error checking and defaulting for the host and target type.
1409 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1412 # 1. You are not allowed to specify --host, --target, and nonopt at the
1414 # 2. Host defaults to nonopt.
1415 # 3. If nonopt is not specified, then host defaults to the current host,
1416 # as determined by config.guess.
1417 # 4. Target and build default to nonopt.
1418 # 5. If nonopt is not specified, then target and build default to host.
1420 # The aliases save the names the user supplied, while $host etc.
1421 # will get canonicalized.
1422 case $host---$target---$nonopt in
1423 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1424 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1428 # Make sure we can run config.sub.
1429 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1430 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1433 echo $ac_n "checking host system type""... $ac_c" 1>&6
1434 echo "configure:1435: checking host system type" >&5
1437 case "$host_alias" in
1441 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1442 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1444 *) host_alias
=$nonopt ;;
1448 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1449 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 echo "$ac_t""$host" 1>&6
1454 echo $ac_n "checking target system type""... $ac_c" 1>&6
1455 echo "configure:1456: checking target system type" >&5
1457 target_alias
=$target
1458 case "$target_alias" in
1461 NONE
) target_alias
=$host_alias ;;
1462 *) target_alias
=$nonopt ;;
1466 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1467 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470 echo "$ac_t""$target" 1>&6
1472 echo $ac_n "checking build system type""... $ac_c" 1>&6
1473 echo "configure:1474: checking build system type" >&5
1476 case "$build_alias" in
1479 NONE
) build_alias
=$host_alias ;;
1480 *) build_alias
=$nonopt ;;
1484 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1485 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488 echo "$ac_t""$build" 1>&6
1490 test "$host_alias" != "$target_alias" &&
1491 test "$program_prefix$program_suffix$program_transform_name" = \
1493 program_prefix
=${target_alias}-
1497 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1498 echo "configure:1499: checking whether ${MAKE-make} sets \${MAKE}" >&5
1499 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1500 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 cat > conftestmake
<<\EOF
1505 @
echo 'ac_maketemp="${MAKE}"'
1507 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1508 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1509 if test -n "$ac_maketemp"; then
1510 eval ac_cv_prog_make_
${ac_make}_set
=yes
1512 eval ac_cv_prog_make_
${ac_make}_set
=no
1516 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1517 echo "$ac_t""yes" 1>&6
1520 echo "$ac_t""no" 1>&6
1521 SET_MAKE
="MAKE=${MAKE-make}"
1524 # Extract the first word of "ranlib", so it can be a program name with args.
1525 set dummy ranlib
; ac_word
=$2
1526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1527 echo "configure:1528: checking for $ac_word" >&5
1528 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 if test -n "$RANLIB"; then
1532 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1534 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1536 for ac_dir
in $ac_dummy; do
1537 test -z "$ac_dir" && ac_dir
=.
1538 if test -f $ac_dir/$ac_word; then
1539 ac_cv_prog_RANLIB
="ranlib"
1544 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1547 RANLIB
="$ac_cv_prog_RANLIB"
1548 if test -n "$RANLIB"; then
1549 echo "$ac_t""$RANLIB" 1>&6
1551 echo "$ac_t""no" 1>&6
1554 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1555 echo "configure:1556: checking for ANSI C header files" >&5
1556 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 cat > conftest.
$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1567 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1568 { (eval echo configure
:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1569 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1570 if test -z "$ac_err"; then
1572 ac_cv_header_stdc
=yes
1575 echo "configure: failed program was:" >&5
1576 cat conftest.
$ac_ext >&5
1578 ac_cv_header_stdc
=no
1582 if test $ac_cv_header_stdc = yes; then
1583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1584 cat > conftest.
$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1590 egrep "memchr" >/dev
/null
2>&1; then
1594 ac_cv_header_stdc
=no
1600 if test $ac_cv_header_stdc = yes; then
1601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1602 cat > conftest.
$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1608 egrep "free" >/dev
/null
2>&1; then
1612 ac_cv_header_stdc
=no
1618 if test $ac_cv_header_stdc = yes; then
1619 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1620 if test "$cross_compiling" = yes; then
1623 cat > conftest.
$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1627 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1628 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1629 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1630 int main () { int i; for (i = 0; i < 256; i++)
1631 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1635 if { (eval echo configure
:1636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1639 echo "configure: failed program was:" >&5
1640 cat conftest.
$ac_ext >&5
1642 ac_cv_header_stdc
=no
1650 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1651 if test $ac_cv_header_stdc = yes; then
1652 cat >> confdefs.h
<<\EOF
1653 #define STDC_HEADERS 1
1658 echo $ac_n "checking for working const""... $ac_c" 1>&6
1659 echo "configure:1660: checking for working const" >&5
1660 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1663 cat > conftest.
$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1669 /* Ultrix mips cc rejects this. */
1670 typedef int charset[2]; const charset x;
1671 /* SunOS 4.1.1 cc rejects this. */
1672 char const *const *ccp;
1674 /* NEC SVR4.0.2 mips cc rejects this. */
1675 struct point {int x, y;};
1676 static struct point const zero = {0,0};
1677 /* AIX XL C 1.02.0.0 rejects this.
1678 It does not let you subtract one const X* pointer from another in an arm
1679 of an if-expression whose if-part is not a constant expression */
1680 const char *g = "string";
1681 ccp = &g + (g ? g-g : 0);
1682 /* HPUX 7.0 cc rejects these. */
1685 ccp = (char const *const *) p;
1686 { /* SCO 3.2v4 cc rejects this. */
1688 char const *s = 0 ? (char *) 0 : (char const *) 0;
1692 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1694 const int *foo = &x[0];
1697 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1698 typedef const int *iptr;
1702 { /* AIX XL C 1.02.0.0 rejects this saying
1703 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1704 struct s { int j; const int *ap[3]; };
1705 struct s *b; b->j = 5;
1707 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1713 if { (eval echo configure
:1714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1717 echo "configure: failed program was:" >&5
1718 cat conftest.
$ac_ext >&5
1725 echo "$ac_t""$ac_cv_c_const" 1>&6
1726 if test $ac_cv_c_const = no
; then
1727 cat >> confdefs.h
<<\EOF
1733 echo $ac_n "checking for inline""... $ac_c" 1>&6
1734 echo "configure:1735: checking for inline" >&5
1735 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1739 for ac_kw
in inline __inline__ __inline
; do
1740 cat > conftest.
$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1748 if { (eval echo configure
:1749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1750 ac_cv_c_inline
=$ac_kw; break
1752 echo "configure: failed program was:" >&5
1753 cat conftest.
$ac_ext >&5
1760 echo "$ac_t""$ac_cv_c_inline" 1>&6
1761 case "$ac_cv_c_inline" in
1763 no
) cat >> confdefs.h
<<\EOF
1767 *) cat >> confdefs.h
<<EOF
1768 #define inline $ac_cv_c_inline
1773 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1774 echo "configure:1775: checking for off_t" >&5
1775 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 cat > conftest.
$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 #include <sys/types.h>
1787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1788 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1790 ac_cv_type_off_t
=yes
1798 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1799 if test $ac_cv_type_off_t = no
; then
1800 cat >> confdefs.h
<<\EOF
1806 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1807 echo "configure:1808: checking for size_t" >&5
1808 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 cat > conftest.
$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 #include <sys/types.h>
1820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1821 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1823 ac_cv_type_size_t
=yes
1826 ac_cv_type_size_t
=no
1831 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1832 if test $ac_cv_type_size_t = no
; then
1833 cat >> confdefs.h
<<\EOF
1834 #define size_t unsigned
1839 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1840 # for constant arguments. Useless!
1841 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1842 echo "configure:1843: checking for working alloca.h" >&5
1843 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 cat > conftest.
$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1851 char *p = alloca(2 * sizeof(int));
1854 if { (eval echo configure
:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1856 ac_cv_header_alloca_h
=yes
1858 echo "configure: failed program was:" >&5
1859 cat conftest.
$ac_ext >&5
1861 ac_cv_header_alloca_h
=no
1866 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1867 if test $ac_cv_header_alloca_h = yes; then
1868 cat >> confdefs.h
<<\EOF
1869 #define HAVE_ALLOCA_H 1
1874 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1875 echo "configure:1876: checking for alloca" >&5
1876 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 cat > conftest.
$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1884 # define alloca __builtin_alloca
1887 # include <malloc.h>
1888 # define alloca _alloca
1891 # include <alloca.h>
1896 # ifndef alloca /* predefined by HP cc +Olibcalls */
1905 char *p = (char *) alloca(1);
1908 if { (eval echo configure
:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1910 ac_cv_func_alloca_works
=yes
1912 echo "configure: failed program was:" >&5
1913 cat conftest.
$ac_ext >&5
1915 ac_cv_func_alloca_works
=no
1920 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1921 if test $ac_cv_func_alloca_works = yes; then
1922 cat >> confdefs.h
<<\EOF
1923 #define HAVE_ALLOCA 1
1928 if test $ac_cv_func_alloca_works = no
; then
1929 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1930 # that cause trouble. Some versions do not even contain alloca or
1931 # contain a buggy version. If you still want to use their alloca,
1932 # use ar to extract alloca.o from them instead of compiling alloca.c.
1933 ALLOCA
=alloca.
${ac_objext}
1934 cat >> confdefs.h
<<\EOF
1939 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1940 echo "configure:1941: checking whether alloca needs Cray hooks" >&5
1941 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1944 cat > conftest.
$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1947 #if defined(CRAY) && ! defined(CRAY2)
1954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1955 egrep "webecray" >/dev
/null
2>&1; then
1966 echo "$ac_t""$ac_cv_os_cray" 1>&6
1967 if test $ac_cv_os_cray = yes; then
1968 for ac_func
in _getb67 GETB67 getb67
; do
1969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1970 echo "configure:1971: checking for $ac_func" >&5
1971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1974 cat > conftest.
$ac_ext <<EOF
1975 #line 1976 "configure"
1976 #include "confdefs.h"
1977 /* System header to define __stub macros and hopefully few prototypes,
1978 which can conflict with char $ac_func(); below. */
1980 /* Override any gcc2 internal prototype to avoid an error. */
1981 /* We use char because int might match the return type of a gcc2
1982 builtin and then its argument prototype would still apply. */
1987 /* The GNU C library defines this for functions which it implements
1988 to always fail with ENOSYS. Some functions are actually named
1989 something starting with __ and the normal name is an alias. */
1990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1998 if { (eval echo configure
:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2000 eval "ac_cv_func_$ac_func=yes"
2002 echo "configure: failed program was:" >&5
2003 cat conftest.
$ac_ext >&5
2005 eval "ac_cv_func_$ac_func=no"
2010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2011 echo "$ac_t""yes" 1>&6
2012 cat >> confdefs.h
<<EOF
2013 #define CRAY_STACKSEG_END $ac_func
2018 echo "$ac_t""no" 1>&6
2024 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2025 echo "configure:2026: checking stack direction for C alloca" >&5
2026 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 if test "$cross_compiling" = yes; then
2030 ac_cv_c_stack_direction
=0
2032 cat > conftest.
$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 find_stack_direction ()
2037 static char *addr = 0;
2042 return find_stack_direction ();
2045 return (&dummy > addr) ? 1 : -1;
2049 exit (find_stack_direction() < 0);
2052 if { (eval echo configure
:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2054 ac_cv_c_stack_direction
=1
2056 echo "configure: failed program was:" >&5
2057 cat conftest.
$ac_ext >&5
2059 ac_cv_c_stack_direction
=-1
2066 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2067 cat >> confdefs.h
<<EOF
2068 #define STACK_DIRECTION $ac_cv_c_stack_direction
2073 for ac_hdr
in unistd.h
2075 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2077 echo "configure:2078: checking for $ac_hdr" >&5
2078 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 cat > conftest.
$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2086 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2087 { (eval echo configure
:2088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2088 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2089 if test -z "$ac_err"; then
2091 eval "ac_cv_header_$ac_safe=yes"
2094 echo "configure: failed program was:" >&5
2095 cat conftest.
$ac_ext >&5
2097 eval "ac_cv_header_$ac_safe=no"
2101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2102 echo "$ac_t""yes" 1>&6
2103 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2104 cat >> confdefs.h
<<EOF
2105 #define $ac_tr_hdr 1
2109 echo "$ac_t""no" 1>&6
2113 for ac_func
in getpagesize
2115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2116 echo "configure:2117: checking for $ac_func" >&5
2117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2120 cat > conftest.
$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2123 /* System header to define __stub macros and hopefully few prototypes,
2124 which can conflict with char $ac_func(); below. */
2126 /* Override any gcc2 internal prototype to avoid an error. */
2127 /* We use char because int might match the return type of a gcc2
2128 builtin and then its argument prototype would still apply. */
2133 /* The GNU C library defines this for functions which it implements
2134 to always fail with ENOSYS. Some functions are actually named
2135 something starting with __ and the normal name is an alias. */
2136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2144 if { (eval echo configure
:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2146 eval "ac_cv_func_$ac_func=yes"
2148 echo "configure: failed program was:" >&5
2149 cat conftest.
$ac_ext >&5
2151 eval "ac_cv_func_$ac_func=no"
2156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2157 echo "$ac_t""yes" 1>&6
2158 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2159 cat >> confdefs.h
<<EOF
2160 #define $ac_tr_func 1
2164 echo "$ac_t""no" 1>&6
2168 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2169 echo "configure:2170: checking for working mmap" >&5
2170 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 if test "$cross_compiling" = yes; then
2174 ac_cv_func_mmap_fixed_mapped
=no
2176 cat > conftest.
$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2180 /* Thanks to Mike Haertel and Jim Avera for this test.
2181 Here is a matrix of mmap possibilities:
2182 mmap private not fixed
2183 mmap private fixed at somewhere currently unmapped
2184 mmap private fixed at somewhere already mapped
2185 mmap shared not fixed
2186 mmap shared fixed at somewhere currently unmapped
2187 mmap shared fixed at somewhere already mapped
2188 For private mappings, we should verify that changes cannot be read()
2189 back from the file, nor mmap's back from the file at a different
2190 address. (There have been systems where private was not correctly
2191 implemented like the infamous i386 svr4.0, and systems where the
2192 VM page cache was not coherent with the filesystem buffer cache
2193 like early versions of FreeBSD and possibly contemporary NetBSD.)
2194 For shared mappings, we should conversely verify that changes get
2195 propogated back to all the places they're supposed to be.
2197 Grep wants private fixed already mapped.
2198 The main things grep needs to know about mmap are:
2199 * does it exist and is it safe to write into the mmap'd area
2200 * how to use it (BSD variants) */
2201 #include <sys/types.h>
2203 #include <sys/mman.h>
2205 /* This mess was copied from the GNU getpagesize.h. */
2206 #ifndef HAVE_GETPAGESIZE
2207 # ifdef HAVE_UNISTD_H
2208 # include <unistd.h>
2211 /* Assume that all systems that can run configure have sys/param.h. */
2212 # ifndef HAVE_SYS_PARAM_H
2213 # define HAVE_SYS_PARAM_H 1
2216 # ifdef _SC_PAGESIZE
2217 # define getpagesize() sysconf(_SC_PAGESIZE)
2218 # else /* no _SC_PAGESIZE */
2219 # ifdef HAVE_SYS_PARAM_H
2220 # include <sys/param.h>
2221 # ifdef EXEC_PAGESIZE
2222 # define getpagesize() EXEC_PAGESIZE
2223 # else /* no EXEC_PAGESIZE */
2225 # define getpagesize() NBPG * CLSIZE
2228 # endif /* no CLSIZE */
2229 # else /* no NBPG */
2231 # define getpagesize() NBPC
2232 # else /* no NBPC */
2234 # define getpagesize() PAGESIZE
2235 # endif /* PAGESIZE */
2236 # endif /* no NBPC */
2237 # endif /* no NBPG */
2238 # endif /* no EXEC_PAGESIZE */
2239 # else /* no HAVE_SYS_PARAM_H */
2240 # define getpagesize() 8192 /* punt totally */
2241 # endif /* no HAVE_SYS_PARAM_H */
2242 # endif /* no _SC_PAGESIZE */
2244 #endif /* no HAVE_GETPAGESIZE */
2247 extern "C" { void *malloc(unsigned); }
2255 char *data, *data2, *data3;
2259 pagesize = getpagesize();
2262 * First, make a file with some known garbage in it.
2264 data = malloc(pagesize);
2267 for (i = 0; i < pagesize; ++i)
2268 *(data + i) = rand();
2270 fd = creat("conftestmmap", 0600);
2273 if (write(fd, data, pagesize) != pagesize)
2278 * Next, try to mmap the file at a fixed address which
2279 * already has something else allocated at it. If we can,
2280 * also make sure that we see the same garbage.
2282 fd = open("conftestmmap", O_RDWR);
2285 data2 = malloc(2 * pagesize);
2288 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2289 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2290 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2292 for (i = 0; i < pagesize; ++i)
2293 if (*(data + i) != *(data2 + i))
2297 * Finally, make sure that changes to the mapped area
2298 * do not percolate back to the file as seen by read().
2299 * (This is a bug on some variants of i386 svr4.0.)
2301 for (i = 0; i < pagesize; ++i)
2302 *(data2 + i) = *(data2 + i) + 1;
2303 data3 = malloc(pagesize);
2306 if (read(fd, data3, pagesize) != pagesize)
2308 for (i = 0; i < pagesize; ++i)
2309 if (*(data + i) != *(data3 + i))
2312 unlink("conftestmmap");
2317 if { (eval echo configure
:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2319 ac_cv_func_mmap_fixed_mapped
=yes
2321 echo "configure: failed program was:" >&5
2322 cat conftest.
$ac_ext >&5
2324 ac_cv_func_mmap_fixed_mapped
=no
2331 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2332 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2333 cat >> confdefs.h
<<\EOF
2340 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2341 unistd.h values.h sys
/param.h
2343 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_hdr" >&5
2346 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2349 cat > conftest.
$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2354 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2355 { (eval echo configure
:2356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2356 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2357 if test -z "$ac_err"; then
2359 eval "ac_cv_header_$ac_safe=yes"
2362 echo "configure: failed program was:" >&5
2363 cat conftest.
$ac_ext >&5
2365 eval "ac_cv_header_$ac_safe=no"
2369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2370 echo "$ac_t""yes" 1>&6
2371 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2372 cat >> confdefs.h
<<EOF
2373 #define $ac_tr_hdr 1
2377 echo "$ac_t""no" 1>&6
2381 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2382 __argz_count __argz_stringify __argz_next
2384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2385 echo "configure:2386: checking for $ac_func" >&5
2386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 cat > conftest.
$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2392 /* System header to define __stub macros and hopefully few prototypes,
2393 which can conflict with char $ac_func(); below. */
2395 /* Override any gcc2 internal prototype to avoid an error. */
2396 /* We use char because int might match the return type of a gcc2
2397 builtin and then its argument prototype would still apply. */
2402 /* The GNU C library defines this for functions which it implements
2403 to always fail with ENOSYS. Some functions are actually named
2404 something starting with __ and the normal name is an alias. */
2405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2413 if { (eval echo configure
:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2415 eval "ac_cv_func_$ac_func=yes"
2417 echo "configure: failed program was:" >&5
2418 cat conftest.
$ac_ext >&5
2420 eval "ac_cv_func_$ac_func=no"
2425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2426 echo "$ac_t""yes" 1>&6
2427 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2428 cat >> confdefs.h
<<EOF
2429 #define $ac_tr_func 1
2433 echo "$ac_t""no" 1>&6
2438 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2439 for ac_func
in stpcpy
2441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2442 echo "configure:2443: checking for $ac_func" >&5
2443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2446 cat > conftest.
$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 /* System header to define __stub macros and hopefully few prototypes,
2450 which can conflict with char $ac_func(); below. */
2452 /* Override any gcc2 internal prototype to avoid an error. */
2453 /* We use char because int might match the return type of a gcc2
2454 builtin and then its argument prototype would still apply. */
2459 /* The GNU C library defines this for functions which it implements
2460 to always fail with ENOSYS. Some functions are actually named
2461 something starting with __ and the normal name is an alias. */
2462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2470 if { (eval echo configure
:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2472 eval "ac_cv_func_$ac_func=yes"
2474 echo "configure: failed program was:" >&5
2475 cat conftest.
$ac_ext >&5
2477 eval "ac_cv_func_$ac_func=no"
2482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2483 echo "$ac_t""yes" 1>&6
2484 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2485 cat >> confdefs.h
<<EOF
2486 #define $ac_tr_func 1
2490 echo "$ac_t""no" 1>&6
2495 if test "${ac_cv_func_stpcpy}" = "yes"; then
2496 cat >> confdefs.h
<<\EOF
2497 #define HAVE_STPCPY 1
2502 if test $ac_cv_header_locale_h = yes; then
2503 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2504 echo "configure:2505: checking for LC_MESSAGES" >&5
2505 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2516 if { (eval echo configure
:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2518 am_cv_val_LC_MESSAGES
=yes
2520 echo "configure: failed program was:" >&5
2521 cat conftest.
$ac_ext >&5
2523 am_cv_val_LC_MESSAGES
=no
2528 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2529 if test $am_cv_val_LC_MESSAGES = yes; then
2530 cat >> confdefs.h
<<\EOF
2531 #define HAVE_LC_MESSAGES 1
2536 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2537 echo "configure:2538: checking whether NLS is requested" >&5
2538 # Check whether --enable-nls or --disable-nls was given.
2539 if test "${enable_nls+set}" = set; then
2540 enableval
="$enable_nls"
2546 echo "$ac_t""$USE_NLS" 1>&6
2549 USE_INCLUDED_LIBINTL
=no
2551 if test "$USE_NLS" = "yes"; then
2552 cat >> confdefs.h
<<\EOF
2553 #define ENABLE_NLS 1
2556 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2557 echo "configure:2558: checking whether included gettext is requested" >&5
2558 # Check whether --with-included-gettext or --without-included-gettext was given.
2559 if test "${with_included_gettext+set}" = set; then
2560 withval
="$with_included_gettext"
2561 nls_cv_force_use_gnu_gettext
=$withval
2563 nls_cv_force_use_gnu_gettext
=no
2566 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2568 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2569 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2571 nls_cv_header_libgt
=
2574 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2575 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2576 echo "configure:2577: checking for libintl.h" >&5
2577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 cat > conftest.
$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 #include <libintl.h>
2585 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2586 { (eval echo configure
:2587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2587 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2588 if test -z "$ac_err"; then
2590 eval "ac_cv_header_$ac_safe=yes"
2593 echo "configure: failed program was:" >&5
2594 cat conftest.
$ac_ext >&5
2596 eval "ac_cv_header_$ac_safe=no"
2600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2601 echo "$ac_t""yes" 1>&6
2602 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2603 echo "configure:2604: checking for gettext in libc" >&5
2604 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 cat > conftest.
$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 #include <libintl.h>
2612 return (int) gettext ("")
2615 if { (eval echo configure
:2616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2617 gt_cv_func_gettext_libc
=yes
2619 echo "configure: failed program was:" >&5
2620 cat conftest.
$ac_ext >&5
2622 gt_cv_func_gettext_libc
=no
2627 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2629 if test "$gt_cv_func_gettext_libc" != "yes"; then
2630 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2631 echo "configure:2632: checking for bindtextdomain in -lintl" >&5
2632 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6
2636 ac_save_LIBS
="$LIBS"
2638 cat > conftest.
$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641 /* Override any gcc2 internal prototype to avoid an error. */
2642 /* We use char because int might match the return type of a gcc2
2643 builtin and then its argument prototype would still apply. */
2644 char bindtextdomain();
2650 if { (eval echo configure
:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2652 eval "ac_cv_lib_$ac_lib_var=yes"
2654 echo "configure: failed program was:" >&5
2655 cat conftest.
$ac_ext >&5
2657 eval "ac_cv_lib_$ac_lib_var=no"
2660 LIBS
="$ac_save_LIBS"
2663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2664 echo "$ac_t""yes" 1>&6
2665 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2666 echo "configure:2667: checking for gettext in libintl" >&5
2667 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 cat > conftest.
$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2675 return (int) gettext ("")
2678 if { (eval echo configure
:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2680 gt_cv_func_gettext_libintl
=yes
2682 echo "configure: failed program was:" >&5
2683 cat conftest.
$ac_ext >&5
2685 gt_cv_func_gettext_libintl
=no
2690 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2692 echo "$ac_t""no" 1>&6
2697 if test "$gt_cv_func_gettext_libc" = "yes" \
2698 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2699 cat >> confdefs.h
<<\EOF
2700 #define HAVE_GETTEXT 1
2703 # Extract the first word of "msgfmt", so it can be a program name with args.
2704 set dummy msgfmt
; ac_word
=$2
2705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2706 echo "configure:2707: checking for $ac_word" >&5
2707 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2712 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2715 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2716 for ac_dir
in $PATH; do
2717 test -z "$ac_dir" && ac_dir
=.
2718 if test -f $ac_dir/$ac_word; then
2719 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2720 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2726 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2730 MSGFMT
="$ac_cv_path_MSGFMT"
2731 if test -n "$MSGFMT"; then
2732 echo "$ac_t""$MSGFMT" 1>&6
2734 echo "$ac_t""no" 1>&6
2736 if test "$MSGFMT" != "no"; then
2737 for ac_func
in dcgettext
2739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2740 echo "configure:2741: checking for $ac_func" >&5
2741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 cat > conftest.
$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2747 /* System header to define __stub macros and hopefully few prototypes,
2748 which can conflict with char $ac_func(); below. */
2750 /* Override any gcc2 internal prototype to avoid an error. */
2751 /* We use char because int might match the return type of a gcc2
2752 builtin and then its argument prototype would still apply. */
2757 /* The GNU C library defines this for functions which it implements
2758 to always fail with ENOSYS. Some functions are actually named
2759 something starting with __ and the normal name is an alias. */
2760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2768 if { (eval echo configure
:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2770 eval "ac_cv_func_$ac_func=yes"
2772 echo "configure: failed program was:" >&5
2773 cat conftest.
$ac_ext >&5
2775 eval "ac_cv_func_$ac_func=no"
2780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2781 echo "$ac_t""yes" 1>&6
2782 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2783 cat >> confdefs.h
<<EOF
2784 #define $ac_tr_func 1
2788 echo "$ac_t""no" 1>&6
2792 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2793 set dummy gmsgfmt
; ac_word
=$2
2794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2795 echo "configure:2796: checking for $ac_word" >&5
2796 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2801 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2804 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2807 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2809 for ac_dir
in $ac_dummy; do
2810 test -z "$ac_dir" && ac_dir
=.
2811 if test -f $ac_dir/$ac_word; then
2812 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2817 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2821 GMSGFMT
="$ac_cv_path_GMSGFMT"
2822 if test -n "$GMSGFMT"; then
2823 echo "$ac_t""$GMSGFMT" 1>&6
2825 echo "$ac_t""no" 1>&6
2828 # Extract the first word of "xgettext", so it can be a program name with args.
2829 set dummy xgettext
; ac_word
=$2
2830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2831 echo "configure:2832: checking for $ac_word" >&5
2832 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2837 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2840 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2841 for ac_dir
in $PATH; do
2842 test -z "$ac_dir" && ac_dir
=.
2843 if test -f $ac_dir/$ac_word; then
2844 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2845 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2851 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2855 XGETTEXT
="$ac_cv_path_XGETTEXT"
2856 if test -n "$XGETTEXT"; then
2857 echo "$ac_t""$XGETTEXT" 1>&6
2859 echo "$ac_t""no" 1>&6
2862 cat > conftest.
$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2867 extern int _nl_msg_cat_cntr;
2868 return _nl_msg_cat_cntr
2871 if { (eval echo configure
:2872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2876 echo "configure: failed program was:" >&5
2877 cat conftest.
$ac_ext >&5
2888 echo "$ac_t""no" 1>&6
2893 if test "$CATOBJEXT" = "NONE"; then
2894 nls_cv_use_gnu_gettext
=yes
2898 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2899 INTLOBJS
="\$(GETTOBJS)"
2900 # Extract the first word of "msgfmt", so it can be a program name with args.
2901 set dummy msgfmt
; ac_word
=$2
2902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2903 echo "configure:2904: checking for $ac_word" >&5
2904 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2909 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2912 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2913 for ac_dir
in $PATH; do
2914 test -z "$ac_dir" && ac_dir
=.
2915 if test -f $ac_dir/$ac_word; then
2916 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2917 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2923 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2927 MSGFMT
="$ac_cv_path_MSGFMT"
2928 if test -n "$MSGFMT"; then
2929 echo "$ac_t""$MSGFMT" 1>&6
2931 echo "$ac_t""no" 1>&6
2934 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2935 set dummy gmsgfmt
; ac_word
=$2
2936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2937 echo "configure:2938: checking for $ac_word" >&5
2938 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2943 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2946 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2949 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2951 for ac_dir
in $ac_dummy; do
2952 test -z "$ac_dir" && ac_dir
=.
2953 if test -f $ac_dir/$ac_word; then
2954 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2959 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2963 GMSGFMT
="$ac_cv_path_GMSGFMT"
2964 if test -n "$GMSGFMT"; then
2965 echo "$ac_t""$GMSGFMT" 1>&6
2967 echo "$ac_t""no" 1>&6
2970 # Extract the first word of "xgettext", so it can be a program name with args.
2971 set dummy xgettext
; ac_word
=$2
2972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2973 echo "configure:2974: checking for $ac_word" >&5
2974 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2979 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2982 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2983 for ac_dir
in $PATH; do
2984 test -z "$ac_dir" && ac_dir
=.
2985 if test -f $ac_dir/$ac_word; then
2986 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2987 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2993 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2997 XGETTEXT
="$ac_cv_path_XGETTEXT"
2998 if test -n "$XGETTEXT"; then
2999 echo "$ac_t""$XGETTEXT" 1>&6
3001 echo "$ac_t""no" 1>&6
3005 USE_INCLUDED_LIBINTL
=yes
3009 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3011 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3012 nls_cv_header_intl
=libintl.h
3013 nls_cv_header_libgt
=libgettext.h
3016 if test "$XGETTEXT" != ":"; then
3017 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3020 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3025 # We need to process the po/ directory.
3029 nls_cv_header_intl
=libintl.h
3030 nls_cv_header_libgt
=libgettext.h
3033 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3034 # because some of the sources are only built for this goal.
3035 if test "$PACKAGE" = gettext; then
3037 USE_INCLUDED_LIBINTL
=yes
3040 for lang
in $ALL_LINGUAS; do
3041 GMOFILES
="$GMOFILES $lang.gmo"
3042 POFILES
="$POFILES $lang.po"
3058 if test "x$CATOBJEXT" != "x"; then
3059 if test "x$ALL_LINGUAS" = "x"; then
3062 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3063 echo "configure:3064: checking for catalogs to be installed" >&5
3065 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3066 case "$ALL_LINGUAS" in
3067 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3070 LINGUAS
=$NEW_LINGUAS
3071 echo "$ac_t""$LINGUAS" 1>&6
3074 if test -n "$LINGUAS"; then
3075 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3079 if test $ac_cv_header_locale_h = yes; then
3080 INCLUDE_LOCALE_H
="#include <locale.h>"
3083 /* The system does not provide the header <locale.h>. Take care yourself. */"
3087 if test -f $srcdir/po2tbl.
sed.
in; then
3088 if test "$CATOBJEXT" = ".cat"; then
3089 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3090 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3091 echo "configure:3092: checking for linux/version.h" >&5
3092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3093 echo $ac_n "(cached) $ac_c" 1>&6
3095 cat > conftest.
$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3098 #include <linux/version.h>
3100 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3101 { (eval echo configure
:3102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3102 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3103 if test -z "$ac_err"; then
3105 eval "ac_cv_header_$ac_safe=yes"
3108 echo "configure: failed program was:" >&5
3109 cat conftest.
$ac_ext >&5
3111 eval "ac_cv_header_$ac_safe=no"
3115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3116 echo "$ac_t""yes" 1>&6
3119 echo "$ac_t""no" 1>&6
3124 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3126 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3127 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3130 if test "$PACKAGE" = "gettext"; then
3140 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3146 if test -d $srcdir/po
; then
3147 test -d po || mkdir po
3148 if test "x$srcdir" != "x."; then
3149 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3150 posrcprefix
="$srcdir/"
3152 posrcprefix
="../$srcdir/"
3158 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3159 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3168 configdirs
="doc testsuite"
3171 .
${srcdir}/configure.
host
3173 .
${srcdir}/configure.tgt
3176 # Find a good install program. We prefer a C program (faster),
3177 # so one script is as good as another. But avoid the broken or
3178 # incompatible versions:
3179 # SysV /etc/install, /usr/sbin/install
3180 # SunOS /usr/etc/install
3181 # IRIX /sbin/install
3183 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3184 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3185 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3186 # ./install, which can be erroneously created by make from ./install.sh.
3187 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3188 echo "configure:3189: checking for a BSD compatible install" >&5
3189 if test -z "$INSTALL"; then
3190 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3194 for ac_dir
in $PATH; do
3195 # Account for people who put trailing slashes in PATH elements.
3197 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3199 # OSF1 and SCO ODT 3.0 have their own names for install.
3200 # Don't use installbsd from OSF since it installs stuff as root
3202 for ac_prog
in ginstall scoinst
install; do
3203 if test -f $ac_dir/$ac_prog; then
3204 if test $ac_prog = install &&
3205 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3206 # AIX install. It has an incompatible calling convention.
3209 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3220 if test "${ac_cv_path_install+set}" = set; then
3221 INSTALL
="$ac_cv_path_install"
3223 # As a last resort, use the slow shell script. We don't cache a
3224 # path for INSTALL within a source directory, because that will
3225 # break other packages using the cache if that directory is
3226 # removed, or if the path is relative.
3227 INSTALL
="$ac_install_sh"
3230 echo "$ac_t""$INSTALL" 1>&6
3232 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3233 # It thinks the first close brace ends the variable substitution.
3234 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3236 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3238 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3240 if test $host != $build; then
3241 ac_tool_prefix
=${host_alias}-
3246 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3247 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3249 echo "configure:3250: checking for $ac_word" >&5
3250 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 if test -n "$AR"; then
3254 ac_cv_prog_AR
="$AR" # Let the user override the test.
3256 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3258 for ac_dir
in $ac_dummy; do
3259 test -z "$ac_dir" && ac_dir
=.
3260 if test -f $ac_dir/$ac_word; then
3261 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3266 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3270 if test -n "$AR"; then
3271 echo "$ac_t""$AR" 1>&6
3273 echo "$ac_t""no" 1>&6
3278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3279 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3281 echo "configure:3282: checking for $ac_word" >&5
3282 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 if test -n "$RANLIB"; then
3286 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3288 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3290 for ac_dir
in $ac_dummy; do
3291 test -z "$ac_dir" && ac_dir
=.
3292 if test -f $ac_dir/$ac_word; then
3293 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3300 RANLIB
="$ac_cv_prog_RANLIB"
3301 if test -n "$RANLIB"; then
3302 echo "$ac_t""$RANLIB" 1>&6
3304 echo "$ac_t""no" 1>&6
3308 if test -z "$ac_cv_prog_RANLIB"; then
3309 if test -n "$ac_tool_prefix"; then
3310 # Extract the first word of "ranlib", so it can be a program name with args.
3311 set dummy ranlib
; ac_word
=$2
3312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3313 echo "configure:3314: checking for $ac_word" >&5
3314 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3317 if test -n "$RANLIB"; then
3318 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3320 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3322 for ac_dir
in $ac_dummy; do
3323 test -z "$ac_dir" && ac_dir
=.
3324 if test -f $ac_dir/$ac_word; then
3325 ac_cv_prog_RANLIB
="ranlib"
3330 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3333 RANLIB
="$ac_cv_prog_RANLIB"
3334 if test -n "$RANLIB"; then
3335 echo "$ac_t""$RANLIB" 1>&6
3337 echo "$ac_t""no" 1>&6
3345 for ac_prog
in 'bison -y' byacc
3347 # Extract the first word of "$ac_prog", so it can be a program name with args.
3348 set dummy
$ac_prog; ac_word
=$2
3349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_word" >&5
3351 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 if test -n "$YACC"; then
3355 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3357 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3359 for ac_dir
in $ac_dummy; do
3360 test -z "$ac_dir" && ac_dir
=.
3361 if test -f $ac_dir/$ac_word; then
3362 ac_cv_prog_YACC
="$ac_prog"
3369 YACC
="$ac_cv_prog_YACC"
3370 if test -n "$YACC"; then
3371 echo "$ac_t""$YACC" 1>&6
3373 echo "$ac_t""no" 1>&6
3376 test -n "$YACC" && break
3378 test -n "$YACC" || YACC
="yacc"
3381 if test "$program_transform_name" = s
,x
,x
,; then
3382 program_transform_name
=
3384 # Double any \ or $. echo might interpret backslashes.
3385 cat <<\EOF_SED
> conftestsed
3386 s
,\\,\\\\,g
; s
,\$
,$$
,g
3388 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3391 test "$program_prefix" != NONE
&&
3392 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3393 # Use a double $ so make ignores it.
3394 test "$program_suffix" != NONE
&&
3395 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3397 # sed with no file args requires a program.
3398 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3401 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3402 echo "configure:3403: checking return type of signal handlers" >&5
3403 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 cat > conftest.
$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 #include <sys/types.h>
3415 extern "C" void (*signal (int, void (*)(int)))(int);
3417 void (*signal ()) ();
3424 if { (eval echo configure
:3425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3426 ac_cv_type_signal
=void
3428 echo "configure: failed program was:" >&5
3429 cat conftest.
$ac_ext >&5
3431 ac_cv_type_signal
=int
3436 echo "$ac_t""$ac_cv_type_signal" 1>&6
3437 cat >> confdefs.h
<<EOF
3438 #define RETSIGTYPE $ac_cv_type_signal
3443 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3444 echo "configure:3445: checking for ANSI C header files" >&5
3445 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 cat > conftest.
$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3456 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3457 { (eval echo configure
:3458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3458 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3459 if test -z "$ac_err"; then
3461 ac_cv_header_stdc
=yes
3464 echo "configure: failed program was:" >&5
3465 cat conftest.
$ac_ext >&5
3467 ac_cv_header_stdc
=no
3471 if test $ac_cv_header_stdc = yes; then
3472 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3473 cat > conftest.
$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479 egrep "memchr" >/dev
/null
2>&1; then
3483 ac_cv_header_stdc
=no
3489 if test $ac_cv_header_stdc = yes; then
3490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3491 cat > conftest.
$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3497 egrep "free" >/dev
/null
2>&1; then
3501 ac_cv_header_stdc
=no
3507 if test $ac_cv_header_stdc = yes; then
3508 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3509 if test "$cross_compiling" = yes; then
3512 cat > conftest.
$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3516 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3517 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3518 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3519 int main () { int i; for (i = 0; i < 256; i++)
3520 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3524 if { (eval echo configure
:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3528 echo "configure: failed program was:" >&5
3529 cat conftest.
$ac_ext >&5
3531 ac_cv_header_stdc
=no
3539 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3540 if test $ac_cv_header_stdc = yes; then
3541 cat >> confdefs.h
<<\EOF
3542 #define STDC_HEADERS 1
3547 for ac_hdr
in ctype.h curses.h endian.h libintl.h link.h \
3548 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3549 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h \
3550 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3551 wchar.h wctype.h asm
/debugreg.h
3553 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3555 echo "configure:3556: checking for $ac_hdr" >&5
3556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 cat > conftest.
$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3564 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3565 { (eval echo configure
:3566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3566 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3567 if test -z "$ac_err"; then
3569 eval "ac_cv_header_$ac_safe=yes"
3572 echo "configure: failed program was:" >&5
3573 cat conftest.
$ac_ext >&5
3575 eval "ac_cv_header_$ac_safe=no"
3579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3581 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3582 cat >> confdefs.h
<<EOF
3583 #define $ac_tr_hdr 1
3587 echo "$ac_t""no" 1>&6
3592 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3593 echo "configure:3594: checking whether stat file-mode macros are broken" >&5
3594 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 cat > conftest.
$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <sys/types.h>
3601 #include <sys/stat.h>
3603 #if defined(S_ISBLK) && defined(S_IFDIR)
3604 # if S_ISBLK (S_IFDIR)
3609 #if defined(S_ISBLK) && defined(S_IFCHR)
3610 # if S_ISBLK (S_IFCHR)
3615 #if defined(S_ISLNK) && defined(S_IFREG)
3616 # if S_ISLNK (S_IFREG)
3621 #if defined(S_ISSOCK) && defined(S_IFREG)
3622 # if S_ISSOCK (S_IFREG)
3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629 egrep "You lose" >/dev
/null
2>&1; then
3631 ac_cv_header_stat_broken
=yes
3634 ac_cv_header_stat_broken
=no
3640 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3641 if test $ac_cv_header_stat_broken = yes; then
3642 cat >> confdefs.h
<<\EOF
3643 #define STAT_MACROS_BROKEN 1
3649 echo $ac_n "checking for working const""... $ac_c" 1>&6
3650 echo "configure:3651: checking for working const" >&5
3651 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 cat > conftest.
$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3660 /* Ultrix mips cc rejects this. */
3661 typedef int charset[2]; const charset x;
3662 /* SunOS 4.1.1 cc rejects this. */
3663 char const *const *ccp;
3665 /* NEC SVR4.0.2 mips cc rejects this. */
3666 struct point {int x, y;};
3667 static struct point const zero = {0,0};
3668 /* AIX XL C 1.02.0.0 rejects this.
3669 It does not let you subtract one const X* pointer from another in an arm
3670 of an if-expression whose if-part is not a constant expression */
3671 const char *g = "string";
3672 ccp = &g + (g ? g-g : 0);
3673 /* HPUX 7.0 cc rejects these. */
3676 ccp = (char const *const *) p;
3677 { /* SCO 3.2v4 cc rejects this. */
3679 char const *s = 0 ? (char *) 0 : (char const *) 0;
3683 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3685 const int *foo = &x[0];
3688 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3689 typedef const int *iptr;
3693 { /* AIX XL C 1.02.0.0 rejects this saying
3694 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3695 struct s { int j; const int *ap[3]; };
3696 struct s *b; b->j = 5;
3698 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3704 if { (eval echo configure
:3705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3708 echo "configure: failed program was:" >&5
3709 cat conftest.
$ac_ext >&5
3716 echo "$ac_t""$ac_cv_c_const" 1>&6
3717 if test $ac_cv_c_const = no
; then
3718 cat >> confdefs.h
<<\EOF
3725 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc
3727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3728 echo "configure:3729: checking for $ac_func" >&5
3729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3732 cat > conftest.
$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 /* System header to define __stub macros and hopefully few prototypes,
3736 which can conflict with char $ac_func(); below. */
3738 /* Override any gcc2 internal prototype to avoid an error. */
3739 /* We use char because int might match the return type of a gcc2
3740 builtin and then its argument prototype would still apply. */
3745 /* The GNU C library defines this for functions which it implements
3746 to always fail with ENOSYS. Some functions are actually named
3747 something starting with __ and the normal name is an alias. */
3748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3756 if { (eval echo configure
:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3758 eval "ac_cv_func_$ac_func=yes"
3760 echo "configure: failed program was:" >&5
3761 cat conftest.
$ac_ext >&5
3763 eval "ac_cv_func_$ac_func=no"
3768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3769 echo "$ac_t""yes" 1>&6
3770 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3771 cat >> confdefs.h
<<EOF
3772 #define $ac_tr_func 1
3776 echo "$ac_t""no" 1>&6
3780 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3781 # for constant arguments. Useless!
3782 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3783 echo "configure:3784: checking for working alloca.h" >&5
3784 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3787 cat > conftest.
$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3792 char *p = alloca(2 * sizeof(int));
3795 if { (eval echo configure
:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3797 ac_cv_header_alloca_h
=yes
3799 echo "configure: failed program was:" >&5
3800 cat conftest.
$ac_ext >&5
3802 ac_cv_header_alloca_h
=no
3807 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3808 if test $ac_cv_header_alloca_h = yes; then
3809 cat >> confdefs.h
<<\EOF
3810 #define HAVE_ALLOCA_H 1
3815 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3816 echo "configure:3817: checking for alloca" >&5
3817 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 cat > conftest.
$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3825 # define alloca __builtin_alloca
3828 # include <malloc.h>
3829 # define alloca _alloca
3832 # include <alloca.h>
3837 # ifndef alloca /* predefined by HP cc +Olibcalls */
3846 char *p = (char *) alloca(1);
3849 if { (eval echo configure
:3850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3851 ac_cv_func_alloca_works
=yes
3853 echo "configure: failed program was:" >&5
3854 cat conftest.
$ac_ext >&5
3856 ac_cv_func_alloca_works
=no
3861 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3862 if test $ac_cv_func_alloca_works = yes; then
3863 cat >> confdefs.h
<<\EOF
3864 #define HAVE_ALLOCA 1
3869 if test $ac_cv_func_alloca_works = no
; then
3870 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3871 # that cause trouble. Some versions do not even contain alloca or
3872 # contain a buggy version. If you still want to use their alloca,
3873 # use ar to extract alloca.o from them instead of compiling alloca.c.
3874 ALLOCA
=alloca.
${ac_objext}
3875 cat >> confdefs.h
<<\EOF
3880 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3881 echo "configure:3882: checking whether alloca needs Cray hooks" >&5
3882 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3885 cat > conftest.
$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3888 #if defined(CRAY) && ! defined(CRAY2)
3895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3896 egrep "webecray" >/dev
/null
2>&1; then
3907 echo "$ac_t""$ac_cv_os_cray" 1>&6
3908 if test $ac_cv_os_cray = yes; then
3909 for ac_func
in _getb67 GETB67 getb67
; do
3910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3911 echo "configure:3912: checking for $ac_func" >&5
3912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 cat > conftest.
$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 /* System header to define __stub macros and hopefully few prototypes,
3919 which can conflict with char $ac_func(); below. */
3921 /* Override any gcc2 internal prototype to avoid an error. */
3922 /* We use char because int might match the return type of a gcc2
3923 builtin and then its argument prototype would still apply. */
3928 /* The GNU C library defines this for functions which it implements
3929 to always fail with ENOSYS. Some functions are actually named
3930 something starting with __ and the normal name is an alias. */
3931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3939 if { (eval echo configure
:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3941 eval "ac_cv_func_$ac_func=yes"
3943 echo "configure: failed program was:" >&5
3944 cat conftest.
$ac_ext >&5
3946 eval "ac_cv_func_$ac_func=no"
3951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3952 echo "$ac_t""yes" 1>&6
3953 cat >> confdefs.h
<<EOF
3954 #define CRAY_STACKSEG_END $ac_func
3959 echo "$ac_t""no" 1>&6
3965 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3966 echo "configure:3967: checking stack direction for C alloca" >&5
3967 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 if test "$cross_compiling" = yes; then
3971 ac_cv_c_stack_direction
=0
3973 cat > conftest.
$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 find_stack_direction ()
3978 static char *addr = 0;
3983 return find_stack_direction ();
3986 return (&dummy > addr) ? 1 : -1;
3990 exit (find_stack_direction() < 0);
3993 if { (eval echo configure
:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3995 ac_cv_c_stack_direction
=1
3997 echo "configure: failed program was:" >&5
3998 cat conftest.
$ac_ext >&5
4000 ac_cv_c_stack_direction
=-1
4007 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4008 cat >> confdefs.h
<<EOF
4009 #define STACK_DIRECTION $ac_cv_c_stack_direction
4015 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4016 echo "configure:4017: checking whether malloc must be declared" >&5
4017 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4020 cat > conftest.
$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4025 #ifdef HAVE_STRING_H
4028 #ifdef HAVE_STRINGS_H
4029 #include <strings.h>
4032 #ifdef HAVE_STDLIB_H
4035 #ifdef HAVE_UNISTD_H
4039 char *(*pfn) = (char *(*)) malloc
4042 if { (eval echo configure
:4043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4044 bfd_cv_decl_needed_malloc
=no
4046 echo "configure: failed program was:" >&5
4047 cat conftest.
$ac_ext >&5
4049 bfd_cv_decl_needed_malloc
=yes
4054 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4055 if test $bfd_cv_decl_needed_malloc = yes; then
4056 bfd_tr_decl
=NEED_DECLARATION_
`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4057 cat >> confdefs.h
<<EOF
4058 #define $bfd_tr_decl 1
4063 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4064 echo "configure:4065: checking whether realloc must be declared" >&5
4065 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4068 cat > conftest.
$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4073 #ifdef HAVE_STRING_H
4076 #ifdef HAVE_STRINGS_H
4077 #include <strings.h>
4080 #ifdef HAVE_STDLIB_H
4083 #ifdef HAVE_UNISTD_H
4087 char *(*pfn) = (char *(*)) realloc
4090 if { (eval echo configure
:4091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4092 bfd_cv_decl_needed_realloc
=no
4094 echo "configure: failed program was:" >&5
4095 cat conftest.
$ac_ext >&5
4097 bfd_cv_decl_needed_realloc
=yes
4102 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4103 if test $bfd_cv_decl_needed_realloc = yes; then
4104 bfd_tr_decl
=NEED_DECLARATION_
`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4105 cat >> confdefs.h
<<EOF
4106 #define $bfd_tr_decl 1
4111 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4112 echo "configure:4113: checking whether free must be declared" >&5
4113 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4114 echo $ac_n "(cached) $ac_c" 1>&6
4116 cat > conftest.
$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4121 #ifdef HAVE_STRING_H
4124 #ifdef HAVE_STRINGS_H
4125 #include <strings.h>
4128 #ifdef HAVE_STDLIB_H
4131 #ifdef HAVE_UNISTD_H
4135 char *(*pfn) = (char *(*)) free
4138 if { (eval echo configure
:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4140 bfd_cv_decl_needed_free
=no
4142 echo "configure: failed program was:" >&5
4143 cat conftest.
$ac_ext >&5
4145 bfd_cv_decl_needed_free
=yes
4150 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4151 if test $bfd_cv_decl_needed_free = yes; then
4152 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4153 cat >> confdefs.h
<<EOF
4154 #define $bfd_tr_decl 1
4159 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4160 echo "configure:4161: checking whether strerror must be declared" >&5
4161 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4164 cat > conftest.
$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4169 #ifdef HAVE_STRING_H
4172 #ifdef HAVE_STRINGS_H
4173 #include <strings.h>
4176 #ifdef HAVE_STDLIB_H
4179 #ifdef HAVE_UNISTD_H
4183 char *(*pfn) = (char *(*)) strerror
4186 if { (eval echo configure
:4187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4188 bfd_cv_decl_needed_strerror
=no
4190 echo "configure: failed program was:" >&5
4191 cat conftest.
$ac_ext >&5
4193 bfd_cv_decl_needed_strerror
=yes
4198 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4199 if test $bfd_cv_decl_needed_strerror = yes; then
4200 bfd_tr_decl
=NEED_DECLARATION_
`echo strerror | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4201 cat >> confdefs.h
<<EOF
4202 #define $bfd_tr_decl 1
4207 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4208 echo "configure:4209: checking whether strdup must be declared" >&5
4209 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4212 cat > conftest.
$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4217 #ifdef HAVE_STRING_H
4220 #ifdef HAVE_STRINGS_H
4221 #include <strings.h>
4224 #ifdef HAVE_STDLIB_H
4227 #ifdef HAVE_UNISTD_H
4231 char *(*pfn) = (char *(*)) strdup
4234 if { (eval echo configure
:4235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4236 bfd_cv_decl_needed_strdup
=no
4238 echo "configure: failed program was:" >&5
4239 cat conftest.
$ac_ext >&5
4241 bfd_cv_decl_needed_strdup
=yes
4246 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4247 if test $bfd_cv_decl_needed_strdup = yes; then
4248 bfd_tr_decl
=NEED_DECLARATION_
`echo strdup | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4249 cat >> confdefs.h
<<EOF
4250 #define $bfd_tr_decl 1
4256 # If we are configured native on GNU/Linux, work around problems with sys/procfs.h
4257 if test "${target}" = "${host}"; then
4260 cat >> confdefs.h
<<\EOF
4261 #define START_INFERIOR_TRAPS_EXPECTED 2
4264 cat >> confdefs.h
<<\EOF
4265 #define sys_quotactl 1
4272 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
4273 echo "configure:4274: checking for gregset_t type" >&5
4274 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4277 cat > conftest.
$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 #include <sys/procfs.h>
4282 gregset_t *gregsetp = 0
4285 if { (eval echo configure
:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4287 gdb_cv_have_gregset_t
=yes
4289 echo "configure: failed program was:" >&5
4290 cat conftest.
$ac_ext >&5
4292 gdb_cv_have_gregset_t
=no
4297 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
4298 if test $gdb_cv_have_gregset_t = yes; then
4299 cat >> confdefs.h
<<\EOF
4300 #define HAVE_GREGSET_T 1
4305 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
4306 echo "configure:4307: checking for fpregset_t type" >&5
4307 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4310 cat > conftest.
$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 #include <sys/procfs.h>
4315 fpregset_t *fpregsetp = 0
4318 if { (eval echo configure
:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4320 gdb_cv_have_fpregset_t
=yes
4322 echo "configure: failed program was:" >&5
4323 cat conftest.
$ac_ext >&5
4325 gdb_cv_have_fpregset_t
=no
4330 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
4331 if test $gdb_cv_have_fpregset_t = yes; then
4332 cat >> confdefs.h
<<\EOF
4333 #define HAVE_FPREGSET_T 1
4338 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4339 echo "configure:4340: checking for main in -lm" >&5
4340 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
4341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4344 ac_save_LIBS
="$LIBS"
4346 cat > conftest.
$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4354 if { (eval echo configure
:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4356 eval "ac_cv_lib_$ac_lib_var=yes"
4358 echo "configure: failed program was:" >&5
4359 cat conftest.
$ac_ext >&5
4361 eval "ac_cv_lib_$ac_lib_var=no"
4364 LIBS
="$ac_save_LIBS"
4367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4368 echo "$ac_t""yes" 1>&6
4369 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4370 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4371 cat >> confdefs.h
<<EOF
4372 #define $ac_tr_lib 1
4378 echo "$ac_t""no" 1>&6
4382 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4383 echo "configure:4384: checking for wctype in -lc" >&5
4384 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4388 ac_save_LIBS
="$LIBS"
4390 cat > conftest.
$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 /* Override any gcc2 internal prototype to avoid an error. */
4394 /* We use char because int might match the return type of a gcc2
4395 builtin and then its argument prototype would still apply. */
4402 if { (eval echo configure
:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4404 eval "ac_cv_lib_$ac_lib_var=yes"
4406 echo "configure: failed program was:" >&5
4407 cat conftest.
$ac_ext >&5
4409 eval "ac_cv_lib_$ac_lib_var=no"
4412 LIBS
="$ac_save_LIBS"
4415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4416 echo "$ac_t""yes" 1>&6
4419 echo "$ac_t""no" 1>&6
4420 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4421 echo "configure:4422: checking for wctype in -lw" >&5
4422 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 ac_save_LIBS
="$LIBS"
4428 cat > conftest.
$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 /* Override any gcc2 internal prototype to avoid an error. */
4432 /* We use char because int might match the return type of a gcc2
4433 builtin and then its argument prototype would still apply. */
4440 if { (eval echo configure
:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4442 eval "ac_cv_lib_$ac_lib_var=yes"
4444 echo "configure: failed program was:" >&5
4445 cat conftest.
$ac_ext >&5
4447 eval "ac_cv_lib_$ac_lib_var=no"
4450 LIBS
="$ac_save_LIBS"
4453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4454 echo "$ac_t""yes" 1>&6
4455 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4457 cat >> confdefs.h
<<EOF
4458 #define $ac_tr_lib 1
4464 echo "$ac_t""no" 1>&6
4471 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4472 echo "configure:4473: checking for long long support in compiler" >&5
4473 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4476 cat > conftest.
$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4482 extern long long foo;
4483 switch (foo & 2) { case 0: return 1; }
4487 if { (eval echo configure
:4488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4489 gdb_cv_c_long_long
=yes
4491 echo "configure: failed program was:" >&5
4492 cat conftest.
$ac_ext >&5
4494 gdb_cv_c_long_long
=no
4499 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4500 if test $gdb_cv_c_long_long = yes; then
4501 cat >> confdefs.h
<<\EOF
4502 #define CC_HAS_LONG_LONG 1
4508 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4509 echo "configure:4510: checking for long long support in printf" >&5
4510 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4513 if test "$cross_compiling" = yes; then
4514 gdb_cv_printf_has_long_long
=no
4516 cat > conftest.
$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4523 l = (l << 16) + 0x0123;
4524 l = (l << 16) + 0x4567;
4525 l = (l << 16) + 0x89ab;
4526 l = (l << 16) + 0xcdef;
4527 sprintf (buf, "0x%016llx", l);
4528 return (strcmp ("0x0123456789abcdef", buf));
4531 if { (eval echo configure
:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4533 gdb_cv_printf_has_long_long
=yes
4535 echo "configure: failed program was:" >&5
4536 cat conftest.
$ac_ext >&5
4538 gdb_cv_printf_has_long_long
=no
4545 if test $gdb_cv_printf_has_long_long = yes; then
4546 cat >> confdefs.h
<<\EOF
4547 #define PRINTF_HAS_LONG_LONG 1
4551 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4554 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4555 echo "configure:4556: checking for long double support in compiler" >&5
4556 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 cat > conftest.
$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4567 if { (eval echo configure
:4568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4569 ac_cv_c_long_double
=yes
4571 echo "configure: failed program was:" >&5
4572 cat conftest.
$ac_ext >&5
4574 ac_cv_c_long_double
=no
4579 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4580 if test $ac_cv_c_long_double = yes; then
4581 cat >> confdefs.h
<<\EOF
4582 #define HAVE_LONG_DOUBLE 1
4588 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4589 echo "configure:4590: checking for long double support in printf" >&5
4590 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4593 if test "$cross_compiling" = yes; then
4594 gdb_cv_printf_has_long_double
=no
4596 cat > conftest.
$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4602 long double f = 3.141592653;
4603 sprintf (buf, "%Lg", f);
4604 return (strncmp ("3.14159", buf, 7));
4607 if { (eval echo configure
:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4609 gdb_cv_printf_has_long_double
=yes
4611 echo "configure: failed program was:" >&5
4612 cat conftest.
$ac_ext >&5
4614 gdb_cv_printf_has_long_double
=no
4621 if test $gdb_cv_printf_has_long_double = yes; then
4622 cat >> confdefs.h
<<\EOF
4623 #define PRINTF_HAS_LONG_DOUBLE 1
4627 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4630 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4631 echo "configure:4632: checking for long double support in scanf" >&5
4632 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4635 if test "$cross_compiling" = yes; then
4636 gdb_cv_scanf_has_long_double
=no
4638 cat > conftest.
$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4643 char *buf = "3.141592653";
4645 sscanf (buf, "%Lg", &f);
4646 return !(f > 3.14159 && f < 3.14160);
4649 if { (eval echo configure
:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4651 gdb_cv_scanf_has_long_double
=yes
4653 echo "configure: failed program was:" >&5
4654 cat conftest.
$ac_ext >&5
4656 gdb_cv_scanf_has_long_double
=no
4663 if test $gdb_cv_scanf_has_long_double = yes; then
4664 cat >> confdefs.h
<<\EOF
4665 #define SCANF_HAS_LONG_DOUBLE 1
4669 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4671 for ac_hdr
in unistd.h
4673 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4675 echo "configure:4676: checking for $ac_hdr" >&5
4676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4679 cat > conftest.
$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4684 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4685 { (eval echo configure
:4686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4686 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4687 if test -z "$ac_err"; then
4689 eval "ac_cv_header_$ac_safe=yes"
4692 echo "configure: failed program was:" >&5
4693 cat conftest.
$ac_ext >&5
4695 eval "ac_cv_header_$ac_safe=no"
4699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4700 echo "$ac_t""yes" 1>&6
4701 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4702 cat >> confdefs.h
<<EOF
4703 #define $ac_tr_hdr 1
4707 echo "$ac_t""no" 1>&6
4711 for ac_func
in getpagesize
4713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_func" >&5
4715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 cat > conftest.
$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 /* System header to define __stub macros and hopefully few prototypes,
4722 which can conflict with char $ac_func(); below. */
4724 /* Override any gcc2 internal prototype to avoid an error. */
4725 /* We use char because int might match the return type of a gcc2
4726 builtin and then its argument prototype would still apply. */
4731 /* The GNU C library defines this for functions which it implements
4732 to always fail with ENOSYS. Some functions are actually named
4733 something starting with __ and the normal name is an alias. */
4734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4742 if { (eval echo configure
:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4744 eval "ac_cv_func_$ac_func=yes"
4746 echo "configure: failed program was:" >&5
4747 cat conftest.
$ac_ext >&5
4749 eval "ac_cv_func_$ac_func=no"
4754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4755 echo "$ac_t""yes" 1>&6
4756 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4757 cat >> confdefs.h
<<EOF
4758 #define $ac_tr_func 1
4762 echo "$ac_t""no" 1>&6
4766 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4767 echo "configure:4768: checking for working mmap" >&5
4768 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4771 if test "$cross_compiling" = yes; then
4772 ac_cv_func_mmap_fixed_mapped
=no
4774 cat > conftest.
$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4778 /* Thanks to Mike Haertel and Jim Avera for this test.
4779 Here is a matrix of mmap possibilities:
4780 mmap private not fixed
4781 mmap private fixed at somewhere currently unmapped
4782 mmap private fixed at somewhere already mapped
4783 mmap shared not fixed
4784 mmap shared fixed at somewhere currently unmapped
4785 mmap shared fixed at somewhere already mapped
4786 For private mappings, we should verify that changes cannot be read()
4787 back from the file, nor mmap's back from the file at a different
4788 address. (There have been systems where private was not correctly
4789 implemented like the infamous i386 svr4.0, and systems where the
4790 VM page cache was not coherent with the filesystem buffer cache
4791 like early versions of FreeBSD and possibly contemporary NetBSD.)
4792 For shared mappings, we should conversely verify that changes get
4793 propogated back to all the places they're supposed to be.
4795 Grep wants private fixed already mapped.
4796 The main things grep needs to know about mmap are:
4797 * does it exist and is it safe to write into the mmap'd area
4798 * how to use it (BSD variants) */
4799 #include <sys/types.h>
4801 #include <sys/mman.h>
4803 /* This mess was copied from the GNU getpagesize.h. */
4804 #ifndef HAVE_GETPAGESIZE
4805 # ifdef HAVE_UNISTD_H
4806 # include <unistd.h>
4809 /* Assume that all systems that can run configure have sys/param.h. */
4810 # ifndef HAVE_SYS_PARAM_H
4811 # define HAVE_SYS_PARAM_H 1
4814 # ifdef _SC_PAGESIZE
4815 # define getpagesize() sysconf(_SC_PAGESIZE)
4816 # else /* no _SC_PAGESIZE */
4817 # ifdef HAVE_SYS_PARAM_H
4818 # include <sys/param.h>
4819 # ifdef EXEC_PAGESIZE
4820 # define getpagesize() EXEC_PAGESIZE
4821 # else /* no EXEC_PAGESIZE */
4823 # define getpagesize() NBPG * CLSIZE
4826 # endif /* no CLSIZE */
4827 # else /* no NBPG */
4829 # define getpagesize() NBPC
4830 # else /* no NBPC */
4832 # define getpagesize() PAGESIZE
4833 # endif /* PAGESIZE */
4834 # endif /* no NBPC */
4835 # endif /* no NBPG */
4836 # endif /* no EXEC_PAGESIZE */
4837 # else /* no HAVE_SYS_PARAM_H */
4838 # define getpagesize() 8192 /* punt totally */
4839 # endif /* no HAVE_SYS_PARAM_H */
4840 # endif /* no _SC_PAGESIZE */
4842 #endif /* no HAVE_GETPAGESIZE */
4845 extern "C" { void *malloc(unsigned); }
4853 char *data, *data2, *data3;
4857 pagesize = getpagesize();
4860 * First, make a file with some known garbage in it.
4862 data = malloc(pagesize);
4865 for (i = 0; i < pagesize; ++i)
4866 *(data + i) = rand();
4868 fd = creat("conftestmmap", 0600);
4871 if (write(fd, data, pagesize) != pagesize)
4876 * Next, try to mmap the file at a fixed address which
4877 * already has something else allocated at it. If we can,
4878 * also make sure that we see the same garbage.
4880 fd = open("conftestmmap", O_RDWR);
4883 data2 = malloc(2 * pagesize);
4886 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4887 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4888 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4890 for (i = 0; i < pagesize; ++i)
4891 if (*(data + i) != *(data2 + i))
4895 * Finally, make sure that changes to the mapped area
4896 * do not percolate back to the file as seen by read().
4897 * (This is a bug on some variants of i386 svr4.0.)
4899 for (i = 0; i < pagesize; ++i)
4900 *(data2 + i) = *(data2 + i) + 1;
4901 data3 = malloc(pagesize);
4904 if (read(fd, data3, pagesize) != pagesize)
4906 for (i = 0; i < pagesize; ++i)
4907 if (*(data + i) != *(data3 + i))
4910 unlink("conftestmmap");
4915 if { (eval echo configure
:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4917 ac_cv_func_mmap_fixed_mapped
=yes
4919 echo "configure: failed program was:" >&5
4920 cat conftest.
$ac_ext >&5
4922 ac_cv_func_mmap_fixed_mapped
=no
4929 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4930 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4931 cat >> confdefs.h
<<\EOF
4940 if test ${build} = ${host} -a ${host} = ${target} ; then
4943 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4944 echo "configure:4945: checking for HPUX/OSF thread support" >&5
4945 if test -f /usr
/include
/dce
/cma_config.h
; then
4946 if test "$GCC" = "yes" ; then
4947 echo "$ac_t""yes" 1>&6
4948 cat >> confdefs.h
<<\EOF
4949 #define HAVE_HPUX_THREAD_SUPPORT 1
4952 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
4953 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
4955 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4958 echo "$ac_t""no" 1>&6
4962 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
4963 echo "configure:4964: checking for Solaris thread debugging library" >&5
4964 if test -f /usr
/lib
/libthread_db.so
.1 ; then
4965 echo "$ac_t""yes" 1>&6
4966 cat >> confdefs.h
<<\EOF
4967 #define HAVE_THREAD_DB_LIB 1
4970 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
4971 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
4972 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4973 echo "configure:4974: checking for dlopen in -ldl" >&5
4974 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 ac_save_LIBS
="$LIBS"
4980 cat > conftest.
$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4983 /* Override any gcc2 internal prototype to avoid an error. */
4984 /* We use char because int might match the return type of a gcc2
4985 builtin and then its argument prototype would still apply. */
4992 if { (eval echo configure
:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4994 eval "ac_cv_lib_$ac_lib_var=yes"
4996 echo "configure: failed program was:" >&5
4997 cat conftest.
$ac_ext >&5
4999 eval "ac_cv_lib_$ac_lib_var=no"
5002 LIBS
="$ac_save_LIBS"
5005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5006 echo "$ac_t""yes" 1>&6
5007 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5008 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5009 cat >> confdefs.h
<<EOF
5010 #define $ac_tr_lib 1
5016 echo "$ac_t""no" 1>&6
5019 if test "$GCC" = "yes" ; then
5020 # The GNU linker requires the -export-dynamic option to make
5021 # all symbols visible in the dynamic symbol table.
5022 hold_ldflags
=$LDFLAGS
5023 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5024 echo "configure:5025: checking for the ld -export-dynamic flag" >&5
5025 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
5026 cat > conftest.
$ac_ext <<EOF
5027 #line 5028 "configure"
5028 #include "confdefs.h"
5034 if { (eval echo configure
:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5038 echo "configure: failed program was:" >&5
5039 cat conftest.
$ac_ext >&5
5044 LDFLAGS
=$hold_ldflags
5045 echo "$ac_t""$found" 1>&6
5046 if test $found = yes; then
5047 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5050 # Sun randomly tweaked the prototypes in <proc_service.h>
5052 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5053 echo "configure:5054: checking if <proc_service.h> is old" >&5
5054 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5055 echo $ac_n "(cached) $ac_c" 1>&6
5058 cat > conftest.
$ac_ext <<EOF
5059 #line 5060 "configure"
5060 #include "confdefs.h"
5062 #include <proc_service.h>
5064 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5070 if { (eval echo configure
:5071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5072 gdb_cv_proc_service_is_old
=no
5074 echo "configure: failed program was:" >&5
5075 cat conftest.
$ac_ext >&5
5077 gdb_cv_proc_service_is_old
=yes
5083 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5084 if test $gdb_cv_proc_service_is_old = yes; then
5085 cat >> confdefs.h
<<\EOF
5086 #define PROC_SERVICE_IS_OLD 1
5091 echo "$ac_t""no" 1>&6
5100 # Check whether --enable-netrom or --disable-netrom was given.
5101 if test "${enable_netrom+set}" = set; then
5102 enableval
="$enable_netrom"
5103 case "${enableval}" in
5104 yes) enable_netrom
=yes ;;
5105 no
) enable_netrom
=no
;;
5106 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5111 if test "${enable_netrom}" = "yes"; then
5112 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
5113 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
5116 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5117 if test "${enable_build_warnings+set}" = set; then
5118 enableval
="$enable_build_warnings"
5119 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
5120 case "${enableval}" in
5122 no
) build_warnings
="-w";;
5129 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5131 WARN_CFLAGS
="${build_warnings}"
5142 # Check whether --with-mmalloc or --without-mmalloc was given.
5143 if test "${with_mmalloc+set}" = set; then
5144 withval
="$with_mmalloc"
5145 case "${withval}" in
5146 yes) want_mmalloc
=true
;;
5147 no
) want_mmalloc
=false
;;
5148 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5154 if test x
$want_mmalloc = xtrue
; then
5155 cat >> confdefs.h
<<\EOF
5156 #define USE_MMALLOC 1
5159 cat >> confdefs.h
<<\EOF
5160 #define MMCHECK_FORCE 1
5163 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
5164 MMALLOC
='../mmalloc/libmmalloc.a'
5167 # start-sanitize-carp
5168 # The below takes an educated guess at the targets that
5169 # should be built. It is an interum version that provides
5170 # significant backward compatibility.
5172 # Check whether --enable-carp or --disable-carp was given.
5173 if test "${enable_carp+set}" = set; then
5174 enableval
="$enable_carp"
5175 case "${enableval}" in
5176 yes) enable_carp
=yes ;;
5177 no
) enable_carp
=no
;;
5178 *) { echo "configure: error: bad value ${enableval} for carp option" 1>&2; exit 1; } ;;
5184 # Check whether --enable-targets or --disable-targets was given.
5185 if test "${enable_targets+set}" = set; then
5186 enableval
="$enable_targets"
5187 case "${enableval}" in
5188 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
5190 no
) enable_targets
= ;;
5191 *) enable_targets
="$enableval" ;;
5195 # Canonicalize the secondary target names.
5197 if test -n "$enable_targets" ; then
5198 if test "$enable_targets" = all
; then
5201 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5203 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
5204 if test -n "$result" ; then
5205 canon_targets
="$canon_targets $result"
5211 # Convert the target names into GDB [*]-tdep.c names
5213 for targ
in $target $canon_targets
5215 if test "x$targ" = "xall" ; then
5218 t_cpu
=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5219 t_vendor
=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5220 t_os
=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5224 target_vendor=$t_vendor
5226 . ${srcdir}/configure.tgt
5227 echo ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt`
5228 if test -r ${mt} ; then
5229 # This gets confused over .mt files that have multiple -tdep.o
5231 s/^.*[ =]\([^ ]*\)-tdep.o.*/\1/p
5233 selarchs
="$selarchs $tdep"
5238 # We don't do any links based on the target system, just makefile config.
5240 if test x
${all_targets} = xfalse
; then
5242 # Target architecture .o files.
5245 for arch
in $selarchs
5247 archdefs
="$archdefs -DARCH_$arch"
5248 ta
="$ta ${arch}-tdep.o"
5251 dvp
) ta
="$ta mips-tdep.o dvp-tdep.o" ;;
5255 # Weed out duplicate .o files.
5265 # And duplicate -D flags.
5267 for i
in $archdefs ; do
5277 else # all_targets is true
5279 MACHINE_OBS
='$(ALL_MACHINES)'
5282 if test "${enable_carp}" = yes ; then
5286 MACHINE_OBS
="# $MACHINE_OBS"
5291 # start-sanitize-gdbtk
5292 # start-sanitize-ide
5294 # Check whether --enable-ide or --disable-ide was given.
5295 if test "${enable_ide+set}" = set; then
5296 enableval
="$enable_ide"
5300 if test "$enable_ide" = yes; then
5308 # Check whether --with-foundry-libs or --without-foundry-libs was given.
5309 if test "${with_foundry_libs+set}" = set; then
5310 withval
="$with_foundry_libs"
5311 FOUNDRY_LIB_BASE
=${withval}
5317 # This is the Foundry SDK
5319 # These variables are used to determine where the Foundry libs and
5320 # header files are located.
5322 if test "$FOUNDRY_LIB_BASE" != ""; then
5323 LIBGUI
="${FOUNDRY_LIB_BASE}/lib/libgui.a"
5324 GUI_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include"
5325 if test x
$enable_ide = xyes
; then
5326 IDE_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include -DIDE"
5327 IDE_X
="-L${FOUNDRY_LIB_BASE}/lib -lilu-Tk -lilu-c -lilu"
5329 IDE_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include"
5331 LIBIDETCL
="${FOUNDRY_LIB_BASE}/lib/libidetcl.a"
5332 LIBIDE
="${FOUNDRY_LIB_BASE}/lib/libide.a"
5333 IDE_DEPS
="${FOUNDRY_LIB_BASE}/lib/libilu-Tk.a ${FOUNDRY_LIB_BASE}/lib/libilu-c.a ${FOUNDRY_LIB_BASE}/lib/libilu.a"
5335 LIBGUI
="../libgui/src/libgui.a"
5336 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
5337 if test x
$enable_ide = xyes
; then
5338 IDE_CFLAGS_X
="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src -DIDE -I${srcdir}/../ilu/runtime/mainloop"
5339 IDE_X
="-L../ilu/runtime/mainloop -lilu-Tk -L../ilu/runtime/c -lilu-c -L../ilu/runtime/kernel -lilu"
5341 IDE_CFLAGS_X
="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src"
5343 LIBIDETCL
="../libidetcl/src/libidetcl.a"
5344 LIBIDE
="../libide/src/libide.a"
5345 IDE_DEPS
="../ilu/runtime/mainloop/libilu-Tk.a ../ilu/runtime/c/libilu-c.a ../ilu/runtime/kernel/libilu.a"
5358 # Check whether --enable-gdbtk or --disable-gdbtk was given.
5359 if test "${enable_gdbtk+set}" = set; then
5360 enableval
="$enable_gdbtk"
5361 case "${enableval}" in
5365 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5368 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5376 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
5380 # Default is on for everything but go32 and Cygwin
5391 # In the Cygwin environment, we need some additional flags.
5392 echo $ac_n "checking for cygwin32""... $ac_c" 1>&6
5393 echo "configure:5394: checking for cygwin32" >&5
5394 if eval "test \"`echo '$''{'gdb_cv_os_cygwin32'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 cat > conftest.
$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406 egrep "lose" >/dev
/null
2>&1; then
5408 gdb_cv_os_cygwin32
=yes
5411 gdb_cv_os_cygwin32
=no
5417 echo "$ac_t""$gdb_cv_os_cygwin32" 1>&6
5424 DLLTOOL
=${DLLTOOL-dlltool}
5425 WINDRES
=${WINDRES-windres}
5429 if test x
$gdb_cv_os_cygwin32 = xyes
; then
5430 if test x
$enable_ide = xyes
; then
5431 WIN32LIBS
="-ladvapi32"
5438 if test "${enable_gdbtk}" = "yes"; then
5442 # Ok, lets find the tcl configuration
5443 # First, look for one uninstalled.
5444 # the alternative search directory is invoked by --with-tclconfig
5447 if test x
"${no_tcl}" = x
; then
5448 # we reset no_tcl in case something fails here
5450 # Check whether --with-tclconfig or --without-tclconfig was given.
5451 if test "${with_tclconfig+set}" = set; then
5452 withval
="$with_tclconfig"
5453 with_tclconfig
=${withval}
5456 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
5457 echo "configure:5458: checking for Tcl configuration" >&5
5458 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
5459 echo $ac_n "(cached) $ac_c" 1>&6
5463 # First check to see if --with-tclconfig was specified.
5464 if test x
"${with_tclconfig}" != x
; then
5465 if test -f "${with_tclconfig}/tclConfig.sh" ; then
5466 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
5468 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
5472 # then check for a private Tcl installation
5473 if test x
"${ac_cv_c_tclconfig}" = x
; then
5476 `ls -dr ../tcl[7-9]* 2>/dev/null` \
5478 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
5480 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
5481 if test -f "$i/${configdir}/tclConfig.sh" ; then
5482 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5487 # check in a few common install locations
5488 if test x
"${ac_cv_c_tclconfig}" = x
; then
5489 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5490 if test -f "$i/tclConfig.sh" ; then
5491 ac_cv_c_tclconfig
=`(cd $i; pwd)`
5496 # check in a few other private locations
5497 if test x
"${ac_cv_c_tclconfig}" = x
; then
5500 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
5501 if test -f "$i/${configdir}/tclConfig.sh" ; then
5502 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5510 if test x
"${ac_cv_c_tclconfig}" = x
; then
5511 TCLCONFIG
="# no Tcl configs found"
5512 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
5515 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
5516 echo "$ac_t""found $TCLCONFIG" 1>&6
5520 if test -z "${no_tcl}"; then
5550 # Ok, lets find the tk configuration
5551 # First, look for one uninstalled.
5552 # the alternative search directory is invoked by --with-tkconfig
5555 if test x
"${no_tk}" = x
; then
5556 # we reset no_tk in case something fails here
5558 # Check whether --with-tkconfig or --without-tkconfig was given.
5559 if test "${with_tkconfig+set}" = set; then
5560 withval
="$with_tkconfig"
5561 with_tkconfig
=${withval}
5564 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
5565 echo "configure:5566: checking for Tk configuration" >&5
5566 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
5567 echo $ac_n "(cached) $ac_c" 1>&6
5571 # First check to see if --with-tkconfig was specified.
5572 if test x
"${with_tkconfig}" != x
; then
5573 if test -f "${with_tkconfig}/tkConfig.sh" ; then
5574 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
5576 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
5580 # then check for a private Tk library
5581 if test x
"${ac_cv_c_tkconfig}" = x
; then
5584 `ls -dr ../tk[4-9]* 2>/dev/null` \
5586 `ls -dr ../../tk[4-9]* 2>/dev/null` \
5588 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
5589 if test -f "$i/${configdir}/tkConfig.sh" ; then
5590 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5595 # check in a few common install locations
5596 if test x
"${ac_cv_c_tkconfig}" = x
; then
5597 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5598 if test -f "$i/tkConfig.sh" ; then
5599 ac_cv_c_tkconfig
=`(cd $i; pwd)`
5604 # check in a few other private locations
5605 if test x
"${ac_cv_c_tkconfig}" = x
; then
5608 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
5609 if test -f "$i/${configdir}/tkConfig.sh" ; then
5610 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5618 if test x
"${ac_cv_c_tkconfig}" = x
; then
5619 TKCONFIG
="# no Tk configs found"
5620 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
5623 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
5624 echo "$ac_t""found $TKCONFIG" 1>&6
5630 # If $no_tk is nonempty, then we can't do Tk, and there is no
5631 # point to doing Tcl.
5632 if test -z "${no_tk}"; then
5634 if test -f "$TKCONFIG" ; then
5652 # Ok, lets find the tcl source trees so we can use the headers
5653 # Warning: transition of version 9 to 10 will break this algorithm
5654 # because 10 sorts before 9. We also look for just tcl. We have to
5655 # be careful that we don't match stuff like tclX by accident.
5656 # the alternative search directory is involked by --with-tclinclude
5660 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
5661 echo "configure:5662: checking for Tcl private headers. dir=${configdir}" >&5
5662 # Check whether --with-tclinclude or --without-tclinclude was given.
5663 if test "${with_tclinclude+set}" = set; then
5664 withval
="$with_tclinclude"
5665 with_tclinclude
=${withval}
5668 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5672 # first check to see if --with-tclinclude was specified
5673 if test x
"${with_tclinclude}" != x
; then
5674 if test -f ${with_tclinclude}/tclInt.h
; then
5675 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
5676 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
5677 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
5679 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5683 # next check if it came with Tcl configuration file
5684 if test x
"${ac_cv_c_tclconfig}" = x
; then
5685 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
5686 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
5690 # next check in private source directory
5692 # since ls returns lowest version numbers first, reverse its output
5693 if test x
"${ac_cv_c_tclh}" = x
; then
5696 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
5697 ${srcdir}/..
/..
/tcl \
5698 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
5699 ${srcdir}/..
/..
/..
/tcl \
5700 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
5701 if test -f $i/generic
/tclInt.h
; then
5702 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
5707 # finally check in a few common install locations
5709 # since ls returns lowest version numbers first, reverse its output
5710 if test x
"${ac_cv_c_tclh}" = x
; then
5712 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
5713 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
5714 /usr
/local
/src
/tcl \
5715 /usr
/local
/lib
/tcl \
5716 ${prefix}/include
; do
5717 if test -f $i/generic
/tclInt.h
; then
5718 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
5723 # see if one is installed
5724 if test x
"${ac_cv_c_tclh}" = x
; then
5725 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
5726 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
5727 echo "configure:5728: checking for tclInt.h" >&5
5728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5729 echo $ac_n "(cached) $ac_c" 1>&6
5731 cat > conftest.
$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5736 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5737 { (eval echo configure
:5738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5738 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5739 if test -z "$ac_err"; then
5741 eval "ac_cv_header_$ac_safe=yes"
5744 echo "configure: failed program was:" >&5
5745 cat conftest.
$ac_ext >&5
5747 eval "ac_cv_header_$ac_safe=no"
5751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5752 echo "$ac_t""yes" 1>&6
5753 ac_cv_c_tclh
=installed
5755 echo "$ac_t""no" 1>&6
5763 if test x
"${ac_cv_c_tclh}" = x
; then
5764 TCLHDIR
="# no Tcl private headers found"
5765 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
5767 if test x
"${ac_cv_c_tclh}" != x
; then
5769 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
5770 echo "$ac_t""is installed" 1>&6
5773 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
5774 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
5775 TCLHDIR
="-I${ac_cv_c_tclh}"
5783 # Ok, lets find the tk source trees so we can use the headers
5784 # If the directory (presumably symlink) named "tk" exists, use that one
5785 # in preference to any others. Same logic is used when choosing library
5786 # and again with Tcl. The search order is the best place to look first, then in
5787 # decreasing significance. The loop breaks if the trigger file is found.
5788 # Note the gross little conversion here of srcdir by cd'ing to the found
5789 # directory. This converts the path from a relative to an absolute, so
5790 # recursive cache variables for the path will work right. We check all
5791 # the possible paths in one loop rather than many seperate loops to speed
5793 # the alternative search directory is involked by --with-tkinclude
5796 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
5797 echo "configure:5798: checking for Tk private headers" >&5
5798 # Check whether --with-tkinclude or --without-tkinclude was given.
5799 if test "${with_tkinclude+set}" = set; then
5800 withval
="$with_tkinclude"
5801 with_tkinclude
=${withval}
5804 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
5805 echo $ac_n "(cached) $ac_c" 1>&6
5808 # first check to see if --with-tkinclude was specified
5809 if test x
"${with_tkinclude}" != x
; then
5810 if test -f ${with_tkinclude}/tk.h
; then
5811 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
5812 elif test -f ${with_tkinclude}/generic
/tk.h
; then
5813 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
5815 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5819 # next check if it came with Tk configuration file
5820 if test x
"${ac_cv_c_tkconfig}" = x
; then
5821 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
5822 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
5826 # next check in private source directory
5828 # since ls returns lowest version numbers first, reverse its output
5829 if test x
"${ac_cv_c_tkh}" = x
; then
5832 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
5833 ${srcdir}/..
/..
/tk \
5834 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
5835 ${srcdir}/..
/..
/..
/tk \
5836 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
5837 if test -f $i/generic
/tk.h
; then
5838 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
5843 # finally check in a few common install locations
5845 # since ls returns lowest version numbers first, reverse its output
5846 if test x
"${ac_cv_c_tkh}" = x
; then
5848 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
5849 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
5852 ${prefix}/include
; do
5853 if test -f $i/generic
/tk.h
; then
5854 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
5859 # see if one is installed
5860 if test x
"${ac_cv_c_tkh}" = x
; then
5861 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
5862 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
5863 echo "configure:5864: checking for tk.h" >&5
5864 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5867 cat > conftest.
$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5872 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5873 { (eval echo configure
:5874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5874 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5875 if test -z "$ac_err"; then
5877 eval "ac_cv_header_$ac_safe=yes"
5880 echo "configure: failed program was:" >&5
5881 cat conftest.
$ac_ext >&5
5883 eval "ac_cv_header_$ac_safe=no"
5887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5888 echo "$ac_t""yes" 1>&6
5889 ac_cv_c_tkh
=installed
5891 echo "$ac_t""no" 1>&6
5899 if test x
"${ac_cv_c_tkh}" != x
; then
5901 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
5902 echo "$ac_t""is installed" 1>&6
5905 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
5906 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
5907 TKHDIR
="-I${ac_cv_c_tkh}"
5910 TKHDIR
="# no Tk directory found"
5911 echo "configure: warning: Can't find Tk private headers" 1>&2
5918 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5919 echo "configure:5920: checking for Itcl private headers. srcdir=${srcdir}" >&5
5920 if test x
"${ac_cv_c_itclh}" = x
; then
5921 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/..
/..
/..
/itcl
; do
5922 if test -f $i/src
/itcl.h
; then
5923 ac_cv_c_itclh
=`(cd $i/src; pwd)`
5928 if test x
"${ac_cv_c_itclh}" = x
; then
5929 ITCLHDIR
="# no Itcl private headers found"
5930 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
5932 if test x
"${ac_cv_c_itclh}" != x
; then
5933 ITCLHDIR
="-I${ac_cv_c_itclh}"
5935 # should always be here
5936 ITCLLIB
="../itcl/src/libitcl.a"
5941 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5942 echo "configure:5943: checking for Tix private headers. srcdir=${srcdir}" >&5
5943 if test x
"${ac_cv_c_tixh}" = x
; then
5944 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
5945 if test -f $i/generic
/tix.h
; then
5946 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
5951 if test x
"${ac_cv_c_tixh}" = x
; then
5952 TIXHDIR
="# no Tix private headers found"
5953 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
5955 if test x
"${ac_cv_c_tixh}" != x
; then
5956 TIXHDIR
="-I${ac_cv_c_tixh}"
5961 # now look for tix library stuff
5963 .
${ac_cv_c_tclconfig}/tclConfig.sh
5966 tixdir
=..
/tix
/win
/tcl8.0
5969 tixdir
=..
/tix
/unix
/tk8.0
5972 if test "${TCL_SHARED_BUILD}" = "1"; then
5973 TIX_LIB_EXT
="${TCL_SHLIB_SUFFIX}"
5975 # Can't win them all: SunOS 4 (others?) appends a version
5976 # number after the ".so"
5979 TIX_LIB_EXT
="${TIX_LIB_EXT}.1.0" ;;
5986 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
5987 TIXLIB
="-L${tixdir} -ltix${TIXVERSION}"
5988 TIX_DEPS
="${tixdir}/libtix${TIXVERSION}${TIX_LIB_EXT}"
5990 TIXLIB
="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
5991 TIX_DEPS
="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`${TIX_LIB_EXT}"
5995 ENABLE_CFLAGS
="${ENABLE_CFLAGS} -DGDBTK"
5997 # Include some libraries that Tcl and Tk want.
5998 if test "${enable_ide}" = "yes"; then
5999 TCL_LIBS
='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
6000 CONFIG_DEPS
='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
6002 TCL_LIBS
='$(LIBGUI) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
6003 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
6005 # Yes, the ordering seems wrong here. But it isn't.
6006 # TK_LIBS is the list of libraries that need to be linked
6007 # after Tcl/Tk. Note that this isn't put into LIBS. If it
6008 # were in LIBS then any link tests after this point would
6009 # try to include things like `$(LIBGUI)', which wouldn't work.
6010 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
6011 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o"
6013 if test x
$gdb_cv_os_cygwin32 = xyes
; then
6014 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32"
6015 WIN32LDAPP
="-Wl,--subsystem,console"
6016 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
6029 # end-sanitize-gdbtk
6031 # If we find X, set shell vars x_includes and x_libraries to the
6032 # paths, otherwise set no_x=yes.
6033 # Uses ac_ vars as temps to allow command line to override cache and checks.
6034 # --without-x overrides everything else, but does not touch the cache.
6035 echo $ac_n "checking for X""... $ac_c" 1>&6
6036 echo "configure:6037: checking for X" >&5
6038 # Check whether --with-x or --without-x was given.
6039 if test "${with_x+set}" = set; then
6044 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6045 if test "x$with_x" = xno
; then
6046 # The user explicitly disabled X.
6049 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6050 # Both variables are already set.
6053 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6056 # One or both of the vars are not set, and there is no cached value.
6057 ac_x_includes
=NO ac_x_libraries
=NO
6059 if mkdir conftestdir
; then
6061 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6062 cat > Imakefile
<<'EOF'
6064 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6066 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6067 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6068 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6069 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6070 for ac_extension
in a so sl
; do
6071 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6072 test -f $ac_im_libdir/libX11.
$ac_extension; then
6073 ac_im_usrlibdir
=$ac_im_libdir; break
6076 # Screen out bogus values from the imake configuration. They are
6077 # bogus both because they are the default anyway, and because
6078 # using them would break gcc on systems where it needs fixed includes.
6079 case "$ac_im_incroot" in
6081 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
6083 case "$ac_im_usrlibdir" in
6085 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
6092 if test "$ac_x_includes" = NO
; then
6093 # Guess where to find include files, by looking for this one X11 .h file.
6094 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
6096 # First, try using that file with no special directory specified.
6097 cat > conftest.
$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 #include <$x_direct_test_include>
6102 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6103 { (eval echo configure
:6104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6104 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6105 if test -z "$ac_err"; then
6107 # We can compile using X headers with no special include directory.
6111 echo "configure: failed program was:" >&5
6112 cat conftest.
$ac_ext >&5
6114 # Look for the header file in a standard set of common directories.
6115 # Check X11 before X11Rn because it is often a symlink to the current release.
6118 /usr
/X11R
6/include \
6119 /usr
/X11R
5/include \
6120 /usr
/X11R
4/include \
6123 /usr
/include
/X11R6 \
6124 /usr
/include
/X11R5 \
6125 /usr
/include
/X11R4 \
6127 /usr
/local
/X11
/include \
6128 /usr
/local
/X11R
6/include \
6129 /usr
/local
/X11R
5/include \
6130 /usr
/local
/X11R
4/include \
6132 /usr
/local
/include
/X11 \
6133 /usr
/local
/include
/X11R6 \
6134 /usr
/local
/include
/X11R5 \
6135 /usr
/local
/include
/X11R4 \
6139 /usr
/XFree86
/include
/X11 \
6142 /usr
/local
/include \
6143 /usr
/unsupported
/include \
6144 /usr
/athena
/include \
6145 /usr
/local
/x11r
5/include \
6146 /usr
/lpp
/Xamples
/include \
6148 /usr
/openwin
/include \
6149 /usr
/openwin
/share
/include \
6152 if test -r "$ac_dir/$x_direct_test_include"; then
6153 ac_x_includes
=$ac_dir
6159 fi # $ac_x_includes = NO
6161 if test "$ac_x_libraries" = NO
; then
6162 # Check for the libraries.
6164 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
6165 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
6167 # See if we find them without any special options.
6168 # Don't add to $LIBS permanently.
6169 ac_save_LIBS
="$LIBS"
6170 LIBS
="-l$x_direct_test_library $LIBS"
6171 cat > conftest.
$ac_ext <<EOF
6172 #line 6173 "configure"
6173 #include "confdefs.h"
6176 ${x_direct_test_function}()
6179 if { (eval echo configure
:6180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6181 LIBS
="$ac_save_LIBS"
6182 # We can link X programs with no special library path.
6185 echo "configure: failed program was:" >&5
6186 cat conftest.
$ac_ext >&5
6188 LIBS
="$ac_save_LIBS"
6189 # First see if replacing the include by lib works.
6190 # Check X11 before X11Rn because it is often a symlink to the current release.
6191 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
6202 /usr
/local
/X11
/lib \
6203 /usr
/local
/X11R
6/lib \
6204 /usr
/local
/X11R
5/lib \
6205 /usr
/local
/X11R
4/lib \
6207 /usr
/local
/lib
/X11 \
6208 /usr
/local
/lib
/X11R6 \
6209 /usr
/local
/lib
/X11R5 \
6210 /usr
/local
/lib
/X11R4 \
6214 /usr
/XFree86
/lib
/X11 \
6218 /usr
/unsupported
/lib \
6220 /usr
/local
/x11r
5/lib \
6221 /usr
/lpp
/Xamples
/lib \
6225 /usr
/openwin
/share
/lib \
6228 for ac_extension
in a so sl
; do
6229 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
6230 ac_x_libraries
=$ac_dir
6237 fi # $ac_x_libraries = NO
6239 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
6240 # Didn't find X anywhere. Cache the known absence of X.
6241 ac_cv_have_x
="have_x=no"
6243 # Record where we found X for the cache.
6244 ac_cv_have_x
="have_x=yes \
6245 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6249 eval "$ac_cv_have_x"
6252 if test "$have_x" != yes; then
6253 echo "$ac_t""$have_x" 1>&6
6256 # If each of the values was on the command line, it overrides each guess.
6257 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6258 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6259 # Update the cache value to reflect the command line values.
6260 ac_cv_have_x
="have_x=yes \
6261 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6262 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6265 # start-sanitize-sky
6266 # Enable GPU2 library for MIPS simulator
6267 # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given.
6268 if test "${with_sim_gpu2+set}" = set; then
6269 withval
="$with_sim_gpu2"
6272 if test -d "${withval}"
6274 LIBS
="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext"
6276 echo "configure: warning: Directory ${withval} does not exist." 1>&2
6278 *) echo "configure: warning: --with-sim-gpu2 option invalid for target ${target}" 1>&2
6282 # Enable target accurate FP library
6283 # Check whether --with-sim-funit or --without-sim-funit was given.
6284 if test "${with_sim_funit+set}" = set; then
6285 withval
="$with_sim_funit"
6288 if test -d "${withval}"
6290 LIBS
="${LIBS} -L${withval}/lib -lfunit"
6292 echo "configure: warning: Directory ${withval} does not exist." 1>&2
6294 *) echo "configure: warning: --with-sim-funit option invalid for target ${target}" 1>&2
6305 # Begin stuff to support --enable-shared
6306 # Check whether --enable-shared or --disable-shared was given.
6307 if test "${enable_shared+set}" = set; then
6308 enableval
="$enable_shared"
6309 case "${enableval}" in
6318 # If we have shared libraries, try to set rpath reasonably.
6319 if test "${shared}" = "true"; then
6322 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
6324 *-*-irix5* |
*-*-irix6*)
6325 HLDFLAGS
='-Wl,-rpath,$(libdir)'
6329 *-*-linux* |
*-pc-linux-gnu)
6330 HLDFLAGS
='-Wl,-rpath,$(libdir)'
6333 HLDFLAGS
='-R $(libdir)'
6336 HLDENV
='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
6341 # On SunOS, if the linker supports the -rpath option, use it to
6342 # prevent ../bfd and ../opcodes from being included in the run time
6346 echo 'main () { }' > conftest.c
6347 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
6348 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
6350 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
6352 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
6354 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
6356 elif test "${shared}" = "true"; then
6357 HLDFLAGS
='-Wl,-rpath=$(libdir)'
6359 HLDFLAGS
='-Wl,-rpath='
6361 rm -f conftest.t conftest.c conftest
6366 # End stuff to support --enable-shared
6368 # target_subdir is used by the testsuite to find the target libraries.
6370 if test "${host}" != "${target}"; then
6371 target_subdir
="${target_alias}/"
6376 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
6377 if test ! -f ${host_makefile_frag}; then
6378 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
6380 frags
="$frags $host_makefile_frag"
6382 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
6383 if test ! -f ${target_makefile_frag}; then
6384 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
6386 frags
="$frags $target_makefile_frag"
6393 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6394 ' ${host_makefile_frag}`
6396 targetfile
=`sed -n '
6397 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6398 ' ${target_makefile_frag}`
6400 # these really aren't orthogonal true/false values of the same condition,
6401 # but shells are slow enough that I like to reuse the test conditions
6403 if test "${target}" = "${host}"; then
6404 nativefile
=`sed -n '
6405 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6406 ' ${host_makefile_frag}`
6408 # GDBserver is only useful in a "native" enviroment
6409 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
6413 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
6414 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
6415 # corresponding links. But we have to remove the xm.h files and tm.h
6416 # files anyway, e.g. when switching from "configure host" to
6422 if test "${hostfile}" != ""; then
6423 files
="${files} config/${gdb_host_cpu}/${hostfile}"
6424 links
="${links} xm.h"
6427 if test "${targetfile}" != ""; then
6428 files
="${files} config/${gdb_target_cpu}/${targetfile}"
6429 links
="${links} tm.h"
6432 if test "${nativefile}" != ""; then
6433 files
="${files} config/${gdb_host_cpu}/${nativefile}"
6434 links
="${links} nm.h"
6436 # A cross-only configuration.
6437 files
="${files} config/nm-empty.h"
6438 links
="${links} nm.h"
6440 # start-sanitize-gdbtk
6441 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6442 echo "configure:6443: checking whether ln -s works" >&5
6443 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6444 echo $ac_n "(cached) $ac_c" 1>&6
6447 if ln -s X conftestdata
2>/dev
/null
6450 ac_cv_prog_LN_S
="ln -s"
6455 LN_S
="$ac_cv_prog_LN_S"
6456 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6457 echo "$ac_t""yes" 1>&6
6459 echo "$ac_t""no" 1>&6
6462 # Make it possible to use the GUI without doing a full install
6463 if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl2
; then
6464 if test "$LN_S" = "ln -s" -a ! -f gdbtcl2
; then
6465 echo linking
$srcdir/gdbtcl2 to gdbtcl2
6466 $LN_S $srcdir/gdbtcl2 gdbtcl2
6468 echo Warning
: Unable to link
$srcdir/gdbtcl2 to gdbtcl2. You will need to
do a
6469 echo " " make install before you are able to run the GUI.
6472 # end-sanitize-gdbtk
6476 echo $ac_n "checking for cygwin32 environment""... $ac_c" 1>&6
6477 echo "configure:6478: checking for cygwin32 environment" >&5
6478 if eval "test \"`echo '$''{'ac_cv_cygwin32'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6481 cat > conftest.
$ac_ext <<EOF
6482 #line 6483 "configure"
6483 #include "confdefs.h"
6486 return __CYGWIN32__;
6489 if { (eval echo configure
:6490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6493 echo "configure: failed program was:" >&5
6494 cat conftest.
$ac_ext >&5
6502 echo "$ac_t""$ac_cv_cygwin32" 1>&6
6504 test "$ac_cv_cygwin32" = yes && CYGWIN32
=yes
6505 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
6506 echo "configure:6507: checking for mingw32 environment" >&5
6507 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
6508 echo $ac_n "(cached) $ac_c" 1>&6
6510 cat > conftest.
$ac_ext <<EOF
6511 #line 6512 "configure"
6512 #include "confdefs.h"
6518 if { (eval echo configure
:6519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6522 echo "configure: failed program was:" >&5
6523 cat conftest.
$ac_ext >&5
6531 echo "$ac_t""$ac_cv_mingw32" 1>&6
6533 test "$ac_cv_mingw32" = yes && MINGW32
=yes
6536 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
6537 echo "configure:6538: checking for executable suffix" >&5
6538 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6541 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
6545 echo 'int main () { return 0; }' > conftest.
$ac_ext
6547 if { (eval echo configure
:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
6548 for file in conftest.
*; do
6550 *.c |
*.o |
*.obj
) ;;
6551 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
6555 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
6558 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
6563 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
6564 echo "$ac_t""${ac_cv_exeext}" 1>&6
6568 subdirs
="$configdirs"
6571 cat > confcache
<<\EOF
6572 # This file is a shell script that caches the results of configure
6573 # tests run on this system so they can be shared between configure
6574 # scripts and configure runs. It is not useful on other systems.
6575 # If it contains results you don't want to keep, you may remove or edit it.
6577 # By default, configure uses ./config.cache as the cache file,
6578 # creating it if it does not exist already. You can give configure
6579 # the --cache-file=FILE option to use a different cache file; that is
6580 # what configure does when it calls configure scripts in
6581 # subdirectories, so they share the cache.
6582 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6583 # config.status only pays attention to the cache file if you give it the
6584 # --recheck option to rerun configure.
6587 # The following way of writing the cache mishandles newlines in values,
6588 # but we know of no workaround that is simple, portable, and efficient.
6589 # So, don't put newlines in cache variables' values.
6590 # Ultrix sh set writes to stderr and can't be redirected directly,
6591 # and sets the high bit in the cache file unless we assign to the vars.
6593 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6595 # `set' does not quote correctly, so add quotes (double-quote substitution
6596 # turns \\\\ into \\, and sed turns \\ into \).
6598 -e "s/'/'\\\\''/g" \
6599 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6602 # `set' quotes correctly as required by POSIX, so do not add quotes.
6603 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6606 if cmp -s $cache_file confcache
; then
6609 if test -w $cache_file; then
6610 echo "updating cache $cache_file"
6611 cat confcache
> $cache_file
6613 echo "not updating unwritable cache $cache_file"
6618 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6620 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6621 # Let make expand exec_prefix.
6622 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6624 # Any assignment to VPATH causes Sun make to only execute
6625 # the first set of double-colon rules, so remove it if not needed.
6626 # If there is a colon in the path, we need to keep it.
6627 if test "x$srcdir" = x.
; then
6628 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6631 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6633 DEFS
=-DHAVE_CONFIG_H
6635 # Without the "./", some shells look in PATH for config.status.
6636 : ${CONFIG_STATUS=./config.status}
6638 echo creating
$CONFIG_STATUS
6639 rm -f $CONFIG_STATUS
6640 cat > $CONFIG_STATUS <<EOF
6642 # Generated automatically by configure.
6643 # Run this file to recreate the current configuration.
6644 # This directory was configured as follows,
6645 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6647 # $0 $ac_configure_args
6649 # Compiler output produced by configure, useful for debugging
6650 # configure, is in ./config.log if it exists.
6652 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6655 case "\$ac_option" in
6656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6657 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6658 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6659 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6660 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
6662 -help | --help | --hel | --he | --h)
6663 echo "\$ac_cs_usage"; exit 0 ;;
6664 *) echo "\$ac_cs_usage"; exit 1 ;;
6668 ac_given_srcdir=$srcdir
6669 ac_given_INSTALL="$INSTALL"
6671 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6673 cat >> $CONFIG_STATUS <<EOF
6675 # Protect against being on the right side of a sed subst in config.status.
6676 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6677 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6681 s%@CFLAGS@%$CFLAGS%g
6682 s%@CPPFLAGS@%$CPPFLAGS%g
6683 s%@CXXFLAGS@%$CXXFLAGS%g
6684 s%@FFLAGS@%$FFLAGS%g
6686 s%@LDFLAGS@%$LDFLAGS%g
6688 s%@exec_prefix@%$exec_prefix%g
6689 s%@prefix@%$prefix%g
6690 s%@program_transform_name@%$program_transform_name%g
6691 s%@bindir@%$bindir%g
6692 s%@sbindir@%$sbindir%g
6693 s%@libexecdir@%$libexecdir%g
6694 s%@datadir@%$datadir%g
6695 s%@sysconfdir@%$sysconfdir%g
6696 s%@sharedstatedir@%$sharedstatedir%g
6697 s%@localstatedir@%$localstatedir%g
6698 s%@libdir@%$libdir%g
6699 s%@includedir@%$includedir%g
6700 s%@oldincludedir@%$oldincludedir%g
6701 s%@infodir@%$infodir%g
6702 s%@mandir@%$mandir%g
6706 s%@host_alias@%$host_alias%g
6707 s%@host_cpu@%$host_cpu%g
6708 s%@host_vendor@%$host_vendor%g
6709 s%@host_os@%$host_os%g
6710 s%@target@%$target%g
6711 s%@target_alias@%$target_alias%g
6712 s%@target_cpu@%$target_cpu%g
6713 s%@target_vendor@%$target_vendor%g
6714 s%@target_os@%$target_os%g
6716 s%@build_alias@%$build_alias%g
6717 s%@build_cpu@%$build_cpu%g
6718 s%@build_vendor@%$build_vendor%g
6719 s%@build_os@%$build_os%g
6720 s%@SET_MAKE@%$SET_MAKE%g
6721 s%@RANLIB@%$RANLIB%g
6722 s%@ALLOCA@%$ALLOCA%g
6723 s%@USE_NLS@%$USE_NLS%g
6724 s%@MSGFMT@%$MSGFMT%g
6725 s%@GMSGFMT@%$GMSGFMT%g
6726 s%@XGETTEXT@%$XGETTEXT%g
6727 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6728 s%@CATALOGS@%$CATALOGS%g
6729 s%@CATOBJEXT@%$CATOBJEXT%g
6730 s%@DATADIRNAME@%$DATADIRNAME%g
6731 s%@GMOFILES@%$GMOFILES%g
6732 s%@INSTOBJEXT@%$INSTOBJEXT%g
6733 s%@INTLDEPS@%$INTLDEPS%g
6734 s%@INTLLIBS@%$INTLLIBS%g
6735 s%@INTLOBJS@%$INTLOBJS%g
6736 s%@POFILES@%$POFILES%g
6738 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6740 s%@GT_YES@%$GT_YES%g
6741 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6743 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6744 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6745 s%@INSTALL_DATA@%$INSTALL_DATA%g
6748 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
6749 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6750 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
6751 s%@MMALLOC@%$MMALLOC%g
6752 s%@MACHINE_OBS@%$MACHINE_OBS%g
6753 s%@ENABLE_IDE@%$ENABLE_IDE%g
6754 s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
6755 s%@LIBGUI@%$LIBGUI%g
6756 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
6757 s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g
6759 s%@LIBIDETCL@%$LIBIDETCL%g
6760 s%@LIBIDE@%$LIBIDE%g
6761 s%@IDE_DEPS@%$IDE_DEPS%g
6762 s%@WIN32LIBS@%$WIN32LIBS%g
6763 s%@WIN32LDAPP@%$WIN32LDAPP%g
6764 s%@DLLTOOL@%$DLLTOOL%g
6765 s%@WINDRES@%$WINDRES%g
6766 s%@TCL_VERSION@%$TCL_VERSION%g
6767 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
6768 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
6769 s%@TCL_CC@%$TCL_CC%g
6770 s%@TCL_DEFS@%$TCL_DEFS%g
6771 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
6772 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6773 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
6774 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
6775 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
6776 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6777 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
6778 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
6779 s%@TCL_RANLIB@%$TCL_RANLIB%g
6780 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6781 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6782 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
6783 s%@TK_VERSION@%$TK_VERSION%g
6784 s%@TK_DEFS@%$TK_DEFS%g
6785 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
6786 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6787 s%@TK_XLIBSW@%$TK_XLIBSW%g
6788 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6789 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6790 s%@TCLHDIR@%$TCLHDIR%g
6791 s%@TKHDIR@%$TKHDIR%g
6792 s%@ITCLHDIR@%$ITCLHDIR%g
6793 s%@ITCLLIB@%$ITCLLIB%g
6794 s%@TIXHDIR@%$TIXHDIR%g
6795 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
6796 s%@X_CFLAGS@%$X_CFLAGS%g
6797 s%@X_LDFLAGS@%$X_LDFLAGS%g
6798 s%@X_LIBS@%$X_LIBS%g
6799 s%@TIXLIB@%$TIXLIB%g
6800 s%@TIX_DEPS@%$TIX_DEPS%g
6801 s%@GDBTKLIBS@%$GDBTKLIBS%g
6802 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
6803 s%@CONFIG_OBS@%$CONFIG_OBS%g
6804 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
6805 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
6806 s%@HLDFLAGS@%$HLDFLAGS%g
6807 s%@HLDENV@%$HLDENV%g
6808 s%@target_subdir@%$target_subdir%g
6809 /@host_makefile_frag@/r $host_makefile_frag
6810 s%@host_makefile_frag@%%g
6811 /@target_makefile_frag@/r $target_makefile_frag
6812 s%@target_makefile_frag@%%g
6815 s%@EXEEXT@%$EXEEXT%g
6816 s%@subdirs@%$subdirs%g
6821 cat >> $CONFIG_STATUS <<\EOF
6823 # Split the substitutions into bite-sized pieces for seds with
6824 # small command number limits, like on Digital OSF/1 and HP-UX.
6825 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6826 ac_file
=1 # Number of current file.
6827 ac_beg
=1 # First line for current file.
6828 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6831 while $ac_more_lines; do
6832 if test $ac_beg -gt 1; then
6833 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6835 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6837 if test ! -s conftest.s
$ac_file; then
6839 rm -f conftest.s
$ac_file
6841 if test -z "$ac_sed_cmds"; then
6842 ac_sed_cmds
="sed -f conftest.s$ac_file"
6844 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6846 ac_file
=`expr $ac_file + 1`
6848 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6851 if test -z "$ac_sed_cmds"; then
6856 cat >> $CONFIG_STATUS <<EOF
6858 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
6860 cat >> $CONFIG_STATUS <<\EOF
6861 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6862 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6864 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6865 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6866 *) ac_file_in
="${ac_file}.in" ;;
6869 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6871 # Remove last slash and all that follows it. Not all systems have dirname.
6872 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6873 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6874 # The file is in a subdirectory.
6875 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6876 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6877 # A "../" for each directory in $ac_dir_suffix.
6878 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6880 ac_dir_suffix
= ac_dots
=
6883 case "$ac_given_srcdir" in
6885 if test -z "$ac_dots"; then top_srcdir
=.
6886 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6887 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6889 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6890 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6893 case "$ac_given_INSTALL" in
6894 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6895 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6898 echo creating
"$ac_file"
6900 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6902 *Makefile
*) ac_comsub
="1i\\
6903 # $configure_input" ;;
6907 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6909 s%@configure_input@%$configure_input%g
6910 s%@srcdir@%$srcdir%g
6911 s%@top_srcdir@%$top_srcdir%g
6912 s%@INSTALL@%$INSTALL%g
6913 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6917 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6918 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6920 # ac_d sets the value in "#define NAME VALUE" lines.
6921 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6922 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6925 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6926 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6927 ac_uB
='\([ ]\)%\1#\2define\3'
6930 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6931 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6932 ac_eB
='$%\1#\2define\3'
6936 if test "${CONFIG_HEADERS+set}" != set; then
6938 cat >> $CONFIG_STATUS <<EOF
6939 CONFIG_HEADERS="config.h:config.in"
6941 cat >> $CONFIG_STATUS <<\EOF
6943 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6944 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6946 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6947 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6948 *) ac_file_in
="${ac_file}.in" ;;
6951 echo creating
$ac_file
6953 rm -f conftest.frag conftest.
in conftest.out
6954 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6955 cat $ac_file_inputs > conftest.
in
6959 # Transform confdefs.h into a sed script conftest.vals that substitutes
6960 # the proper values into config.h.in to produce config.h. And first:
6961 # Protect against being on the right side of a sed subst in config.status.
6962 # Protect against being in an unquoted here document in config.status.
6964 cat > conftest.hdr
<<\EOF
6967 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6971 sed -n -f conftest.hdr confdefs.h > conftest.vals
6974 # This sed command replaces #undef with comments. This is necessary, for
6975 # example, in the case of _POSIX_SOURCE, which is predefined and required
6976 # on some systems where configure will not decide to define it.
6977 cat >> conftest.vals <<\EOF
6978 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6981 # Break up conftest.vals because some shells have a limit on
6982 # the size of here documents, and old seds have small limits too.
6987 ac_lines=`grep -c . conftest.vals
`
6988 # grep -c gives empty output for an empty file on some AIX systems.
6989 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6990 # Write a limited-size here document to conftest.frag.
6991 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6992 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6994 sed -f conftest.frag conftest.in > conftest.out
6996 mv conftest.out conftest.in
6998 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7000 mv conftest.tail conftest.vals
7004 cat >> $CONFIG_STATUS <<\EOF
7005 rm -f conftest.frag conftest.h
7006 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7007 cat conftest.in >> conftest.h
7009 if cmp -s $ac_file conftest.h 2>/dev/null; then
7010 echo "$ac_file is unchanged"
7013 # Remove last slash and all that follows it. Not all systems have dirname.
7014 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7015 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7016 # The file is in a subdirectory.
7017 test ! -d "$ac_dir" && mkdir "$ac_dir"
7020 mv conftest.h $ac_file
7026 cat >> $CONFIG_STATUS <<EOF
7031 cat >> $CONFIG_STATUS <<\EOF
7032 srcdir=$ac_given_srcdir
7033 while test -n "$ac_sources"; do
7034 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7035 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7037 echo "linking $srcdir/$ac_source to $ac_dest"
7039 if test ! -r $srcdir/$ac_source; then
7040 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7044 # Make relative symlinks.
7045 # Remove last slash and all that follows it. Not all systems have dirname.
7046 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7047 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7048 # The dest file is in a subdirectory.
7049 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7050 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7051 # A "../" for each directory in $ac_dest_dir_suffix.
7052 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7054 ac_dest_dir_suffix= ac_dots=
7058 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7059 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7062 # Make a symlink if possible; otherwise try a hard link.
7063 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7064 ln $srcdir/$ac_source $ac_dest; then :
7066 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7070 cat >> $CONFIG_STATUS <<EOF
7072 gdb_host_cpu=$gdb_host_cpu
7073 gdb_target_cpu=$gdb_target_cpu
7074 nativefile=$nativefile
7077 cat >> $CONFIG_STATUS <<\EOF
7079 if test "${nativefile}" = ""; then
7080 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
7081 < Makefile > Makefile.tem
7082 mv -f Makefile.tem Makefile
7085 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
7086 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
7087 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
7088 mv -f Makefile.tmp Makefile
7090 case x$CONFIG_HEADERS in
7091 xconfig.h:config.in)
7097 chmod +x $CONFIG_STATUS
7098 rm -fr confdefs* $ac_clean_files
7099 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7101 if test "$no_recursion" != yes; then
7103 # Remove --cache-file and --srcdir arguments so they do not pile up.
7104 ac_sub_configure_args=
7106 for ac_arg in $ac_configure_args; do
7107 if test -n "$ac_prev"; then
7112 -cache-file | --cache-file | --cache-fil | --cache-fi \
7113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7114 ac_prev=cache_file ;;
7115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7122 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7126 for ac_config_dir in $configdirs; do
7128 # Do not complain, so a configure script can configure whichever
7129 # parts of a large source tree are present.
7130 if test ! -d $srcdir/$ac_config_dir; then
7134 echo configuring in $ac_config_dir
7139 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7141 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7149 # A "../" for each directory in /$ac_config_dir.
7150 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7153 .) # No --srcdir option. We are building in place.
7154 ac_sub_srcdir=$srcdir ;;
7155 /*) # Absolute path.
7156 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7158 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7161 # Check for guested configure; otherwise get Cygnus style configure.
7162 if test -f $ac_sub_srcdir/configure; then
7163 ac_sub_configure=$ac_sub_srcdir/configure
7164 elif test -f $ac_sub_srcdir/configure.in; then
7165 ac_sub_configure=$ac_configure
7167 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7171 # The recursion is here.
7172 if test -n "$ac_sub_configure"; then
7174 # Make the cache file name correct relative to the subdirectory.
7175 case "$cache_file" in
7176 /*) ac_sub_cache_file=$cache_file ;;
7178 ac_sub_cache_file="$ac_dots$cache_file" ;;
7180 case "$ac_given_INSTALL" in
7181 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7182 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7185 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7186 # The eval makes quoting arguments work.
7187 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7190 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }