291 # Do all the work for Automake. This macro actually does too much --
292 # some checks are only needed if your package does certain things.
293 # But this isn't really a big deal.
306 # Check to make sure that the build environment is sane.
314 # serial 25 AM_PROG_LIBTOOL
317 # AM_ENABLE_SHARED - implement the --enable-shared flag
318 # Usage: AM_ENABLE_SHARED[(DEFAULT)]
319 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
323 # AM_DISABLE_SHARED - set the default shared flag to --disable-shared
326 # AM_DISABLE_STATIC - set the default static flag to --disable-static
329 # AM_ENABLE_STATIC - implement the --enable-static flag
330 # Usage: AM_ENABLE_STATIC[(DEFAULT)]
331 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
336 # AM_PROG_LD - find the path to the GNU or non-GNU linker
341 # AM_PROG_NM - find the path to a BSD-compatible name lister
344 # AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
347 # Like AC_CONFIG_HEADER, but automatically create stamp file.
354 # This file is derived from `gettext.m4'. The difference is that the
355 # included macros assume Cygnus-style source and build trees.
357 # Macro to add for using GNU gettext.
358 # Ulrich Drepper <drepper@cygnus.com>, 1995.
360 # This file file be copied and used freely without restrictions. It can
361 # be used in projects which are not available under the GNU Public License
362 # but which still want to provide support for the GNU gettext functionality.
363 # Please note that the actual code is *not* freely available.
371 # Search path for a program which passes the given test.
372 # Ulrich Drepper <drepper@cygnus.com>, 1996.
374 # This file file be copied and used freely without restrictions. It can
375 # be used in projects which are not available under the GNU Public License
376 # but which still want to provide support for the GNU gettext functionality.
377 # Please note that the actual code is *not* freely available.
383 # Check whether LC_MESSAGES is available in <locale.h>.
384 # Ulrich Drepper <drepper@cygnus.com>, 1995.
386 # This file file be copied and used freely without restrictions. It can
387 # be used in projects which are not available under the GNU Public License
388 # but which still want to provide support for the GNU gettext functionality.
389 # Please note that the actual code is *not* freely available.
395 # Add --enable-maintainer-mode option to configure.
402 # Check to see if we're running under Cygwin32, without using
403 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
404 # Otherwise set it to "no".
408 # Check to see if we're running under Win32, without using
409 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
410 # Otherwise set it to "".
414 # Check to see if we're running under Mingw, without using
415 # AC_CANONICAL_*. If so, set output variable MINGW32 to "yes".
416 # Otherwise set it to "no".
420 # Guess values for system-dependent variables and create Makefiles.
421 # Generated automatically using autoconf version 2.12.2
422 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
424 # This configure script is free software; the Free Software Foundation
425 # gives unlimited permission to copy, distribute and modify it.
429 ac_default_prefix
=/usr
/local
430 # Any additions from configure.in:
432 --enable-shared[=PKGS] build shared libraries [default=yes]"
434 --enable-static[=PKGS] build static libraries [default=yes]"
436 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
438 --enable-bfd-assembler use BFD back end for writing object files"
440 targets alternative target configurations besides the primary"
442 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
444 --disable-nls do not use Native Language Support"
446 --with-included-gettext use the GNU gettext library included here"
448 --enable-maintainer-mode enable make rules and dependencies not useful
449 (and sometimes confusing) to the casual installer"
451 # Initialize some variables set by options.
452 # The variables have the same names as the options, with
453 # dashes changed to underlines.
455 cache_file
=.
/config.cache
464 program_transform_name
=s
,x
,x
,
472 bindir
='${exec_prefix}/bin'
473 sbindir
='${exec_prefix}/sbin'
474 libexecdir
='${exec_prefix}/libexec'
475 datadir
='${prefix}/share'
476 sysconfdir
='${prefix}/etc'
477 sharedstatedir
='${prefix}/com'
478 localstatedir
='${prefix}/var'
479 libdir
='${exec_prefix}/lib'
480 includedir
='${prefix}/include'
481 oldincludedir
='/usr/include'
482 infodir
='${prefix}/info'
483 mandir
='${prefix}/man'
485 # Initialize some other variables.
488 SHELL
=${CONFIG_SHELL-/bin/sh}
489 # Maximum number of lines to put in a shell here document.
496 # If the previous option needs an argument, assign it.
497 if test -n "$ac_prev"; then
498 eval "$ac_prev=\$ac_option"
504 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
508 # Accept the important Cygnus configure options, so we can diagnose typos.
512 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
514 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
515 bindir
="$ac_optarg" ;;
517 -build |
--build |
--buil |
--bui |
--bu)
519 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
520 build
="$ac_optarg" ;;
522 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
523 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
524 ac_prev
=cache_file
;;
525 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
526 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
527 cache_file
="$ac_optarg" ;;
529 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
531 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
533 datadir
="$ac_optarg" ;;
535 -disable-* |
--disable-*)
536 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
537 # Reject names that are not valid shell variable names.
538 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
539 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
541 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
542 eval "enable_${ac_feature}=no" ;;
544 -enable-* |
--enable-*)
545 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
546 # Reject names that are not valid shell variable names.
547 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
548 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
550 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
555 eval "enable_${ac_feature}='$ac_optarg'" ;;
557 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
558 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
559 |
--exec |
--exe |
--ex)
560 ac_prev
=exec_prefix
;;
561 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
562 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
563 |
--exec=* |
--exe=* |
--ex=*)
564 exec_prefix
="$ac_optarg" ;;
566 -gas |
--gas |
--ga |
--g)
567 # Obsolete; use --with-gas.
570 -help |
--help |
--hel |
--he)
571 # Omit some internal or obsolete options to make the list less imposing.
572 # This message is too long to be a string in the A/UX 3.1 sh.
574 Usage: configure [options] [host]
575 Options: [defaults in brackets after descriptions]
577 --cache-file=FILE cache test results in FILE
578 --help print this message
579 --no-create do not create output files
580 --quiet, --silent do not print \`checking...' messages
581 --version print the version of autoconf that created configure
582 Directory and file names:
583 --prefix=PREFIX install architecture-independent files in PREFIX
585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
587 --bindir=DIR user executables in DIR [EPREFIX/bin]
588 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
589 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
590 --datadir=DIR read-only architecture-independent data in DIR
592 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
593 --sharedstatedir=DIR modifiable architecture-independent data in DIR
595 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
596 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
597 --includedir=DIR C header files in DIR [PREFIX/include]
598 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
599 --infodir=DIR info documentation in DIR [PREFIX/info]
600 --mandir=DIR man documentation in DIR [PREFIX/man]
601 --srcdir=DIR find the sources in DIR [configure dir or ..]
602 --program-prefix=PREFIX prepend PREFIX to installed program names
603 --program-suffix=SUFFIX append SUFFIX to installed program names
604 --program-transform-name=PROGRAM
605 run sed PROGRAM on installed program names
609 --build=BUILD configure for building on BUILD [BUILD=HOST]
610 --host=HOST configure for HOST [guessed]
611 --target=TARGET configure for TARGET [TARGET=HOST]
612 Features and packages:
613 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
614 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
615 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
616 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
617 --x-includes=DIR X include files are in DIR
618 --x-libraries=DIR X library files are in DIR
620 if test -n "$ac_help"; then
621 echo "--enable and --with options recognized:$ac_help"
625 -host |
--host |
--hos |
--ho)
627 -host=* |
--host=* |
--hos=* |
--ho=*)
630 -includedir |
--includedir |
--includedi |
--included |
--include \
631 |
--includ |
--inclu |
--incl |
--inc)
632 ac_prev
=includedir
;;
633 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
634 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
635 includedir
="$ac_optarg" ;;
637 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
639 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
640 infodir
="$ac_optarg" ;;
642 -libdir |
--libdir |
--libdi |
--libd)
644 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
645 libdir
="$ac_optarg" ;;
647 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
648 |
--libexe |
--libex |
--libe)
649 ac_prev
=libexecdir
;;
650 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
651 |
--libexe=* |
--libex=* |
--libe=*)
652 libexecdir
="$ac_optarg" ;;
654 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
655 |
--localstate |
--localstat |
--localsta |
--localst \
656 |
--locals |
--local |
--loca |
--loc |
--lo)
657 ac_prev
=localstatedir
;;
658 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
659 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
660 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
661 localstatedir
="$ac_optarg" ;;
663 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
665 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
666 mandir
="$ac_optarg" ;;
669 # Obsolete; use --without-fp.
672 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
676 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
677 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
680 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
681 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
682 |
--oldin |
--oldi |
--old |
--ol |
--o)
683 ac_prev
=oldincludedir
;;
684 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
685 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
686 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
687 oldincludedir
="$ac_optarg" ;;
689 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
691 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
692 prefix
="$ac_optarg" ;;
694 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
695 |
--program-pre |
--program-pr |
--program-p)
696 ac_prev
=program_prefix
;;
697 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
698 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
699 program_prefix
="$ac_optarg" ;;
701 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
702 |
--program-suf |
--program-su |
--program-s)
703 ac_prev
=program_suffix
;;
704 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
705 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
706 program_suffix
="$ac_optarg" ;;
708 -program-transform-name |
--program-transform-name \
709 |
--program-transform-nam |
--program-transform-na \
710 |
--program-transform-n |
--program-transform- \
711 |
--program-transform |
--program-transfor \
712 |
--program-transfo |
--program-transf \
713 |
--program-trans |
--program-tran \
714 |
--progr-tra |
--program-tr |
--program-t)
715 ac_prev
=program_transform_name
;;
716 -program-transform-name=* |
--program-transform-name=* \
717 |
--program-transform-nam=* |
--program-transform-na=* \
718 |
--program-transform-n=* |
--program-transform-=* \
719 |
--program-transform=* |
--program-transfor=* \
720 |
--program-transfo=* |
--program-transf=* \
721 |
--program-trans=* |
--program-tran=* \
722 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
723 program_transform_name
="$ac_optarg" ;;
725 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
726 |
-silent |
--silent |
--silen |
--sile |
--sil)
729 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
731 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
733 sbindir
="$ac_optarg" ;;
735 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
736 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
737 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
739 ac_prev
=sharedstatedir
;;
740 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
741 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
742 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
744 sharedstatedir
="$ac_optarg" ;;
746 -site |
--site |
--sit)
748 -site=* |
--site=* |
--sit=*)
751 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
753 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
754 srcdir
="$ac_optarg" ;;
756 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
757 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
758 ac_prev
=sysconfdir
;;
759 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
760 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
761 sysconfdir
="$ac_optarg" ;;
763 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
765 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
766 target
="$ac_optarg" ;;
768 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
771 -version |
--version |
--versio |
--versi |
--vers)
772 echo "configure generated by autoconf version 2.12.2"
776 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
777 # Reject names that are not valid shell variable names.
778 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
779 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
781 ac_package
=`echo $ac_package| sed 's/-/_/g'`
786 eval "with_${ac_package}='$ac_optarg'" ;;
788 -without-* |
--without-*)
789 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
790 # Reject names that are not valid shell variable names.
791 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
792 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
794 ac_package
=`echo $ac_package| sed 's/-/_/g'`
795 eval "with_${ac_package}=no" ;;
798 # Obsolete; use --with-x.
801 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
802 |
--x-incl |
--x-inc |
--x-in |
--x-i)
803 ac_prev
=x_includes
;;
804 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
805 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
806 x_includes
="$ac_optarg" ;;
808 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
809 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
810 ac_prev
=x_libraries
;;
811 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
812 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
813 x_libraries
="$ac_optarg" ;;
815 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
819 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
820 echo "configure: warning: $ac_option: invalid host type" 1>&2
822 if test "x$nonopt" != xNONE
; then
823 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
831 if test -n "$ac_prev"; then
832 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
835 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
837 # File descriptor usage:
840 # 2 errors and warnings
841 # 3 some systems may open it to /dev/tty
842 # 4 used on the Kubota Titan
843 # 6 checking for... messages and results
844 # 5 compiler messages saved in config.log
845 if test "$silent" = yes; then
853 This file contains any messages produced by compilers while
854 running configure, to aid debugging if configure makes a mistake.
857 # Strip out --no-create and --no-recursion so they do not pile up.
858 # Also quote any args containing shell metacharacters.
863 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
864 |
--no-cr |
--no-c) ;;
865 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
866 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
867 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
868 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
869 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
874 # Only set these to C if already set. These must not be set unconditionally
875 # because not all systems understand e.g. LANG=C (notably SCO).
876 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
877 # Non-C LC_CTYPE values break the ctype check.
878 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
879 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
880 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
881 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
883 # confdefs.h avoids OS command line length limits that DEFS can exceed.
884 rm -rf conftest
* confdefs.h
885 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
888 # A filename unique to this package, relative to the directory that
889 # configure is in, which we can look for to find out if srcdir is correct.
892 # Find the source files, if location was not specified.
893 if test -z "$srcdir"; then
894 ac_srcdir_defaulted
=yes
895 # Try the directory containing this script, then its parent.
897 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
898 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
900 if test ! -r $srcdir/$ac_unique_file; then
904 ac_srcdir_defaulted
=no
906 if test ! -r $srcdir/$ac_unique_file; then
907 if test "$ac_srcdir_defaulted" = yes; then
908 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
910 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
913 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
915 # Prefer explicitly selected file to automatically selected ones.
916 if test -z "$CONFIG_SITE"; then
917 if test "x$prefix" != xNONE
; then
918 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
920 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
923 for ac_site_file
in $CONFIG_SITE; do
924 if test -r "$ac_site_file"; then
925 echo "loading site script $ac_site_file"
930 if test -r "$cache_file"; then
931 echo "loading cache $cache_file"
934 echo "creating cache $cache_file"
939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
940 ac_cpp
='$CPP $CPPFLAGS'
941 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
942 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
943 cross_compiling
=$ac_cv_prog_cc_cross
947 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
948 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
949 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
956 ac_n
= ac_c
='\c' ac_t
=
962 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
963 if test -f $ac_dir/install-sh
; then
965 ac_install_sh
="$ac_aux_dir/install-sh -c"
967 elif test -f $ac_dir/install.sh
; then
969 ac_install_sh
="$ac_aux_dir/install.sh -c"
973 if test -z "$ac_aux_dir"; then
974 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
976 ac_config_guess
=$ac_aux_dir/config.guess
977 ac_config_sub
=$ac_aux_dir/config.sub
978 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
981 # Do some error checking and defaulting for the host and target type.
983 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
986 # 1. You are not allowed to specify --host, --target, and nonopt at the
988 # 2. Host defaults to nonopt.
989 # 3. If nonopt is not specified, then host defaults to the current host,
990 # as determined by config.guess.
991 # 4. Target and build default to nonopt.
992 # 5. If nonopt is not specified, then target and build default to host.
994 # The aliases save the names the user supplied, while $host etc.
995 # will get canonicalized.
996 case $host---$target---$nonopt in
997 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
998 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1002 # Make sure we can run config.sub.
1003 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1004 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1007 echo $ac_n "checking host system type""... $ac_c" 1>&6
1008 echo "configure:1009: checking host system type" >&5
1011 case "$host_alias" in
1015 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1016 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1018 *) host_alias
=$nonopt ;;
1022 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1023 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1024 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1025 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1026 echo "$ac_t""$host" 1>&6
1028 echo $ac_n "checking target system type""... $ac_c" 1>&6
1029 echo "configure:1030: checking target system type" >&5
1031 target_alias
=$target
1032 case "$target_alias" in
1035 NONE
) target_alias
=$host_alias ;;
1036 *) target_alias
=$nonopt ;;
1040 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1041 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1042 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1043 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1044 echo "$ac_t""$target" 1>&6
1046 echo $ac_n "checking build system type""... $ac_c" 1>&6
1047 echo "configure:1048: checking build system type" >&5
1050 case "$build_alias" in
1053 NONE
) build_alias
=$host_alias ;;
1054 *) build_alias
=$nonopt ;;
1058 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1059 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1060 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1061 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1062 echo "$ac_t""$build" 1>&6
1064 test "$host_alias" != "$target_alias" &&
1065 test "$program_prefix$program_suffix$program_transform_name" = \
1067 program_prefix
=${target_alias}-
1070 # Find a good install program. We prefer a C program (faster),
1071 # so one script is as good as another. But avoid the broken or
1072 # incompatible versions:
1073 # SysV /etc/install, /usr/sbin/install
1074 # SunOS /usr/etc/install
1075 # IRIX /sbin/install
1077 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1078 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1079 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1080 # ./install, which can be erroneously created by make from ./install.sh.
1081 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1082 echo "configure:1083: checking for a BSD compatible install" >&5
1083 if test -z "$INSTALL"; then
1084 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1088 for ac_dir
in $PATH; do
1089 # Account for people who put trailing slashes in PATH elements.
1091 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1093 # OSF1 and SCO ODT 3.0 have their own names for install.
1094 # Don't use installbsd from OSF since it installs stuff as root
1096 for ac_prog
in ginstall scoinst
install; do
1097 if test -f $ac_dir/$ac_prog; then
1098 if test $ac_prog = install &&
1099 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1100 # AIX install. It has an incompatible calling convention.
1103 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1114 if test "${ac_cv_path_install+set}" = set; then
1115 INSTALL
="$ac_cv_path_install"
1117 # As a last resort, use the slow shell script. We don't cache a
1118 # path for INSTALL within a source directory, because that will
1119 # break other packages using the cache if that directory is
1120 # removed, or if the path is relative.
1121 INSTALL
="$ac_install_sh"
1124 echo "$ac_t""$INSTALL" 1>&6
1126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1127 # It thinks the first close brace ends the variable substitution.
1128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1132 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1137 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether build environment is sane" >&5
1141 echo timestamp
> conftestfile
1142 # Do `set' in a subshell so we don't clobber the current shell's
1143 # arguments. Must try -L first in case configure is actually a
1144 # symlink; some systems play weird games with the mod time of symlinks
1145 # (eg FreeBSD returns the mod time of the symlink's containing
1148 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1149 if test "$*" = "X"; then
1151 set X
`ls -t $srcdir/configure conftestfile`
1153 if test "$*" != "X $srcdir/configure conftestfile" \
1154 && test "$*" != "X conftestfile $srcdir/configure"; then
1156 # If neither matched, then we have a broken ls. This can happen
1157 # if, for instance, CONFIG_SHELL is bash and it inherits a
1158 # broken ls alias from the environment. This has actually
1159 # happened. Such a system could not be considered "sane".
1160 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1161 alias in your environment" 1>&2; exit 1; }
1164 test "$2" = conftestfile
1170 { echo "configure: error: newly created file is older than distributed files!
1171 Check your system clock" 1>&2; exit 1; }
1174 echo "$ac_t""yes" 1>&6
1175 if test "$program_transform_name" = s
,x
,x
,; then
1176 program_transform_name
=
1178 # Double any \ or $. echo might interpret backslashes.
1179 cat <<\EOF_SED
> conftestsed
1180 s
,\\,\\\\,g
; s
,\$
,$$
,g
1182 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1185 test "$program_prefix" != NONE
&&
1186 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1187 # Use a double $ so make ignores it.
1188 test "$program_suffix" != NONE
&&
1189 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1191 # sed with no file args requires a program.
1192 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1194 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1195 echo "configure:1196: checking whether ${MAKE-make} sets \${MAKE}" >&5
1196 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1197 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 cat > conftestmake
<<\EOF
1202 @
echo 'ac_maketemp="${MAKE}"'
1204 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1205 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1206 if test -n "$ac_maketemp"; then
1207 eval ac_cv_prog_make_
${ac_make}_set
=yes
1209 eval ac_cv_prog_make_
${ac_make}_set
=no
1213 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1217 echo "$ac_t""no" 1>&6
1218 SET_MAKE
="MAKE=${MAKE-make}"
1226 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1227 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1229 cat >> confdefs.h
<<EOF
1230 #define PACKAGE "$PACKAGE"
1233 cat >> confdefs.h
<<EOF
1234 #define VERSION "$VERSION"
1239 missing_dir
=`cd $ac_aux_dir && pwd`
1240 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1241 echo "configure:1242: checking for working aclocal" >&5
1242 # Run test in a subshell; some versions of sh will print an error if
1243 # an executable is not found, even if stderr is redirected.
1244 # Redirect stdin to placate older versions of autoconf. Sigh.
1245 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1247 echo "$ac_t""found" 1>&6
1249 ACLOCAL
="$missing_dir/missing aclocal"
1250 echo "$ac_t""missing" 1>&6
1253 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1254 echo "configure:1255: checking for working autoconf" >&5
1255 # Run test in a subshell; some versions of sh will print an error if
1256 # an executable is not found, even if stderr is redirected.
1257 # Redirect stdin to placate older versions of autoconf. Sigh.
1258 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1260 echo "$ac_t""found" 1>&6
1262 AUTOCONF
="$missing_dir/missing autoconf"
1263 echo "$ac_t""missing" 1>&6
1266 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1267 echo "configure:1268: checking for working automake" >&5
1268 # Run test in a subshell; some versions of sh will print an error if
1269 # an executable is not found, even if stderr is redirected.
1270 # Redirect stdin to placate older versions of autoconf. Sigh.
1271 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1273 echo "$ac_t""found" 1>&6
1275 AUTOMAKE
="$missing_dir/missing automake"
1276 echo "$ac_t""missing" 1>&6
1279 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1280 echo "configure:1281: checking for working autoheader" >&5
1281 # Run test in a subshell; some versions of sh will print an error if
1282 # an executable is not found, even if stderr is redirected.
1283 # Redirect stdin to placate older versions of autoconf. Sigh.
1284 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1285 AUTOHEADER
=autoheader
1286 echo "$ac_t""found" 1>&6
1288 AUTOHEADER
="$missing_dir/missing autoheader"
1289 echo "$ac_t""missing" 1>&6
1292 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1293 echo "configure:1294: checking for working makeinfo" >&5
1294 # Run test in a subshell; some versions of sh will print an error if
1295 # an executable is not found, even if stderr is redirected.
1296 # Redirect stdin to placate older versions of autoconf. Sigh.
1297 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1299 echo "$ac_t""found" 1>&6
1301 MAKEINFO
="$missing_dir/missing makeinfo"
1302 echo "$ac_t""missing" 1>&6
1307 # Check whether --enable-shared or --disable-shared was given.
1308 if test "${enable_shared+set}" = set; then
1309 enableval
="$enable_shared"
1310 p
=${PACKAGE-default}
1311 case "$enableval" in
1312 yes) enable_shared
=yes ;;
1313 no
) enable_shared
=no
;;
1316 # Look at the argument we got. We use all the common list separators.
1317 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1318 for pkg
in $enableval; do
1319 if test "X$pkg" = "X$p"; then
1330 # Check whether --enable-static or --disable-static was given.
1331 if test "${enable_static+set}" = set; then
1332 enableval
="$enable_static"
1333 p
=${PACKAGE-default}
1334 case "$enableval" in
1335 yes) enable_static
=yes ;;
1336 no
) enable_static
=no
;;
1339 # Look at the argument we got. We use all the common list separators.
1340 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1341 for pkg
in $enableval; do
1342 if test "X$pkg" = "X$p"; then
1353 # Extract the first word of "ranlib", so it can be a program name with args.
1354 set dummy ranlib
; ac_word
=$2
1355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1356 echo "configure:1357: checking for $ac_word" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 if test -n "$RANLIB"; then
1361 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1363 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1365 for ac_dir
in $ac_dummy; do
1366 test -z "$ac_dir" && ac_dir
=.
1367 if test -f $ac_dir/$ac_word; then
1368 ac_cv_prog_RANLIB
="ranlib"
1373 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1376 RANLIB
="$ac_cv_prog_RANLIB"
1377 if test -n "$RANLIB"; then
1378 echo "$ac_t""$RANLIB" 1>&6
1380 echo "$ac_t""no" 1>&6
1383 # Extract the first word of "gcc", so it can be a program name with args.
1384 set dummy gcc
; ac_word
=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 if test -n "$CC"; then
1391 ac_cv_prog_CC
="$CC" # Let the user override the test.
1393 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1395 for ac_dir
in $ac_dummy; do
1396 test -z "$ac_dir" && ac_dir
=.
1397 if test -f $ac_dir/$ac_word; then
1406 if test -n "$CC"; then
1407 echo "$ac_t""$CC" 1>&6
1409 echo "$ac_t""no" 1>&6
1412 if test -z "$CC"; then
1413 # Extract the first word of "cc", so it can be a program name with args.
1414 set dummy cc
; ac_word
=$2
1415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1416 echo "configure:1417: checking for $ac_word" >&5
1417 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1420 if test -n "$CC"; then
1421 ac_cv_prog_CC
="$CC" # Let the user override the test.
1423 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1426 for ac_dir
in $ac_dummy; do
1427 test -z "$ac_dir" && ac_dir
=.
1428 if test -f $ac_dir/$ac_word; then
1429 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1430 ac_prog_rejected
=yes
1438 if test $ac_prog_rejected = yes; then
1439 # We found a bogon in the path, so make sure we never use it.
1440 set dummy
$ac_cv_prog_CC
1442 if test $# -gt 0; then
1443 # We chose a different compiler from the bogus one.
1444 # However, it has the same basename, so the bogon will be chosen
1445 # first if we set CC to just the basename; use the full file name.
1447 set dummy
"$ac_dir/$ac_word" "$@"
1455 if test -n "$CC"; then
1456 echo "$ac_t""$CC" 1>&6
1458 echo "$ac_t""no" 1>&6
1461 if test -z "$CC"; then
1462 case "`uname -s`" in
1464 # Extract the first word of "cl", so it can be a program name with args.
1465 set dummy cl
; ac_word
=$2
1466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1467 echo "configure:1468: checking for $ac_word" >&5
1468 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC
="$CC" # Let the user override the test.
1474 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1476 for ac_dir
in $ac_dummy; do
1477 test -z "$ac_dir" && ac_dir
=.
1478 if test -f $ac_dir/$ac_word; then
1487 if test -n "$CC"; then
1488 echo "$ac_t""$CC" 1>&6
1490 echo "$ac_t""no" 1>&6
1495 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1498 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1499 echo "configure:1500: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1503 ac_cpp
='$CPP $CPPFLAGS'
1504 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1505 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1506 cross_compiling
=$ac_cv_prog_cc_cross
1508 cat > conftest.
$ac_ext << EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1515 if { (eval echo configure
:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1516 ac_cv_prog_cc_works
=yes
1517 # If we can't run a trivial program, we are probably using a cross compiler.
1518 if (.
/conftest
; exit) 2>/dev
/null
; then
1519 ac_cv_prog_cc_cross
=no
1521 ac_cv_prog_cc_cross
=yes
1524 echo "configure: failed program was:" >&5
1525 cat conftest.
$ac_ext >&5
1526 ac_cv_prog_cc_works
=no
1530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1531 ac_cpp
='$CPP $CPPFLAGS'
1532 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1533 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1534 cross_compiling
=$ac_cv_prog_cc_cross
1536 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1537 if test $ac_cv_prog_cc_works = no
; then
1538 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1540 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1541 echo "configure:1542: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1542 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1543 cross_compiling
=$ac_cv_prog_cc_cross
1545 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1546 echo "configure:1547: checking whether we are using GNU C" >&5
1547 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 cat > conftest.c
<<EOF
1555 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1562 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1564 if test $ac_cv_prog_gcc = yes; then
1570 ac_test_CFLAGS
="${CFLAGS+set}"
1571 ac_save_CFLAGS
="$CFLAGS"
1573 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1574 echo "configure:1575: checking whether ${CC-cc} accepts -g" >&5
1575 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 echo 'void f(){}' > conftest.c
1579 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1588 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1589 if test "$ac_test_CFLAGS" = set; then
1590 CFLAGS
="$ac_save_CFLAGS"
1591 elif test $ac_cv_prog_cc_g = yes; then
1592 if test "$GCC" = yes; then
1598 if test "$GCC" = yes; then
1605 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1606 if test "${with_gnu_ld+set}" = set; then
1607 withval
="$with_gnu_ld"
1608 test "$withval" = no || with_gnu_ld
=yes
1615 if test "$ac_cv_prog_gcc" = yes; then
1616 # Check if gcc -print-prog-name=ld gives a path.
1617 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1618 echo "configure:1619: checking for ld used by GCC" >&5
1619 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1621 # Accept absolute paths.
1623 test -z "$LD" && LD
="$ac_prog"
1626 # If it fails, then pretend we aren't using GCC.
1630 # If it is relative, then search for the first ld in PATH.
1634 elif test "$with_gnu_ld" = yes; then
1635 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1636 echo "configure:1637: checking for GNU ld" >&5
1638 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1639 echo "configure:1640: checking for non-GNU ld" >&5
1641 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 if test -z "$LD"; then
1645 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1646 for ac_dir
in $PATH; do
1647 test -z "$ac_dir" && ac_dir
=.
1648 if test -f "$ac_dir/$ac_prog"; then
1649 ac_cv_path_LD
="$ac_dir/$ac_prog"
1650 # Check to see if the program is GNU ld. I'd rather use --version,
1651 # but apparently some GNU ld's only accept -v.
1652 # Break only if it was the GNU/non-GNU ld that we prefer.
1653 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1654 test "$with_gnu_ld" != no
&& break
1656 test "$with_gnu_ld" != yes && break
1662 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1667 if test -n "$LD"; then
1668 echo "$ac_t""$LD" 1>&6
1670 echo "$ac_t""no" 1>&6
1672 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1674 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1675 echo "configure:1676: checking if the linker ($LD) is GNU ld" >&5
1676 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1680 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1681 ac_cv_prog_gnu_ld
=yes
1683 ac_cv_prog_gnu_ld
=no
1687 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1690 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1691 echo "configure:1692: checking for BSD-compatible nm" >&5
1692 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1695 if test -n "$NM"; then
1696 # Let the user override the test.
1699 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1700 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1701 test -z "$ac_dir" && ac_dir
=.
1702 if test -f $ac_dir/nm
; then
1703 # Check to see if the nm accepts a BSD-compat flag.
1704 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1705 # nm: unknown option "B" ignored
1706 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1707 ac_cv_path_NM
="$ac_dir/nm -B"
1708 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1709 ac_cv_path_NM
="$ac_dir/nm -p"
1711 ac_cv_path_NM
="$ac_dir/nm"
1717 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1722 echo "$ac_t""$NM" 1>&6
1725 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1726 echo "configure:1727: checking whether ln -s works" >&5
1727 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1731 if ln -s X conftestdata
2>/dev
/null
1734 ac_cv_prog_LN_S
="ln -s"
1739 LN_S
="$ac_cv_prog_LN_S"
1740 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1741 echo "$ac_t""yes" 1>&6
1743 echo "$ac_t""no" 1>&6
1746 if test $host != $build; then
1747 ac_tool_prefix
=${host_alias}-
1752 # Always use our own libtool.
1753 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1755 # Check for any special flags to pass to ltconfig.
1757 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1758 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1759 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1760 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1761 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1763 # Some flags need to be propagated to the compiler or linker for good
1767 # Find out which ABI we are using.
1768 echo '#line 1769 "configure"' > conftest.
$ac_ext
1769 if { (eval echo configure
:1770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1770 case "`/usr/bin/file conftest.o`" in
1786 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1787 CFLAGS
="$CFLAGS -belf"
1791 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1792 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1794 echo "configure:1795: checking for $ac_word" >&5
1795 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1798 if test -n "$DLLTOOL"; then
1799 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1801 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1803 for ac_dir
in $ac_dummy; do
1804 test -z "$ac_dir" && ac_dir
=.
1805 if test -f $ac_dir/$ac_word; then
1806 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1813 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1814 if test -n "$DLLTOOL"; then
1815 echo "$ac_t""$DLLTOOL" 1>&6
1817 echo "$ac_t""no" 1>&6
1821 if test -z "$ac_cv_prog_DLLTOOL"; then
1822 if test -n "$ac_tool_prefix"; then
1823 # Extract the first word of "dlltool", so it can be a program name with args.
1824 set dummy dlltool
; ac_word
=$2
1825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_word" >&5
1827 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 if test -n "$DLLTOOL"; then
1831 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1833 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1835 for ac_dir
in $ac_dummy; do
1836 test -z "$ac_dir" && ac_dir
=.
1837 if test -f $ac_dir/$ac_word; then
1838 ac_cv_prog_DLLTOOL
="dlltool"
1843 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1846 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1847 if test -n "$DLLTOOL"; then
1848 echo "$ac_t""$DLLTOOL" 1>&6
1850 echo "$ac_t""no" 1>&6
1858 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1859 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1861 echo "configure:1862: checking for $ac_word" >&5
1862 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 if test -n "$AS"; then
1866 ac_cv_prog_AS
="$AS" # Let the user override the test.
1868 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1870 for ac_dir
in $ac_dummy; do
1871 test -z "$ac_dir" && ac_dir
=.
1872 if test -f $ac_dir/$ac_word; then
1873 ac_cv_prog_AS
="${ac_tool_prefix}as"
1881 if test -n "$AS"; then
1882 echo "$ac_t""$AS" 1>&6
1884 echo "$ac_t""no" 1>&6
1888 if test -z "$ac_cv_prog_AS"; then
1889 if test -n "$ac_tool_prefix"; then
1890 # Extract the first word of "as", so it can be a program name with args.
1891 set dummy as
; ac_word
=$2
1892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1893 echo "configure:1894: checking for $ac_word" >&5
1894 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1895 echo $ac_n "(cached) $ac_c" 1>&6
1897 if test -n "$AS"; then
1898 ac_cv_prog_AS
="$AS" # Let the user override the test.
1900 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1902 for ac_dir
in $ac_dummy; do
1903 test -z "$ac_dir" && ac_dir
=.
1904 if test -f $ac_dir/$ac_word; then
1910 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1914 if test -n "$AS"; then
1915 echo "$ac_t""$AS" 1>&6
1917 echo "$ac_t""no" 1>&6
1930 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1931 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1932 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1933 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1934 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1935 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1936 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1938 # Redirect the config.log output again, so that the ltconfig log is not
1939 # clobbered by the next message.
1940 exec 5>>.
/config.log
1944 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1945 if test "${enable_bfd_assembler+set}" = set; then
1946 enableval
="$enable_bfd_assembler"
1947 case "${enableval}" in
1948 yes) need_bfd
=yes user_bfd_gas
=yes ;;
1949 no
) user_bfd_gas
=no
;;
1950 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1953 # Check whether --enable-targets or --disable-targets was given.
1954 if test "${enable_targets+set}" = set; then
1955 enableval
="$enable_targets"
1956 case "${enableval}" in
1957 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1959 no
) enable_targets
= ;;
1960 *) enable_targets
=$enableval ;;
1963 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1964 if test "${enable_commonbfdlib+set}" = set; then
1965 enableval
="$enable_commonbfdlib"
1966 case "${enableval}" in
1967 yes) commonbfdlib
=true
;;
1968 no
) commonbfdlib
=false
;;
1969 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1973 # Generate a header file
1980 # Makefile target for installing gas in $(tooldir)/bin.
1981 install_tooldir
=install-exec-tooldir
1984 if test -n "$enable_targets" ; then
1985 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
1986 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $t 2>/dev/null`
1987 if test -n "$result" ; then
1988 canon_targets
="$canon_targets $result"
1990 # # Permit "all", etc. We don't support it yet though.
1991 # canon_targets="$canon_targets $t"
1994 _gas_uniq_list
="$canon_targets"
1995 _gas_uniq_newlist
=""
1996 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1997 case $_gas_uniq_i in
1999 *) case " $_gas_uniq_newlist " in
2000 *" $_gas_uniq_i "*) ;;
2001 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2005 canon_targets
=$_gas_uniq_newlist
2011 for this_target
in $target $canon_targets ; do
2013 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
2015 # check for architecture variants
2019 alpha
*) cpu_type
=alpha
;;
2020 armeb
) cpu_type
=arm endian
=big
;;
2021 arm
*) cpu_type
=arm endian
=little
;;
2022 thumb
*) cpu_type
=arm endian
=little
;;
2023 hppa
*) cpu_type
=hppa
;;
2024 i
[456]86) cpu_type
=i386
;;
2025 m680
[012346]0) cpu_type
=m68k
;;
2026 m68008
) cpu_type
=m68k
;;
2027 m683??
) cpu_type
=m68k
;;
2028 m5200
) cpu_type
=m68k
;;
2029 m8
*) cpu_type
=m88k
;;
2030 mips
*el
) cpu_type
=mips endian
=little
;;
2031 # start-sanitize-r5900
2032 mips
*5900*) cpu_type
=mips endian
=little
;;
2033 # end-sanitize-r5900
2034 mips
*) cpu_type
=mips endian
=big
;;
2035 powerpcle
*) cpu_type
=ppc endian
=little
;;
2036 powerpc
*) cpu_type
=ppc endian
=big
;;
2037 rs6000
*) cpu_type
=ppc
;;
2038 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
2039 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
2040 sparc64
*) cpu_type
=sparc arch
=v9-64
;;
2041 sparc86x
*) cpu_type
=sparc arch
=sparc86x
;;
2042 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
2043 v850
*) cpu_type
=v850
;;
2044 *) cpu_type
=${cpu} ;;
2047 if test ${this_target} = $target ; then
2048 target_cpu_type
=${cpu_type}
2049 if test x
${endian} = xbig
; then
2050 cat >> confdefs.h
<<\EOF
2051 #define TARGET_BYTES_BIG_ENDIAN 1
2054 elif test x
${endian} = xlittle
; then
2055 cat >> confdefs.h
<<\EOF
2056 #define TARGET_BYTES_BIG_ENDIAN 0
2060 elif test ${target_cpu_type} != ${cpu_type} ; then
2064 generic_target
=${cpu_type}-$vendor-$os
2069 # assign object format
2070 case ${generic_target} in
2071 a29k-
*-coff) fmt=coff
;;
2072 a29k-amd-udi
) fmt=coff
;;
2073 a29k-amd-ebmon
) fmt=coff
;;
2074 a29k-nyu-sym1
) fmt=coff
;;
2075 a29k-
*-vxworks*) fmt=coff
;;
2077 alpha
*-*-*vms
*) fmt=evax
;;
2078 alpha
*-*-netware*) fmt=ecoff
;;
2079 alpha
*-*-openbsd*) fmt=ecoff
;;
2080 alpha
*-*-osf*) fmt=ecoff
;;
2081 alpha
*-*-linuxecoff*) fmt=ecoff
;;
2082 alpha
*-*-linux-gnu*) fmt=elf em
=linux
;;
2083 alpha
*-*-netbsd*) fmt=elf em
=nbsd
;;
2085 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
2087 arm-
*-riscix*) fmt=aout em
=riscix
;;
2088 arm-
*-aout) fmt=aout
;;
2089 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
2090 arm-
*-elf | thumb-
*-elf) fmt=elf
;;
2091 arm-
*-riscix*) fmt=aout
;;
2092 arm-
*-pe | thumb-
*-pe) fmt=coff em
=pe
;;
2094 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
2095 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
2097 # start-sanitize-sky
2098 dvp-
*-*) fmt=elf bfd_gas
=yes install_tooldir
= ;;
2101 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
2102 hppa-
*-lites*) fmt=elf em
=hppa
;;
2103 hppa-
*-osf*) fmt=som em
=hppa
;;
2104 hppa-
*-rtems*) fmt=elf em
=hppa
;;
2105 hppa-
*-hpux*) fmt=som em
=hppa
;;
2106 hppa-
*-bsd*) fmt=som em
=hppa
;;
2107 hppa-
*-hiux*) fmt=som em
=hppa
;;
2109 h8300-
*-coff) fmt=coff
;;
2111 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
2112 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
2113 i386-
*-beospe*) fmt=coff em
=pe bfd_gas
=yes ;;
2114 i386-
*-beoself* | i386-
*-beos*) fmt=elf bfd_gas
=yes ;;
2115 i386-
*-bsd*) fmt=aout em
=386bsd
;;
2116 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
2117 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
2118 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
2119 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
2120 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
2121 i386-
*-linux-gnu*) fmt=elf em
=linux bfd_gas
=yes ;;
2122 i386-
*-lynxos*) fmt=coff em
=lynx
;;
2123 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
2124 fmt=elf bfd_gas
=yes ;;
2125 i386-
*-freebsdelf*) fmt=elf bfd_gas
=yes ;;
2126 i386-
*-freebsd*) fmt=aout em
=386bsd
;;
2127 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
2129 i386-
*-sco3.2v5
*) fmt=elf
2130 if test ${this_target} = $target; then
2131 cat >> confdefs.h
<<\EOF
2137 i386-
*-sco3.2
*) fmt=coff
;;
2138 i386-
*-vsta) fmt=aout
;;
2139 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
2141 i386-
*-rtems*) fmt=coff
;;
2142 i386-
*-gnu*) fmt=elf
;;
2144 fmt=aout em
=mach bfd_gas
=yes ;;
2145 i386-
*-msdos*) fmt=aout
;;
2146 i386-
*-moss*) fmt=elf
;;
2147 i386-
*-pe) fmt=coff em
=pe
;;
2148 i386-
*-cygwin*) fmt=coff em
=pe bfd_gas
=yes ;;
2149 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
2150 i386-
*-*nt
*) fmt=coff em
=pe
;;
2151 i960-
*-bout) fmt=bout
;;
2152 i960-
*-coff) fmt=coff em
=ic960
;;
2153 i960-
*-rtems*) fmt=coff em
=ic960
;;
2154 i960-
*-nindy*) fmt=bout
;;
2155 i960-
*-vxworks4*) fmt=bout
;;
2156 i960-
*-vxworks5.0
) fmt=bout
;;
2157 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
2158 i960-
*-vxworks*) fmt=bout
;;
2160 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
2162 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
2164 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
2165 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
2166 m68k-apollo-
*) fmt=coff em
=apollo
;;
2167 m68k-
*-sysv4*) # must be before -sysv*
2169 m68k-
*-elf*) fmt=elf
;;
2170 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
2172 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
2173 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
2174 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
2175 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
2176 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
2177 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
2178 m68k-apple-aux
*) fmt=coff em
=aux
;;
2179 m68k-
*-psos*) fmt=elf em
=psos
;;
2181 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
2182 m88k-
*-coff*) fmt=coff
;;
2184 # don't change em like *-*-bsd does
2185 mips-dec-netbsd
*) fmt=elf endian
=little
;;
2186 mips-dec-openbsd
*) fmt=elf endian
=little
;;
2187 mips-dec-bsd
*) fmt=aout
;;
2188 mips-sony-bsd
*) fmt=ecoff
;;
2189 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
2190 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
2191 mips-
*-osf*) fmt=ecoff endian
=little
;;
2192 mips-
*-ecoff*) fmt=ecoff
;;
2193 mips-
*-ecoff*) fmt=ecoff
;;
2194 mips-
*-irix6*) fmt=elf
;;
2195 mips-
*-irix5*) fmt=elf
;;
2196 mips-
*-irix*) fmt=ecoff
;;
2197 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
2198 mips-
*-riscos*) fmt=ecoff
;;
2199 mips-
*-sysv*) fmt=ecoff
;;
2200 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux-gnu* | mips-
*-gnu* | mips-
*-openbsd*)
2202 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
2203 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
2204 ppc-
*-pe | ppc-
*-cygwin* | ppc-
*-winnt*)
2206 ppc-
*-aix*) fmt=coff
;;
2207 ppc-
*-beos*) fmt=coff
;;
2208 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
2210 ppc-
*-linux-gnu*) fmt=elf
2213 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
2216 ppc-
*-solaris*) fmt=elf
2217 if test ${this_target} = $target; then
2218 cat >> confdefs.h
<<\EOF
2219 #define TARGET_SOLARIS_COMMENT 1
2223 if test x
${endian} = xbig
; then
2224 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
2227 ppc-
*-rtems*) fmt=elf
;;
2228 ppc-
*-macos* | ppc-
*-mpw*)
2229 fmt=coff em
=macos
;;
2230 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
2232 sh-
*-elf*) fmt=elf
;;
2233 sh-
*-coff*) fmt=coff
;;
2234 sh-
*-rtems*) fmt=coff
;;
2236 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
2237 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
2238 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
2240 sparc-
*-rtems*) fmt=aout
;;
2241 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
2242 sparc-
*-aout | sparc
*-*-vxworks*)
2243 fmt=aout em
=sparcaout
;;
2244 sparc-
*-coff) fmt=coff
;;
2245 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
2246 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
2247 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
2248 sparc-fujitsu-none
) fmt=aout
;;
2249 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
2251 sparc-
*-netbsd*) fmt=aout em
=nbsd
;;
2252 sparc-
*-openbsd*) fmt=aout em
=nbsd
;;
2254 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
2255 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
2256 # start-sanitize-tic80
2257 tic80-
*-*) fmt=coff
;;
2258 # end-sanitize-tic80
2260 v850-
*-*) fmt=elf bfd_gas
=yes ;;
2262 # start-sanitize-v850e
2263 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
2264 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
2265 # end-sanitize-v850e
2266 vax-
*-bsd* | vax-
*-ultrix*)
2268 vax-
*-vms) fmt=vms
;;
2270 z8k-
*-coff | z8k-
*-sim)
2273 w65-
*-*) fmt=coff
;;
2275 *-*-aout |
*-*-scout)
2281 *-*-generic) fmt=generic
;;
2282 *-*-xray |
*-*-hms) fmt=coff
;;
2283 *-*-sim) fmt=coff
;;
2284 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
2285 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
2287 *-*-vxworks) fmt=aout
;;
2288 *-*-netware) fmt=elf
;;
2291 case ${cpu_type}-${fmt} in
2292 alpha
*-*) bfd_gas
=yes ;;
2293 arm-
*) bfd_gas
=yes ;;
2295 # i386-aout) bfd_gas=preferred ;;
2296 mips-
*) bfd_gas
=yes ;;
2297 ns32k-
*) bfd_gas
=yes ;;
2298 ppc-
*) bfd_gas
=yes ;;
2299 sparc-
*) bfd_gas
=yes ;;
2300 *-elf) bfd_gas
=yes ;;
2301 *-ecoff) bfd_gas
=yes ;;
2302 *-som) bfd_gas
=yes ;;
2306 # Other random stuff.
2308 # do we need the opcodes library?
2315 case "${enable_shared}" in
2316 yes) shared_opcodes
=true
;;
2317 *opcodes
*) shared_opcodes
=true
;;
2318 *) shared_opcodes
=false
;;
2320 if test "${shared_opcodes}" = "true"; then
2321 # A shared libopcodes must be linked against libbfd.
2329 case "x${extra_objects}" in
2331 *) extra_objects
="$extra_objects cgen.o"
2332 cat >> confdefs.h
<<\EOF
2333 #define USING_CGEN 1
2341 case ${extra_objects} in
2343 *) extra_objects
="$extra_objects m68k-parse.o" ;;
2348 echo ${extra_objects} |
grep -s "itbl-parse.o"
2349 if test $?
-ne 0 ; then
2350 extra_objects
="$extra_objects itbl-parse.o"
2353 echo ${extra_objects} |
grep -s "itbl-lex.o"
2354 if test $?
-ne 0 ; then
2355 extra_objects
="$extra_objects itbl-lex.o"
2358 echo ${extra_objects} |
grep -s "itbl-ops.o"
2359 if test $?
-ne 0 ; then
2360 extra_objects
="$extra_objects itbl-ops.o"
2365 if test $this_target = $target ; then
2366 cat >> confdefs.h
<<EOF
2367 #define DEFAULT_ARCH "${arch}"
2377 # See if we really can support this configuration with the emulation code.
2379 if test $this_target = $target ; then
2380 primary_bfd_gas
=$bfd_gas
2384 if test $bfd_gas = no
; then
2385 # Can't support other configurations this way.
2388 elif test $bfd_gas = no
; then
2389 # Can't support this configuration.
2393 # From target name and format, produce a list of supported emulations.
2395 case ${generic_target}-${fmt} in
2396 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2397 mips-
*-linux-gnu*-*) case "$endian" in
2398 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2399 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
2401 mips-
*-lnews*-ecoff) ;;
2402 mips-
*-*-ecoff) case "$endian" in
2403 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
2404 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
2406 mips-
*-*-elf) case "$endian" in
2407 big
) emulation
="mipsbelf mipslelf mipself" ;;
2408 *) emulation
="mipslelf mipsbelf mipself" ;;
2409 # Uncommenting the next line will turn on support for i386 COFF
2410 # in any i386 ELF configuration. This probably doesn't work
2412 # i386-*-*-elf) emulation="i386coff i386elf" ;;
2416 emulations
="$emulations $emulation"
2420 # Assign floating point type. Most processors with FP support
2421 # IEEE FP. On those that don't support FP at all, usually IEEE
2423 case ${target_cpu} in
2424 vax | tahoe
) atof
=${target_cpu} ;;
2428 case "${obj_format}" in
2429 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2432 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2434 case "x${extra_objects}" in
2436 case ${target_cpu} in
2437 *) cgen_cpu_prefix
=${target_cpu} ;;
2444 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
2445 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2448 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
2449 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2452 case ${user_bfd_gas}-${primary_bfd_gas} in
2454 # We didn't override user's choice.
2457 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2469 # User specified nothing.
2473 # Some COFF configurations want these random other flags set.
2474 case ${obj_format} in
2476 case ${target_cpu_type} in
2477 i386
) cat >> confdefs.h
<<\EOF
2481 m68k
) cat >> confdefs.h
<<\EOF
2485 m88k
) cat >> confdefs.h
<<\EOF
2493 # Getting this done right is going to be a bitch. Each configuration specified
2494 # with --enable-targets=... should be checked for environment, format, cpu, and
2497 # For each configuration, the necessary object file support code must be linked
2498 # in. This might be only one, it might be up to four. The necessary emulation
2499 # code needs to be provided, too.
2501 # And then there's "--enable-targets=all"....
2503 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2505 formats
="${obj_format}"
2508 _gas_uniq_list
="$emulations"
2509 _gas_uniq_newlist
=""
2510 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2511 case $_gas_uniq_i in
2513 *) case " $_gas_uniq_newlist " in
2514 *" $_gas_uniq_i "*) ;;
2515 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2519 emulations
=$_gas_uniq_newlist
2521 for em
in .
$emulations ; do
2524 mipsbelf | mipslelf
)
2525 fmt=elf
file=mipself
;;
2526 mipsbecoff | mipslecoff
)
2527 fmt=ecoff
file=mipsecoff
;;
2529 fmt=coff
file=i386coff
;;
2531 fmt=elf
file=i386elf
;;
2533 formats
="$formats $fmt"
2534 emfiles
="$emfiles e-$file.o"
2535 EMULATIONS
="$EMULATIONS &$em,"
2537 _gas_uniq_list
="$formats"
2538 _gas_uniq_newlist
=""
2539 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2540 case $_gas_uniq_i in
2542 *) case " $_gas_uniq_newlist " in
2543 *" $_gas_uniq_i "*) ;;
2544 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2548 formats
=$_gas_uniq_newlist
2550 _gas_uniq_list
="$emfiles"
2551 _gas_uniq_newlist
=""
2552 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2553 case $_gas_uniq_i in
2555 *) case " $_gas_uniq_newlist " in
2556 *" $_gas_uniq_i "*) ;;
2557 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2561 emfiles
=$_gas_uniq_newlist
2563 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2564 for fmt in $formats ; do
2566 aout
) cat >> confdefs.h
<<\EOF
2567 #define OBJ_MAYBE_AOUT 1
2570 bout
) cat >> confdefs.h
<<\EOF
2571 #define OBJ_MAYBE_BOUT 1
2574 coff
) cat >> confdefs.h
<<\EOF
2575 #define OBJ_MAYBE_COFF 1
2578 ecoff
) cat >> confdefs.h
<<\EOF
2579 #define OBJ_MAYBE_ECOFF 1
2582 elf
) cat >> confdefs.h
<<\EOF
2583 #define OBJ_MAYBE_ELF 1
2586 generic
) cat >> confdefs.h
<<\EOF
2587 #define OBJ_MAYBE_GENERIC 1
2590 hp300
) cat >> confdefs.h
<<\EOF
2591 #define OBJ_MAYBE_HP300 1
2594 ieee
) cat >> confdefs.h
<<\EOF
2595 #define OBJ_MAYBE_IEEE 1
2598 som
) cat >> confdefs.h
<<\EOF
2599 #define OBJ_MAYBE_SOM 1
2602 vms
) cat >> confdefs.h
<<\EOF
2603 #define OBJ_MAYBE_VMS 1
2607 extra_objects
="$extra_objects obj-$fmt.o"
2611 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2613 extra_objects
="$extra_objects $emfiles"
2614 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
2615 cat >> confdefs.h
<<\EOF
2616 #define USE_EMULATIONS 1
2621 cat >> confdefs.h
<<EOF
2622 #define EMULATIONS $EMULATIONS
2625 cat >> confdefs.h
<<EOF
2626 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2630 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2631 yes-
*-coff) need_bfd
=yes ;;
2632 no-
*-coff) need_bfd
=yes
2633 cat >> confdefs.h
<<\EOF
2634 #define MANY_SEGMENTS 1
2639 reject_dev_configs
=yes
2641 case ${reject_dev_configs}-${dev} in
2643 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2653 case "${primary_bfd_gas}" in
2654 yes) cat >> confdefs.h
<<\EOF
2655 #define BFD_ASSEMBLER 1
2661 # do we need the opcodes library?
2662 case "${need_opcodes}" in
2664 OPCODES_LIB
=..
/opcodes
/libopcodes.la
2668 case "${need_bfd}" in
2670 BFDLIB
=..
/bfd
/libbfd.la
2671 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
2680 cat >> confdefs.h
<<EOF
2681 #define TARGET_ALIAS "${target_alias}"
2684 cat >> confdefs.h
<<EOF
2685 #define TARGET_CANONICAL "${target}"
2688 cat >> confdefs.h
<<EOF
2689 #define TARGET_CPU "${target_cpu}"
2692 cat >> confdefs.h
<<EOF
2693 #define TARGET_VENDOR "${target_vendor}"
2696 cat >> confdefs.h
<<EOF
2697 #define TARGET_OS "${target_os}"
2701 # Extract the first word of "gcc", so it can be a program name with args.
2702 set dummy gcc
; ac_word
=$2
2703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2704 echo "configure:2705: checking for $ac_word" >&5
2705 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 if test -n "$CC"; then
2709 ac_cv_prog_CC
="$CC" # Let the user override the test.
2711 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2713 for ac_dir
in $ac_dummy; do
2714 test -z "$ac_dir" && ac_dir
=.
2715 if test -f $ac_dir/$ac_word; then
2724 if test -n "$CC"; then
2725 echo "$ac_t""$CC" 1>&6
2727 echo "$ac_t""no" 1>&6
2730 if test -z "$CC"; then
2731 # Extract the first word of "cc", so it can be a program name with args.
2732 set dummy cc
; ac_word
=$2
2733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2734 echo "configure:2735: checking for $ac_word" >&5
2735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC
="$CC" # Let the user override the test.
2741 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2744 for ac_dir
in $ac_dummy; do
2745 test -z "$ac_dir" && ac_dir
=.
2746 if test -f $ac_dir/$ac_word; then
2747 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2748 ac_prog_rejected
=yes
2756 if test $ac_prog_rejected = yes; then
2757 # We found a bogon in the path, so make sure we never use it.
2758 set dummy
$ac_cv_prog_CC
2760 if test $# -gt 0; then
2761 # We chose a different compiler from the bogus one.
2762 # However, it has the same basename, so the bogon will be chosen
2763 # first if we set CC to just the basename; use the full file name.
2765 set dummy
"$ac_dir/$ac_word" "$@"
2773 if test -n "$CC"; then
2774 echo "$ac_t""$CC" 1>&6
2776 echo "$ac_t""no" 1>&6
2779 if test -z "$CC"; then
2780 case "`uname -s`" in
2782 # Extract the first word of "cl", so it can be a program name with args.
2783 set dummy cl
; ac_word
=$2
2784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2785 echo "configure:2786: checking for $ac_word" >&5
2786 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC
="$CC" # Let the user override the test.
2792 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2794 for ac_dir
in $ac_dummy; do
2795 test -z "$ac_dir" && ac_dir
=.
2796 if test -f $ac_dir/$ac_word; then
2805 if test -n "$CC"; then
2806 echo "$ac_t""$CC" 1>&6
2808 echo "$ac_t""no" 1>&6
2813 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2816 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2817 echo "configure:2818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2821 ac_cpp
='$CPP $CPPFLAGS'
2822 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2823 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2824 cross_compiling
=$ac_cv_prog_cc_cross
2826 cat > conftest.
$ac_ext << EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2833 if { (eval echo configure
:2834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2834 ac_cv_prog_cc_works
=yes
2835 # If we can't run a trivial program, we are probably using a cross compiler.
2836 if (.
/conftest
; exit) 2>/dev
/null
; then
2837 ac_cv_prog_cc_cross
=no
2839 ac_cv_prog_cc_cross
=yes
2842 echo "configure: failed program was:" >&5
2843 cat conftest.
$ac_ext >&5
2844 ac_cv_prog_cc_works
=no
2848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2849 ac_cpp
='$CPP $CPPFLAGS'
2850 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2851 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2852 cross_compiling
=$ac_cv_prog_cc_cross
2854 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2855 if test $ac_cv_prog_cc_works = no
; then
2856 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2858 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2859 echo "configure:2860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2860 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2861 cross_compiling
=$ac_cv_prog_cc_cross
2863 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2864 echo "configure:2865: checking whether we are using GNU C" >&5
2865 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 cat > conftest.c
<<EOF
2873 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2880 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2882 if test $ac_cv_prog_gcc = yes; then
2888 ac_test_CFLAGS
="${CFLAGS+set}"
2889 ac_save_CFLAGS
="$CFLAGS"
2891 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2892 echo "configure:2893: checking whether ${CC-cc} accepts -g" >&5
2893 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2896 echo 'void f(){}' > conftest.c
2897 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2906 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2907 if test "$ac_test_CFLAGS" = set; then
2908 CFLAGS
="$ac_save_CFLAGS"
2909 elif test $ac_cv_prog_cc_g = yes; then
2910 if test "$GCC" = yes; then
2916 if test "$GCC" = yes; then
2924 for ac_prog
in 'bison -y' byacc
2926 # Extract the first word of "$ac_prog", so it can be a program name with args.
2927 set dummy
$ac_prog; ac_word
=$2
2928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2929 echo "configure:2930: checking for $ac_word" >&5
2930 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 if test -n "$YACC"; then
2934 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2936 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2938 for ac_dir
in $ac_dummy; do
2939 test -z "$ac_dir" && ac_dir
=.
2940 if test -f $ac_dir/$ac_word; then
2941 ac_cv_prog_YACC
="$ac_prog"
2948 YACC
="$ac_cv_prog_YACC"
2949 if test -n "$YACC"; then
2950 echo "$ac_t""$YACC" 1>&6
2952 echo "$ac_t""no" 1>&6
2955 test -n "$YACC" && break
2957 test -n "$YACC" || YACC
="yacc"
2959 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2960 echo "configure:2961: checking how to run the C preprocessor" >&5
2961 # On Suns, sometimes $CPP names a directory.
2962 if test -n "$CPP" && test -d "$CPP"; then
2965 if test -z "$CPP"; then
2966 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 # This must be in double quotes, not single quotes, because CPP may get
2970 # substituted into the Makefile and "${CC-cc}" will confuse make.
2972 # On the NeXT, cc -E runs the code through the compiler's parser,
2973 # not just through cpp.
2974 cat > conftest.
$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2980 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2981 { (eval echo configure
:2982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2982 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2983 if test -z "$ac_err"; then
2987 echo "configure: failed program was:" >&5
2988 cat conftest.
$ac_ext >&5
2990 CPP
="${CC-cc} -E -traditional-cpp"
2991 cat > conftest.
$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2997 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2998 { (eval echo configure
:2999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2999 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3000 if test -z "$ac_err"; then
3004 echo "configure: failed program was:" >&5
3005 cat conftest.
$ac_ext >&5
3007 CPP
="${CC-cc} -nologo -E"
3008 cat > conftest.
$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3014 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3015 { (eval echo configure
:3016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3016 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3017 if test -z "$ac_err"; then
3021 echo "configure: failed program was:" >&5
3022 cat conftest.
$ac_ext >&5
3031 ac_cv_prog_CPP
="$CPP"
3033 CPP
="$ac_cv_prog_CPP"
3035 ac_cv_prog_CPP
="$CPP"
3037 echo "$ac_t""$CPP" 1>&6
3039 missing_dir
=`cd $ac_aux_dir && pwd`
3040 for ac_prog
in flex
lex
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy
$ac_prog; ac_word
=$2
3044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3045 echo "configure:3046: checking for $ac_word" >&5
3046 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 if test -n "$LEX"; then
3050 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3052 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3054 for ac_dir
in $ac_dummy; do
3055 test -z "$ac_dir" && ac_dir
=.
3056 if test -f $ac_dir/$ac_word; then
3057 ac_cv_prog_LEX
="$ac_prog"
3064 LEX
="$ac_cv_prog_LEX"
3065 if test -n "$LEX"; then
3066 echo "$ac_t""$LEX" 1>&6
3068 echo "$ac_t""no" 1>&6
3071 test -n "$LEX" && break
3073 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
3075 # Extract the first word of "flex", so it can be a program name with args.
3076 set dummy flex
; ac_word
=$2
3077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_word" >&5
3079 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 if test -n "$LEX"; then
3083 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3085 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3087 for ac_dir
in $ac_dummy; do
3088 test -z "$ac_dir" && ac_dir
=.
3089 if test -f $ac_dir/$ac_word; then
3090 ac_cv_prog_LEX
="flex"
3095 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3098 LEX
="$ac_cv_prog_LEX"
3099 if test -n "$LEX"; then
3100 echo "$ac_t""$LEX" 1>&6
3102 echo "$ac_t""no" 1>&6
3105 if test -z "$LEXLIB"
3111 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3112 echo "configure:3113: checking for yywrap in -l$ac_lib" >&5
3113 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 ac_save_LIBS
="$LIBS"
3118 LIBS
="-l$ac_lib $LIBS"
3119 cat > conftest.
$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 /* Override any gcc2 internal prototype to avoid an error. */
3123 /* We use char because int might match the return type of a gcc2
3124 builtin and then its argument prototype would still apply. */
3131 if { (eval echo configure
:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3133 eval "ac_cv_lib_$ac_lib_var=yes"
3135 echo "configure: failed program was:" >&5
3136 cat conftest.
$ac_ext >&5
3138 eval "ac_cv_lib_$ac_lib_var=no"
3141 LIBS
="$ac_save_LIBS"
3144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3145 echo "$ac_t""yes" 1>&6
3148 echo "$ac_t""no" 1>&6
3153 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3154 echo "configure:3155: checking lex output file root" >&5
3155 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 # The minimal lex program is just a single line: %%. But some broken lexes
3159 # (Solaris, I think it was) want two %% lines, so accommodate them.
3162 if test -f lex.yy.c
; then
3163 ac_cv_prog_lex_root
=lex.yy
3164 elif test -f lexyy.c
; then
3165 ac_cv_prog_lex_root
=lexyy
3167 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3171 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3172 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3174 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3175 echo "configure:3176: checking whether yytext is a pointer" >&5
3176 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 # POSIX says lex can declare yytext either as a pointer or an array; the
3180 # default is implementation-dependent. Figure out which it is, since
3181 # not all implementations provide the %pointer and %array declarations.
3182 ac_cv_prog_lex_yytext_pointer
=no
3183 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3184 ac_save_LIBS
="$LIBS"
3185 LIBS
="$LIBS $LEXLIB"
3186 cat > conftest.
$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 `cat $LEX_OUTPUT_ROOT.c`
3194 if { (eval echo configure
:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3196 ac_cv_prog_lex_yytext_pointer
=yes
3198 echo "configure: failed program was:" >&5
3199 cat conftest.
$ac_ext >&5
3202 LIBS
="$ac_save_LIBS"
3203 rm -f "${LEX_OUTPUT_ROOT}.c"
3207 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3208 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3209 cat >> confdefs.h
<<\EOF
3210 #define YYTEXT_POINTER 1
3217 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3218 echo "configure:3219: checking for POSIXized ISC" >&5
3219 if test -d /etc
/conf
/kconfig.d
&&
3220 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
3222 echo "$ac_t""yes" 1>&6
3223 ISC
=yes # If later tests want to check for ISC.
3224 cat >> confdefs.h
<<\EOF
3225 #define _POSIX_SOURCE 1
3228 if test "$GCC" = yes; then
3234 echo "$ac_t""no" 1>&6
3238 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3239 echo "configure:3240: checking for ANSI C header files" >&5
3240 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 cat > conftest.
$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3251 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3252 { (eval echo configure
:3253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3253 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3254 if test -z "$ac_err"; then
3256 ac_cv_header_stdc
=yes
3259 echo "configure: failed program was:" >&5
3260 cat conftest.
$ac_ext >&5
3262 ac_cv_header_stdc
=no
3266 if test $ac_cv_header_stdc = yes; then
3267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3268 cat > conftest.
$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3274 egrep "memchr" >/dev
/null
2>&1; then
3278 ac_cv_header_stdc
=no
3284 if test $ac_cv_header_stdc = yes; then
3285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3286 cat > conftest.
$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3292 egrep "free" >/dev
/null
2>&1; then
3296 ac_cv_header_stdc
=no
3302 if test $ac_cv_header_stdc = yes; then
3303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3304 if test "$cross_compiling" = yes; then
3307 cat > conftest.
$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3311 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3312 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3314 int main () { int i; for (i = 0; i < 256; i++)
3315 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3319 if { (eval echo configure
:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3323 echo "configure: failed program was:" >&5
3324 cat conftest.
$ac_ext >&5
3326 ac_cv_header_stdc
=no
3334 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3335 if test $ac_cv_header_stdc = yes; then
3336 cat >> confdefs.h
<<\EOF
3337 #define STDC_HEADERS 1
3342 echo $ac_n "checking for working const""... $ac_c" 1>&6
3343 echo "configure:3344: checking for working const" >&5
3344 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 cat > conftest.
$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3353 /* Ultrix mips cc rejects this. */
3354 typedef int charset[2]; const charset x;
3355 /* SunOS 4.1.1 cc rejects this. */
3356 char const *const *ccp;
3358 /* NEC SVR4.0.2 mips cc rejects this. */
3359 struct point {int x, y;};
3360 static struct point const zero = {0,0};
3361 /* AIX XL C 1.02.0.0 rejects this.
3362 It does not let you subtract one const X* pointer from another in an arm
3363 of an if-expression whose if-part is not a constant expression */
3364 const char *g = "string";
3365 ccp = &g + (g ? g-g : 0);
3366 /* HPUX 7.0 cc rejects these. */
3369 ccp = (char const *const *) p;
3370 { /* SCO 3.2v4 cc rejects this. */
3372 char const *s = 0 ? (char *) 0 : (char const *) 0;
3376 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3378 const int *foo = &x[0];
3381 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3382 typedef const int *iptr;
3386 { /* AIX XL C 1.02.0.0 rejects this saying
3387 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3388 struct s { int j; const int *ap[3]; };
3389 struct s *b; b->j = 5;
3391 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3397 if { (eval echo configure
:3398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3401 echo "configure: failed program was:" >&5
3402 cat conftest.
$ac_ext >&5
3409 echo "$ac_t""$ac_cv_c_const" 1>&6
3410 if test $ac_cv_c_const = no
; then
3411 cat >> confdefs.h
<<\EOF
3417 echo $ac_n "checking for inline""... $ac_c" 1>&6
3418 echo "configure:3419: checking for inline" >&5
3419 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3423 for ac_kw
in inline __inline__ __inline
; do
3424 cat > conftest.
$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3432 if { (eval echo configure
:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3434 ac_cv_c_inline
=$ac_kw; break
3436 echo "configure: failed program was:" >&5
3437 cat conftest.
$ac_ext >&5
3444 echo "$ac_t""$ac_cv_c_inline" 1>&6
3445 case "$ac_cv_c_inline" in
3447 no
) cat >> confdefs.h
<<\EOF
3451 *) cat >> confdefs.h
<<EOF
3452 #define inline $ac_cv_c_inline
3457 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3458 echo "configure:3459: checking for off_t" >&5
3459 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 cat > conftest.
$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <sys/types.h>
3471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3472 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3474 ac_cv_type_off_t
=yes
3482 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3483 if test $ac_cv_type_off_t = no
; then
3484 cat >> confdefs.h
<<\EOF
3490 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3491 echo "configure:3492: checking for size_t" >&5
3492 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 cat > conftest.
$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 #include <sys/types.h>
3504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3505 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3507 ac_cv_type_size_t
=yes
3510 ac_cv_type_size_t
=no
3515 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3516 if test $ac_cv_type_size_t = no
; then
3517 cat >> confdefs.h
<<\EOF
3518 #define size_t unsigned
3523 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3524 # for constant arguments. Useless!
3525 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3526 echo "configure:3527: checking for working alloca.h" >&5
3527 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 cat > conftest.
$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3535 char *p = alloca(2 * sizeof(int));
3538 if { (eval echo configure
:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3540 ac_cv_header_alloca_h
=yes
3542 echo "configure: failed program was:" >&5
3543 cat conftest.
$ac_ext >&5
3545 ac_cv_header_alloca_h
=no
3550 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3551 if test $ac_cv_header_alloca_h = yes; then
3552 cat >> confdefs.h
<<\EOF
3553 #define HAVE_ALLOCA_H 1
3558 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3559 echo "configure:3560: checking for alloca" >&5
3560 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3563 cat > conftest.
$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3568 # define alloca __builtin_alloca
3571 # include <malloc.h>
3572 # define alloca _alloca
3575 # include <alloca.h>
3580 # ifndef alloca /* predefined by HP cc +Olibcalls */
3589 char *p = (char *) alloca(1);
3592 if { (eval echo configure
:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3594 ac_cv_func_alloca_works
=yes
3596 echo "configure: failed program was:" >&5
3597 cat conftest.
$ac_ext >&5
3599 ac_cv_func_alloca_works
=no
3604 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3605 if test $ac_cv_func_alloca_works = yes; then
3606 cat >> confdefs.h
<<\EOF
3607 #define HAVE_ALLOCA 1
3612 if test $ac_cv_func_alloca_works = no
; then
3613 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3614 # that cause trouble. Some versions do not even contain alloca or
3615 # contain a buggy version. If you still want to use their alloca,
3616 # use ar to extract alloca.o from them instead of compiling alloca.c.
3617 ALLOCA
=alloca.
${ac_objext}
3618 cat >> confdefs.h
<<\EOF
3623 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3624 echo "configure:3625: checking whether alloca needs Cray hooks" >&5
3625 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 cat > conftest.
$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3631 #if defined(CRAY) && ! defined(CRAY2)
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 egrep "webecray" >/dev
/null
2>&1; then
3650 echo "$ac_t""$ac_cv_os_cray" 1>&6
3651 if test $ac_cv_os_cray = yes; then
3652 for ac_func
in _getb67 GETB67 getb67
; do
3653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3654 echo "configure:3655: checking for $ac_func" >&5
3655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 cat > conftest.
$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3661 /* System header to define __stub macros and hopefully few prototypes,
3662 which can conflict with char $ac_func(); below. */
3664 /* Override any gcc2 internal prototype to avoid an error. */
3665 /* We use char because int might match the return type of a gcc2
3666 builtin and then its argument prototype would still apply. */
3671 /* The GNU C library defines this for functions which it implements
3672 to always fail with ENOSYS. Some functions are actually named
3673 something starting with __ and the normal name is an alias. */
3674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3682 if { (eval echo configure
:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3684 eval "ac_cv_func_$ac_func=yes"
3686 echo "configure: failed program was:" >&5
3687 cat conftest.
$ac_ext >&5
3689 eval "ac_cv_func_$ac_func=no"
3694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3696 cat >> confdefs.h
<<EOF
3697 #define CRAY_STACKSEG_END $ac_func
3702 echo "$ac_t""no" 1>&6
3708 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3709 echo "configure:3710: checking stack direction for C alloca" >&5
3710 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3713 if test "$cross_compiling" = yes; then
3714 ac_cv_c_stack_direction
=0
3716 cat > conftest.
$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3719 find_stack_direction ()
3721 static char *addr = 0;
3726 return find_stack_direction ();
3729 return (&dummy > addr) ? 1 : -1;
3733 exit (find_stack_direction() < 0);
3736 if { (eval echo configure
:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3738 ac_cv_c_stack_direction
=1
3740 echo "configure: failed program was:" >&5
3741 cat conftest.
$ac_ext >&5
3743 ac_cv_c_stack_direction
=-1
3750 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3751 cat >> confdefs.h
<<EOF
3752 #define STACK_DIRECTION $ac_cv_c_stack_direction
3757 for ac_hdr
in unistd.h
3759 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3761 echo "configure:3762: checking for $ac_hdr" >&5
3762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 cat > conftest.
$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3770 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3771 { (eval echo configure
:3772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3772 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3773 if test -z "$ac_err"; then
3775 eval "ac_cv_header_$ac_safe=yes"
3778 echo "configure: failed program was:" >&5
3779 cat conftest.
$ac_ext >&5
3781 eval "ac_cv_header_$ac_safe=no"
3785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3786 echo "$ac_t""yes" 1>&6
3787 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3788 cat >> confdefs.h
<<EOF
3789 #define $ac_tr_hdr 1
3793 echo "$ac_t""no" 1>&6
3797 for ac_func
in getpagesize
3799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3800 echo "configure:3801: checking for $ac_func" >&5
3801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3804 cat > conftest.
$ac_ext <<EOF
3805 #line 3806 "configure"
3806 #include "confdefs.h"
3807 /* System header to define __stub macros and hopefully few prototypes,
3808 which can conflict with char $ac_func(); below. */
3810 /* Override any gcc2 internal prototype to avoid an error. */
3811 /* We use char because int might match the return type of a gcc2
3812 builtin and then its argument prototype would still apply. */
3817 /* The GNU C library defines this for functions which it implements
3818 to always fail with ENOSYS. Some functions are actually named
3819 something starting with __ and the normal name is an alias. */
3820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3828 if { (eval echo configure
:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3830 eval "ac_cv_func_$ac_func=yes"
3832 echo "configure: failed program was:" >&5
3833 cat conftest.
$ac_ext >&5
3835 eval "ac_cv_func_$ac_func=no"
3840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3841 echo "$ac_t""yes" 1>&6
3842 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3843 cat >> confdefs.h
<<EOF
3844 #define $ac_tr_func 1
3848 echo "$ac_t""no" 1>&6
3852 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3853 echo "configure:3854: checking for working mmap" >&5
3854 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 if test "$cross_compiling" = yes; then
3858 ac_cv_func_mmap_fixed_mapped
=no
3860 cat > conftest.
$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3864 /* Thanks to Mike Haertel and Jim Avera for this test.
3865 Here is a matrix of mmap possibilities:
3866 mmap private not fixed
3867 mmap private fixed at somewhere currently unmapped
3868 mmap private fixed at somewhere already mapped
3869 mmap shared not fixed
3870 mmap shared fixed at somewhere currently unmapped
3871 mmap shared fixed at somewhere already mapped
3872 For private mappings, we should verify that changes cannot be read()
3873 back from the file, nor mmap's back from the file at a different
3874 address. (There have been systems where private was not correctly
3875 implemented like the infamous i386 svr4.0, and systems where the
3876 VM page cache was not coherent with the filesystem buffer cache
3877 like early versions of FreeBSD and possibly contemporary NetBSD.)
3878 For shared mappings, we should conversely verify that changes get
3879 propogated back to all the places they're supposed to be.
3881 Grep wants private fixed already mapped.
3882 The main things grep needs to know about mmap are:
3883 * does it exist and is it safe to write into the mmap'd area
3884 * how to use it (BSD variants) */
3885 #include <sys/types.h>
3887 #include <sys/mman.h>
3889 /* This mess was copied from the GNU getpagesize.h. */
3890 #ifndef HAVE_GETPAGESIZE
3891 # ifdef HAVE_UNISTD_H
3892 # include <unistd.h>
3895 /* Assume that all systems that can run configure have sys/param.h. */
3896 # ifndef HAVE_SYS_PARAM_H
3897 # define HAVE_SYS_PARAM_H 1
3900 # ifdef _SC_PAGESIZE
3901 # define getpagesize() sysconf(_SC_PAGESIZE)
3902 # else /* no _SC_PAGESIZE */
3903 # ifdef HAVE_SYS_PARAM_H
3904 # include <sys/param.h>
3905 # ifdef EXEC_PAGESIZE
3906 # define getpagesize() EXEC_PAGESIZE
3907 # else /* no EXEC_PAGESIZE */
3909 # define getpagesize() NBPG * CLSIZE
3912 # endif /* no CLSIZE */
3913 # else /* no NBPG */
3915 # define getpagesize() NBPC
3916 # else /* no NBPC */
3918 # define getpagesize() PAGESIZE
3919 # endif /* PAGESIZE */
3920 # endif /* no NBPC */
3921 # endif /* no NBPG */
3922 # endif /* no EXEC_PAGESIZE */
3923 # else /* no HAVE_SYS_PARAM_H */
3924 # define getpagesize() 8192 /* punt totally */
3925 # endif /* no HAVE_SYS_PARAM_H */
3926 # endif /* no _SC_PAGESIZE */
3928 #endif /* no HAVE_GETPAGESIZE */
3931 extern "C" { void *malloc(unsigned); }
3939 char *data, *data2, *data3;
3943 pagesize = getpagesize();
3946 * First, make a file with some known garbage in it.
3948 data = malloc(pagesize);
3951 for (i = 0; i < pagesize; ++i)
3952 *(data + i) = rand();
3954 fd = creat("conftestmmap", 0600);
3957 if (write(fd, data, pagesize) != pagesize)
3962 * Next, try to mmap the file at a fixed address which
3963 * already has something else allocated at it. If we can,
3964 * also make sure that we see the same garbage.
3966 fd = open("conftestmmap", O_RDWR);
3969 data2 = malloc(2 * pagesize);
3972 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3973 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3974 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3976 for (i = 0; i < pagesize; ++i)
3977 if (*(data + i) != *(data2 + i))
3981 * Finally, make sure that changes to the mapped area
3982 * do not percolate back to the file as seen by read().
3983 * (This is a bug on some variants of i386 svr4.0.)
3985 for (i = 0; i < pagesize; ++i)
3986 *(data2 + i) = *(data2 + i) + 1;
3987 data3 = malloc(pagesize);
3990 if (read(fd, data3, pagesize) != pagesize)
3992 for (i = 0; i < pagesize; ++i)
3993 if (*(data + i) != *(data3 + i))
3996 unlink("conftestmmap");
4001 if { (eval echo configure
:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4003 ac_cv_func_mmap_fixed_mapped
=yes
4005 echo "configure: failed program was:" >&5
4006 cat conftest.
$ac_ext >&5
4008 ac_cv_func_mmap_fixed_mapped
=no
4015 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4016 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4017 cat >> confdefs.h
<<\EOF
4024 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4025 unistd.h values.h sys
/param.h
4027 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4029 echo "configure:4030: checking for $ac_hdr" >&5
4030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 cat > conftest.
$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4038 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4039 { (eval echo configure
:4040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4040 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4041 if test -z "$ac_err"; then
4043 eval "ac_cv_header_$ac_safe=yes"
4046 echo "configure: failed program was:" >&5
4047 cat conftest.
$ac_ext >&5
4049 eval "ac_cv_header_$ac_safe=no"
4053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4054 echo "$ac_t""yes" 1>&6
4055 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4056 cat >> confdefs.h
<<EOF
4057 #define $ac_tr_hdr 1
4061 echo "$ac_t""no" 1>&6
4065 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4066 __argz_count __argz_stringify __argz_next
4068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4069 echo "configure:4070: checking for $ac_func" >&5
4070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4073 cat > conftest.
$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 /* System header to define __stub macros and hopefully few prototypes,
4077 which can conflict with char $ac_func(); below. */
4079 /* Override any gcc2 internal prototype to avoid an error. */
4080 /* We use char because int might match the return type of a gcc2
4081 builtin and then its argument prototype would still apply. */
4086 /* The GNU C library defines this for functions which it implements
4087 to always fail with ENOSYS. Some functions are actually named
4088 something starting with __ and the normal name is an alias. */
4089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4097 if { (eval echo configure
:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4099 eval "ac_cv_func_$ac_func=yes"
4101 echo "configure: failed program was:" >&5
4102 cat conftest.
$ac_ext >&5
4104 eval "ac_cv_func_$ac_func=no"
4109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4110 echo "$ac_t""yes" 1>&6
4111 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4112 cat >> confdefs.h
<<EOF
4113 #define $ac_tr_func 1
4117 echo "$ac_t""no" 1>&6
4122 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4123 for ac_func
in stpcpy
4125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4126 echo "configure:4127: checking for $ac_func" >&5
4127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4130 cat > conftest.
$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 /* System header to define __stub macros and hopefully few prototypes,
4134 which can conflict with char $ac_func(); below. */
4136 /* Override any gcc2 internal prototype to avoid an error. */
4137 /* We use char because int might match the return type of a gcc2
4138 builtin and then its argument prototype would still apply. */
4143 /* The GNU C library defines this for functions which it implements
4144 to always fail with ENOSYS. Some functions are actually named
4145 something starting with __ and the normal name is an alias. */
4146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4154 if { (eval echo configure
:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4156 eval "ac_cv_func_$ac_func=yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.
$ac_ext >&5
4161 eval "ac_cv_func_$ac_func=no"
4166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
4168 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4169 cat >> confdefs.h
<<EOF
4170 #define $ac_tr_func 1
4174 echo "$ac_t""no" 1>&6
4179 if test "${ac_cv_func_stpcpy}" = "yes"; then
4180 cat >> confdefs.h
<<\EOF
4181 #define HAVE_STPCPY 1
4186 if test $ac_cv_header_locale_h = yes; then
4187 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4188 echo "configure:4189: checking for LC_MESSAGES" >&5
4189 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 cat > conftest.
$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4200 if { (eval echo configure
:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4202 am_cv_val_LC_MESSAGES
=yes
4204 echo "configure: failed program was:" >&5
4205 cat conftest.
$ac_ext >&5
4207 am_cv_val_LC_MESSAGES
=no
4212 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4213 if test $am_cv_val_LC_MESSAGES = yes; then
4214 cat >> confdefs.h
<<\EOF
4215 #define HAVE_LC_MESSAGES 1
4220 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4221 echo "configure:4222: checking whether NLS is requested" >&5
4222 # Check whether --enable-nls or --disable-nls was given.
4223 if test "${enable_nls+set}" = set; then
4224 enableval
="$enable_nls"
4230 echo "$ac_t""$USE_NLS" 1>&6
4233 USE_INCLUDED_LIBINTL
=no
4235 if test "$USE_NLS" = "yes"; then
4236 cat >> confdefs.h
<<\EOF
4237 #define ENABLE_NLS 1
4240 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4241 echo "configure:4242: checking whether included gettext is requested" >&5
4242 # Check whether --with-included-gettext or --without-included-gettext was given.
4243 if test "${with_included_gettext+set}" = set; then
4244 withval
="$with_included_gettext"
4245 nls_cv_force_use_gnu_gettext
=$withval
4247 nls_cv_force_use_gnu_gettext
=no
4250 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4252 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4253 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4255 nls_cv_header_libgt
=
4258 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4259 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4260 echo "configure:4261: checking for libintl.h" >&5
4261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 cat > conftest.
$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267 #include <libintl.h>
4269 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4270 { (eval echo configure
:4271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4271 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4272 if test -z "$ac_err"; then
4274 eval "ac_cv_header_$ac_safe=yes"
4277 echo "configure: failed program was:" >&5
4278 cat conftest.
$ac_ext >&5
4280 eval "ac_cv_header_$ac_safe=no"
4284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4285 echo "$ac_t""yes" 1>&6
4286 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4287 echo "configure:4288: checking for gettext in libc" >&5
4288 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4291 cat > conftest.
$ac_ext <<EOF
4292 #line 4293 "configure"
4293 #include "confdefs.h"
4294 #include <libintl.h>
4296 return (int) gettext ("")
4299 if { (eval echo configure
:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4301 gt_cv_func_gettext_libc
=yes
4303 echo "configure: failed program was:" >&5
4304 cat conftest.
$ac_ext >&5
4306 gt_cv_func_gettext_libc
=no
4311 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4313 if test "$gt_cv_func_gettext_libc" != "yes"; then
4314 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4315 echo "configure:4316: checking for bindtextdomain in -lintl" >&5
4316 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 ac_save_LIBS
="$LIBS"
4322 cat > conftest.
$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 /* Override any gcc2 internal prototype to avoid an error. */
4326 /* We use char because int might match the return type of a gcc2
4327 builtin and then its argument prototype would still apply. */
4328 char bindtextdomain();
4334 if { (eval echo configure
:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4336 eval "ac_cv_lib_$ac_lib_var=yes"
4338 echo "configure: failed program was:" >&5
4339 cat conftest.
$ac_ext >&5
4341 eval "ac_cv_lib_$ac_lib_var=no"
4344 LIBS
="$ac_save_LIBS"
4347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4349 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4350 echo "configure:4351: checking for gettext in libintl" >&5
4351 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4354 cat > conftest.
$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4359 return (int) gettext ("")
4362 if { (eval echo configure
:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4364 gt_cv_func_gettext_libintl
=yes
4366 echo "configure: failed program was:" >&5
4367 cat conftest.
$ac_ext >&5
4369 gt_cv_func_gettext_libintl
=no
4374 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4376 echo "$ac_t""no" 1>&6
4381 if test "$gt_cv_func_gettext_libc" = "yes" \
4382 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
4383 cat >> confdefs.h
<<\EOF
4384 #define HAVE_GETTEXT 1
4387 # Extract the first word of "msgfmt", so it can be a program name with args.
4388 set dummy msgfmt
; ac_word
=$2
4389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4390 echo "configure:4391: checking for $ac_word" >&5
4391 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4396 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4399 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4400 for ac_dir
in $PATH; do
4401 test -z "$ac_dir" && ac_dir
=.
4402 if test -f $ac_dir/$ac_word; then
4403 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4404 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4410 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
4414 MSGFMT
="$ac_cv_path_MSGFMT"
4415 if test -n "$MSGFMT"; then
4416 echo "$ac_t""$MSGFMT" 1>&6
4418 echo "$ac_t""no" 1>&6
4420 if test "$MSGFMT" != "no"; then
4421 for ac_func
in dcgettext
4423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4424 echo "configure:4425: checking for $ac_func" >&5
4425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 cat > conftest.
$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 /* System header to define __stub macros and hopefully few prototypes,
4432 which can conflict with char $ac_func(); below. */
4434 /* Override any gcc2 internal prototype to avoid an error. */
4435 /* We use char because int might match the return type of a gcc2
4436 builtin and then its argument prototype would still apply. */
4441 /* The GNU C library defines this for functions which it implements
4442 to always fail with ENOSYS. Some functions are actually named
4443 something starting with __ and the normal name is an alias. */
4444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4452 if { (eval echo configure
:4453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4454 eval "ac_cv_func_$ac_func=yes"
4456 echo "configure: failed program was:" >&5
4457 cat conftest.
$ac_ext >&5
4459 eval "ac_cv_func_$ac_func=no"
4464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4465 echo "$ac_t""yes" 1>&6
4466 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4467 cat >> confdefs.h
<<EOF
4468 #define $ac_tr_func 1
4472 echo "$ac_t""no" 1>&6
4476 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4477 set dummy gmsgfmt
; ac_word
=$2
4478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4479 echo "configure:4480: checking for $ac_word" >&5
4480 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4485 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4488 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4491 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4493 for ac_dir
in $ac_dummy; do
4494 test -z "$ac_dir" && ac_dir
=.
4495 if test -f $ac_dir/$ac_word; then
4496 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4501 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4505 GMSGFMT
="$ac_cv_path_GMSGFMT"
4506 if test -n "$GMSGFMT"; then
4507 echo "$ac_t""$GMSGFMT" 1>&6
4509 echo "$ac_t""no" 1>&6
4512 # Extract the first word of "xgettext", so it can be a program name with args.
4513 set dummy xgettext
; ac_word
=$2
4514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4515 echo "configure:4516: checking for $ac_word" >&5
4516 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4521 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4524 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4525 for ac_dir
in $PATH; do
4526 test -z "$ac_dir" && ac_dir
=.
4527 if test -f $ac_dir/$ac_word; then
4528 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4529 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4535 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4539 XGETTEXT
="$ac_cv_path_XGETTEXT"
4540 if test -n "$XGETTEXT"; then
4541 echo "$ac_t""$XGETTEXT" 1>&6
4543 echo "$ac_t""no" 1>&6
4546 cat > conftest.
$ac_ext <<EOF
4547 #line 4548 "configure"
4548 #include "confdefs.h"
4551 extern int _nl_msg_cat_cntr;
4552 return _nl_msg_cat_cntr
4555 if { (eval echo configure
:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4560 echo "configure: failed program was:" >&5
4561 cat conftest.
$ac_ext >&5
4572 echo "$ac_t""no" 1>&6
4577 if test "$CATOBJEXT" = "NONE"; then
4578 nls_cv_use_gnu_gettext
=yes
4582 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4583 INTLOBJS
="\$(GETTOBJS)"
4584 # Extract the first word of "msgfmt", so it can be a program name with args.
4585 set dummy msgfmt
; ac_word
=$2
4586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4587 echo "configure:4588: checking for $ac_word" >&5
4588 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4593 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4596 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4597 for ac_dir
in $PATH; do
4598 test -z "$ac_dir" && ac_dir
=.
4599 if test -f $ac_dir/$ac_word; then
4600 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4601 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4607 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4611 MSGFMT
="$ac_cv_path_MSGFMT"
4612 if test -n "$MSGFMT"; then
4613 echo "$ac_t""$MSGFMT" 1>&6
4615 echo "$ac_t""no" 1>&6
4618 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4619 set dummy gmsgfmt
; ac_word
=$2
4620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4621 echo "configure:4622: checking for $ac_word" >&5
4622 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4627 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4630 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4633 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4635 for ac_dir
in $ac_dummy; do
4636 test -z "$ac_dir" && ac_dir
=.
4637 if test -f $ac_dir/$ac_word; then
4638 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4643 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4647 GMSGFMT
="$ac_cv_path_GMSGFMT"
4648 if test -n "$GMSGFMT"; then
4649 echo "$ac_t""$GMSGFMT" 1>&6
4651 echo "$ac_t""no" 1>&6
4654 # Extract the first word of "xgettext", so it can be a program name with args.
4655 set dummy xgettext
; ac_word
=$2
4656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4657 echo "configure:4658: checking for $ac_word" >&5
4658 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4659 echo $ac_n "(cached) $ac_c" 1>&6
4663 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4666 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4667 for ac_dir
in $PATH; do
4668 test -z "$ac_dir" && ac_dir
=.
4669 if test -f $ac_dir/$ac_word; then
4670 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4671 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4677 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4681 XGETTEXT
="$ac_cv_path_XGETTEXT"
4682 if test -n "$XGETTEXT"; then
4683 echo "$ac_t""$XGETTEXT" 1>&6
4685 echo "$ac_t""no" 1>&6
4689 USE_INCLUDED_LIBINTL
=yes
4693 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4695 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4696 nls_cv_header_intl
=libintl.h
4697 nls_cv_header_libgt
=libgettext.h
4700 if test "$XGETTEXT" != ":"; then
4701 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4704 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4709 # We need to process the po/ directory.
4713 nls_cv_header_intl
=libintl.h
4714 nls_cv_header_libgt
=libgettext.h
4717 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4718 # because some of the sources are only built for this goal.
4719 if test "$PACKAGE" = gettext; then
4721 USE_INCLUDED_LIBINTL
=yes
4724 for lang
in $ALL_LINGUAS; do
4725 GMOFILES
="$GMOFILES $lang.gmo"
4726 POFILES
="$POFILES $lang.po"
4742 if test "x$CATOBJEXT" != "x"; then
4743 if test "x$ALL_LINGUAS" = "x"; then
4746 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4747 echo "configure:4748: checking for catalogs to be installed" >&5
4749 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4750 case "$ALL_LINGUAS" in
4751 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4754 LINGUAS
=$NEW_LINGUAS
4755 echo "$ac_t""$LINGUAS" 1>&6
4758 if test -n "$LINGUAS"; then
4759 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4763 if test $ac_cv_header_locale_h = yes; then
4764 INCLUDE_LOCALE_H
="#include <locale.h>"
4767 /* The system does not provide the header <locale.h>. Take care yourself. */"
4771 if test -f $srcdir/po2tbl.
sed.
in; then
4772 if test "$CATOBJEXT" = ".cat"; then
4773 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4774 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4775 echo "configure:4776: checking for linux/version.h" >&5
4776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4777 echo $ac_n "(cached) $ac_c" 1>&6
4779 cat > conftest.
$ac_ext <<EOF
4780 #line 4781 "configure"
4781 #include "confdefs.h"
4782 #include <linux/version.h>
4784 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4785 { (eval echo configure
:4786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4786 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4787 if test -z "$ac_err"; then
4789 eval "ac_cv_header_$ac_safe=yes"
4792 echo "configure: failed program was:" >&5
4793 cat conftest.
$ac_ext >&5
4795 eval "ac_cv_header_$ac_safe=no"
4799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4800 echo "$ac_t""yes" 1>&6
4803 echo "$ac_t""no" 1>&6
4808 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4810 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4811 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4814 if test "$PACKAGE" = "gettext"; then
4824 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4830 if test -d $srcdir/po
; then
4831 test -d po || mkdir po
4832 if test "x$srcdir" != "x."; then
4833 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4834 posrcprefix
="$srcdir/"
4836 posrcprefix
="../$srcdir/"
4842 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4843 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4847 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4848 echo "configure:4849: checking whether to enable maintainer-specific portions of Makefiles" >&5
4849 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4850 if test "${enable_maintainer_mode+set}" = set; then
4851 enableval
="$enable_maintainer_mode"
4852 USE_MAINTAINER_MODE
=$enableval
4854 USE_MAINTAINER_MODE
=no
4857 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4858 if test $USE_MAINTAINER_MODE = yes; then
4865 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
4866 echo "configure:4867: checking for Cygwin32 environment" >&5
4867 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
4868 echo $ac_n "(cached) $ac_c" 1>&6
4870 cat > conftest.
$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4875 return __CYGWIN32__;
4878 if { (eval echo configure
:4879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4882 echo "configure: failed program was:" >&5
4883 cat conftest.
$ac_ext >&5
4891 echo "$ac_t""$am_cv_cygwin32" 1>&6
4893 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
4894 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
4895 echo "configure:4896: checking for Mingw32 environment" >&5
4896 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4899 cat > conftest.
$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4907 if { (eval echo configure
:4908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4911 echo "configure: failed program was:" >&5
4912 cat conftest.
$ac_ext >&5
4920 echo "$ac_t""$am_cv_mingw32" 1>&6
4922 test "$am_cv_mingw32" = yes && MINGW32
=yes
4925 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4926 echo "configure:4927: checking for executable suffix" >&5
4927 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4930 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
4933 cat > am_c_test.c
<< 'EOF'
4935 /* Nothing needed here
*/
4938 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
4940 for file in am_c_test.
*; do
4944 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
4950 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
4953 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
4954 echo "$ac_t""${am_cv_exeext}" 1>&6
4957 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
4959 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4961 echo "configure:4962: checking for $ac_hdr" >&5
4962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4965 cat > conftest.
$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4970 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4971 { (eval echo configure
:4972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4972 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4973 if test -z "$ac_err"; then
4975 eval "ac_cv_header_$ac_safe=yes"
4978 echo "configure: failed program was:" >&5
4979 cat conftest.
$ac_ext >&5
4981 eval "ac_cv_header_$ac_safe=no"
4985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4986 echo "$ac_t""yes" 1>&6
4987 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4988 cat >> confdefs.h
<<EOF
4989 #define $ac_tr_hdr 1
4993 echo "$ac_t""no" 1>&6
4998 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4999 # people who are not cross-compiling but are compiling cross-assemblers.
5000 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
5001 echo "configure:5002: checking whether compiling a cross-assembler" >&5
5002 if test "${host}" = "${target}"; then
5006 cat >> confdefs.h
<<\EOF
5007 #define CROSS_COMPILE 1
5011 echo "$ac_t""$cross_gas" 1>&6
5013 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5014 # for constant arguments. Useless!
5015 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5016 echo "configure:5017: checking for working alloca.h" >&5
5017 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5018 echo $ac_n "(cached) $ac_c" 1>&6
5020 cat > conftest.
$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5025 char *p = alloca(2 * sizeof(int));
5028 if { (eval echo configure
:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5030 ac_cv_header_alloca_h
=yes
5032 echo "configure: failed program was:" >&5
5033 cat conftest.
$ac_ext >&5
5035 ac_cv_header_alloca_h
=no
5040 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5041 if test $ac_cv_header_alloca_h = yes; then
5042 cat >> confdefs.h
<<\EOF
5043 #define HAVE_ALLOCA_H 1
5048 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5049 echo "configure:5050: checking for alloca" >&5
5050 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 cat > conftest.
$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5058 # define alloca __builtin_alloca
5061 # include <malloc.h>
5062 # define alloca _alloca
5065 # include <alloca.h>
5070 # ifndef alloca /* predefined by HP cc +Olibcalls */
5079 char *p = (char *) alloca(1);
5082 if { (eval echo configure
:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5084 ac_cv_func_alloca_works
=yes
5086 echo "configure: failed program was:" >&5
5087 cat conftest.
$ac_ext >&5
5089 ac_cv_func_alloca_works
=no
5094 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5095 if test $ac_cv_func_alloca_works = yes; then
5096 cat >> confdefs.h
<<\EOF
5097 #define HAVE_ALLOCA 1
5102 if test $ac_cv_func_alloca_works = no
; then
5103 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5104 # that cause trouble. Some versions do not even contain alloca or
5105 # contain a buggy version. If you still want to use their alloca,
5106 # use ar to extract alloca.o from them instead of compiling alloca.c.
5107 ALLOCA
=alloca.
${ac_objext}
5108 cat >> confdefs.h
<<\EOF
5113 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5114 echo "configure:5115: checking whether alloca needs Cray hooks" >&5
5115 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5118 cat > conftest.
$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 #if defined(CRAY) && ! defined(CRAY2)
5128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5129 egrep "webecray" >/dev
/null
2>&1; then
5140 echo "$ac_t""$ac_cv_os_cray" 1>&6
5141 if test $ac_cv_os_cray = yes; then
5142 for ac_func
in _getb67 GETB67 getb67
; do
5143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5144 echo "configure:5145: checking for $ac_func" >&5
5145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5146 echo $ac_n "(cached) $ac_c" 1>&6
5148 cat > conftest.
$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5151 /* System header to define __stub macros and hopefully few prototypes,
5152 which can conflict with char $ac_func(); below. */
5154 /* Override any gcc2 internal prototype to avoid an error. */
5155 /* We use char because int might match the return type of a gcc2
5156 builtin and then its argument prototype would still apply. */
5161 /* The GNU C library defines this for functions which it implements
5162 to always fail with ENOSYS. Some functions are actually named
5163 something starting with __ and the normal name is an alias. */
5164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5172 if { (eval echo configure
:5173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5174 eval "ac_cv_func_$ac_func=yes"
5176 echo "configure: failed program was:" >&5
5177 cat conftest.
$ac_ext >&5
5179 eval "ac_cv_func_$ac_func=no"
5184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5185 echo "$ac_t""yes" 1>&6
5186 cat >> confdefs.h
<<EOF
5187 #define CRAY_STACKSEG_END $ac_func
5192 echo "$ac_t""no" 1>&6
5198 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5199 echo "configure:5200: checking stack direction for C alloca" >&5
5200 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5203 if test "$cross_compiling" = yes; then
5204 ac_cv_c_stack_direction
=0
5206 cat > conftest.
$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 find_stack_direction ()
5211 static char *addr = 0;
5216 return find_stack_direction ();
5219 return (&dummy > addr) ? 1 : -1;
5223 exit (find_stack_direction() < 0);
5226 if { (eval echo configure
:5227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5228 ac_cv_c_stack_direction
=1
5230 echo "configure: failed program was:" >&5
5231 cat conftest.
$ac_ext >&5
5233 ac_cv_c_stack_direction
=-1
5240 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5241 cat >> confdefs.h
<<EOF
5242 #define STACK_DIRECTION $ac_cv_c_stack_direction
5247 echo $ac_n "checking for inline""... $ac_c" 1>&6
5248 echo "configure:5249: checking for inline" >&5
5249 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5250 echo $ac_n "(cached) $ac_c" 1>&6
5253 for ac_kw
in inline __inline__ __inline
; do
5254 cat > conftest.
$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5262 if { (eval echo configure
:5263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5264 ac_cv_c_inline
=$ac_kw; break
5266 echo "configure: failed program was:" >&5
5267 cat conftest.
$ac_ext >&5
5274 echo "$ac_t""$ac_cv_c_inline" 1>&6
5275 case "$ac_cv_c_inline" in
5277 no
) cat >> confdefs.h
<<\EOF
5281 *) cat >> confdefs.h
<<EOF
5282 #define inline $ac_cv_c_inline
5288 # VMS doesn't have unlink.
5289 for ac_func
in unlink remove
5291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5292 echo "configure:5293: checking for $ac_func" >&5
5293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 cat > conftest.
$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 /* System header to define __stub macros and hopefully few prototypes,
5300 which can conflict with char $ac_func(); below. */
5302 /* Override any gcc2 internal prototype to avoid an error. */
5303 /* We use char because int might match the return type of a gcc2
5304 builtin and then its argument prototype would still apply. */
5309 /* The GNU C library defines this for functions which it implements
5310 to always fail with ENOSYS. Some functions are actually named
5311 something starting with __ and the normal name is an alias. */
5312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5320 if { (eval echo configure
:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5322 eval "ac_cv_func_$ac_func=yes"
5324 echo "configure: failed program was:" >&5
5325 cat conftest.
$ac_ext >&5
5327 eval "ac_cv_func_$ac_func=no"
5332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5333 echo "$ac_t""yes" 1>&6
5334 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5335 cat >> confdefs.h
<<EOF
5336 #define $ac_tr_func 1
5340 echo "$ac_t""no" 1>&6
5345 # Some systems don't have sbrk().
5348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5349 echo "configure:5350: checking for $ac_func" >&5
5350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 cat > conftest.
$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 /* System header to define __stub macros and hopefully few prototypes,
5357 which can conflict with char $ac_func(); below. */
5359 /* Override any gcc2 internal prototype to avoid an error. */
5360 /* We use char because int might match the return type of a gcc2
5361 builtin and then its argument prototype would still apply. */
5366 /* The GNU C library defines this for functions which it implements
5367 to always fail with ENOSYS. Some functions are actually named
5368 something starting with __ and the normal name is an alias. */
5369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5377 if { (eval echo configure
:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5379 eval "ac_cv_func_$ac_func=yes"
5381 echo "configure: failed program was:" >&5
5382 cat conftest.
$ac_ext >&5
5384 eval "ac_cv_func_$ac_func=no"
5389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5390 echo "$ac_t""yes" 1>&6
5391 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5392 cat >> confdefs.h
<<EOF
5393 #define $ac_tr_func 1
5397 echo "$ac_t""no" 1>&6
5402 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
5403 # enough, but on some of those systems, the assert macro relies on requoting
5405 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5406 echo "configure:5407: checking for working assert macro" >&5
5407 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 cat > conftest.
$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5417 /* check for requoting problems */
5418 static int a, b, c, d;
5420 assert (!strcmp(s, "foo bar baz quux"));
5421 /* check for newline handling */
5427 if { (eval echo configure
:5428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5429 gas_cv_assert_ok
=yes
5431 echo "configure: failed program was:" >&5
5432 cat conftest.
$ac_ext >&5
5438 echo "$ac_t""$gas_cv_assert_ok" 1>&6
5439 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
5440 #define BROKEN_ASSERT 1
5445 # On some systems, the system header files may not declare malloc, realloc,
5446 # and free. There are places where gas needs these functions to have been
5447 # declared -- such as when taking their addresses.
5449 #ifdef HAVE_MEMORY_H
5452 #ifdef HAVE_STRING_H
5455 #ifdef HAVE_STRINGS_H
5456 #include <strings.h>
5459 #ifdef HAVE_STDLIB_H
5462 #ifdef HAVE_UNISTD_H
5467 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5468 echo "configure:5469: checking whether declaration is required for strstr" >&5
5469 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
5470 echo $ac_n "(cached) $ac_c" 1>&6
5472 cat > conftest.
$ac_ext <<EOF
5473 #line 5474 "configure"
5474 #include "confdefs.h"
5478 typedef char *(*f)();
5484 if { (eval echo configure
:5485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5486 gas_cv_decl_needed_strstr
=no
5488 echo "configure: failed program was:" >&5
5489 cat conftest.
$ac_ext >&5
5491 gas_cv_decl_needed_strstr
=yes
5495 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5496 test $gas_cv_decl_needed_strstr = no ||
{
5497 cat >> confdefs.h
<<\EOF
5498 #define NEED_DECLARATION_STRSTR 1
5504 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5505 echo "configure:5506: checking whether declaration is required for malloc" >&5
5506 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
5507 echo $ac_n "(cached) $ac_c" 1>&6
5509 cat > conftest.
$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5515 typedef char *(*f)();
5521 if { (eval echo configure
:5522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5523 gas_cv_decl_needed_malloc
=no
5525 echo "configure: failed program was:" >&5
5526 cat conftest.
$ac_ext >&5
5528 gas_cv_decl_needed_malloc
=yes
5532 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5533 test $gas_cv_decl_needed_malloc = no ||
{
5534 cat >> confdefs.h
<<\EOF
5535 #define NEED_DECLARATION_MALLOC 1
5541 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5542 echo "configure:5543: checking whether declaration is required for free" >&5
5543 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
5544 echo $ac_n "(cached) $ac_c" 1>&6
5546 cat > conftest.
$ac_ext <<EOF
5547 #line 5548 "configure"
5548 #include "confdefs.h"
5552 typedef void (*f)();
5558 if { (eval echo configure
:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5560 gas_cv_decl_needed_free
=no
5562 echo "configure: failed program was:" >&5
5563 cat conftest.
$ac_ext >&5
5565 gas_cv_decl_needed_free
=yes
5569 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5570 test $gas_cv_decl_needed_free = no ||
{
5571 cat >> confdefs.h
<<\EOF
5572 #define NEED_DECLARATION_FREE 1
5578 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5579 echo "configure:5580: checking whether declaration is required for sbrk" >&5
5580 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5581 echo $ac_n "(cached) $ac_c" 1>&6
5583 cat > conftest.
$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5589 typedef char *(*f)();
5595 if { (eval echo configure
:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5597 gas_cv_decl_needed_sbrk
=no
5599 echo "configure: failed program was:" >&5
5600 cat conftest.
$ac_ext >&5
5602 gas_cv_decl_needed_sbrk
=yes
5606 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5607 test $gas_cv_decl_needed_sbrk = no ||
{
5608 cat >> confdefs.h
<<\EOF
5609 #define NEED_DECLARATION_SBRK 1
5615 # Does errno.h declare errno, or do we have to add a separate declaration
5618 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5619 echo "configure:5620: checking whether declaration is required for errno" >&5
5620 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 cat > conftest.
$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5639 if { (eval echo configure
:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5641 gas_cv_decl_needed_errno
=no
5643 echo "configure: failed program was:" >&5
5644 cat conftest.
$ac_ext >&5
5646 gas_cv_decl_needed_errno
=yes
5650 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5651 test $gas_cv_decl_needed_errno = no ||
{
5652 cat >> confdefs.h
<<\EOF
5653 #define NEED_DECLARATION_ERRNO 1
5662 cat > confcache
<<\EOF
5663 # This file is a shell script that caches the results of configure
5664 # tests run on this system so they can be shared between configure
5665 # scripts and configure runs. It is not useful on other systems.
5666 # If it contains results you don't want to keep, you may remove or edit it.
5668 # By default, configure uses ./config.cache as the cache file,
5669 # creating it if it does not exist already. You can give configure
5670 # the --cache-file=FILE option to use a different cache file; that is
5671 # what configure does when it calls configure scripts in
5672 # subdirectories, so they share the cache.
5673 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5674 # config.status only pays attention to the cache file if you give it the
5675 # --recheck option to rerun configure.
5678 # The following way of writing the cache mishandles newlines in values,
5679 # but we know of no workaround that is simple, portable, and efficient.
5680 # So, don't put newlines in cache variables' values.
5681 # Ultrix sh set writes to stderr and can't be redirected directly,
5682 # and sets the high bit in the cache file unless we assign to the vars.
5684 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5686 # `set' does not quote correctly, so add quotes (double-quote substitution
5687 # turns \\\\ into \\, and sed turns \\ into \).
5689 -e "s/'/'\\\\''/g" \
5690 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5693 # `set' quotes correctly as required by POSIX, so do not add quotes.
5694 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5697 if cmp -s $cache_file confcache
; then
5700 if test -w $cache_file; then
5701 echo "updating cache $cache_file"
5702 cat confcache
> $cache_file
5704 echo "not updating unwritable cache $cache_file"
5709 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5711 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5712 # Let make expand exec_prefix.
5713 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5715 # Any assignment to VPATH causes Sun make to only execute
5716 # the first set of double-colon rules, so remove it if not needed.
5717 # If there is a colon in the path, we need to keep it.
5718 if test "x$srcdir" = x.
; then
5719 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5722 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5724 DEFS
=-DHAVE_CONFIG_H
5726 # Without the "./", some shells look in PATH for config.status.
5727 : ${CONFIG_STATUS=./config.status}
5729 echo creating
$CONFIG_STATUS
5730 rm -f $CONFIG_STATUS
5731 cat > $CONFIG_STATUS <<EOF
5733 # Generated automatically by configure.
5734 # Run this file to recreate the current configuration.
5735 # This directory was configured as follows,
5736 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5738 # $0 $ac_configure_args
5740 # Compiler output produced by configure, useful for debugging
5741 # configure, is in ./config.log if it exists.
5743 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5746 case "\$ac_option" in
5747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5748 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5749 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5750 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5751 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
5753 -help | --help | --hel | --he | --h)
5754 echo "\$ac_cs_usage"; exit 0 ;;
5755 *) echo "\$ac_cs_usage"; exit 1 ;;
5759 ac_given_srcdir=$srcdir
5760 ac_given_INSTALL="$INSTALL"
5762 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5764 cat >> $CONFIG_STATUS <<EOF
5766 # Protect against being on the right side of a sed subst in config.status.
5767 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5768 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5772 s%@CFLAGS@%$CFLAGS%g
5773 s%@CPPFLAGS@%$CPPFLAGS%g
5774 s%@CXXFLAGS@%$CXXFLAGS%g
5775 s%@FFLAGS@%$FFLAGS%g
5777 s%@LDFLAGS@%$LDFLAGS%g
5779 s%@exec_prefix@%$exec_prefix%g
5780 s%@prefix@%$prefix%g
5781 s%@program_transform_name@%$program_transform_name%g
5782 s%@bindir@%$bindir%g
5783 s%@sbindir@%$sbindir%g
5784 s%@libexecdir@%$libexecdir%g
5785 s%@datadir@%$datadir%g
5786 s%@sysconfdir@%$sysconfdir%g
5787 s%@sharedstatedir@%$sharedstatedir%g
5788 s%@localstatedir@%$localstatedir%g
5789 s%@libdir@%$libdir%g
5790 s%@includedir@%$includedir%g
5791 s%@oldincludedir@%$oldincludedir%g
5792 s%@infodir@%$infodir%g
5793 s%@mandir@%$mandir%g
5795 s%@host_alias@%$host_alias%g
5796 s%@host_cpu@%$host_cpu%g
5797 s%@host_vendor@%$host_vendor%g
5798 s%@host_os@%$host_os%g
5799 s%@target@%$target%g
5800 s%@target_alias@%$target_alias%g
5801 s%@target_cpu@%$target_cpu%g
5802 s%@target_vendor@%$target_vendor%g
5803 s%@target_os@%$target_os%g
5805 s%@build_alias@%$build_alias%g
5806 s%@build_cpu@%$build_cpu%g
5807 s%@build_vendor@%$build_vendor%g
5808 s%@build_os@%$build_os%g
5809 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5810 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5811 s%@INSTALL_DATA@%$INSTALL_DATA%g
5812 s%@PACKAGE@%$PACKAGE%g
5813 s%@VERSION@%$VERSION%g
5814 s%@ACLOCAL@%$ACLOCAL%g
5815 s%@AUTOCONF@%$AUTOCONF%g
5816 s%@AUTOMAKE@%$AUTOMAKE%g
5817 s%@AUTOHEADER@%$AUTOHEADER%g
5818 s%@MAKEINFO@%$MAKEINFO%g
5819 s%@SET_MAKE@%$SET_MAKE%g
5820 s%@RANLIB@%$RANLIB%g
5825 s%@LIBTOOL@%$LIBTOOL%g
5826 s%@DLLTOOL@%$DLLTOOL%g
5828 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5829 s%@extra_objects@%$extra_objects%g
5830 s%@target_cpu_type@%$target_cpu_type%g
5831 s%@obj_format@%$obj_format%g
5832 s%@te_file@%$te_file%g
5833 s%@install_tooldir@%$install_tooldir%g
5835 s%@BFDLIB@%$BFDLIB%g
5836 s%@OPCODES_LIB@%$OPCODES_LIB%g
5837 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5840 s%@LEXLIB@%$LEXLIB%g
5842 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5843 s%@ALLOCA@%$ALLOCA%g
5844 s%@USE_NLS@%$USE_NLS%g
5845 s%@MSGFMT@%$MSGFMT%g
5846 s%@GMSGFMT@%$GMSGFMT%g
5847 s%@XGETTEXT@%$XGETTEXT%g
5848 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5849 s%@CATALOGS@%$CATALOGS%g
5850 s%@CATOBJEXT@%$CATOBJEXT%g
5851 s%@DATADIRNAME@%$DATADIRNAME%g
5852 s%@GMOFILES@%$GMOFILES%g
5853 s%@INSTOBJEXT@%$INSTOBJEXT%g
5854 s%@INTLDEPS@%$INTLDEPS%g
5855 s%@INTLLIBS@%$INTLLIBS%g
5856 s%@INTLOBJS@%$INTLOBJS%g
5857 s%@POFILES@%$POFILES%g
5859 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5861 s%@GT_YES@%$GT_YES%g
5862 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5865 s%@EXEEXT@%$EXEEXT%g
5870 cat >> $CONFIG_STATUS <<\EOF
5872 # Split the substitutions into bite-sized pieces for seds with
5873 # small command number limits, like on Digital OSF/1 and HP-UX.
5874 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5875 ac_file
=1 # Number of current file.
5876 ac_beg
=1 # First line for current file.
5877 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5880 while $ac_more_lines; do
5881 if test $ac_beg -gt 1; then
5882 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5884 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5886 if test ! -s conftest.s
$ac_file; then
5888 rm -f conftest.s
$ac_file
5890 if test -z "$ac_sed_cmds"; then
5891 ac_sed_cmds
="sed -f conftest.s$ac_file"
5893 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5895 ac_file
=`expr $ac_file + 1`
5897 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5900 if test -z "$ac_sed_cmds"; then
5905 cat >> $CONFIG_STATUS <<EOF
5907 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in"}
5909 cat >> $CONFIG_STATUS <<\EOF
5910 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5913 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5914 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5915 *) ac_file_in
="${ac_file}.in" ;;
5918 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5920 # Remove last slash and all that follows it. Not all systems have dirname.
5921 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5922 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5923 # The file is in a subdirectory.
5924 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5925 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5926 # A "../" for each directory in $ac_dir_suffix.
5927 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5929 ac_dir_suffix
= ac_dots
=
5932 case "$ac_given_srcdir" in
5934 if test -z "$ac_dots"; then top_srcdir
=.
5935 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5936 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5938 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5939 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5942 case "$ac_given_INSTALL" in
5943 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5944 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5947 echo creating
"$ac_file"
5949 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5951 *Makefile
*) ac_comsub
="1i\\
5952 # $configure_input" ;;
5956 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5958 s%@configure_input@%$configure_input%g
5959 s%@srcdir@%$srcdir%g
5960 s%@top_srcdir@%$top_srcdir%g
5961 s%@INSTALL@%$INSTALL%g
5962 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5966 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5967 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5969 # ac_d sets the value in "#define NAME VALUE" lines.
5970 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5971 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5974 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5975 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5976 ac_uB
='\([ ]\)%\1#\2define\3'
5979 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5980 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5981 ac_eB
='$%\1#\2define\3'
5985 if test "${CONFIG_HEADERS+set}" != set; then
5987 cat >> $CONFIG_STATUS <<EOF
5988 CONFIG_HEADERS="config.h:config.in"
5990 cat >> $CONFIG_STATUS <<\EOF
5992 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5993 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5995 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5996 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5997 *) ac_file_in
="${ac_file}.in" ;;
6000 echo creating
$ac_file
6002 rm -f conftest.frag conftest.
in conftest.out
6003 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6004 cat $ac_file_inputs > conftest.
in
6008 # Transform confdefs.h into a sed script conftest.vals that substitutes
6009 # the proper values into config.h.in to produce config.h. And first:
6010 # Protect against being on the right side of a sed subst in config.status.
6011 # Protect against being in an unquoted here document in config.status.
6013 cat > conftest.hdr
<<\EOF
6016 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6020 sed -n -f conftest.hdr confdefs.h > conftest.vals
6023 # This sed command replaces #undef with comments. This is necessary, for
6024 # example, in the case of _POSIX_SOURCE, which is predefined and required
6025 # on some systems where configure will not decide to define it.
6026 cat >> conftest.vals <<\EOF
6027 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6030 # Break up conftest.vals because some shells have a limit on
6031 # the size of here documents, and old seds have small limits too.
6036 ac_lines=`grep -c . conftest.vals
`
6037 # grep -c gives empty output for an empty file on some AIX systems.
6038 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6039 # Write a limited-size here document to conftest.frag.
6040 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6041 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6043 sed -f conftest.frag conftest.in > conftest.out
6045 mv conftest.out conftest.in
6047 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6049 mv conftest.tail conftest.vals
6053 cat >> $CONFIG_STATUS <<\EOF
6054 rm -f conftest.frag conftest.h
6055 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6056 cat conftest.in >> conftest.h
6058 if cmp -s $ac_file conftest.h 2>/dev/null; then
6059 echo "$ac_file is unchanged"
6062 # Remove last slash and all that follows it. Not all systems have dirname.
6063 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6064 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6065 # The file is in a subdirectory.
6066 test ! -d "$ac_dir" && mkdir "$ac_dir"
6069 mv conftest.h $ac_file
6074 cat >> $CONFIG_STATUS <<EOF
6076 target_cpu_type=${target_cpu_type}
6077 obj_format=${obj_format}
6080 cat >> $CONFIG_STATUS <<\EOF
6081 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6082 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
6083 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
6084 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
6085 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
6086 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
6087 case ${target_cpu_type} in
6088 m32r) echo '#include "opcodes/'"${target_cpu_type}"'-opc.h"' > cgen-opc.h ;;
6091 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6094 chmod +x $CONFIG_STATUS
6095 rm -fr confdefs* $ac_clean_files
6096 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1