289 # Do all the work for Automake. This macro actually does too much --
290 # some checks are only needed if your package does certain things.
291 # But this isn't really a big deal.
304 # Check to make sure that the build environment is sane.
312 # serial 25 AM_PROG_LIBTOOL
315 # AM_ENABLE_SHARED - implement the --enable-shared flag
316 # Usage: AM_ENABLE_SHARED[(DEFAULT)]
317 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
321 # AM_DISABLE_SHARED - set the default shared flag to --disable-shared
324 # AM_DISABLE_STATIC - set the default static flag to --disable-static
327 # AM_ENABLE_STATIC - implement the --enable-static flag
328 # Usage: AM_ENABLE_STATIC[(DEFAULT)]
329 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
334 # AM_PROG_LD - find the path to the GNU or non-GNU linker
339 # AM_PROG_NM - find the path to a BSD-compatible name lister
342 # AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
345 # Like AC_CONFIG_HEADER, but automatically create stamp file.
349 # This file is derived from `gettext.m4'. The difference is that the
350 # included macros assume Cygnus-style source and build trees.
352 # Macro to add for using GNU gettext.
353 # Ulrich Drepper <drepper@cygnus.com>, 1995.
355 # This file file be copied and used freely without restrictions. It can
356 # be used in projects which are not available under the GNU Public License
357 # but which still want to provide support for the GNU gettext functionality.
358 # Please note that the actual code is *not* freely available.
366 # Search path for a program which passes the given test.
367 # Ulrich Drepper <drepper@cygnus.com>, 1996.
369 # This file file be copied and used freely without restrictions. It can
370 # be used in projects which are not available under the GNU Public License
371 # but which still want to provide support for the GNU gettext functionality.
372 # Please note that the actual code is *not* freely available.
378 # Check whether LC_MESSAGES is available in <locale.h>.
379 # Ulrich Drepper <drepper@cygnus.com>, 1995.
381 # This file file be copied and used freely without restrictions. It can
382 # be used in projects which are not available under the GNU Public License
383 # but which still want to provide support for the GNU gettext functionality.
384 # Please note that the actual code is *not* freely available.
390 # Add --enable-maintainer-mode option to configure.
397 # Check to see if we're running under Cygwin32, without using
398 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
399 # Otherwise set it to "no".
403 # Check to see if we're running under Win32, without using
404 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
405 # Otherwise set it to "".
409 # Check to see if we're running under Mingw, without using
410 # AC_CANONICAL_*. If so, set output variable MINGW32 to "yes".
411 # Otherwise set it to "no".
415 # Guess values for system-dependent variables and create Makefiles.
416 # Generated automatically using autoconf version 2.12.2
417 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
419 # This configure script is free software; the Free Software Foundation
420 # gives unlimited permission to copy, distribute and modify it.
424 ac_default_prefix=/usr/local
425 # Any additions from configure.in:
427 --enable-shared[=PKGS] build shared libraries [default=yes]"
429 --enable-static[=PKGS] build static libraries [default=yes]"
431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
433 --disable-nls do not use Native Language Support"
435 --with-included-gettext use the GNU gettext library included here"
437 --enable-maintainer-mode enable make rules and dependencies not useful
438 (and sometimes confusing) to the casual installer"
440 # Initialize some variables set by options.
441 # The variables have the same names as the options, with
442 # dashes changed to underlines.
444 cache_file=./config.cache
453 program_transform_name=s,x,x,
461 bindir='${exec_prefix}/bin'
462 sbindir='${exec_prefix}/sbin'
463 libexecdir='${exec_prefix}/libexec'
464 datadir='${prefix}/share'
465 sysconfdir='${prefix}/etc'
466 sharedstatedir='${prefix}/com'
467 localstatedir='${prefix}/var'
468 libdir='${exec_prefix}/lib'
469 includedir='${prefix}/include'
470 oldincludedir='/usr/include'
471 infodir='${prefix}/info'
472 mandir='${prefix}/man'
474 # Initialize some other variables.
477 SHELL=${CONFIG_SHELL-/bin/sh}
478 # Maximum number of lines to put in a shell here document.
485 # If the previous option needs an argument, assign it.
486 if test -n "$ac_prev"; then
487 eval "$ac_prev=\$ac_option"
493 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
497 # Accept the important Cygnus configure options, so we can diagnose typos.
501 -bindir | --bindir | --bindi | --bind | --bin | --bi)
503 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
504 bindir="$ac_optarg" ;;
506 -build | --build | --buil | --bui | --bu)
508 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
509 build="$ac_optarg" ;;
511 -cache-file | --cache-file | --cache-fil | --cache-fi \
512 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
513 ac_prev=cache_file ;;
514 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
515 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
516 cache_file="$ac_optarg" ;;
518 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
520 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
522 datadir="$ac_optarg" ;;
524 -disable-* | --disable-*)
525 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
526 # Reject names that are not valid shell variable names.
527 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
528 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
530 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
531 eval "enable_${ac_feature}=no" ;;
533 -enable-* | --enable-*)
534 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
535 # Reject names that are not valid shell variable names.
536 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
537 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
539 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
544 eval "enable_${ac_feature}='$ac_optarg'" ;;
546 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
547 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
548 | --exec | --exe | --ex)
549 ac_prev=exec_prefix ;;
550 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
551 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
552 | --exec=* | --exe=* | --ex=*)
553 exec_prefix="$ac_optarg" ;;
555 -gas | --gas | --ga | --g)
556 # Obsolete; use --with-gas.
559 -help | --help | --hel | --he)
560 # Omit some internal or obsolete options to make the list less imposing.
561 # This message is too long to be a string in the A/UX 3.1 sh.
563 Usage: configure [options] [host]
564 Options: [defaults in brackets after descriptions]
566 --cache-file=FILE cache test results in FILE
567 --help print this message
568 --no-create do not create output files
569 --quiet, --silent do not print \`checking...' messages
570 --version print the version of autoconf that created configure
571 Directory and file names:
572 --prefix=PREFIX install architecture-independent files in PREFIX
574 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
576 --bindir=DIR user executables in DIR [EPREFIX/bin]
577 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
578 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
579 --datadir=DIR read-only architecture-independent data in DIR
581 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
582 --sharedstatedir=DIR modifiable architecture-independent data in DIR
584 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
585 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
586 --includedir=DIR C header files in DIR [PREFIX/include]
587 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
588 --infodir=DIR info documentation in DIR [PREFIX/info]
589 --mandir=DIR man documentation in DIR [PREFIX/man]
590 --srcdir=DIR find the sources in DIR [configure dir or ..]
591 --program-prefix=PREFIX prepend PREFIX to installed program names
592 --program-suffix=SUFFIX append SUFFIX to installed program names
593 --program-transform-name=PROGRAM
594 run sed PROGRAM on installed program names
598 --build=BUILD configure for building on BUILD [BUILD=HOST]
599 --host=HOST configure for HOST [guessed]
600 --target=TARGET configure for TARGET [TARGET=HOST]
601 Features and packages:
602 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
603 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
606 --x-includes=DIR X include files are in DIR
607 --x-libraries=DIR X library files are in DIR
609 if test -n "$ac_help"; then
610 echo "--enable and --with options recognized:$ac_help"
614 -host | --host | --hos | --ho)
616 -host=* | --host=* | --hos=* | --ho=*)
619 -includedir | --includedir | --includedi | --included | --include \
620 | --includ | --inclu | --incl | --inc)
621 ac_prev=includedir ;;
622 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
623 | --includ=* | --inclu=* | --incl=* | --inc=*)
624 includedir="$ac_optarg" ;;
626 -infodir | --infodir | --infodi | --infod | --info | --inf)
628 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
629 infodir="$ac_optarg" ;;
631 -libdir | --libdir | --libdi | --libd)
633 -libdir=* | --libdir=* | --libdi=* | --libd=*)
634 libdir="$ac_optarg" ;;
636 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
637 | --libexe | --libex | --libe)
638 ac_prev=libexecdir ;;
639 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
640 | --libexe=* | --libex=* | --libe=*)
641 libexecdir="$ac_optarg" ;;
643 -localstatedir | --localstatedir | --localstatedi | --localstated \
644 | --localstate | --localstat | --localsta | --localst \
645 | --locals | --local | --loca | --loc | --lo)
646 ac_prev=localstatedir ;;
647 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
648 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
649 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
650 localstatedir="$ac_optarg" ;;
652 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
654 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
655 mandir="$ac_optarg" ;;
658 # Obsolete; use --without-fp.
661 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
665 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
666 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
669 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
670 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
671 | --oldin | --oldi | --old | --ol | --o)
672 ac_prev=oldincludedir ;;
673 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
674 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
675 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
676 oldincludedir="$ac_optarg" ;;
678 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
680 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
681 prefix="$ac_optarg" ;;
683 -program-prefix | --program-prefix | --program-prefi | --program-pref \
684 | --program-pre | --program-pr | --program-p)
685 ac_prev=program_prefix ;;
686 -program-prefix=* | --program-prefix=* | --program-prefi=* \
687 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
688 program_prefix="$ac_optarg" ;;
690 -program-suffix | --program-suffix | --program-suffi | --program-suff \
691 | --program-suf | --program-su | --program-s)
692 ac_prev=program_suffix ;;
693 -program-suffix=* | --program-suffix=* | --program-suffi=* \
694 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
695 program_suffix="$ac_optarg" ;;
697 -program-transform-name | --program-transform-name \
698 | --program-transform-nam | --program-transform-na \
699 | --program-transform-n | --program-transform- \
700 | --program-transform | --program-transfor \
701 | --program-transfo | --program-transf \
702 | --program-trans | --program-tran \
703 | --progr-tra | --program-tr | --program-t)
704 ac_prev=program_transform_name ;;
705 -program-transform-name=* | --program-transform-name=* \
706 | --program-transform-nam=* | --program-transform-na=* \
707 | --program-transform-n=* | --program-transform-=* \
708 | --program-transform=* | --program-transfor=* \
709 | --program-transfo=* | --program-transf=* \
710 | --program-trans=* | --program-tran=* \
711 | --progr-tra=* | --program-tr=* | --program-t=*)
712 program_transform_name="$ac_optarg" ;;
714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
715 | -silent | --silent | --silen | --sile | --sil)
718 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
720 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
722 sbindir="$ac_optarg" ;;
724 -sharedstatedir | --sharedstatedir | --sharedstatedi \
725 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
726 | --sharedst | --shareds | --shared | --share | --shar \
728 ac_prev=sharedstatedir ;;
729 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
730 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
731 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
733 sharedstatedir="$ac_optarg" ;;
735 -site | --site | --sit)
737 -site=* | --site=* | --sit=*)
740 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
742 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
743 srcdir="$ac_optarg" ;;
745 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
746 | --syscon | --sysco | --sysc | --sys | --sy)
747 ac_prev=sysconfdir ;;
748 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
749 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
750 sysconfdir="$ac_optarg" ;;
752 -target | --target | --targe | --targ | --tar | --ta | --t)
754 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
755 target="$ac_optarg" ;;
757 -v | -verbose | --verbose | --verbos | --verbo | --verb)
760 -version | --version | --versio | --versi | --vers)
761 echo "configure generated by autoconf version 2.12.2"
765 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
766 # Reject names that are not valid shell variable names.
767 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
768 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
770 ac_package=`echo $ac_package| sed 's/-/_/g'`
775 eval "with_${ac_package}='$ac_optarg'" ;;
777 -without-* | --without-*)
778 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
779 # Reject names that are not valid shell variable names.
780 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
781 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
783 ac_package=`echo $ac_package| sed 's/-/_/g'`
784 eval "with_${ac_package}=no" ;;
787 # Obsolete; use --with-x.
790 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
791 | --x-incl | --x-inc | --x-in | --x-i)
792 ac_prev=x_includes ;;
793 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
794 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
795 x_includes="$ac_optarg" ;;
797 -x-libraries | --x-libraries | --x-librarie | --x-librari \
798 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
799 ac_prev=x_libraries ;;
800 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
801 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
802 x_libraries="$ac_optarg" ;;
804 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
808 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
809 echo "configure: warning: $ac_option: invalid host type" 1>&2
811 if test "x$nonopt" != xNONE; then
812 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
820 if test -n "$ac_prev"; then
821 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
824 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
826 # File descriptor usage:
829 # 2 errors and warnings
830 # 3 some systems may open it to /dev/tty
831 # 4 used on the Kubota Titan
832 # 6 checking for... messages and results
833 # 5 compiler messages saved in config.log
834 if test "$silent" = yes; then
842 This file contains any messages produced by compilers while
843 running configure, to aid debugging if configure makes a mistake.
846 # Strip out --no-create and --no-recursion so they do not pile up.
847 # Also quote any args containing shell metacharacters.
852 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
853 | --no-cr | --no-c) ;;
854 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
855 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
856 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
857 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
858 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
863 # Only set these to C if already set. These must not be set unconditionally
864 # because not all systems understand e.g. LANG=C (notably SCO).
865 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
866 # Non-C LC_CTYPE values break the ctype check.
867 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
868 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
869 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
870 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
873 rm -rf conftest* confdefs.h
874 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
877 # A filename unique to this package, relative to the directory that
878 # configure is in, which we can look for to find out if srcdir is correct.
879 ac_unique_file=gprof.c
881 # Find the source files, if location was not specified.
882 if test -z "$srcdir"; then
883 ac_srcdir_defaulted=yes
884 # Try the directory containing this script, then its parent.
886 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
887 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
889 if test ! -r $srcdir/$ac_unique_file; then
893 ac_srcdir_defaulted=no
895 if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
899 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
902 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
904 # Prefer explicitly selected file to automatically selected ones.
905 if test -z "$CONFIG_SITE"; then
906 if test "x$prefix" != xNONE; then
907 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
909 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
912 for ac_site_file in $CONFIG_SITE; do
913 if test -r "$ac_site_file"; then
914 echo "loading site script $ac_site_file"
919 if test -r "$cache_file"; then
920 echo "loading cache $cache_file"
923 echo "creating cache $cache_file"
928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
929 ac_cpp='$CPP $CPPFLAGS'
930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
932 cross_compiling=$ac_cv_prog_cc_cross
936 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
937 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
938 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
945 ac_n= ac_c='\c' ac_t=
951 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
952 if test -f $ac_dir/install-sh; then
954 ac_install_sh="$ac_aux_dir/install-sh -c"
956 elif test -f $ac_dir/install.sh; then
958 ac_install_sh="$ac_aux_dir/install.sh -c"
962 if test -z "$ac_aux_dir"; then
963 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
965 ac_config_guess=$ac_aux_dir/config.guess
966 ac_config_sub=$ac_aux_dir/config.sub
967 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
970 # Do some error checking and defaulting for the host and target type.
972 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
975 # 1. You are not allowed to specify --host, --target, and nonopt at the
977 # 2. Host defaults to nonopt.
978 # 3. If nonopt is not specified, then host defaults to the current host,
979 # as determined by config.guess.
980 # 4. Target and build default to nonopt.
981 # 5. If nonopt is not specified, then target and build default to host.
983 # The aliases save the names the user supplied, while $host etc.
984 # will get canonicalized.
985 case $host---$target---$nonopt in
986 NONE---*---* | *---NONE---* | *---*---NONE) ;;
987 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
991 # Make sure we can run config.sub.
992 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
993 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
996 echo $ac_n "checking host system type""... $ac_c" 1>&6
997 echo "configure:998: checking host system type" >&5
1000 case "$host_alias" in
1004 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1005 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1007 *) host_alias=$nonopt ;;
1011 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1012 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1013 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1014 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1015 echo "$ac_t""$host" 1>&6
1017 echo $ac_n "checking target system type""... $ac_c" 1>&6
1018 echo "configure:1019: checking target system type" >&5
1020 target_alias=$target
1021 case "$target_alias" in
1024 NONE) target_alias=$host_alias ;;
1025 *) target_alias=$nonopt ;;
1029 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1030 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1031 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1032 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1033 echo "$ac_t""$target" 1>&6
1035 echo $ac_n "checking build system type""... $ac_c" 1>&6
1036 echo "configure:1037: checking build system type" >&5
1039 case "$build_alias" in
1042 NONE) build_alias=$host_alias ;;
1043 *) build_alias=$nonopt ;;
1047 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1048 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1049 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1050 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1051 echo "$ac_t""$build" 1>&6
1053 test "$host_alias" != "$target_alias" &&
1054 test "$program_prefix$program_suffix$program_transform_name" = \
1056 program_prefix=${target_alias}-
1059 # Find a good install program. We prefer a C program (faster),
1060 # so one script is as good as another. But avoid the broken or
1061 # incompatible versions:
1062 # SysV /etc/install, /usr/sbin/install
1063 # SunOS /usr/etc/install
1064 # IRIX /sbin/install
1066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1069 # ./install, which can be erroneously created by make from ./install.sh.
1070 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1071 echo "configure:1072: checking for a BSD compatible install" >&5
1072 if test -z "$INSTALL"; then
1073 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1077 for ac_dir in $PATH; do
1078 # Account for people who put trailing slashes in PATH elements.
1080 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1082 # OSF1 and SCO ODT 3.0 have their own names for install.
1083 # Don't use installbsd from OSF since it installs stuff as root
1085 for ac_prog in ginstall scoinst install; do
1086 if test -f $ac_dir/$ac_prog; then
1087 if test $ac_prog = install &&
1088 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1089 # AIX install. It has an incompatible calling convention.
1092 ac_cv_path_install="$ac_dir/$ac_prog -c"
1103 if test "${ac_cv_path_install+set}" = set; then
1104 INSTALL="$ac_cv_path_install"
1106 # As a last resort, use the slow shell script. We don't cache a
1107 # path for INSTALL within a source directory, because that will
1108 # break other packages using the cache if that directory is
1109 # removed, or if the path is relative.
1110 INSTALL="$ac_install_sh"
1113 echo "$ac_t""$INSTALL" 1>&6
1115 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1116 # It thinks the first close brace ends the variable substitution.
1117 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1119 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1121 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1126 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether build environment is sane" >&5
1130 echo timestamp > conftestfile
1131 # Do `set' in a subshell so we don't clobber the current shell's
1132 # arguments. Must try -L first in case configure is actually a
1133 # symlink; some systems play weird games with the mod time of symlinks
1134 # (eg FreeBSD returns the mod time of the symlink's containing
1137 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1138 if test "$*" = "X"; then
1140 set X `ls -t $srcdir/configure conftestfile`
1142 if test "$*" != "X $srcdir/configure conftestfile" \
1143 && test "$*" != "X conftestfile $srcdir/configure"; then
1145 # If neither matched, then we have a broken ls. This can happen
1146 # if, for instance, CONFIG_SHELL is bash and it inherits a
1147 # broken ls alias from the environment. This has actually
1148 # happened. Such a system could not be considered "sane".
1149 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1150 alias in your environment" 1>&2; exit 1; }
1153 test "$2" = conftestfile
1159 { echo "configure: error: newly created file is older than distributed files!
1160 Check your system clock" 1>&2; exit 1; }
1163 echo "$ac_t""yes" 1>&6
1164 if test "$program_transform_name" = s,x,x,; then
1165 program_transform_name=
1167 # Double any \ or $. echo might interpret backslashes.
1168 cat <<\EOF_SED > conftestsed
1169 s,\\,\\\\,g; s,\$,$$,g
1171 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1174 test "$program_prefix" != NONE &&
1175 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1176 # Use a double $ so make ignores it.
1177 test "$program_suffix" != NONE &&
1178 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1180 # sed with no file args requires a program.
1181 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1183 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether ${MAKE-make} sets \${MAKE}" >&5
1185 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1186 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 cat > conftestmake <<\EOF
1191 @echo 'ac_maketemp="${MAKE}"'
1193 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1194 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1195 if test -n "$ac_maketemp"; then
1196 eval ac_cv_prog_make_${ac_make}_set=yes
1198 eval ac_cv_prog_make_${ac_make}_set=no
1202 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1203 echo "$ac_t""yes" 1>&6
1206 echo "$ac_t""no" 1>&6
1207 SET_MAKE="MAKE=${MAKE-make}"
1215 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1216 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1218 cat >> confdefs.h <<EOF
1219 #define PACKAGE "$PACKAGE"
1222 cat >> confdefs.h <<EOF
1223 #define VERSION "$VERSION"
1228 missing_dir=`cd $ac_aux_dir && pwd`
1229 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1230 echo "configure:1231: checking for working aclocal" >&5
1231 # Run test in a subshell; some versions of sh will print an error if
1232 # an executable is not found, even if stderr is redirected.
1233 # Redirect stdin to placate older versions of autoconf. Sigh.
1234 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1236 echo "$ac_t""found" 1>&6
1238 ACLOCAL="$missing_dir/missing aclocal"
1239 echo "$ac_t""missing" 1>&6
1242 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1243 echo "configure:1244: checking for working autoconf" >&5
1244 # Run test in a subshell; some versions of sh will print an error if
1245 # an executable is not found, even if stderr is redirected.
1246 # Redirect stdin to placate older versions of autoconf. Sigh.
1247 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1249 echo "$ac_t""found" 1>&6
1251 AUTOCONF="$missing_dir/missing autoconf"
1252 echo "$ac_t""missing" 1>&6
1255 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1256 echo "configure:1257: checking for working automake" >&5
1257 # Run test in a subshell; some versions of sh will print an error if
1258 # an executable is not found, even if stderr is redirected.
1259 # Redirect stdin to placate older versions of autoconf. Sigh.
1260 if (automake --version) < /dev/null > /dev/null 2>&1; then
1262 echo "$ac_t""found" 1>&6
1264 AUTOMAKE="$missing_dir/missing automake"
1265 echo "$ac_t""missing" 1>&6
1268 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1269 echo "configure:1270: checking for working autoheader" >&5
1270 # Run test in a subshell; some versions of sh will print an error if
1271 # an executable is not found, even if stderr is redirected.
1272 # Redirect stdin to placate older versions of autoconf. Sigh.
1273 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1274 AUTOHEADER=autoheader
1275 echo "$ac_t""found" 1>&6
1277 AUTOHEADER="$missing_dir/missing autoheader"
1278 echo "$ac_t""missing" 1>&6
1281 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1282 echo "configure:1283: checking for working makeinfo" >&5
1283 # Run test in a subshell; some versions of sh will print an error if
1284 # an executable is not found, even if stderr is redirected.
1285 # Redirect stdin to placate older versions of autoconf. Sigh.
1286 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1288 echo "$ac_t""found" 1>&6
1290 MAKEINFO="$missing_dir/missing makeinfo"
1291 echo "$ac_t""missing" 1>&6
1296 # Check whether --enable-shared or --disable-shared was given.
1297 if test "${enable_shared+set}" = set; then
1298 enableval="$enable_shared"
1299 p=${PACKAGE-default}
1300 case "$enableval" in
1301 yes) enable_shared=yes ;;
1302 no) enable_shared=no ;;
1305 # Look at the argument we got. We use all the common list separators.
1306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1307 for pkg in $enableval; do
1308 if test "X$pkg" = "X$p"; then
1319 # Check whether --enable-static or --disable-static was given.
1320 if test "${enable_static+set}" = set; then
1321 enableval="$enable_static"
1322 p=${PACKAGE-default}
1323 case "$enableval" in
1324 yes) enable_static=yes ;;
1325 no) enable_static=no ;;
1328 # Look at the argument we got. We use all the common list separators.
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1330 for pkg in $enableval; do
1331 if test "X$pkg" = "X$p"; then
1342 # Extract the first word of "ranlib", so it can be a program name with args.
1343 set dummy ranlib; ac_word=$2
1344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1345 echo "configure:1346: checking for $ac_word" >&5
1346 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 if test -n "$RANLIB"; then
1350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1354 for ac_dir in $ac_dummy; do
1355 test -z "$ac_dir" && ac_dir=.
1356 if test -f $ac_dir/$ac_word; then
1357 ac_cv_prog_RANLIB="ranlib"
1362 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1365 RANLIB="$ac_cv_prog_RANLIB"
1366 if test -n "$RANLIB"; then
1367 echo "$ac_t""$RANLIB" 1>&6
1369 echo "$ac_t""no" 1>&6
1372 # Extract the first word of "gcc", so it can be a program name with args.
1373 set dummy gcc; ac_word=$2
1374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1375 echo "configure:1376: checking for $ac_word" >&5
1376 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1379 if test -n "$CC"; then
1380 ac_cv_prog_CC="$CC" # Let the user override the test.
1382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1384 for ac_dir in $ac_dummy; do
1385 test -z "$ac_dir" && ac_dir=.
1386 if test -f $ac_dir/$ac_word; then
1395 if test -n "$CC"; then
1396 echo "$ac_t""$CC" 1>&6
1398 echo "$ac_t""no" 1>&6
1401 if test -z "$CC"; then
1402 # Extract the first word of "cc", so it can be a program name with args.
1403 set dummy cc; ac_word=$2
1404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1405 echo "configure:1406: checking for $ac_word" >&5
1406 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1409 if test -n "$CC"; then
1410 ac_cv_prog_CC="$CC" # Let the user override the test.
1412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1415 for ac_dir in $ac_dummy; do
1416 test -z "$ac_dir" && ac_dir=.
1417 if test -f $ac_dir/$ac_word; then
1418 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1419 ac_prog_rejected=yes
1427 if test $ac_prog_rejected = yes; then
1428 # We found a bogon in the path, so make sure we never use it.
1429 set dummy $ac_cv_prog_CC
1431 if test $# -gt 0; then
1432 # We chose a different compiler from the bogus one.
1433 # However, it has the same basename, so the bogon will be chosen
1434 # first if we set CC to just the basename; use the full file name.
1436 set dummy "$ac_dir/$ac_word" "$@"
1444 if test -n "$CC"; then
1445 echo "$ac_t""$CC" 1>&6
1447 echo "$ac_t""no" 1>&6
1450 if test -z "$CC"; then
1451 case "`uname -s`" in
1453 # Extract the first word of "cl", so it can be a program name with args.
1454 set dummy cl; ac_word=$2
1455 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1456 echo "configure:1457: checking for $ac_word" >&5
1457 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 if test -n "$CC"; then
1461 ac_cv_prog_CC="$CC" # Let the user override the test.
1463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1465 for ac_dir in $ac_dummy; do
1466 test -z "$ac_dir" && ac_dir=.
1467 if test -f $ac_dir/$ac_word; then
1476 if test -n "$CC"; then
1477 echo "$ac_t""$CC" 1>&6
1479 echo "$ac_t""no" 1>&6
1484 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1487 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1488 echo "configure:1489: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1492 ac_cpp='$CPP $CPPFLAGS'
1493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1495 cross_compiling=$ac_cv_prog_cc_cross
1497 cat > conftest.$ac_ext << EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1504 if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1505 ac_cv_prog_cc_works=yes
1506 # If we can't run a trivial program, we are probably using a cross compiler.
1507 if (./conftest; exit) 2>/dev/null; then
1508 ac_cv_prog_cc_cross=no
1510 ac_cv_prog_cc_cross=yes
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1515 ac_cv_prog_cc_works=no
1519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1523 cross_compiling=$ac_cv_prog_cc_cross
1525 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1526 if test $ac_cv_prog_cc_works = no; then
1527 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1529 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1530 echo "configure:1531: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1531 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1532 cross_compiling=$ac_cv_prog_cc_cross
1534 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1535 echo "configure:1536: checking whether we are using GNU C" >&5
1536 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 cat > conftest.c <<EOF
1544 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1551 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1553 if test $ac_cv_prog_gcc = yes; then
1559 ac_test_CFLAGS="${CFLAGS+set}"
1560 ac_save_CFLAGS="$CFLAGS"
1562 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ${CC-cc} accepts -g" >&5
1564 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 echo 'void f(){}' > conftest.c
1568 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1577 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1578 if test "$ac_test_CFLAGS" = set; then
1579 CFLAGS="$ac_save_CFLAGS"
1580 elif test $ac_cv_prog_cc_g = yes; then
1581 if test "$GCC" = yes; then
1587 if test "$GCC" = yes; then
1594 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1595 if test "${with_gnu_ld+set}" = set; then
1596 withval="$with_gnu_ld"
1597 test "$withval" = no || with_gnu_ld=yes
1604 if test "$ac_cv_prog_gcc" = yes; then
1605 # Check if gcc -print-prog-name=ld gives a path.
1606 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1607 echo "configure:1608: checking for ld used by GCC" >&5
1608 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1610 # Accept absolute paths.
1612 test -z "$LD" && LD="$ac_prog"
1615 # If it fails, then pretend we aren't using GCC.
1619 # If it is relative, then search for the first ld in PATH.
1623 elif test "$with_gnu_ld" = yes; then
1624 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1625 echo "configure:1626: checking for GNU ld" >&5
1627 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1628 echo "configure:1629: checking for non-GNU ld" >&5
1630 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1633 if test -z "$LD"; then
1634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1635 for ac_dir in $PATH; do
1636 test -z "$ac_dir" && ac_dir=.
1637 if test -f "$ac_dir/$ac_prog"; then
1638 ac_cv_path_LD="$ac_dir/$ac_prog"
1639 # Check to see if the program is GNU ld. I'd rather use --version,
1640 # but apparently some GNU ld's only accept -v.
1641 # Break only if it was the GNU/non-GNU ld that we prefer.
1642 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1643 test "$with_gnu_ld" != no && break
1645 test "$with_gnu_ld" != yes && break
1651 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1656 if test -n "$LD"; then
1657 echo "$ac_t""$LD" 1>&6
1659 echo "$ac_t""no" 1>&6
1661 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1663 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1664 echo "configure:1665: checking if the linker ($LD) is GNU ld" >&5
1665 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1669 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1670 ac_cv_prog_gnu_ld=yes
1672 ac_cv_prog_gnu_ld=no
1676 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1679 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1680 echo "configure:1681: checking for BSD-compatible nm" >&5
1681 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 if test -n "$NM"; then
1685 # Let the user override the test.
1688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1689 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1690 test -z "$ac_dir" && ac_dir=.
1691 if test -f $ac_dir/nm; then
1692 # Check to see if the nm accepts a BSD-compat flag.
1693 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1694 # nm: unknown option "B" ignored
1695 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1696 ac_cv_path_NM="$ac_dir/nm -B"
1697 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1698 ac_cv_path_NM="$ac_dir/nm -p"
1700 ac_cv_path_NM="$ac_dir/nm"
1706 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1711 echo "$ac_t""$NM" 1>&6
1714 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1715 echo "configure:1716: checking whether ln -s works" >&5
1716 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1720 if ln -s X conftestdata 2>/dev/null
1723 ac_cv_prog_LN_S="ln -s"
1728 LN_S="$ac_cv_prog_LN_S"
1729 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1730 echo "$ac_t""yes" 1>&6
1732 echo "$ac_t""no" 1>&6
1735 if test $host != $build; then
1736 ac_tool_prefix=${host_alias}-
1741 # Always use our own libtool.
1742 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1744 # Check for any special flags to pass to ltconfig.
1746 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1747 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1748 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1749 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1750 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1752 # Some flags need to be propagated to the compiler or linker for good
1756 # Find out which ABI we are using.
1757 echo '#line 1758 "configure"' > conftest.$ac_ext
1758 if { (eval echo configure:1759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1759 case "`/usr/bin/file conftest.o`" in
1775 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1776 CFLAGS="$CFLAGS -belf"
1780 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1781 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1783 echo "configure:1784: checking for $ac_word" >&5
1784 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 if test -n "$DLLTOOL"; then
1788 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1792 for ac_dir in $ac_dummy; do
1793 test -z "$ac_dir" && ac_dir=.
1794 if test -f $ac_dir/$ac_word; then
1795 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1802 DLLTOOL="$ac_cv_prog_DLLTOOL"
1803 if test -n "$DLLTOOL"; then
1804 echo "$ac_t""$DLLTOOL" 1>&6
1806 echo "$ac_t""no" 1>&6
1810 if test -z "$ac_cv_prog_DLLTOOL"; then
1811 if test -n "$ac_tool_prefix"; then
1812 # Extract the first word of "dlltool", so it can be a program name with args.
1813 set dummy dlltool; ac_word=$2
1814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_word" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 if test -n "$DLLTOOL"; then
1820 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1824 for ac_dir in $ac_dummy; do
1825 test -z "$ac_dir" && ac_dir=.
1826 if test -f $ac_dir/$ac_word; then
1827 ac_cv_prog_DLLTOOL="dlltool"
1832 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1835 DLLTOOL="$ac_cv_prog_DLLTOOL"
1836 if test -n "$DLLTOOL"; then
1837 echo "$ac_t""$DLLTOOL" 1>&6
1839 echo "$ac_t""no" 1>&6
1847 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1848 set dummy ${ac_tool_prefix}as; ac_word=$2
1849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1850 echo "configure:1851: checking for $ac_word" >&5
1851 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1854 if test -n "$AS"; then
1855 ac_cv_prog_AS="$AS" # Let the user override the test.
1857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1859 for ac_dir in $ac_dummy; do
1860 test -z "$ac_dir" && ac_dir=.
1861 if test -f $ac_dir/$ac_word; then
1862 ac_cv_prog_AS="${ac_tool_prefix}as"
1870 if test -n "$AS"; then
1871 echo "$ac_t""$AS" 1>&6
1873 echo "$ac_t""no" 1>&6
1877 if test -z "$ac_cv_prog_AS"; then
1878 if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "as", so it can be a program name with args.
1880 set dummy as; ac_word=$2
1881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1882 echo "configure:1883: checking for $ac_word" >&5
1883 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 if test -n "$AS"; then
1887 ac_cv_prog_AS="$AS" # Let the user override the test.
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1891 for ac_dir in $ac_dummy; do
1892 test -z "$ac_dir" && ac_dir=.
1893 if test -f $ac_dir/$ac_word; then
1899 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1903 if test -n "$AS"; then
1904 echo "$ac_t""$AS" 1>&6
1906 echo "$ac_t""no" 1>&6
1919 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1920 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1921 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1922 DLLTOOL="$DLLTOOL" AS="$AS" \
1923 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1924 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1925 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1927 # Redirect the config.log output again, so that the ltconfig log is not
1928 # clobbered by the next message.
1929 exec 5>>./config.log
1936 # Extract the first word of "gcc", so it can be a program name with args.
1937 set dummy gcc; ac_word=$2
1938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_word" >&5
1940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 if test -n "$CC"; then
1944 ac_cv_prog_CC="$CC" # Let the user override the test.
1946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1948 for ac_dir in $ac_dummy; do
1949 test -z "$ac_dir" && ac_dir=.
1950 if test -f $ac_dir/$ac_word; then
1959 if test -n "$CC"; then
1960 echo "$ac_t""$CC" 1>&6
1962 echo "$ac_t""no" 1>&6
1965 if test -z "$CC"; then
1966 # Extract the first word of "cc", so it can be a program name with args.
1967 set dummy cc; ac_word=$2
1968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1969 echo "configure:1970: checking for $ac_word" >&5
1970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1979 for ac_dir in $ac_dummy; do
1980 test -z "$ac_dir" && ac_dir=.
1981 if test -f $ac_dir/$ac_word; then
1982 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1983 ac_prog_rejected=yes
1991 if test $ac_prog_rejected = yes; then
1992 # We found a bogon in the path, so make sure we never use it.
1993 set dummy $ac_cv_prog_CC
1995 if test $# -gt 0; then
1996 # We chose a different compiler from the bogus one.
1997 # However, it has the same basename, so the bogon will be chosen
1998 # first if we set CC to just the basename; use the full file name.
2000 set dummy "$ac_dir/$ac_word" "$@"
2008 if test -n "$CC"; then
2009 echo "$ac_t""$CC" 1>&6
2011 echo "$ac_t""no" 1>&6
2014 if test -z "$CC"; then
2015 case "`uname -s`" in
2017 # Extract the first word of "cl", so it can be a program name with args.
2018 set dummy cl; ac_word=$2
2019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_word" >&5
2021 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test.
2027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2029 for ac_dir in $ac_dummy; do
2030 test -z "$ac_dir" && ac_dir=.
2031 if test -f $ac_dir/$ac_word; then
2040 if test -n "$CC"; then
2041 echo "$ac_t""$CC" 1>&6
2043 echo "$ac_t""no" 1>&6
2048 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2051 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2052 echo "configure:2053: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2056 ac_cpp='$CPP $CPPFLAGS'
2057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2059 cross_compiling=$ac_cv_prog_cc_cross
2061 cat > conftest.$ac_ext << EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2068 if { (eval echo configure:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2069 ac_cv_prog_cc_works=yes
2070 # If we can't run a trivial program, we are probably using a cross compiler.
2071 if (./conftest; exit) 2>/dev/null; then
2072 ac_cv_prog_cc_cross=no
2074 ac_cv_prog_cc_cross=yes
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2079 ac_cv_prog_cc_works=no
2083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2087 cross_compiling=$ac_cv_prog_cc_cross
2089 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2090 if test $ac_cv_prog_cc_works = no; then
2091 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2093 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2094 echo "configure:2095: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2095 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2096 cross_compiling=$ac_cv_prog_cc_cross
2098 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2099 echo "configure:2100: checking whether we are using GNU C" >&5
2100 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 cat > conftest.c <<EOF
2108 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2115 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2117 if test $ac_cv_prog_gcc = yes; then
2123 ac_test_CFLAGS="${CFLAGS+set}"
2124 ac_save_CFLAGS="$CFLAGS"
2126 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2127 echo "configure:2128: checking whether ${CC-cc} accepts -g" >&5
2128 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 echo 'void f(){}' > conftest.c
2132 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2141 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2142 if test "$ac_test_CFLAGS" = set; then
2143 CFLAGS="$ac_save_CFLAGS"
2144 elif test $ac_cv_prog_cc_g = yes; then
2145 if test "$GCC" = yes; then
2151 if test "$GCC" = yes; then
2159 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2162 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2163 echo "configure:2164: checking for POSIXized ISC" >&5
2164 if test -d /etc/conf/kconfig.d &&
2165 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2167 echo "$ac_t""yes" 1>&6
2168 ISC=yes # If later tests want to check for ISC.
2169 cat >> confdefs.h <<\EOF
2170 #define _POSIX_SOURCE 1
2173 if test "$GCC" = yes; then
2179 echo "$ac_t""no" 1>&6
2185 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2186 echo "configure:2187: checking how to run the C preprocessor" >&5
2187 # On Suns, sometimes $CPP names a directory.
2188 if test -n "$CPP" && test -d "$CPP"; then
2191 if test -z "$CPP"; then
2192 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 # This must be in double quotes, not single quotes, because CPP may get
2196 # substituted into the Makefile and "${CC-cc}" will confuse make.
2198 # On the NeXT, cc -E runs the code through the compiler's parser,
2199 # not just through cpp.
2200 cat > conftest.$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2207 { (eval echo configure:2208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2209 if test -z "$ac_err"; then
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 CPP="${CC-cc} -E -traditional-cpp"
2217 cat > conftest.$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2224 { (eval echo configure:2225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2226 if test -z "$ac_err"; then
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2233 CPP="${CC-cc} -nologo -E"
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2241 { (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2243 if test -z "$ac_err"; then
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2257 ac_cv_prog_CPP="$CPP"
2259 CPP="$ac_cv_prog_CPP"
2261 ac_cv_prog_CPP="$CPP"
2263 echo "$ac_t""$CPP" 1>&6
2265 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2266 echo "configure:2267: checking for ANSI C header files" >&5
2267 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2279 { (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2281 if test -z "$ac_err"; then
2283 ac_cv_header_stdc=yes
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2289 ac_cv_header_stdc=no
2293 if test $ac_cv_header_stdc = yes; then
2294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2301 egrep "memchr" >/dev/null 2>&1; then
2305 ac_cv_header_stdc=no
2311 if test $ac_cv_header_stdc = yes; then
2312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2319 egrep "free" >/dev/null 2>&1; then
2323 ac_cv_header_stdc=no
2329 if test $ac_cv_header_stdc = yes; then
2330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2331 if test "$cross_compiling" = yes; then
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2338 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2339 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2341 int main () { int i; for (i = 0; i < 256; i++)
2342 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2346 if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2350 echo "configure: failed program was:" >&5
2351 cat conftest.$ac_ext >&5
2353 ac_cv_header_stdc=no
2361 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2362 if test $ac_cv_header_stdc = yes; then
2363 cat >> confdefs.h <<\EOF
2364 #define STDC_HEADERS 1
2369 echo $ac_n "checking for working const""... $ac_c" 1>&6
2370 echo "configure:2371: checking for working const" >&5
2371 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2380 /* Ultrix mips cc rejects this. */
2381 typedef int charset[2]; const charset x;
2382 /* SunOS 4.1.1 cc rejects this. */
2383 char const *const *ccp;
2385 /* NEC SVR4.0.2 mips cc rejects this. */
2386 struct point {int x, y;};
2387 static struct point const zero = {0,0};
2388 /* AIX XL C 1.02.0.0 rejects this.
2389 It does not let you subtract one const X* pointer from another in an arm
2390 of an if-expression whose if-part is not a constant expression */
2391 const char *g = "string";
2392 ccp = &g + (g ? g-g : 0);
2393 /* HPUX 7.0 cc rejects these. */
2396 ccp = (char const *const *) p;
2397 { /* SCO 3.2v4 cc rejects this. */
2399 char const *s = 0 ? (char *) 0 : (char const *) 0;
2403 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2405 const int *foo = &x[0];
2408 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2409 typedef const int *iptr;
2413 { /* AIX XL C 1.02.0.0 rejects this saying
2414 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2415 struct s { int j; const int *ap[3]; };
2416 struct s *b; b->j = 5;
2418 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2424 if { (eval echo configure:2425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2428 echo "configure: failed program was:" >&5
2429 cat conftest.$ac_ext >&5
2436 echo "$ac_t""$ac_cv_c_const" 1>&6
2437 if test $ac_cv_c_const = no; then
2438 cat >> confdefs.h <<\EOF
2444 echo $ac_n "checking for inline""... $ac_c" 1>&6
2445 echo "configure:2446: checking for inline" >&5
2446 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2450 for ac_kw in inline __inline__ __inline; do
2451 cat > conftest.$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2459 if { (eval echo configure:2460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2461 ac_cv_c_inline=$ac_kw; break
2463 echo "configure: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2471 echo "$ac_t""$ac_cv_c_inline" 1>&6
2472 case "$ac_cv_c_inline" in
2474 no) cat >> confdefs.h <<\EOF
2478 *) cat >> confdefs.h <<EOF
2479 #define inline $ac_cv_c_inline
2484 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2485 echo "configure:2486: checking for off_t" >&5
2486 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492 #include <sys/types.h>
2498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2499 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2501 ac_cv_type_off_t=yes
2509 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2510 if test $ac_cv_type_off_t = no; then
2511 cat >> confdefs.h <<\EOF
2517 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2518 echo "configure:2519: checking for size_t" >&5
2519 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 cat > conftest.$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2525 #include <sys/types.h>
2531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2532 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2534 ac_cv_type_size_t=yes
2537 ac_cv_type_size_t=no
2542 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2543 if test $ac_cv_type_size_t = no; then
2544 cat >> confdefs.h <<\EOF
2545 #define size_t unsigned
2550 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2551 # for constant arguments. Useless!
2552 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2553 echo "configure:2554: checking for working alloca.h" >&5
2554 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2562 char *p = alloca(2 * sizeof(int));
2565 if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2567 ac_cv_header_alloca_h=yes
2569 echo "configure: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2572 ac_cv_header_alloca_h=no
2577 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2578 if test $ac_cv_header_alloca_h = yes; then
2579 cat >> confdefs.h <<\EOF
2580 #define HAVE_ALLOCA_H 1
2585 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2586 echo "configure:2587: checking for alloca" >&5
2587 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2595 # define alloca __builtin_alloca
2598 # include <malloc.h>
2599 # define alloca _alloca
2602 # include <alloca.h>
2607 # ifndef alloca /* predefined by HP cc +Olibcalls */
2616 char *p = (char *) alloca(1);
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2621 ac_cv_func_alloca_works=yes
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2626 ac_cv_func_alloca_works=no
2631 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2632 if test $ac_cv_func_alloca_works = yes; then
2633 cat >> confdefs.h <<\EOF
2634 #define HAVE_ALLOCA 1
2639 if test $ac_cv_func_alloca_works = no; then
2640 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2641 # that cause trouble. Some versions do not even contain alloca or
2642 # contain a buggy version. If you still want to use their alloca,
2643 # use ar to extract alloca.o from them instead of compiling alloca.c.
2644 ALLOCA=alloca.${ac_objext}
2645 cat >> confdefs.h <<\EOF
2650 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2651 echo "configure:2652: checking whether alloca needs Cray hooks" >&5
2652 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2658 #if defined(CRAY) && ! defined(CRAY2)
2665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2666 egrep "webecray" >/dev/null 2>&1; then
2677 echo "$ac_t""$ac_cv_os_cray" 1>&6
2678 if test $ac_cv_os_cray = yes; then
2679 for ac_func in _getb67 GETB67 getb67; do
2680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2681 echo "configure:2682: checking for $ac_func" >&5
2682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 cat > conftest.$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2688 /* System header to define __stub macros and hopefully few prototypes,
2689 which can conflict with char $ac_func(); below. */
2691 /* Override any gcc2 internal prototype to avoid an error. */
2692 /* We use char because int might match the return type of a gcc2
2693 builtin and then its argument prototype would still apply. */
2698 /* The GNU C library defines this for functions which it implements
2699 to always fail with ENOSYS. Some functions are actually named
2700 something starting with __ and the normal name is an alias. */
2701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2709 if { (eval echo configure:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2711 eval "ac_cv_func_$ac_func=yes"
2713 echo "configure: failed program was:" >&5
2714 cat conftest.$ac_ext >&5
2716 eval "ac_cv_func_$ac_func=no"
2721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 cat >> confdefs.h <<EOF
2724 #define CRAY_STACKSEG_END $ac_func
2729 echo "$ac_t""no" 1>&6
2735 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2736 echo "configure:2737: checking stack direction for C alloca" >&5
2737 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2740 if test "$cross_compiling" = yes; then
2741 ac_cv_c_stack_direction=0
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 find_stack_direction ()
2748 static char *addr = 0;
2753 return find_stack_direction ();
2756 return (&dummy > addr) ? 1 : -1;
2760 exit (find_stack_direction() < 0);
2763 if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2765 ac_cv_c_stack_direction=1
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2770 ac_cv_c_stack_direction=-1
2777 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2778 cat >> confdefs.h <<EOF
2779 #define STACK_DIRECTION $ac_cv_c_stack_direction
2784 for ac_hdr in unistd.h
2786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2788 echo "configure:2789: checking for $ac_hdr" >&5
2789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2798 { (eval echo configure:2799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2800 if test -z "$ac_err"; then
2802 eval "ac_cv_header_$ac_safe=yes"
2805 echo "configure: failed program was:" >&5
2806 cat conftest.$ac_ext >&5
2808 eval "ac_cv_header_$ac_safe=no"
2812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2813 echo "$ac_t""yes" 1>&6
2814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2815 cat >> confdefs.h <<EOF
2816 #define $ac_tr_hdr 1
2820 echo "$ac_t""no" 1>&6
2824 for ac_func in getpagesize
2826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_func" >&5
2828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 /* System header to define __stub macros and hopefully few prototypes,
2835 which can conflict with char $ac_func(); below. */
2837 /* Override any gcc2 internal prototype to avoid an error. */
2838 /* We use char because int might match the return type of a gcc2
2839 builtin and then its argument prototype would still apply. */
2844 /* The GNU C library defines this for functions which it implements
2845 to always fail with ENOSYS. Some functions are actually named
2846 something starting with __ and the normal name is an alias. */
2847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2855 if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2857 eval "ac_cv_func_$ac_func=yes"
2859 echo "configure: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2862 eval "ac_cv_func_$ac_func=no"
2867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2868 echo "$ac_t""yes" 1>&6
2869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2870 cat >> confdefs.h <<EOF
2871 #define $ac_tr_func 1
2875 echo "$ac_t""no" 1>&6
2879 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2880 echo "configure:2881: checking for working mmap" >&5
2881 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 if test "$cross_compiling" = yes; then
2885 ac_cv_func_mmap_fixed_mapped=no
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2891 /* Thanks to Mike Haertel and Jim Avera for this test.
2892 Here is a matrix of mmap possibilities:
2893 mmap private not fixed
2894 mmap private fixed at somewhere currently unmapped
2895 mmap private fixed at somewhere already mapped
2896 mmap shared not fixed
2897 mmap shared fixed at somewhere currently unmapped
2898 mmap shared fixed at somewhere already mapped
2899 For private mappings, we should verify that changes cannot be read()
2900 back from the file, nor mmap's back from the file at a different
2901 address. (There have been systems where private was not correctly
2902 implemented like the infamous i386 svr4.0, and systems where the
2903 VM page cache was not coherent with the filesystem buffer cache
2904 like early versions of FreeBSD and possibly contemporary NetBSD.)
2905 For shared mappings, we should conversely verify that changes get
2906 propogated back to all the places they're supposed to be.
2908 Grep wants private fixed already mapped.
2909 The main things grep needs to know about mmap are:
2910 * does it exist and is it safe to write into the mmap'd area
2911 * how to use it (BSD variants) */
2912 #include <sys/types.h>
2914 #include <sys/mman.h>
2916 /* This mess was copied from the GNU getpagesize.h. */
2917 #ifndef HAVE_GETPAGESIZE
2918 # ifdef HAVE_UNISTD_H
2919 # include <unistd.h>
2922 /* Assume that all systems that can run configure have sys/param.h. */
2923 # ifndef HAVE_SYS_PARAM_H
2924 # define HAVE_SYS_PARAM_H 1
2927 # ifdef _SC_PAGESIZE
2928 # define getpagesize() sysconf(_SC_PAGESIZE)
2929 # else /* no _SC_PAGESIZE */
2930 # ifdef HAVE_SYS_PARAM_H
2931 # include <sys/param.h>
2932 # ifdef EXEC_PAGESIZE
2933 # define getpagesize() EXEC_PAGESIZE
2934 # else /* no EXEC_PAGESIZE */
2936 # define getpagesize() NBPG * CLSIZE
2939 # endif /* no CLSIZE */
2940 # else /* no NBPG */
2942 # define getpagesize() NBPC
2943 # else /* no NBPC */
2945 # define getpagesize() PAGESIZE
2946 # endif /* PAGESIZE */
2947 # endif /* no NBPC */
2948 # endif /* no NBPG */
2949 # endif /* no EXEC_PAGESIZE */
2950 # else /* no HAVE_SYS_PARAM_H */
2951 # define getpagesize() 8192 /* punt totally */
2952 # endif /* no HAVE_SYS_PARAM_H */
2953 # endif /* no _SC_PAGESIZE */
2955 #endif /* no HAVE_GETPAGESIZE */
2958 extern "C" { void *malloc(unsigned); }
2966 char *data, *data2, *data3;
2970 pagesize = getpagesize();
2973 * First, make a file with some known garbage in it.
2975 data = malloc(pagesize);
2978 for (i = 0; i < pagesize; ++i)
2979 *(data + i) = rand();
2981 fd = creat("conftestmmap", 0600);
2984 if (write(fd, data, pagesize) != pagesize)
2989 * Next, try to mmap the file at a fixed address which
2990 * already has something else allocated at it. If we can,
2991 * also make sure that we see the same garbage.
2993 fd = open("conftestmmap", O_RDWR);
2996 data2 = malloc(2 * pagesize);
2999 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3000 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3001 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3003 for (i = 0; i < pagesize; ++i)
3004 if (*(data + i) != *(data2 + i))
3008 * Finally, make sure that changes to the mapped area
3009 * do not percolate back to the file as seen by read().
3010 * (This is a bug on some variants of i386 svr4.0.)
3012 for (i = 0; i < pagesize; ++i)
3013 *(data2 + i) = *(data2 + i) + 1;
3014 data3 = malloc(pagesize);
3017 if (read(fd, data3, pagesize) != pagesize)
3019 for (i = 0; i < pagesize; ++i)
3020 if (*(data + i) != *(data3 + i))
3023 unlink("conftestmmap");
3028 if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3030 ac_cv_func_mmap_fixed_mapped=yes
3032 echo "configure: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3035 ac_cv_func_mmap_fixed_mapped=no
3042 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3043 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3044 cat >> confdefs.h <<\EOF
3051 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3052 unistd.h values.h sys/param.h
3054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3056 echo "configure:3057: checking for $ac_hdr" >&5
3057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3066 { (eval echo configure:3067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3068 if test -z "$ac_err"; then
3070 eval "ac_cv_header_$ac_safe=yes"
3073 echo "configure: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3076 eval "ac_cv_header_$ac_safe=no"
3080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3081 echo "$ac_t""yes" 1>&6
3082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3083 cat >> confdefs.h <<EOF
3084 #define $ac_tr_hdr 1
3088 echo "$ac_t""no" 1>&6
3092 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3093 __argz_count __argz_stringify __argz_next
3095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3096 echo "configure:3097: checking for $ac_func" >&5
3097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3103 /* System header to define __stub macros and hopefully few prototypes,
3104 which can conflict with char $ac_func(); below. */
3106 /* Override any gcc2 internal prototype to avoid an error. */
3107 /* We use char because int might match the return type of a gcc2
3108 builtin and then its argument prototype would still apply. */
3113 /* The GNU C library defines this for functions which it implements
3114 to always fail with ENOSYS. Some functions are actually named
3115 something starting with __ and the normal name is an alias. */
3116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3124 if { (eval echo configure:3125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3126 eval "ac_cv_func_$ac_func=yes"
3128 echo "configure: failed program was:" >&5
3129 cat conftest.$ac_ext >&5
3131 eval "ac_cv_func_$ac_func=no"
3136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3137 echo "$ac_t""yes" 1>&6
3138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3139 cat >> confdefs.h <<EOF
3140 #define $ac_tr_func 1
3144 echo "$ac_t""no" 1>&6
3149 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3150 for ac_func in stpcpy
3152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3153 echo "configure:3154: checking for $ac_func" >&5
3154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 /* System header to define __stub macros and hopefully few prototypes,
3161 which can conflict with char $ac_func(); below. */
3163 /* Override any gcc2 internal prototype to avoid an error. */
3164 /* We use char because int might match the return type of a gcc2
3165 builtin and then its argument prototype would still apply. */
3170 /* The GNU C library defines this for functions which it implements
3171 to always fail with ENOSYS. Some functions are actually named
3172 something starting with __ and the normal name is an alias. */
3173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3181 if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3183 eval "ac_cv_func_$ac_func=yes"
3185 echo "configure: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3188 eval "ac_cv_func_$ac_func=no"
3193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3194 echo "$ac_t""yes" 1>&6
3195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3196 cat >> confdefs.h <<EOF
3197 #define $ac_tr_func 1
3201 echo "$ac_t""no" 1>&6
3206 if test "${ac_cv_func_stpcpy}" = "yes"; then
3207 cat >> confdefs.h <<\EOF
3208 #define HAVE_STPCPY 1
3213 if test $ac_cv_header_locale_h = yes; then
3214 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3215 echo "configure:3216: checking for LC_MESSAGES" >&5
3216 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3229 am_cv_val_LC_MESSAGES=yes
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3234 am_cv_val_LC_MESSAGES=no
3239 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3240 if test $am_cv_val_LC_MESSAGES = yes; then
3241 cat >> confdefs.h <<\EOF
3242 #define HAVE_LC_MESSAGES 1
3247 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3248 echo "configure:3249: checking whether NLS is requested" >&5
3249 # Check whether --enable-nls or --disable-nls was given.
3250 if test "${enable_nls+set}" = set; then
3251 enableval="$enable_nls"
3257 echo "$ac_t""$USE_NLS" 1>&6
3260 USE_INCLUDED_LIBINTL=no
3262 if test "$USE_NLS" = "yes"; then
3263 cat >> confdefs.h <<\EOF
3264 #define ENABLE_NLS 1
3267 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3268 echo "configure:3269: checking whether included gettext is requested" >&5
3269 # Check whether --with-included-gettext or --without-included-gettext was given.
3270 if test "${with_included_gettext+set}" = set; then
3271 withval="$with_included_gettext"
3272 nls_cv_force_use_gnu_gettext=$withval
3274 nls_cv_force_use_gnu_gettext=no
3277 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3279 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3280 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3282 nls_cv_header_libgt=
3285 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3286 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3287 echo "configure:3288: checking for libintl.h" >&5
3288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 #include <libintl.h>
3296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3297 { (eval echo configure:3298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3299 if test -z "$ac_err"; then
3301 eval "ac_cv_header_$ac_safe=yes"
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 eval "ac_cv_header_$ac_safe=no"
3311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3312 echo "$ac_t""yes" 1>&6
3313 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3314 echo "configure:3315: checking for gettext in libc" >&5
3315 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <libintl.h>
3323 return (int) gettext ("")
3326 if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3328 gt_cv_func_gettext_libc=yes
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3333 gt_cv_func_gettext_libc=no
3338 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3340 if test "$gt_cv_func_gettext_libc" != "yes"; then
3341 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3342 echo "configure:3343: checking for bindtextdomain in -lintl" >&5
3343 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 ac_save_LIBS="$LIBS"
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 /* Override any gcc2 internal prototype to avoid an error. */
3353 /* We use char because int might match the return type of a gcc2
3354 builtin and then its argument prototype would still apply. */
3355 char bindtextdomain();
3361 if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3363 eval "ac_cv_lib_$ac_lib_var=yes"
3365 echo "configure: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3368 eval "ac_cv_lib_$ac_lib_var=no"
3371 LIBS="$ac_save_LIBS"
3374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3375 echo "$ac_t""yes" 1>&6
3376 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3377 echo "configure:3378: checking for gettext in libintl" >&5
3378 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3379 echo $ac_n "(cached) $ac_c" 1>&6
3381 cat > conftest.$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3386 return (int) gettext ("")
3389 if { (eval echo configure:3390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3391 gt_cv_func_gettext_libintl=yes
3393 echo "configure: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3396 gt_cv_func_gettext_libintl=no
3401 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3403 echo "$ac_t""no" 1>&6
3408 if test "$gt_cv_func_gettext_libc" = "yes" \
3409 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3410 cat >> confdefs.h <<\EOF
3411 #define HAVE_GETTEXT 1
3414 # Extract the first word of "msgfmt", so it can be a program name with args.
3415 set dummy msgfmt; ac_word=$2
3416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3417 echo "configure:3418: checking for $ac_word" >&5
3418 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3423 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3427 for ac_dir in $PATH; do
3428 test -z "$ac_dir" && ac_dir=.
3429 if test -f $ac_dir/$ac_word; then
3430 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3431 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3437 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3441 MSGFMT="$ac_cv_path_MSGFMT"
3442 if test -n "$MSGFMT"; then
3443 echo "$ac_t""$MSGFMT" 1>&6
3445 echo "$ac_t""no" 1>&6
3447 if test "$MSGFMT" != "no"; then
3448 for ac_func in dcgettext
3450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3451 echo "configure:3452: checking for $ac_func" >&5
3452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 /* System header to define __stub macros and hopefully few prototypes,
3459 which can conflict with char $ac_func(); below. */
3461 /* Override any gcc2 internal prototype to avoid an error. */
3462 /* We use char because int might match the return type of a gcc2
3463 builtin and then its argument prototype would still apply. */
3468 /* The GNU C library defines this for functions which it implements
3469 to always fail with ENOSYS. Some functions are actually named
3470 something starting with __ and the normal name is an alias. */
3471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3479 if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3481 eval "ac_cv_func_$ac_func=yes"
3483 echo "configure: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3486 eval "ac_cv_func_$ac_func=no"
3491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3492 echo "$ac_t""yes" 1>&6
3493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3494 cat >> confdefs.h <<EOF
3495 #define $ac_tr_func 1
3499 echo "$ac_t""no" 1>&6
3503 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3504 set dummy gmsgfmt; ac_word=$2
3505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3506 echo "configure:3507: checking for $ac_word" >&5
3507 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3512 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3515 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3520 for ac_dir in $ac_dummy; do
3521 test -z "$ac_dir" && ac_dir=.
3522 if test -f $ac_dir/$ac_word; then
3523 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3528 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3532 GMSGFMT="$ac_cv_path_GMSGFMT"
3533 if test -n "$GMSGFMT"; then
3534 echo "$ac_t""$GMSGFMT" 1>&6
3536 echo "$ac_t""no" 1>&6
3539 # Extract the first word of "xgettext", so it can be a program name with args.
3540 set dummy xgettext; ac_word=$2
3541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3542 echo "configure:3543: checking for $ac_word" >&5
3543 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3548 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3552 for ac_dir in $PATH; do
3553 test -z "$ac_dir" && ac_dir=.
3554 if test -f $ac_dir/$ac_word; then
3555 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3556 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3562 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3566 XGETTEXT="$ac_cv_path_XGETTEXT"
3567 if test -n "$XGETTEXT"; then
3568 echo "$ac_t""$XGETTEXT" 1>&6
3570 echo "$ac_t""no" 1>&6
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3578 extern int _nl_msg_cat_cntr;
3579 return _nl_msg_cat_cntr
3582 if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3587 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3599 echo "$ac_t""no" 1>&6
3604 if test "$CATOBJEXT" = "NONE"; then
3605 nls_cv_use_gnu_gettext=yes
3609 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3610 INTLOBJS="\$(GETTOBJS)"
3611 # Extract the first word of "msgfmt", so it can be a program name with args.
3612 set dummy msgfmt; ac_word=$2
3613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_word" >&5
3615 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3620 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3624 for ac_dir in $PATH; do
3625 test -z "$ac_dir" && ac_dir=.
3626 if test -f $ac_dir/$ac_word; then
3627 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3628 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3634 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3638 MSGFMT="$ac_cv_path_MSGFMT"
3639 if test -n "$MSGFMT"; then
3640 echo "$ac_t""$MSGFMT" 1>&6
3642 echo "$ac_t""no" 1>&6
3645 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3646 set dummy gmsgfmt; ac_word=$2
3647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3648 echo "configure:3649: checking for $ac_word" >&5
3649 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3654 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3657 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3662 for ac_dir in $ac_dummy; do
3663 test -z "$ac_dir" && ac_dir=.
3664 if test -f $ac_dir/$ac_word; then
3665 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3670 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3674 GMSGFMT="$ac_cv_path_GMSGFMT"
3675 if test -n "$GMSGFMT"; then
3676 echo "$ac_t""$GMSGFMT" 1>&6
3678 echo "$ac_t""no" 1>&6
3681 # Extract the first word of "xgettext", so it can be a program name with args.
3682 set dummy xgettext; ac_word=$2
3683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3684 echo "configure:3685: checking for $ac_word" >&5
3685 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3690 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3694 for ac_dir in $PATH; do
3695 test -z "$ac_dir" && ac_dir=.
3696 if test -f $ac_dir/$ac_word; then
3697 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3698 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3704 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3708 XGETTEXT="$ac_cv_path_XGETTEXT"
3709 if test -n "$XGETTEXT"; then
3710 echo "$ac_t""$XGETTEXT" 1>&6
3712 echo "$ac_t""no" 1>&6
3716 USE_INCLUDED_LIBINTL=yes
3720 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3722 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3723 nls_cv_header_intl=libintl.h
3724 nls_cv_header_libgt=libgettext.h
3727 if test "$XGETTEXT" != ":"; then
3728 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3731 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3736 # We need to process the po/ directory.
3740 nls_cv_header_intl=libintl.h
3741 nls_cv_header_libgt=libgettext.h
3744 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3745 # because some of the sources are only built for this goal.
3746 if test "$PACKAGE" = gettext; then
3748 USE_INCLUDED_LIBINTL=yes
3751 for lang in $ALL_LINGUAS; do
3752 GMOFILES="$GMOFILES $lang.gmo"
3753 POFILES="$POFILES $lang.po"
3769 if test "x$CATOBJEXT" != "x"; then
3770 if test "x$ALL_LINGUAS" = "x"; then
3773 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3774 echo "configure:3775: checking for catalogs to be installed" >&5
3776 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3777 case "$ALL_LINGUAS" in
3778 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3781 LINGUAS=$NEW_LINGUAS
3782 echo "$ac_t""$LINGUAS" 1>&6
3785 if test -n "$LINGUAS"; then
3786 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3790 if test $ac_cv_header_locale_h = yes; then
3791 INCLUDE_LOCALE_H="#include <locale.h>"
3794 /* The system does not provide the header <locale.h>. Take care yourself. */"
3798 if test -f $srcdir/po2tbl.sed.in; then
3799 if test "$CATOBJEXT" = ".cat"; then
3800 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3801 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3802 echo "configure:3803: checking for linux/version.h" >&5
3803 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3809 #include <linux/version.h>
3811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3812 { (eval echo configure:3813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3814 if test -z "$ac_err"; then
3816 eval "ac_cv_header_$ac_safe=yes"
3819 echo "configure: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3822 eval "ac_cv_header_$ac_safe=no"
3826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3827 echo "$ac_t""yes" 1>&6
3830 echo "$ac_t""no" 1>&6
3835 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3837 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3838 $srcdir/po2tbl.sed.in > po2tbl.sed
3841 if test "$PACKAGE" = "gettext"; then
3851 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3857 if test -d $srcdir/po; then
3858 test -d po || mkdir po
3859 if test "x$srcdir" != "x."; then
3860 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3861 posrcprefix="$srcdir/"
3863 posrcprefix="../$srcdir/"
3869 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3870 < $srcdir/po/POTFILES.in > po/POTFILES
3875 *-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* \
3876 | *-*-cygwin* | *-*-mingw32 | *-*-win32 )
3877 cat >> confdefs.h <<\EOF
3878 #define BSD44_FORMAT 1
3884 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3885 echo "configure:3886: checking whether to enable maintainer-specific portions of Makefiles" >&5
3886 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3887 if test "${enable_maintainer_mode+set}" = set; then
3888 enableval="$enable_maintainer_mode"
3889 USE_MAINTAINER_MODE=$enableval
3891 USE_MAINTAINER_MODE=no
3894 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3895 if test $USE_MAINTAINER_MODE = yes; then
3902 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
3903 echo "configure:3904: checking for Cygwin32 environment" >&5
3904 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3912 return __CYGWIN32__;
3915 if { (eval echo configure:3916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3919 echo "configure: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3928 echo "$ac_t""$am_cv_cygwin32" 1>&6
3930 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
3931 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
3932 echo "configure:3933: checking for Mingw32 environment" >&5
3933 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3936 cat > conftest.$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3944 if { (eval echo configure:3945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3948 echo "configure: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3957 echo "$ac_t""$am_cv_mingw32" 1>&6
3959 test "$am_cv_mingw32" = yes && MINGW32=yes
3962 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3963 echo "configure:3964: checking for executable suffix" >&5
3964 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3967 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
3970 cat > am_c_test.c << 'EOF'
3972 /* Nothing needed here */
3975 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
3977 for file in am_c_test.*; do
3981 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
3987 test x"${am_cv_exeext}" = x && am_cv_exeext=no
3990 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
3991 echo "$ac_t""${am_cv_exeext}" 1>&6
3995 cat > confcache <<\EOF
3996 # This file is a shell script that caches the results of configure
3997 # tests run on this system so they can be shared between configure
3998 # scripts and configure runs. It is not useful on other systems.
3999 # If it contains results you don't want to keep, you may remove or edit it.
4001 # By default, configure uses ./config.cache as the cache file,
4002 # creating it if it does not exist already. You can give configure
4003 # the --cache-file=FILE option to use a different cache file; that is
4004 # what configure does when it calls configure scripts in
4005 # subdirectories, so they share the cache.
4006 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4007 # config.status only pays attention to the cache file if you give it the
4008 # --recheck option to rerun configure.
4011 # The following way of writing the cache mishandles newlines in values,
4012 # but we know of no workaround that is simple, portable, and efficient.
4013 # So, don't put newlines in cache variables' values.
4014 # Ultrix sh set writes to stderr and can't be redirected directly,
4015 # and sets the high bit in the cache file unless we assign to the vars.
4017 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4019 # `set' does not quote correctly, so add quotes (double-quote substitution
4020 # turns \\\\ into \\, and sed turns \\ into \).
4022 -e "s/'/'\\\\''/g" \
4023 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4026 # `set' quotes correctly as required by POSIX, so do not add quotes.
4027 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4030 if cmp -s $cache_file confcache; then
4033 if test -w $cache_file; then
4034 echo "updating cache $cache_file"
4035 cat confcache > $cache_file
4037 echo "not updating unwritable cache $cache_file"
4042 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4044 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4045 # Let make expand exec_prefix.
4046 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4048 # Any assignment to VPATH causes Sun make to only execute
4049 # the first set of double-colon rules, so remove it if not needed.
4050 # If there is a colon in the path, we need to keep it.
4051 if test "x$srcdir" = x.; then
4052 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4055 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4057 DEFS=-DHAVE_CONFIG_H
4059 # Without the "./", some shells look in PATH for config.status.
4060 : ${CONFIG_STATUS=./config.status}
4062 echo creating $CONFIG_STATUS
4063 rm -f $CONFIG_STATUS
4064 cat > $CONFIG_STATUS <<EOF
4066 # Generated automatically by configure.
4067 # Run this file to recreate the current configuration.
4068 # This directory was configured as follows,
4069 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4071 # $0 $ac_configure_args
4073 # Compiler output produced by configure, useful for debugging
4074 # configure, is in ./config.log if it exists.
4076 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4079 case "\$ac_option" in
4080 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4081 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4082 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4083 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4084 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
4086 -help | --help | --hel | --he | --h)
4087 echo "\$ac_cs_usage"; exit 0 ;;
4088 *) echo "\$ac_cs_usage"; exit 1 ;;
4092 ac_given_srcdir=$srcdir
4093 ac_given_INSTALL="$INSTALL"
4095 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4097 cat >> $CONFIG_STATUS <<EOF
4099 # Protect against being on the right side of a sed subst in config.status.
4100 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4101 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4105 s%@CFLAGS@%$CFLAGS%g
4106 s%@CPPFLAGS@%$CPPFLAGS%g
4107 s%@CXXFLAGS@%$CXXFLAGS%g
4108 s%@FFLAGS@%$FFLAGS%g
4110 s%@LDFLAGS@%$LDFLAGS%g
4112 s%@exec_prefix@%$exec_prefix%g
4113 s%@prefix@%$prefix%g
4114 s%@program_transform_name@%$program_transform_name%g
4115 s%@bindir@%$bindir%g
4116 s%@sbindir@%$sbindir%g
4117 s%@libexecdir@%$libexecdir%g
4118 s%@datadir@%$datadir%g
4119 s%@sysconfdir@%$sysconfdir%g
4120 s%@sharedstatedir@%$sharedstatedir%g
4121 s%@localstatedir@%$localstatedir%g
4122 s%@libdir@%$libdir%g
4123 s%@includedir@%$includedir%g
4124 s%@oldincludedir@%$oldincludedir%g
4125 s%@infodir@%$infodir%g
4126 s%@mandir@%$mandir%g
4128 s%@host_alias@%$host_alias%g
4129 s%@host_cpu@%$host_cpu%g
4130 s%@host_vendor@%$host_vendor%g
4131 s%@host_os@%$host_os%g
4132 s%@target@%$target%g
4133 s%@target_alias@%$target_alias%g
4134 s%@target_cpu@%$target_cpu%g
4135 s%@target_vendor@%$target_vendor%g
4136 s%@target_os@%$target_os%g
4138 s%@build_alias@%$build_alias%g
4139 s%@build_cpu@%$build_cpu%g
4140 s%@build_vendor@%$build_vendor%g
4141 s%@build_os@%$build_os%g
4142 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4143 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4144 s%@INSTALL_DATA@%$INSTALL_DATA%g
4145 s%@PACKAGE@%$PACKAGE%g
4146 s%@VERSION@%$VERSION%g
4147 s%@ACLOCAL@%$ACLOCAL%g
4148 s%@AUTOCONF@%$AUTOCONF%g
4149 s%@AUTOMAKE@%$AUTOMAKE%g
4150 s%@AUTOHEADER@%$AUTOHEADER%g
4151 s%@MAKEINFO@%$MAKEINFO%g
4152 s%@SET_MAKE@%$SET_MAKE%g
4153 s%@RANLIB@%$RANLIB%g
4158 s%@LIBTOOL@%$LIBTOOL%g
4159 s%@DLLTOOL@%$DLLTOOL%g
4162 s%@ALLOCA@%$ALLOCA%g
4163 s%@USE_NLS@%$USE_NLS%g
4164 s%@MSGFMT@%$MSGFMT%g
4165 s%@GMSGFMT@%$GMSGFMT%g
4166 s%@XGETTEXT@%$XGETTEXT%g
4167 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4168 s%@CATALOGS@%$CATALOGS%g
4169 s%@CATOBJEXT@%$CATOBJEXT%g
4170 s%@DATADIRNAME@%$DATADIRNAME%g
4171 s%@GMOFILES@%$GMOFILES%g
4172 s%@INSTOBJEXT@%$INSTOBJEXT%g
4173 s%@INTLDEPS@%$INTLDEPS%g
4174 s%@INTLLIBS@%$INTLLIBS%g
4175 s%@INTLOBJS@%$INTLOBJS%g
4176 s%@POFILES@%$POFILES%g
4178 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4180 s%@GT_YES@%$GT_YES%g
4181 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4184 s%@EXEEXT@%$EXEEXT%g
4189 cat >> $CONFIG_STATUS <<\EOF
4191 # Split the substitutions into bite-sized pieces for seds with
4192 # small command number limits, like on Digital OSF/1 and HP-UX.
4193 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4194 ac_file=1 # Number of current file.
4195 ac_beg=1 # First line for current file.
4196 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4199 while $ac_more_lines; do
4200 if test $ac_beg -gt 1; then
4201 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4203 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4205 if test ! -s conftest.s$ac_file; then
4207 rm -f conftest.s$ac_file
4209 if test -z "$ac_sed_cmds"; then
4210 ac_sed_cmds="sed -f conftest.s$ac_file"
4212 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4214 ac_file=`expr $ac_file + 1`
4216 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4219 if test -z "$ac_sed_cmds"; then
4224 cat >> $CONFIG_STATUS <<EOF
4226 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4228 cat >> $CONFIG_STATUS <<\EOF
4229 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4232 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4233 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4234 *) ac_file_in="${ac_file}.in" ;;
4237 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4239 # Remove last slash and all that follows it. Not all systems have dirname.
4240 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4241 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4242 # The file is in a subdirectory.
4243 test ! -d "$ac_dir" && mkdir "$ac_dir"
4244 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4245 # A "../" for each directory in $ac_dir_suffix.
4246 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4248 ac_dir_suffix= ac_dots=
4251 case "$ac_given_srcdir" in
4253 if test -z "$ac_dots"; then top_srcdir=.
4254 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4255 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4257 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4258 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4261 case "$ac_given_INSTALL" in
4262 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4263 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4266 echo creating "$ac_file"
4268 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4270 *Makefile*) ac_comsub="1i\\
4271 # $configure_input" ;;
4275 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4277 s%@configure_input@%$configure_input%g
4278 s%@srcdir@%$srcdir%g
4279 s%@top_srcdir@%$top_srcdir%g
4280 s%@INSTALL@%$INSTALL%g
4281 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4285 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4286 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4288 # ac_d sets the value in "#define NAME VALUE" lines.
4289 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4290 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4293 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4294 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4295 ac_uB='\([ ]\)%\1#\2define\3'
4298 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4299 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4300 ac_eB='$%\1#\2define\3'
4304 if test "${CONFIG_HEADERS+set}" != set; then
4306 cat >> $CONFIG_STATUS <<EOF
4307 CONFIG_HEADERS="gconfig.h:gconfig.in"
4309 cat >> $CONFIG_STATUS <<\EOF
4311 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4312 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4314 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4315 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4316 *) ac_file_in="${ac_file}.in" ;;
4319 echo creating $ac_file
4321 rm -f conftest.frag conftest.in conftest.out
4322 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4323 cat $ac_file_inputs > conftest.in
4327 # Transform confdefs.h into a sed script conftest.vals that substitutes
4328 # the proper values into config.h.in to produce config.h. And first:
4329 # Protect against being on the right side of a sed subst in config.status.
4330 # Protect against being in an unquoted here document in config.status.
4332 cat > conftest.hdr <<\EOF
4335 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4339 sed -n -f conftest.hdr confdefs.h > conftest.vals
4342 # This sed command replaces #undef with comments. This is necessary, for
4343 # example, in the case of _POSIX_SOURCE, which is predefined and required
4344 # on some systems where configure will not decide to define it.
4345 cat >> conftest.vals <<\EOF
4346 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4349 # Break up conftest.vals because some shells have a limit on
4350 # the size of here documents, and old seds have small limits too.
4355 ac_lines=`grep -c . conftest.vals`
4356 # grep -c gives empty output for an empty file on some AIX systems.
4357 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4358 # Write a limited-size here document to conftest.frag.
4359 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4360 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4362 sed -f conftest.frag conftest.in > conftest.out
4364 mv conftest.out conftest.in
4366 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4368 mv conftest.tail conftest.vals
4372 cat >> $CONFIG_STATUS <<\EOF
4373 rm -f conftest.frag conftest.h
4374 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4375 cat conftest.in >> conftest.h
4377 if cmp -s $ac_file conftest.h 2>/dev/null; then
4378 echo "$ac_file is unchanged"
4381 # Remove last slash and all that follows it. Not all systems have dirname.
4382 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4383 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4384 # The file is in a subdirectory.
4385 test ! -d "$ac_dir" && mkdir "$ac_dir"
4388 mv conftest.h $ac_file
4393 cat >> $CONFIG_STATUS <<EOF
4397 cat >> $CONFIG_STATUS <<\EOF
4398 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4399 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4402 chmod +x $CONFIG_STATUS
4403 rm -fr confdefs* $ac_clean_files
4404 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1